.TH "KHTMLSettings" kde3 "11 Jun 2005" "Version Version 3.4.1" "khtml Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KHTMLSettings \- Settings for the HTML view.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <khtml_settings.h>\fP
.PP
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBKJavaScriptAdvice\fP { \fBKJavaScriptDunno\fP = 0, \fBKJavaScriptAccept\fP, \fBKJavaScriptReject\fP }"
.br
.ti -1c
.RI "enum \fBKAnimationAdvice\fP { \fBKAnimationDisabled\fP = 0, \fBKAnimationLoopOnce\fP, \fBKAnimationEnabled\fP }"
.br
.ti -1c
.RI "enum \fBKJSWindowOpenPolicy\fP { \fBKJSWindowOpenAllow\fP = 0, \fBKJSWindowOpenAsk\fP, \fBKJSWindowOpenDeny\fP, \fBKJSWindowOpenSmart\fP }"
.br
.ti -1c
.RI "enum \fBKJSWindowStatusPolicy\fP { \fBKJSWindowStatusAllow\fP = 0, \fBKJSWindowStatusIgnore\fP }"
.br
.ti -1c
.RI "enum \fBKJSWindowMovePolicy\fP { \fBKJSWindowMoveAllow\fP = 0, \fBKJSWindowMoveIgnore\fP }"
.br
.ti -1c
.RI "enum \fBKJSWindowResizePolicy\fP { \fBKJSWindowResizeAllow\fP = 0, \fBKJSWindowResizeIgnore\fP }"
.br
.ti -1c
.RI "enum \fBKJSWindowFocusPolicy\fP { \fBKJSWindowFocusAllow\fP = 0, \fBKJSWindowFocusIgnore\fP }"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKHTMLSettings\fP (const \fBKHTMLSettings\fP &other)"
.br
.ti -1c
.RI "void \fBinit\fP ()"
.br
.ti -1c
.RI "void \fBinit\fP (\fBKConfig\fP *config, bool reset=true)"
.br
.ti -1c
.RI "virtual \fB~KHTMLSettings\fP ()"
.br
.ti -1c
.RI "bool \fBchangeCursor\fP () const "
.br
.ti -1c
.RI "bool \fBunderlineLink\fP () const "
.br
.ti -1c
.RI "bool \fBhoverLink\fP () const "
.br
.ti -1c
.RI "bool \fBallowTabulation\fP () const "
.br
.ti -1c
.RI "bool \fBautoSpellCheck\fP () const "
.br
.ti -1c
.RI "KAnimationAdvice \fBshowAnimations\fP () const "
.br
.ti -1c
.RI "\fBQString\fP \fBstdFontName\fP () const "
.br
.ti -1c
.RI "\fBQString\fP \fBfixedFontName\fP () const "
.br
.ti -1c
.RI "\fBQString\fP \fBserifFontName\fP () const "
.br
.ti -1c
.RI "\fBQString\fP \fBsansSerifFontName\fP () const "
.br
.ti -1c
.RI "\fBQString\fP \fBcursiveFontName\fP () const "
.br
.ti -1c
.RI "\fBQString\fP \fBfantasyFontName\fP () const "
.br
.ti -1c
.RI "void \fBsetStdFontName\fP (const \fBQString\fP &n)"
.br
.ti -1c
.RI "void \fBsetFixedFontName\fP (const \fBQString\fP &n)"
.br
.ti -1c
.RI "int \fBminFontSize\fP () const "
.br
.ti -1c
.RI "int \fBmediumFontSize\fP () const "
.br
.ti -1c
.RI "bool \fBjsErrorsEnabled\fP () const "
.br
.ti -1c
.RI "void \fBsetJSErrorsEnabled\fP (bool enabled)"
.br
.ti -1c
.RI "const \fBQString\fP & \fBencoding\fP () const "
.br
.ti -1c
.RI "bool \fBfollowSystemColors\fP () const "
.br
.ti -1c
.RI "const \fBQColor\fP & \fBtextColor\fP () const "
.br
.ti -1c
.RI "const \fBQColor\fP & \fBbaseColor\fP () const "
.br
.ti -1c
.RI "const \fBQColor\fP & \fBlinkColor\fP () const "
.br
.ti -1c
.RI "const \fBQColor\fP & \fBvLinkColor\fP () const "
.br
.ti -1c
.RI "bool \fBautoLoadImages\fP () const "
.br
.ti -1c
.RI "bool \fBunfinishedImageFrame\fP () const "
.br
.ti -1c
.RI "bool \fBisOpenMiddleClickEnabled\fP ()"
.br
.ti -1c
.RI "bool \fBisBackRightClickEnabled\fP ()"
.br
.ti -1c
.RI "bool \fBisJavaEnabled\fP (const \fBQString\fP &hostname=QString::null)"
.br
.ti -1c
.RI "bool \fBisJavaScriptEnabled\fP (const \fBQString\fP &hostname=QString::null)"
.br
.ti -1c
.RI "bool \fBisJavaScriptDebugEnabled\fP (const \fBQString\fP &hostname=QString::null)"
.br
.ti -1c
.RI "bool \fBisJavaScriptErrorReportingEnabled\fP (const \fBQString\fP &hostname=QString::null) const "
.br
.ti -1c
.RI "bool \fBisPluginsEnabled\fP (const \fBQString\fP &hostname=QString::null)"
.br
.ti -1c
.RI "\fBKJSWindowOpenPolicy\fP \fBwindowOpenPolicy\fP (const \fBQString\fP &hostname=QString::null) const "
.br
.ti -1c
.RI "\fBKJSWindowMovePolicy\fP \fBwindowMovePolicy\fP (const \fBQString\fP &hostname=QString::null) const "
.br
.ti -1c
.RI "\fBKJSWindowResizePolicy\fP \fBwindowResizePolicy\fP (const \fBQString\fP &hostname=QString::null) const "
.br
.ti -1c
.RI "\fBKJSWindowStatusPolicy\fP \fBwindowStatusPolicy\fP (const \fBQString\fP &hostname=QString::null) const "
.br
.ti -1c
.RI "\fBKJSWindowFocusPolicy\fP \fBwindowFocusPolicy\fP (const \fBQString\fP &hostname=QString::null) const "
.br
.ti -1c
.RI "void \fBreadDomainSettings\fP (\fBKConfig\fP *config, bool reset, bool global, KPerDomainSettings &pd_settings)"
.br
.ti -1c
.RI "\fBQString\fP \fBsettingsToCSS\fP () const "
.br
.ti -1c
.RI "\fBQString\fP \fBuserStyleSheet\fP () const "
.br
.ti -1c
.RI "bool \fBisFormCompletionEnabled\fP () const "
.br
.ti -1c
.RI "int \fBmaxFormCompletionItems\fP () const "
.br
.ti -1c
.RI "bool \fBisAutoDelayedActionsEnabled\fP () const "
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "static \fBKJavaScriptAdvice\fP \fBstrToAdvice\fP (const \fBQString\fP &_str)"
.br
.ti -1c
.RI "static void \fBsplitDomainAdvice\fP (const \fBQString\fP &configStr, \fBQString\fP &domain, \fBKJavaScriptAdvice\fP &javaAdvice, \fBKJavaScriptAdvice\fP &javaScriptAdvice)"
.br
.ti -1c
.RI "static const char * \fBadviceToStr\fP (\fBKJavaScriptAdvice\fP _advice)"
.br
.ti -1c
.RI "static const \fBQString\fP & \fBavailableFamilies\fP ()"
.br
.in -1c
.SS "Friends"

