KParts
#include <htmlextension.h>
Detailed Description
An interface for modifying the settings of browser engines.
This interface provides a generic means for querying or changing the settings of browser engines that implement it.
To use this class simply cast an instance of the HTMLExtension object using qobject_cast<KParts::HtmlSettingsInterface>.
Example: KParts::HTMLExtension* extension = KParts::HTMLExtension::childObject(part); KParts::HtmlSettingsInterface* settings = qobject_cast<KParts::HtmlSettingsInterface>(extension); const bool autoLoadImages = settings->attribute(KParts::AutoLoadImages);
- Since:
- 4.8.1
Definition at line 245 of file htmlextension.h.
Member Enumeration Documentation
Settings attribute types.
- Enumerator:
Definition at line 251 of file htmlextension.h.
This enum specifies whether Java/JavaScript execution is allowed.
- Since:
- 4.8.2
Definition at line 270 of file htmlextension.h.
This enum specifies the policy for window.focus.
- Since:
- 4.8.2
Definition at line 323 of file htmlextension.h.
This enum specifies the policy for window.moveBy and .moveTo.
- Since:
- 4.8.2
Definition at line 303 of file htmlextension.h.
This enum specifies the policy for window.open.
- Since:
- 4.8.2
Definition at line 281 of file htmlextension.h.
This enum specifies the policy for window.resizeBy and .resizeTo.
- Since:
- 4.8.2
Definition at line 313 of file htmlextension.h.
This enum specifies the policy for window.status and .defaultStatus.
- Since:
- 4.8.2
Definition at line 293 of file htmlextension.h.
Constructor & Destructor Documentation
| virtual KParts::HtmlSettingsInterface::~HtmlSettingsInterface | ( | ) | [inline, virtual] |
Destructor.
Definition at line 331 of file htmlextension.h.
Member Function Documentation
| virtual QVariant KParts::HtmlSettingsInterface::htmlSettingsProperty | ( | HtmlSettingsType | type | ) | const [pure virtual] |
Returns the value of the browser engine's attribute type.
| const char * HtmlSettingsInterface::javascriptAdviceToText | ( | HtmlSettingsInterface::JavaScriptAdvice | advice | ) | [static] |
A convenience function Returns the text for the given JavascriptAdvice advice.
If advice is not either JavaScriptAccept or JavaScriptReject, this function returns a NULL string.
- Since:
- 4.8.2
Definition at line 110 of file htmlextension.cpp.
| virtual bool KParts::HtmlSettingsInterface::setHtmlSettingsProperty | ( | HtmlSettingsType | type, |
| const QVariant & | value | ||
| ) | [pure virtual] |
Sets the value of the browser engine's attribute type to value.
| void HtmlSettingsInterface::splitDomainAdvice | ( | const QString & | text, |
| QString & | domain, | ||
| HtmlSettingsInterface::JavaScriptAdvice & | javaAdvice, | ||
| HtmlSettingsInterface::JavaScriptAdvice & | javaScriptAdvice | ||
| ) | [static] |
A convenience function that splits text into domain, javaAdvice and jScriptAdvice.
If text is empty or does not contain the proper delimiter (':'), this function will set domain to text and the other two parameters to JavaScriptDunno.
- Since:
- 4.8.2
Definition at line 142 of file htmlextension.cpp.
| HtmlSettingsInterface::JavaScriptAdvice HtmlSettingsInterface::textToJavascriptAdvice | ( | const QString & | text | ) | [static] |
A convenience function that returns the javascript advice for text.
If text is not either "accept" or "reject", this function returns JavaScriptDunno.
- Since:
- 4.8.2
Definition at line 127 of file htmlextension.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu May 10 2012 20:57:03 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.