org.kde.koala
Class KHTMLSettings

java.lang.Object
  extended by org.kde.koala.KHTMLSettings
All Implemented Interfaces:
org.kde.qt.QtSupport

public class KHTMLSettings
extends java.lang.Object
implements org.kde.qt.QtSupport

Settings for the HTML view.


Field Summary
static int KAnimationDisabled
           
static int KAnimationEnabled
           
static int KAnimationLoopOnce
           
static int KJavaScriptAccept
           
static int KJavaScriptDunno
          This enum specifies whether Java/JavaScript execution is allowed.
static int KJavaScriptReject
           
static int KJSWindowFocusAllow
          This enum specifies the policy for window.focus
static int KJSWindowFocusIgnore
           
static int KJSWindowMoveAllow
          This enum specifies the policy for window.moveBy and .moveTo
static int KJSWindowMoveIgnore
           
static int KJSWindowOpenAllow
          This enum specifies the policy for window.open
static int KJSWindowOpenAsk
           
static int KJSWindowOpenDeny
           
static int KJSWindowOpenSmart
           
static int KJSWindowResizeAllow
          This enum specifies the policy for window.resizeBy and .resizeTo
static int KJSWindowResizeIgnore
           
static int KJSWindowStatusAllow
          This enum specifies the policy for window.status and .defaultStatus
static int KJSWindowStatusIgnore
           
 
Constructor Summary
  KHTMLSettings()
           
protected KHTMLSettings(java.lang.Class dummy)
           
  KHTMLSettings(KHTMLSettings other)
           
 
Method Summary
 boolean accessKeysEnabled()
           
 void addAdFilter(java.lang.String url)
           
static java.lang.String adviceToStr(int _advice)
           
 boolean allowTabulation()
           
 boolean autoLoadImages()
           
 boolean autoSpellCheck()
           
static java.lang.String availableFamilies()
           
 org.kde.qt.QColor baseColor()
           
 boolean changeCursor()
           
 java.lang.String cursiveFontName()
           
 void dispose()
          Delete the wrapped C++ instance ahead of finalize()
 java.lang.String encoding()
           
 java.lang.String fallbackAccessKeysAssignments()
           
 java.lang.String fantasyFontName()
           
protected  void finalize()
          Deletes the wrapped C++ instance
 java.lang.String fixedFontName()
           
 boolean followSystemColors()
           
 boolean hoverLink()
           
 void init()
          Called by constructor and reparseConfiguration
 void init(KConfig config)
           
 void init(KConfig config, boolean reset)
          Read settings from config.
 boolean isAdFiltered(java.lang.String url)
           
 boolean isAdFilterEnabled()
           
 boolean isAutoDelayedActionsEnabled()
           
 boolean isBackRightClickEnabled()
           
 boolean isDisposed()
          Has the wrapped C++ instance been deleted?
 boolean isFormCompletionEnabled()
           
 boolean isHideAdsEnabled()
           
 boolean isJavaEnabled()
           
 boolean isJavaEnabled(java.lang.String hostname)
           
 boolean isJavaScriptDebugEnabled()
           
 boolean isJavaScriptDebugEnabled(java.lang.String hostname)
           
 boolean isJavaScriptEnabled()
           
 boolean isJavaScriptEnabled(java.lang.String hostname)
           
 boolean isJavaScriptErrorReportingEnabled()
           
 boolean isJavaScriptErrorReportingEnabled(java.lang.String hostname)
           
 boolean isOpenMiddleClickEnabled()
           
 boolean isPluginsEnabled()
           
 boolean isPluginsEnabled(java.lang.String hostname)
           
 boolean jsErrorsEnabled()
           
 boolean jsPopupBlockerPassivePopup()
           
 org.kde.qt.QColor linkColor()
           
 int maxFormCompletionItems()
           
 int mediumFontSize()
           
 int minFontSize()
           
 java.lang.String sansSerifFontName()
           
 java.lang.String serifFontName()
           
 void setFixedFontName(java.lang.String n)
           
 void setJSErrorsEnabled(boolean enabled)
           
 void setJSPopupBlockerPassivePopup(boolean enabled)
           
 void setStdFontName(java.lang.String n)
           
 java.lang.String settingsToCSS()
          reads from config's current group, forcing initialization if reset is true.
 int showAnimations()
           
