#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
◆ KAnimationAdvice
enum TDEHTMLSettings::KAnimationAdvice |
Definition at line 51 of file tdehtml_settings.h.
◆ 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() [1/2]
TDEHTMLSettings::TDEHTMLSettings | ( | ) |
Definition at line 258 of file tdehtml_settings.cpp.
◆ TDEHTMLSettings() [2/2]
TDEHTMLSettings::TDEHTMLSettings | ( | const TDEHTMLSettings & | other | ) |
Definition at line 264 of file tdehtml_settings.cpp.
◆ ~TDEHTMLSettings()
|
virtual |
Destructor.
Don't delete any instance by yourself.
Definition at line 270 of file tdehtml_settings.cpp.
Member Function Documentation
◆ accessKeysEnabled()
bool TDEHTMLSettings::accessKeysEnabled | ( | ) | const |
Definition at line 706 of file tdehtml_settings.cpp.
◆ addAdFilter()
void TDEHTMLSettings::addAdFilter | ( | const TQString & | url | ) |
Definition at line 742 of file tdehtml_settings.cpp.
◆ adviceToStr()
|
static |
Definition at line 149 of file tdehtml_settings.cpp.
◆ allowTabulation()
bool TDEHTMLSettings::allowTabulation | ( | ) | const |
Definition at line 1036 of file tdehtml_settings.cpp.
◆ autoLoadImages()
bool TDEHTMLSettings::autoLoadImages | ( | ) | const |
Definition at line 1001 of file tdehtml_settings.cpp.
◆ autoSpellCheck()
bool TDEHTMLSettings::autoSpellCheck | ( | ) | const |
Definition at line 1041 of file tdehtml_settings.cpp.
◆ availableFamilies()
|
static |
Definition at line 876 of file tdehtml_settings.cpp.
◆ baseColor()
const TQColor & TDEHTMLSettings::baseColor | ( | ) | const |
Definition at line 986 of file tdehtml_settings.cpp.
◆ changeCursor()
bool TDEHTMLSettings::changeCursor | ( | ) | const |
Definition at line 275 of file tdehtml_settings.cpp.
◆ cursiveFontName()
TQString TDEHTMLSettings::cursiveFontName | ( | ) | const |
Definition at line 932 of file tdehtml_settings.cpp.
◆ encoding()
const TQString & TDEHTMLSettings::encoding | ( | ) | const |
Definition at line 971 of file tdehtml_settings.cpp.
◆ fallbackAccessKeysAssignments()
TQValueList< TQPair< TQString, TQChar > > TDEHTMLSettings::fallbackAccessKeysAssignments | ( | ) | const |
Definition at line 1046 of file tdehtml_settings.cpp.
◆ fantasyFontName()
TQString TDEHTMLSettings::fantasyFontName | ( | ) | const |
Definition at line 937 of file tdehtml_settings.cpp.
◆ fixedFontName()
TQString TDEHTMLSettings::fixedFontName | ( | ) | const |
Definition at line 917 of file tdehtml_settings.cpp.
◆ followSystemColors()
bool TDEHTMLSettings::followSystemColors | ( | ) | const |
Definition at line 976 of file tdehtml_settings.cpp.
◆ hoverLink()
bool TDEHTMLSettings::hoverLink | ( | ) | const |
Definition at line 285 of file tdehtml_settings.cpp.
◆ 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.
◆ isAdFiltered()
bool TDEHTMLSettings::isAdFiltered | ( | const TQString & | url | ) | const |
Definition at line 721 of file tdehtml_settings.cpp.
◆ isAdFilterEnabled()
bool TDEHTMLSettings::isAdFilterEnabled | ( | ) | const |
Definition at line 711 of file tdehtml_settings.cpp.
◆ isAutoDelayedActionsEnabled()
bool TDEHTMLSettings::isAutoDelayedActionsEnabled | ( | ) | const |
Definition at line 1016 of file tdehtml_settings.cpp.
◆ isBackRightClickEnabled()
bool TDEHTMLSettings::isBackRightClickEnabled | ( | ) |
Definition at line 701 of file tdehtml_settings.cpp.
◆ isFormCompletionEnabled()
bool TDEHTMLSettings::isFormCompletionEnabled | ( | ) | const |
Definition at line 961 of file tdehtml_settings.cpp.
◆ isHideAdsEnabled()
bool TDEHTMLSettings::isHideAdsEnabled | ( | ) | const |
Definition at line 716 of file tdehtml_settings.cpp.
◆ isJavaEnabled()
bool TDEHTMLSettings::isJavaEnabled | ( | const TQString & | hostname = TQString::null | ) |
Definition at line 783 of file tdehtml_settings.cpp.
◆ isJavaScriptDebugEnabled()
bool TDEHTMLSettings::isJavaScriptDebugEnabled | ( | const TQString & | hostname = TQString::null | ) |
Definition at line 793 of file tdehtml_settings.cpp.
◆ isJavaScriptEnabled()
bool TDEHTMLSettings::isJavaScriptEnabled | ( | const TQString & | hostname = TQString::null | ) |
Definition at line 788 of file tdehtml_settings.cpp.
◆ isJavaScriptErrorReportingEnabled()
bool TDEHTMLSettings::isJavaScriptErrorReportingEnabled | ( | const TQString & | hostname = TQString::null | ) | const |
Definition at line 799 of file tdehtml_settings.cpp.
◆ isOpenMiddleClickEnabled()
bool TDEHTMLSettings::isOpenMiddleClickEnabled | ( | ) |
Definition at line 696 of file tdehtml_settings.cpp.
◆ isPluginsEnabled()
bool TDEHTMLSettings::isPluginsEnabled | ( | const TQString & | hostname = TQString::null | ) |
Definition at line 805 of file tdehtml_settings.cpp.
◆ jsErrorsEnabled()
bool TDEHTMLSettings::jsErrorsEnabled | ( | ) | const |
Definition at line 1021 of file tdehtml_settings.cpp.
◆ jsPopupBlockerPassivePopup()
bool TDEHTMLSettings::jsPopupBlockerPassivePopup | ( | ) | const |
Definition at line 1061 of file tdehtml_settings.cpp.
◆ linkColor()
const TQColor & TDEHTMLSettings::linkColor | ( | ) | const |
Definition at line 991 of file tdehtml_settings.cpp.
◆ maxFormCompletionItems()
int TDEHTMLSettings::maxFormCompletionItems | ( | ) | const |
Definition at line 966 of file tdehtml_settings.cpp.
◆ mediumFontSize()
int TDEHTMLSettings::mediumFontSize | ( | ) | const |
Definition at line 835 of file tdehtml_settings.cpp.
◆ minFontSize()
int TDEHTMLSettings::minFontSize | ( | ) | const |
Definition at line 840 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.
◆ sansSerifFontName()
TQString TDEHTMLSettings::sansSerifFontName | ( | ) | const |
Definition at line 927 of file tdehtml_settings.cpp.
◆ serifFontName()
TQString TDEHTMLSettings::serifFontName | ( | ) | const |
Definition at line 922 of file tdehtml_settings.cpp.
◆ setFixedFontName()
void TDEHTMLSettings::setFixedFontName | ( | const TQString & | n | ) |
Definition at line 949 of file tdehtml_settings.cpp.
◆ setJSErrorsEnabled()
void TDEHTMLSettings::setJSErrorsEnabled | ( | bool | enabled | ) |
Definition at line 1026 of file tdehtml_settings.cpp.
◆ setJSPopupBlockerPassivePopup()
void TDEHTMLSettings::setJSPopupBlockerPassivePopup | ( | bool | enabled | ) |
Definition at line 1051 of file tdehtml_settings.cpp.
◆ setStdFontName()
void TDEHTMLSettings::setStdFontName | ( | const TQString & | n | ) |
Definition at line 942 of file tdehtml_settings.cpp.
◆ settingsToCSS()
TQString TDEHTMLSettings::settingsToCSS | ( | ) | const |
Definition at line 845 of file tdehtml_settings.cpp.
◆ showAnimations()
TDEHTMLSettings::KAnimationAdvice TDEHTMLSettings::showAnimations | ( | ) | const |
Definition at line 1011 of file tdehtml_settings.cpp.
◆ splitDomainAdvice()
|
static |
Definition at line 160 of file tdehtml_settings.cpp.
◆ stdFontName()
TQString TDEHTMLSettings::stdFontName | ( | ) | const |
Definition at line 912 of file tdehtml_settings.cpp.
◆ strToAdvice()
|
static |
Definition at line 134 of file tdehtml_settings.cpp.
◆ textColor()
const TQColor & TDEHTMLSettings::textColor | ( | ) | const |
Definition at line 981 of file tdehtml_settings.cpp.
◆ underlineLink()
bool TDEHTMLSettings::underlineLink | ( | ) | const |
Definition at line 280 of file tdehtml_settings.cpp.
◆ unfinishedImageFrame()
bool TDEHTMLSettings::unfinishedImageFrame | ( | ) | const |
Definition at line 1006 of file tdehtml_settings.cpp.
◆ userStyleSheet()
TQString TDEHTMLSettings::userStyleSheet | ( | ) | const |
Definition at line 956 of file tdehtml_settings.cpp.
◆ vLinkColor()
const TQColor & TDEHTMLSettings::vLinkColor | ( | ) | const |
Definition at line 996 of file tdehtml_settings.cpp.
◆ windowFocusPolicy()
TDEHTMLSettings::KJSWindowFocusPolicy TDEHTMLSettings::windowFocusPolicy | ( | const TQString & | hostname = TQString::null | ) | const |
Definition at line 830 of file tdehtml_settings.cpp.
◆ windowMovePolicy()
TDEHTMLSettings::KJSWindowMovePolicy TDEHTMLSettings::windowMovePolicy | ( | const TQString & | hostname = TQString::null | ) | const |
Definition at line 815 of file tdehtml_settings.cpp.
◆ windowOpenPolicy()
TDEHTMLSettings::KJSWindowOpenPolicy TDEHTMLSettings::windowOpenPolicy | ( | const TQString & | hostname = TQString::null | ) | const |
Definition at line 810 of file tdehtml_settings.cpp.
◆ windowResizePolicy()
TDEHTMLSettings::KJSWindowResizePolicy TDEHTMLSettings::windowResizePolicy | ( | const TQString & | hostname = TQString::null | ) | const |
Definition at line 820 of file tdehtml_settings.cpp.
◆ windowStatusPolicy()
TDEHTMLSettings::KJSWindowStatusPolicy TDEHTMLSettings::windowStatusPolicy | ( | const TQString & | hostname = TQString::null | ) | const |
Definition at line 825 of file tdehtml_settings.cpp.
Friends And Related Function Documentation
◆ TDEHTMLFactory
|
friend |
Definition at line 225 of file tdehtml_settings.h.
The documentation for this class was generated from the following files: