#include <tdehtml_settings.h>
Public Types | |
| enum | KJavaScriptAdvice { KJavaScriptDunno =0 , KJavaScriptAccept , KJavaScriptReject } |
| enum | KAnimationAdvice { KAnimationDisabled =0 , KAnimationLoopOnce , KAnimationEnabled } |
| enum | KJSWindowOpenPolicy { KJSWindowOpenAllow =0 , KJSWindowOpenAsk , KJSWindowOpenDeny , KJSWindowOpenSmart } |
| enum | KJSWindowStatusPolicy { KJSWindowStatusAllow =0 , KJSWindowStatusIgnore } |
| enum | KJSWindowMovePolicy { KJSWindowMoveAllow =0 , KJSWindowMoveIgnore } |
| enum | KJSWindowResizePolicy { KJSWindowResizeAllow =0 , KJSWindowResizeIgnore } |
| enum | KJSWindowFocusPolicy { KJSWindowFocusAllow =0 , KJSWindowFocusIgnore } |
Public Member Functions | |
| TDEHTMLSettings (const TDEHTMLSettings &other) | |
| void | init () |
| void | init (TDEConfig *config, bool reset=true) |
| virtual | ~TDEHTMLSettings () |
| bool | changeCursor () const |
| bool | underlineLink () const |
| bool | hoverLink () const |
| bool | allowTabulation () const |
| bool | autoSpellCheck () const |
| KAnimationAdvice | showAnimations () const |
| TQString | stdFontName () const |
| TQString | fixedFontName () const |
| TQString | serifFontName () const |
| TQString | sansSerifFontName () const |
| TQString | cursiveFontName () const |
| TQString | fantasyFontName () const |
| void | setStdFontName (const TQString &n) |
| void | setFixedFontName (const TQString &n) |
| int | minFontSize () const |
| int | mediumFontSize () const |
| bool | jsErrorsEnabled () const |
| void | setJSErrorsEnabled (bool enabled) |
| const TQString & | encoding () const |
| bool | followSystemColors () const |
| const TQColor & | textColor () const |
| const TQColor & | baseColor () const |
| const TQColor & | linkColor () const |
| const TQColor & | vLinkColor () const |
| bool | autoLoadImages () const |
| bool | unfinishedImageFrame () const |
| bool | isOpenMiddleClickEnabled () |
| bool | isBackRightClickEnabled () |
| bool | isJavaEnabled (const TQString &hostname=TQString::null) |
| bool | isJavaScriptEnabled (const TQString &hostname=TQString::null) |
| bool | isJavaScriptDebugEnabled (const TQString &hostname=TQString::null) |
| bool | isJavaScriptErrorReportingEnabled (const TQString &hostname=TQString::null) const |
| bool | isPluginsEnabled (const TQString &hostname=TQString::null) |
| bool | isAdFiltered (const TQString &url) const |
| bool | isAdFilterEnabled () const |
| bool | isHideAdsEnabled () const |
| void | addAdFilter (const TQString &url) |
| bool | accessKeysEnabled () const |
| KJSWindowOpenPolicy | windowOpenPolicy (const TQString &hostname=TQString::null) const |
| KJSWindowMovePolicy | windowMovePolicy (const TQString &hostname=TQString::null) const |
| KJSWindowResizePolicy | windowResizePolicy (const TQString &hostname=TQString::null) const |
| KJSWindowStatusPolicy | windowStatusPolicy (const TQString &hostname=TQString::null) const |
| KJSWindowFocusPolicy | windowFocusPolicy (const TQString &hostname=TQString::null) const |
| void | readDomainSettings (TDEConfig *config, bool reset, bool global, KPerDomainSettings &pd_settings) |
| TQString | settingsToCSS () const |
| TQString | userStyleSheet () const |
| bool | isFormCompletionEnabled () const |
| int | maxFormCompletionItems () const |
| bool | isAutoDelayedActionsEnabled () const |
| TQValueList< TQPair< TQString, TQChar > > | fallbackAccessKeysAssignments () const |
| void | setJSPopupBlockerPassivePopup (bool enabled) |
| bool | jsPopupBlockerPassivePopup () const |
Static Public Member Functions | |
| static KJavaScriptAdvice | strToAdvice (const TQString &_str) |
| static void | splitDomainAdvice (const TQString &configStr, TQString &domain, KJavaScriptAdvice &javaAdvice, KJavaScriptAdvice &javaScriptAdvice) |
| static const char * | adviceToStr (KJavaScriptAdvice _advice) |
| static const TQString & | availableFamilies () |
Friends | |
| class | TDEHTMLFactory |
Detailed Description
Settings for the HTML view.
Definition at line 38 of file tdehtml_settings.h.
Member Enumeration Documentation
◆ KJavaScriptAdvice
This enum specifies whether Java/JavaScript execution is allowed.
Definition at line 45 of file tdehtml_settings.h.
◆ KJSWindowFocusPolicy
This enum specifies the policy for window.focus.
Definition at line 94 of file tdehtml_settings.h.
◆ KJSWindowMovePolicy
This enum specifies the policy for window.moveBy and .moveTo.
Definition at line 78 of file tdehtml_settings.h.
◆ KJSWindowOpenPolicy
This enum specifies the policy for window.open.
Definition at line 60 of file tdehtml_settings.h.
◆ KJSWindowResizePolicy
This enum specifies the policy for window.resizeBy and .resizeTo.
Definition at line 86 of file tdehtml_settings.h.
◆ KJSWindowStatusPolicy
This enum specifies the policy for window.status and .defaultStatus.
Definition at line 70 of file tdehtml_settings.h.
Constructor & Destructor Documentation
◆ ~TDEHTMLSettings()
|
virtual |
Destructor.
Don't delete any instance by yourself.
Definition at line 270 of file tdehtml_settings.cpp.
Member Function Documentation
◆ init() [1/2]
| void TDEHTMLSettings::init | ( | ) |
Called by constructor and reparseConfiguration.
Definition at line 290 of file tdehtml_settings.cpp.
◆ init() [2/2]
| void TDEHTMLSettings::init | ( | TDEConfig * | config, |
| bool | reset = true |
||
| ) |
Read settings from config.
- Parameters
-
config is a pointer to TDEConfig object. reset if true, settings are always set; if false, settings are only set if the config file has a corresponding key.
Definition at line 302 of file tdehtml_settings.cpp.
◆ readDomainSettings()
| void TDEHTMLSettings::readDomainSettings | ( | TDEConfig * | config, |
| bool | reset, | ||
| bool | global, | ||
| KPerDomainSettings & | pd_settings | ||
| ) |
reads from config's current group, forcing initialization if reset is true.
- Parameters
-
config is a pointer to TDEConfig object. reset true if initialization is to be forced. global true if the global domain is to be read. pd_settings will be initialised with the computed (inherited) settings.
Definition at line 189 of file tdehtml_settings.cpp.
The documentation for this class was generated from the following files:
Trinity API Reference