static void splitDomainAdvice(java.lang.String configStr, java.lang.StringBuffer domain, int javaAdvice, int javaScriptAdvice)
           
 java.lang.String stdFontName()
           
static int strToAdvice(java.lang.String _str)
           
 org.kde.qt.QColor textColor()
           
 boolean underlineLink()
           
 boolean unfinishedImageFrame()
           
 java.lang.String userStyleSheet()
           
 org.kde.qt.QColor vLinkColor()
           
 int windowFocusPolicy()
           
 int windowFocusPolicy(java.lang.String hostname)
           
 int windowMovePolicy()
           
 int windowMovePolicy(java.lang.String hostname)
           
 int windowOpenPolicy()
           
 int windowOpenPolicy(java.lang.String hostname)
           
 int windowResizePolicy()
           
 int windowResizePolicy(java.lang.String hostname)
           
 int windowStatusPolicy()
           
 int windowStatusPolicy(java.lang.String hostname)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KJavaScriptDunno

public static final int KJavaScriptDunno
This enum specifies whether Java/JavaScript execution is allowed.

See Also:
Constant Field Values

KJavaScriptAccept

public static final int KJavaScriptAccept
See Also:
Constant Field Values

KJavaScriptReject

public static final int KJavaScriptReject
See Also:
Constant Field Values

KAnimationDisabled

public static final int KAnimationDisabled
See Also:
Constant Field Values

KAnimationLoopOnce

public static final int KAnimationLoopOnce
See Also:
Constant Field Values

KAnimationEnabled

public static final int KAnimationEnabled
See Also:
Constant Field Values

KJSWindowOpenAllow

public static final int KJSWindowOpenAllow
This enum specifies the policy for window.open

See Also:
Constant Field Values

KJSWindowOpenAsk

public static final int KJSWindowOpenAsk
See Also:
Constant Field Values

KJSWindowOpenDeny

public static final int KJSWindowOpenDeny
See Also:
Constant Field Values

KJSWindowOpenSmart

public static final int KJSWindowOpenSmart
See Also:
Constant Field Values

KJSWindowStatusAllow

public static final int KJSWindowStatusAllow
This enum specifies the policy for window.status and .defaultStatus

See Also:
Constant Field Values

KJSWindowStatusIgnore

public static final int KJSWindowStatusIgnore
See Also:
Constant Field Values

KJSWindowMoveAllow

public static final int KJSWindowMoveAllow
This enum specifies the policy for window.moveBy and .moveTo

See Also:
Constant Field Values

KJSWindowMoveIgnore

public static final int KJSWindowMoveIgnore
See Also:
Constant Field Values

KJSWindowResizeAllow

public static final int KJSWindowResizeAllow
This enum specifies the policy for window.resizeBy and .resizeTo

See Also:
Constant Field Values

KJSWindowResizeIgnore

public static final int KJSWindowResizeIgnore
See Also:
Constant Field Values

KJSWindowFocusAllow

public static final int KJSWindowFocusAllow
This enum specifies the policy for window.focus

See Also:
Constant Field Values

KJSWindowFocusIgnore

public static final int KJSWindowFocusIgnore
See Also:
Constant Field Values
Constructor Detail

KHTMLSettings

protected KHTMLSettings(java.lang.Class dummy)

KHTMLSettings

public KHTMLSettings()

KHTMLSettings

public KHTMLSettings(KHTMLSettings other)
Method Detail

init

public void init()
Called by constructor and reparseConfiguration


init

public void init(KConfig config,
                 boolean reset)
Read settings from config.

Parameters:
config - is a pointer to KConfig object.
reset - if true, settings are always set; if false, settings are only set if the config file has a corresponding key.

init

public void init(KConfig config)

changeCursor

public boolean changeCursor()

underlineLink

public boolean underlineLink()

hoverLink

public boolean hoverLink()

allowTabulation

public boolean allowTabulation()

autoSpellCheck

public boolean autoSpellCheck()

showAnimations

public int showAnimations()

stdFontName

public java.lang.String stdFontName()

fixedFontName

public java.lang.String fixedFontName()

serifFontName

public java.lang.String serifFontName()

sansSerifFontName

public java.lang.String sansSerifFontName()

cursiveFontName

