KParts
htmlextension.cpp
Go to the documentation of this file.
100 QString SelectorInterface::Element::attribute(const QString& name, const QString& defaultValue) const
110 const char* HtmlSettingsInterface::javascriptAdviceToText(HtmlSettingsInterface::JavaScriptAdvice advice)
127 HtmlSettingsInterface::JavaScriptAdvice HtmlSettingsInterface::textToJavascriptAdvice(const QString& text)
142 void HtmlSettingsInterface::splitDomainAdvice(const QString& adviceStr, QString& domain, HtmlSettingsInterface::JavaScriptAdvice& javaAdvice, HtmlSettingsInterface::JavaScriptAdvice& javaScriptAdvice)
virtual bool hasSelection() const
Returns true if portions of the content in the part that implements this extension are selected...
Definition: htmlextension.cpp:39
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
QStringList attributeNames() const
Returns the list of attributes in this element.
Definition: htmlextension.cpp:95
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
#define I18N_NOOP(x)
JavaScriptAdvice
This enum specifies whether Java/JavaScript execution is allowed.
Definition: htmlextension.h:270
bool isEmpty() const
void setTagName(const QString &tag)
Sets the tag name of this element.
Definition: htmlextension.cpp:80
bool hasAttribute(const QString &name) const
Returns true if the attribute with the given name exists.
Definition: htmlextension.cpp:105
HtmlExtension(KParts::ReadOnlyPart *parent)
Definition: htmlextension.cpp:30
bool isNull() const
Returns true if the element is null ; otherwise returns false.
Definition: htmlextension.cpp:75
QString toLower() const
static JavaScriptAdvice textToJavascriptAdvice(const QString &text)
A convenience function that returns the javascript advice for text.
Definition: htmlextension.cpp:127
an extension for KParts to provide HTML-related features
Definition: htmlextension.h:45
QString mid(int position, int n) const
int length() const
QString left(int n) const
virtual QueryMethods supportedQueryMethods() const
Returns the supported query methods.
Definition: htmlextension.cpp:49
static const char * javascriptAdviceToText(JavaScriptAdvice advice)
A convenience function Returns the text for the given JavascriptAdvice advice.
Definition: htmlextension.cpp:110
void setAttribute(const QString &name, const QString &value)
Adds an attribute with the given name and value.
Definition: htmlextension.cpp:90
static HtmlExtension * childObject(QObject *obj)
Queries obj for a child object which inherits from this HtmlExtension class.
Definition: htmlextension.cpp:44
int compare(const QString &other) const
QString attribute(const QString &name, const QString &defaultValue=QString()) const
Returns the attribute with the given name.
Definition: htmlextension.cpp:100
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.