diff --git a/doc/konqueror/index.docbook b/doc/konqueror/index.docbook
--- a/doc/konqueror/index.docbook
+++ b/doc/konqueror/index.docbook
@@ -1710,14 +1710,6 @@
Copy Image copies the &URL; of the picture
to the clipboard.
-To save a complete web page, including images, select
-Archive Web Page... from the Tools menu.
-Note that this feature is provided by a plugin
- and may not have been installed on your system. The web page will be
-saved as a single file with a .war
-extension and can be opened by left clicking
-on the filename in &konqueror; running in File Manager mode.
-
Printing a copy of the page you are viewing is easily done with the
Menubar FilePrint... or Print
@@ -2251,7 +2243,7 @@
Browser Mode
-
-Archive Web Page (KHTML view only)
-Invoked with Tools
-Archive Web Page, this tool creates an archive
-(.war ) file containing the web page being
-viewed including the images. Left click on the
-archive file name to view the saved page.
-
-Auto Refresh (KHTML view only)
diff --git a/konqueror.categories b/konqueror.categories
--- a/konqueror.categories
+++ b/konqueror.categories
@@ -1,4 +1,3 @@
org.kde.webenginepart webenginepart IDENTIFIER [WEBENGINEPART_LOG]
org.kde.konqueror konqueror IDENTIFIER [KONQUEROR_LOG]
org.kde.konqueror.minitools minitools (konqueror plugin) IDENTIFIER [MINITOOLSPLUGIN_LOG]
-org.kde.konqueror.webarchiver webarchiver (konqueror plugin) IDENTIFIER [WEBARCHIVERPLUGIN_LOG]
diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt
--- a/plugins/CMakeLists.txt
+++ b/plugins/CMakeLists.txt
@@ -8,7 +8,6 @@
add_subdirectory( dirfilter )
# TODO add_subdirectory( uachanger )
add_subdirectory( babelfish )
-add_subdirectory( webarchiver )
if (Qt5TextToSpeech_FOUND)
add_subdirectory(ttsplugin)
diff --git a/plugins/webarchiver/16-actions-webarchiver.png b/plugins/webarchiver/16-actions-webarchiver.png
deleted file mode 100644
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@> rc.cpp
-$XGETTEXT *.cpp -o $podir/webarchiver.pot
diff --git a/plugins/webarchiver/archivedialog.h b/plugins/webarchiver/archivedialog.h
deleted file mode 100644
--- a/plugins/webarchiver/archivedialog.h
+++ /dev/null
@@ -1,274 +0,0 @@
-/*
- Copyright (C) 2003 Antonio Larrosa
- Copyright (C) 2008 Matthias Grimrath
-
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; see the file COPYING. If not, write to
- the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
-*/
-
-#ifndef _ARCHIVEDIALOG_H_
-#define _ARCHIVEDIALOG_H_
-
-#include
-#include
-
-#include
-
-#include
-#include
-
-#include "ui_archiveviewbase.h"
-
-class QWidget;
-class KHTMLPart;
-class ArchiveViewBase;
-class QUrl;
-class KTar;
-class QTextStream;
-
-class ArchiveViewBase : public QWidget, public Ui::ArchiveViewBase
-{
-public:
- ArchiveViewBase(QWidget *parent) : QWidget(parent)
- {
- setupUi(this);
- }
-};
-
-/// Does all the hard work of downloading, manipulating and storing of
-/// HTML files and inlined images, stylesheets ...
-class ArchiveDialog : public KDialog
-{
- Q_OBJECT
-public:
- ArchiveDialog(QWidget *parent, const QString &targetFilename, KHTMLPart *part);
- ~ArchiveDialog() override;
-
- void archive();
-
-protected:
- /// Holds attributes that are not #CDATA
- class NonCDataAttr : public QSet
- {
- public:
- NonCDataAttr();
- };
-
- static NonCDataAttr non_cdata_attr;
-
- KIO::Job *startDownload(const QUrl &url, KHTMLPart *part);
-
-public:
-
- // Frame handling
-
- typedef QHash Name2Part;
-private:
- typedef QHash URL2Part;
-
- struct PartFrameData {
- Name2Part framesWithName;
- URL2Part framesWithURLOnly;
- };
-
- typedef QHash< KHTMLPart *, PartFrameData > FramesInPart;
- typedef QHash< QString, KHTMLPart * > TarName2Part;
- typedef QHash< KHTMLPart *, QString > Part2TarName;
-
- // Stylesheets
-
- typedef QHash< QUrl, DOM::CSSStyleSheet > CSSURLSet;
- typedef QHash< QString, QUrl > RawHRef2FullURL;
- typedef QHash< DOM::CSSStyleSheet, RawHRef2FullURL > URLsInStyleSheet;
- typedef QHash< DOM::Element, RawHRef2FullURL > URLsInStyleElement;
- typedef QHash< DOM::Node, DOM::CSSStyleSheet > Node2StyleSheet;
-
- // Recursive parsing and processing
-
- /// Databag to hold information that is gathered during recursive traversal of the DOM tree
- struct RecurseData {
- KHTMLPart *const part;
- QTextStream *const textStream;
- PartFrameData *const partFrameData;
- DOM::HTMLDocument document;
- bool baseSeen;
-
- RecurseData(KHTMLPart *_part, QTextStream *_textStream, PartFrameData *pfd);
- };
-
- struct DownloadInfo {
- QString tarName;
- KHTMLPart *part;
-
- DownloadInfo(const QString &_tarName = QString::null, KHTMLPart *_part = nullptr)
- : tarName(_tarName), part(_part) { }
- };
-
- typedef QMap< QUrl, DownloadInfo > UrlTarMap;
- typedef QList< UrlTarMap::Iterator > DownloadList;
-
- struct AttrElem {
- QString name;
- QString value;
-
- AttrElem() { }
- AttrElem(const QString &_n, const QString &_v) : name(_n), value(_v) { }
- };
- typedef QLinkedList< AttrElem > AttrList;
-
- /**
- * Looks for URL contained in attributes.
- */
- struct ExtractURLs {
- ExtractURLs(const QString &nodeName, const DOM::Element &element);
-
- AttrList attrList; /// copy of the attribute of @p element
- AttrList::iterator absURL; /// for links ala <a href= ... >
- AttrList::iterator transURL; /// for embedded objects like <img src=...>, favicons, background-images...
- AttrList::iterator frameURL; /// if @p element contains a frameURL
- AttrList::iterator frameName; /// if it is frame tag with a name element
- AttrList::iterator cssURL; /// for URLs that specify CSS
- };
-
-private:
- void downloadObjects();
- void downloadStyleSheets();
- void saveWebpages();
- void finishedArchiving(bool tarerror);
-
- void endProgressInfo(bool error);
-
- void obtainURLs();
- void obtainURLsLower(KHTMLPart *part, int level);
- void obtainPartURLsLower(const DOM::Node &pNode, int level, RecurseData &data);
- void obtainStyleSheetURLsLower(DOM::CSSStyleSheet styleSheet, RecurseData &data);
-
- bool insertTranslateURL(const QUrl &fullURL, RecurseData &data);
- bool insertHRefFromStyleSheet(const QString &hrefRaw, RawHRef2FullURL &raw2full,
- const QUrl &fullURL, RecurseData &data);
- void parseStyleDeclaration(const QUrl &baseURL, DOM::CSSStyleDeclaration decl,
- RawHRef2FullURL &urls, RecurseData &data /*, bool verbose = false*/);
-
- bool saveTopFrame();
- bool saveFrame(KHTMLPart *part, int level);
- void saveHTMLPart(RecurseData &data);
- void saveHTMLPartLower(const DOM::Node &pNode, int indent, RecurseData &data);
-
- QString extractCSSURL(const QString &text);
- QString &changeCSSURLs(QString &text, const RawHRef2FullURL &raw2full);
-
- static bool hasAttrWithValue(const DOM::Element &elem, const QString &attrName, const QString &attrValue);
- static bool hasChildNode(const DOM::Node &pNode, const QString &nodeName);
- static AttrList::Iterator getAttribute(AttrList &attrList, const QString &attr);
-
- static bool hasSubUrl(const QUrl &url);
-
- /**
- * completes a potentially partial URL in a HTML document (like <img href="...")
- * to a fully qualified one.
- *
- * It uses the URL of the document or the URL given in the <base ...>
- * element, depending on if and where a <base ...> appears on the document.
- *
- * Always use this method to get full URLs from href's or similar.
- *
- * Suppose the URL of the webpage is http://host.nowhere/. The head looks like this
- *