public java.lang.String cursiveFontName()

fantasyFontName

public java.lang.String fantasyFontName()

setStdFontName

public void setStdFontName(java.lang.String n)

setFixedFontName

public void setFixedFontName(java.lang.String n)

minFontSize

public int minFontSize()

mediumFontSize

public int mediumFontSize()

jsErrorsEnabled

public boolean jsErrorsEnabled()

setJSErrorsEnabled

public void setJSErrorsEnabled(boolean enabled)

encoding

public java.lang.String encoding()

followSystemColors

public boolean followSystemColors()

textColor

public org.kde.qt.QColor textColor()

baseColor

public org.kde.qt.QColor baseColor()

linkColor

public org.kde.qt.QColor linkColor()

vLinkColor

public org.kde.qt.QColor vLinkColor()

autoLoadImages

public boolean autoLoadImages()

unfinishedImageFrame

public boolean unfinishedImageFrame()

isOpenMiddleClickEnabled

public boolean isOpenMiddleClickEnabled()

isBackRightClickEnabled

public boolean isBackRightClickEnabled()

isJavaEnabled

public boolean isJavaEnabled(java.lang.String hostname)

isJavaEnabled

public boolean isJavaEnabled()

isJavaScriptEnabled

public boolean isJavaScriptEnabled(java.lang.String hostname)

isJavaScriptEnabled

public boolean isJavaScriptEnabled()

isJavaScriptDebugEnabled

public boolean isJavaScriptDebugEnabled(java.lang.String hostname)

isJavaScriptDebugEnabled

public boolean isJavaScriptDebugEnabled()

isJavaScriptErrorReportingEnabled

public boolean isJavaScriptErrorReportingEnabled(java.lang.String hostname)

isJavaScriptErrorReportingEnabled

public boolean isJavaScriptErrorReportingEnabled()

isPluginsEnabled

public boolean isPluginsEnabled(java.lang.String hostname)

isPluginsEnabled

public boolean isPluginsEnabled()

isAdFiltered

public boolean isAdFiltered(java.lang.String url)

isAdFilterEnabled

public boolean isAdFilterEnabled()

isHideAdsEnabled

public boolean isHideAdsEnabled()

addAdFilter

public void addAdFilter(java.lang.String url)

accessKeysEnabled

public boolean accessKeysEnabled()

windowOpenPolicy

public int windowOpenPolicy(java.lang.String hostname)

windowOpenPolicy

public int windowOpenPolicy()

windowMovePolicy

public int windowMovePolicy(java.lang.String hostname)

windowMovePolicy

public int windowMovePolicy()

windowResizePolicy

public int windowResizePolicy(java.lang.String hostname)

windowResizePolicy

public int windowResizePolicy()

windowStatusPolicy

public int windowStatusPolicy(java.lang.String hostname)

windowStatusPolicy

public int windowStatusPolicy()

windowFocusPolicy

public int windowFocusPolicy(java.lang.String hostname)

windowFocusPolicy

public int windowFocusPolicy()

settingsToCSS

public java.lang.String settingsToCSS()
reads from config's current group, forcing initialization if reset is true.

Parameters:
config - is a pointer to KConfig 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.

userStyleSheet

public java.lang.String userStyleSheet()

isFormCompletionEnabled

public boolean isFormCompletionEnabled()

maxFormCompletionItems

public int maxFormCompletionItems()

isAutoDelayedActionsEnabled

public boolean isAutoDelayedActionsEnabled()

fallbackAccessKeysAssignments

public java.lang.String fallbackAccessKeysAssignments()

setJSPopupBlockerPassivePopup

public void setJSPopupBlockerPassivePopup(boolean enabled)

jsPopupBlockerPassivePopup

public boolean jsPopupBlockerPassivePopup()

strToAdvice

public static int strToAdvice(java.lang.String _str)

splitDomainAdvice

public static void splitDomainAdvice(java.lang.String configStr,
                                     java.lang.StringBuffer domain,
                                     int javaAdvice,
                                     int javaScriptAdvice)

adviceToStr

public static java.lang.String adviceToStr(int _advice)

availableFamilies

public static java.lang.String availableFamilies()

finalize

protected void finalize()
                 throws java.lang.InternalError
Deletes the wrapped C++ instance

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.InternalError

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()


isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?