KParts
htmlextension.h
Go to the documentation of this file.
381inline void qSwap( KParts::SelectorInterface::Element & lhs, KParts::SelectorInterface::Element & rhs )
virtual KUrl baseUrl() const =0
Returns the current base url of the part that implements this extension.
virtual bool hasSelection() const
Returns true if portions of the content in the part that implements this extension are selected.
Definition htmlextension.cpp:39
HtmlExtension(KParts::ReadOnlyPart *parent)
Definition htmlextension.cpp:30
static HtmlExtension * childObject(QObject *obj)
Queries obj for a child object which inherits from this HtmlExtension class.
Definition htmlextension.cpp:44
An interface for modifying the settings of browser engines.
Definition htmlextension.h:246
virtual QVariant htmlSettingsProperty(HtmlSettingsType type) const =0
Returns the value of the browser engine's attribute type.
JSWindowResizePolicy
This enum specifies the policy for window.resizeBy and .resizeTo.
Definition htmlextension.h:313
@ JSWindowResizeIgnore
Definition htmlextension.h:315
@ JSWindowResizeAllow
Definition htmlextension.h:314
JSWindowMovePolicy
This enum specifies the policy for window.moveBy and .moveTo.
Definition htmlextension.h:303
static void splitDomainAdvice(const QString &text, QString &domain, JavaScriptAdvice &javaAdvice, JavaScriptAdvice &javaScriptAdvice)
A convenience function that splits text into domain, javaAdvice and jScriptAdvice.
Definition htmlextension.cpp:142
@ JSWindowFocusIgnore
Definition htmlextension.h:325
static const char * javascriptAdviceToText(JavaScriptAdvice advice)
A convenience function Returns the text for the given JavascriptAdvice advice.
Definition htmlextension.cpp:110
@ PrivateBrowsingEnabled
Definition htmlextension.h:258
@ OfflineStorageDatabaseEnabled
Definition htmlextension.h:259
@ LocalStorageEnabled
Definition htmlextension.h:261
@ UserDefinedStyleSheetURL
Definition htmlextension.h:262
@ OfflineWebApplicationCacheEnabled
Definition htmlextension.h:260
JSWindowStatusPolicy
This enum specifies the policy for window.status and .defaultStatus.
Definition htmlextension.h:293
@ JSWindowStatusIgnore
Definition htmlextension.h:295
@ JSWindowStatusAllow
Definition htmlextension.h:294
virtual bool setHtmlSettingsProperty(HtmlSettingsType type, const QVariant &value)=0
Sets the value of the browser engine's attribute type to value.
static JavaScriptAdvice textToJavascriptAdvice(const QString &text)
A convenience function that returns the javascript advice for text.
Definition htmlextension.cpp:127
JavaScriptAdvice
This enum specifies whether Java/JavaScript execution is allowed.
Definition htmlextension.h:270
QString attribute(const QString &name, const QString &defaultValue=QString()) const
Returns the attribute with the given name.
Definition htmlextension.cpp:100
bool isNull() const
Returns true if the element is null ; otherwise returns false.
Definition htmlextension.cpp:75
void swap(Element &other)
Swaps the contents of other with the contents of this.
Definition htmlextension.h:207
void setTagName(const QString &tag)
Sets the tag name of this element.
Definition htmlextension.cpp:80
void setAttribute(const QString &name, const QString &value)
Adds an attribute with the given name and value.
Definition htmlextension.cpp:90
bool hasAttribute(const QString &name) const
Returns true if the attribute with the given name exists.
Definition htmlextension.cpp:105
QStringList attributeNames() const
Returns the list of attributes in this element.
Definition htmlextension.cpp:95
Optional base class for HtmlExtension-derived classes Provides DOM Selector like API: querySelector a...
Definition htmlextension.h:90
virtual Element querySelector(const QString &query, QueryMethod method) const =0
Returns the first (in document order) element in this fragment matching the given CSS selector query ...
virtual QList< Element > querySelectorAll(const QString &query, QueryMethod method) const =0
Returns all (in document order) elements in this fragment matching the given CSS selector query and q...
void qSwap(KParts::SelectorInterface::Element &lhs, KParts::SelectorInterface::Element &rhs)
Definition htmlextension.h:381
QString defaultValue(const QString &t)
Q_DECLARE_TYPEINFO(KIO::UDSEntryPrivate::Field, Q_MOVABLE_TYPE)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.