KHtml
khtml_ext.cpp
402 d->m_suggestedFilename = static_cast<khtml::CachedImage *>(ri->contentObject())->suggestedFilename();
561 if (d->m_pixmap.isNull()) { //fallback to image location if still loading the image. this will always be true if ifdef QT_NO_MIMECLIPBOARD
631 alternateProviders << "google" << "google_groups" << "google_news" << "webster" << "dmoz" << "wikipedia";
641 connect(action, SIGNAL(triggered(bool)), d->m_khtml->browserExtension(), SLOT(searchProvider()));
656 connect(action, SIGNAL(triggered(bool)), d->m_khtml->browserExtension(), SLOT(searchProvider()));
681 emit d->m_khtml->browserExtension()->openUrlRequest(url, KParts::OpenUrlArguments(), browserArgs);
712 saveURL(d->m_khtml->widget(), i18n("Save Image As"), d->m_imageURL, metaData, QString(), 0, d->m_suggestedFilename);
788 // qCDebug(KHTML_LOG) << "slotCopyImage called when the clipboard does not support this. This should not be possible.";
875 query = KMessageBox::warningContinueCancel(parent, i18n("A file named \"%1\" already exists. " "Are you sure you want to overwrite it?", info.fileName()), i18n("Overwrite File?"), KStandardGuiItem::overwrite());
920 KConfigGroup cfg = KSharedConfig::openConfig("konquerorrc", KConfig::NoGlobals)->group("HTML Settings");
927 QString errMsg = i18n("The Download Manager (%1) could not be found in your $PATH ", downloadManger);
928 QString errMsgEx = i18n("Try to reinstall it \n\nThe integration with Konqueror will be disabled.");
971 bool KHTMLPartBrowserHostExtension::openUrlInFrame(const QUrl &url, const KParts::OpenUrlArguments &arguments, const KParts::BrowserArguments &browserArguments)
976 KParts::BrowserHostExtension *KHTMLPartBrowserHostExtension::findFrameParent(KParts::ReadOnlyPart
979 KHTMLPart *parentPart = m_part->d->findFrameParent(callingPart, frame, nullptr, true /* navigation*/);
990 KHTMLZoomFactorAction::KHTMLZoomFactorAction(KHTMLPart *part, bool direction, const QString &icon, const QString &text, QObject *parent)
1024 connect(selectableActionGroup(), SIGNAL(triggered(QAction*)), this, SLOT(slotTriggered(QAction*)));
1100 return (KParts::SelectorInterface::SelectedContent | KParts::SelectorInterface::EntireContent);
1118 KParts::SelectorInterface::Element KHTMLHtmlExtension::querySelector(const QString &query, KParts::SelectorInterface::QueryMethod method) const
1152 QList<KParts::SelectorInterface::Element> KHTMLHtmlExtension::querySelectorAll(const QString &query, KParts::SelectorInterface::QueryMethod method) const
1170 WTF::RefPtr<DOM::NodeListImpl> nodes = part()->document().handle()->querySelectorAll(query, ec);
1200 QVariant KHTMLHtmlExtension::htmlSettingsProperty(HtmlSettingsInterface::HtmlSettingsType type) const
1223 bool KHTMLHtmlExtension::setHtmlSettingsProperty(HtmlSettingsInterface::HtmlSettingsType type, const QVariant &value)
1233 p->setDNSPrefetch((value.toBool() ? KHTMLPart::DNSPrefetchEnabled : KHTMLPart::DNSPrefetchDisabled));
1253 const QByteArray decodedData((index > -1 ? QByteArray::fromBase64(data.mid(index)) : QByteArray()));
virtual void restoreState(QDataStream &stream)
Restores the KHTMLPart's previously saved state (including child frame objects) from the provided QDa...
Definition: khtml_part.cpp:5671
void append(const T &value)
void paste()
void setJScriptEnabled(bool enable)
Enable/disable Javascript support.
Definition: khtml_part.cpp:1140
bool isReadOnly() const const
void truncate(int position)
void setNewTab(bool newTab)
void setReload(bool b)
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
QString number(int n, int base)
void setMetaRefreshEnabled(bool enable)
Enable/disable automatic forwarding by <meta http-equiv="refresh" ....
Definition: khtml_part.cpp:1175
void addAction(QAction *action)
QUrl toUrl() const const
WriteOnly
QString fromUtf8(const char *str, int size)
NoGlobals
void cut()
ButtonCode warningContinueCancel(QWidget *parent, const QString &text, const QString &title=QString(), const KGuiItem &buttonContinue=KStandardGuiItem::cont(), const KGuiItem &buttonCancel=KStandardGuiItem::cancel(), const QString &dontAskAgainName=QString(), Options options=Notify)
void setUrls(const QList< QUrl > &urls)
QString selectedTextAsHTML() const
Return the text the user has marked.
Definition: khtml_part.cpp:3219
void setHtml(const QString &html)
QString scheme() const const
void setUserStyleSheet(const QUrl &url)
Sets a user defined style sheet to be used on top of the HTML 4 default style sheet.
Definition: khtml_part.cpp:2811
QCA_EXPORT void init()
static KUriFilter * self()
QString trimmed() const const
By far the vast majority of objects (apart from text) that authors encounter when traversing a docume...
Definition: dom_element.h:212
QString url(QUrl::FormattingOptions options) const const
int contentsX() const
Returns the x coordinate of the contents area point that is currently located at the top left in the ...
Definition: khtmlview.cpp:710
QString & prepend(QChar ch)
QIcon fromTheme(const QString &name)
bool inherits(const char *className) const const
void setJavaEnabled(bool enable)
Enables/disables Java applet support.
Definition: khtml_part.cpp:1421
QObject * sender() const const
int contentsY() const
Returns the y coordinate of the contents area point that is currently located at the top left in the ...
Definition: khtmlview.cpp:715
bool hasText() const const
ScrollBarAlwaysOff
QByteArray toLatin1() const const
KCOREADDONS_EXPORT QString rsqueeze(const QString &str, int maxlen=40)
Normal
QueryMethod
void setImageData(const QVariant &image)
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QMap< QString, QString > & metaData()
void setPluginsEnabled(bool enable)
Enables or disables plugins, default is enabled.
Definition: khtml_part.cpp:1439
virtual QString fileName() const const override
void enableAction(const char *name, bool enabled)
QString findExecutable(const QString &executableName, const QStringList &paths)
void cut()
void reserve(int alloc)
KSERVICE_EXPORT KService::List query(FilterFunc filterFunc)
bool isValid() const const
QClipboard * clipboard()
void setIcon(const QIcon &icon)
QString frameName
void copy()
HTMLElement body() const
The element that contains the content for the document.
Definition: html_document.cpp:141
void setHorizontalScrollBarPolicy(Qt::ScrollBarPolicy)
QString i18n(const char *text, const TYPE &arg...)
KCOREADDONS_EXPORT QString csqueeze(const QString &str, int maxlen=40)
bool isEmpty() const const
FullyEncoded
PrimaryAction
KHTMLView * view() const
Returns a pointer to the HTML document's view.
Definition: khtml_part.cpp:1099
SelectedContent
static void saveUrlUsingKIO(const QUrl &srcUrl, const QUrl &destUrl, QWidget *window, const QMap< QString, QString > &metaData)
bool isEmpty() const const
QUrl getSaveFileUrl(QWidget *parent, const QString &caption, const QUrl &dir, const QString &filter, QString *selectedFilter, QFileDialog::Options options, const QStringList &supportedSchemes)
QUrl fromLocalFile(const QString &localFile)
QString fileName(QUrl::ComponentFormattingOptions options) const const
int length() const const
QString text(QClipboard::Mode mode) const const
DelayedPopup
bool isReadOnly() const const
QByteArray fromBase64(const QByteArray &base64, QByteArray::Base64Options options)
void setText(const QString &text)
QString getText(QWidget *parent, const QString &title, const QString &label, QLineEdit::EchoMode mode, const QString &text, bool *ok, Qt::WindowFlags flags, Qt::InputMethodHints inputMethodHints)
DirectConnection
bool isEmpty() const const
QString toLocalFile() const const
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const const
void setDNSPrefetch(DNSPrefetch pmode)
Sets whether DNS Names found in loaded documents'anchors should be pre-fetched (pre-resolved).
Definition: khtml_part.cpp:1161
void setText(const QString &text, QClipboard::Mode mode)
Clipboard
void saveData(long id, QDataStream *str)
Save the data of cache entry id to the datastream str.
Definition: khtml_pagecache.cpp:274
static bool runCommand(const QString &cmd, const QString &execName, const QString &icon, QWidget *window, const QByteArray &asn, const QString &workingDirectory)
bool toBool() const const
QString & replace(int position, int n, QChar after)
QString & remove(int position, int n)
QVariant data() const const
void setData(const QVariant &userData)
EntireContent
const QMimeData * mimeData(QClipboard::Mode mode) const const
void setText(const QString &text)
QString host(QUrl::ComponentFormattingOptions options) const const
void openUrlRequest(const QUrl &url, const KParts::OpenUrlArguments &arguments=KParts::OpenUrlArguments(), const KParts::BrowserArguments &browserArguments=KParts::BrowserArguments())
void paste()
void setPassword(const QString &password, QUrl::ParsingMode mode)
QString path(QUrl::ComponentFormattingOptions options) const const
void setAutoloadImages(bool enable)
Specifies whether images contained in the document should be loaded automatically or not.
Definition: khtml_part.cpp:1512
virtual QString selectedText() const
Returns the text the user has marked.
Definition: khtml_part.cpp:3238
void setEnabled(bool)
KCOREADDONS_EXPORT QString quoteArg(const QString &arg)
DOMString src() const
When the type attribute has the value "Image", this attribute specifies the location of the image to ...
Definition: html_form.cpp:611
void detailedError(QWidget *parent, const QString &text, const QString &details, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
bool isValid(QStringView ifopt)
void setPath(const QString &path, QUrl::ParsingMode mode)
QString name(StandardShortcut id)
bool isLocalFile() const const
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
const QList< QKeySequence > & print()
FileCopyJob * file_move(const QUrl &src, const QUrl &dest, JobFlags flags)=delete
void writePathEntry(const char *Key, const QString &path, WriteConfigFlags pFlags=Normal)
QString i18nc(const char *context, const char *text, const TYPE &arg...)
void setMimeData(QMimeData *src, QClipboard::Mode mode)
The NodeList interface provides the abstraction of an ordered collection of nodes,...
Definition: dom_node.h:976
QString readPathEntry(const char *key, const QString &aDefault) const
DOM::Document document() const
Returns a reference to the DOM document.
Definition: khtml_part.cpp:1057
DOM::HTMLDocument htmlDocument() const
Returns a reference to the DOM HTML document (for non-HTML documents, returns null)
Definition: khtml_part.cpp:1048
bool sync() override
Node item(unsigned long index) const
Returns the index th item in the collection.
Definition: dom_node.cpp:606
KGuiItem ok()
bool contains(QChar ch, Qt::CaseSensitivity cs) const const
PlainText
bool open()
void setSeparator(bool b)
QString mid(int position, int n) const const
bool jScriptEnabled() const
Returns true if Javascript support is enabled or false otherwise.
Definition: khtml_part.cpp:1149
KGuiItem overwrite()
virtual void saveState(QDataStream &stream)
Saves the KHTMLPart's complete state (including child frame objects) to the provided QDataStream.
Definition: khtml_part.cpp:5583
void setVerticalScrollBarPolicy(Qt::ScrollBarPolicy)
void setForcesNewWindow(bool forcesNewWindow)
static void invokeMailer(const QString &address, const QString &subject, const QByteArray &startup_id=QByteArray())
QObject * parent() const const
void copy() const const
const QList< QKeySequence > & copy()
bool autoloadImages() const
Returns whether images contained in the document are loaded automatically or not.
Definition: khtml_part.cpp:1541
KParts::BrowserExtension * browserExtension() const
Returns a pointer to the KParts::BrowserExtension.
Definition: khtml_part.cpp:1089
QString toString() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Feb 5 2023 04:01:41 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Feb 5 2023 04:01:41 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.