.in +1c
.ti -1c
.RI "class \fBKHTMLFactory\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
Settings for the HTML view. 
.PP
Definition at line 38 of file khtml_settings.h.
.SH "Member Enumeration Documentation"
.PP 
.SS "enum \fBKHTMLSettings::KJavaScriptAdvice\fP"
.PP
This enum specifies whether Java/JavaScript execution is allowed. 
.PP
Definition at line 45 of file khtml_settings.h.
.SS "enum \fBKHTMLSettings::KJSWindowOpenPolicy\fP"
.PP
This enum specifies the policy for window.open. 
.PP
Definition at line 60 of file khtml_settings.h.
.SS "enum \fBKHTMLSettings::KJSWindowStatusPolicy\fP"
.PP
This enum specifies the policy for window.status and .defaultStatus. 
.PP
Definition at line 70 of file khtml_settings.h.
.SS "enum \fBKHTMLSettings::KJSWindowMovePolicy\fP"
.PP
This enum specifies the policy for window.moveBy and .moveTo. 
.PP
Definition at line 78 of file khtml_settings.h.
.SS "enum \fBKHTMLSettings::KJSWindowResizePolicy\fP"
.PP
This enum specifies the policy for window.resizeBy and .resizeTo. 
.PP
Definition at line 86 of file khtml_settings.h.
.SS "enum \fBKHTMLSettings::KJSWindowFocusPolicy\fP"
.PP
This enum specifies the policy for window.focus. 
.PP
Definition at line 94 of file khtml_settings.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KHTMLSettings::~\fBKHTMLSettings\fP ()\fC [virtual]\fP"
.PP
Destructor. 
.PP
Don't delete any instance by yourself. 
.PP
Definition at line 261 of file khtml_settings.cc.
.SH "Member Function Documentation"
.PP 
.SS "void KHTMLSettings::init ()"
.PP
Called by constructor and reparseConfiguration. 
.PP
Definition at line 281 of file khtml_settings.cc.
.PP
References KGlobal::config().
.SS "void KHTMLSettings::init (\fBKConfig\fP * config, bool reset = \fCtrue\fP)"
.PP
Read settings from \fCconfig\fP. 
.PP
\fBParameters:\fP
.RS 4
\fIreset\fP if true, settings are always set; if false, settings are only set if the config file has a corresponding key. 
.RE
.PP

.PP
Definition at line 293 of file khtml_settings.cc.
.PP
References QString::append(), QMap::begin(), QMap::clear(), QMap::end(), QFont::family(), QMap::find(), KConfigBase::group(), QMap::insert(), QString::lower(), and readDomainSettings().
.SS "void KHTMLSettings::readDomainSettings (\fBKConfig\fP * config, bool reset, bool global, KPerDomainSettings & pd_settings)"
.PP
reads from \fCconfig's\fP current group, forcing initialization if \fCreset\fP is true. 
.PP
\fBParameters:\fP
.RS 4
\fIglobal\fP true if the global domain is to be read. 
.br
\fIpd_settings\fP will be initialised with the computed (inherited) settings. 
.RE
.PP

.PP
Definition at line 180 of file khtml_settings.cc.
.PP
References QString::fromLatin1().
.PP
Referenced by init().

.SH "Author"
.PP 
Generated automatically by Doxygen for khtml Library from the source code.
