\section{KHTMLSettings Class Reference}
\label{classKHTMLSettings}\index{KHTMLSettings@{KHTMLSettings}}
Settings for the HTML view.  


{\tt \#include $<$khtml\_\-settings.h$>$}

Collaboration diagram for KHTMLSettings:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=63pt]{classKHTMLSettings__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf KJava\-Script\-Advice} \{ {\bf KJava\-Script\-Dunno} = 0, 
{\bf KJava\-Script\-Accept}, 
{\bf KJava\-Script\-Reject}
 \}
\item 
enum {\bf KAnimation\-Advice} \{ {\bf KAnimation\-Disabled} = 0, 
{\bf KAnimation\-Loop\-Once}, 
{\bf KAnimation\-Enabled}
 \}
\item 
enum {\bf KJSWindow\-Open\-Policy} \{ {\bf KJSWindow\-Open\-Allow} = 0, 
{\bf KJSWindow\-Open\-Ask}, 
{\bf KJSWindow\-Open\-Deny}, 
{\bf KJSWindow\-Open\-Smart}
 \}
\item 
enum {\bf KJSWindow\-Status\-Policy} \{ {\bf KJSWindow\-Status\-Allow} = 0, 
{\bf KJSWindow\-Status\-Ignore}
 \}
\item 
enum {\bf KJSWindow\-Move\-Policy} \{ {\bf KJSWindow\-Move\-Allow} = 0, 
{\bf KJSWindow\-Move\-Ignore}
 \}
\item 
enum {\bf KJSWindow\-Resize\-Policy} \{ {\bf KJSWindow\-Resize\-Allow} = 0, 
{\bf KJSWindow\-Resize\-Ignore}
 \}
\item 
enum {\bf KJSWindow\-Focus\-Policy} \{ {\bf KJSWindow\-Focus\-Allow} = 0, 
{\bf KJSWindow\-Focus\-Ignore}
 \}
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KHTMLSettings} (const {\bf KHTMLSettings} \&other)\label{classKHTMLSettings_a1}

\item 
void {\bf init} ()
\item 
void {\bf init} ({\bf KConfig} $\ast$config, bool reset=true)
\item 
virtual {\bf $\sim$KHTMLSettings} ()
\item 
bool {\bf change\-Cursor} () const \label{classKHTMLSettings_a5}

\item 
bool {\bf underline\-Link} () const \label{classKHTMLSettings_a6}

\item 
bool {\bf hover\-Link} () const \label{classKHTMLSettings_a7}

\item 
bool {\bf allow\-Tabulation} () const \label{classKHTMLSettings_a8}

\item 
bool {\bf auto\-Spell\-Check} () const \label{classKHTMLSettings_a9}

\item 
KAnimation\-Advice {\bf show\-Animations} () const \label{classKHTMLSettings_a10}

\item 
{\bf QString} {\bf std\-Font\-Name} () const \label{classKHTMLSettings_a11}

\item 
{\bf QString} {\bf fixed\-Font\-Name} () const \label{classKHTMLSettings_a12}

\item 
{\bf QString} {\bf serif\-Font\-Name} () const \label{classKHTMLSettings_a13}

\item 
{\bf QString} {\bf sans\-Serif\-Font\-Name} () const \label{classKHTMLSettings_a14}

\item 
{\bf QString} {\bf cursive\-Font\-Name} () const \label{classKHTMLSettings_a15}

\item 
{\bf QString} {\bf fantasy\-Font\-Name} () const \label{classKHTMLSettings_a16}

\item 
void {\bf set\-Std\-Font\-Name} (const {\bf QString} \&n)\label{classKHTMLSettings_a17}

\item 
void {\bf set\-Fixed\-Font\-Name} (const {\bf QString} \&n)\label{classKHTMLSettings_a18}

\item 
int {\bf min\-Font\-Size} () const \label{classKHTMLSettings_a19}

\item 
int {\bf medium\-Font\-Size} () const \label{classKHTMLSettings_a20}

\item 
bool {\bf js\-Errors\-Enabled} () const \label{classKHTMLSettings_a21}

\item 
void {\bf set\-JSErrors\-Enabled} (bool enabled)\label{classKHTMLSettings_a22}

\item 
const {\bf QString} \& {\bf encoding} () const \label{classKHTMLSettings_a23}

\item 
bool {\bf follow\-System\-Colors} () const \label{classKHTMLSettings_a24}

\item 
const {\bf QColor} \& {\bf text\-Color} () const \label{classKHTMLSettings_a25}

\item 
const {\bf QColor} \& {\bf base\-Color} () const \label{classKHTMLSettings_a26}

\item 
const {\bf QColor} \& {\bf link\-Color} () const \label{classKHTMLSettings_a27}

\item 
const {\bf QColor} \& {\bf v\-Link\-Color} () const \label{classKHTMLSettings_a28}

\item 
bool {\bf auto\-Load\-Images} () const \label{classKHTMLSettings_a29}

\item 
bool {\bf unfinished\-Image\-Frame} () const \label{classKHTMLSettings_a30}

\item 
bool {\bf is\-Open\-Middle\-Click\-Enabled} ()\label{classKHTMLSettings_a31}

\item 
bool {\bf is\-Back\-Right\-Click\-Enabled} ()\label{classKHTMLSettings_a32}

\item 
bool {\bf is\-Java\-Enabled} (const {\bf QString} \&hostname=QString::null)\label{classKHTMLSettings_a33}

\item 
bool {\bf is\-Java\-Script\-Enabled} (const {\bf QString} \&hostname=QString::null)\label{classKHTMLSettings_a34}

\item 
bool {\bf is\-Java\-Script\-Debug\-Enabled} (const {\bf QString} \&hostname=QString::null)\label{classKHTMLSettings_a35}

\item 
bool {\bf is\-Java\-Script\-Error\-Reporting\-Enabled} (const {\bf QString} \&hostname=QString::null) const \label{classKHTMLSettings_a36}

\item 
bool {\bf is\-Plugins\-Enabled} (const {\bf QString} \&hostname=QString::null)\label{classKHTMLSettings_a37}

\item 
{\bf KJSWindow\-Open\-Policy} {\bf window\-Open\-Policy} (const {\bf QString} \&hostname=QString::null) const \label{classKHTMLSettings_a38}

\item 
{\bf KJSWindow\-Move\-Policy} {\bf window\-Move\-Policy} (const {\bf QString} \&hostname=QString::null) const \label{classKHTMLSettings_a39}

\item 
{\bf KJSWindow\-Resize\-Policy} {\bf window\-Resize\-Policy} (const {\bf QString} \&hostname=QString::null) const \label{classKHTMLSettings_a40}

\item 
{\bf KJSWindow\-Status\-Policy} {\bf window\-Status\-Policy} (const {\bf QString} \&hostname=QString::null) const \label{classKHTMLSettings_a41}

\item 
{\bf KJSWindow\-Focus\-Policy} {\bf window\-Focus\-Policy} (const {\bf QString} \&hostname=QString::null) const \label{classKHTMLSettings_a42}

\item 
void {\bf read\-Domain\-Settings} ({\bf KConfig} $\ast$config, bool reset, bool global, KPer\-Domain\-Settings \&pd\_\-settings)
\item 
{\bf QString} {\bf settings\-To\-CSS} () const \label{classKHTMLSettings_a44}

\item 
{\bf QString} {\bf user\-Style\-Sheet} () const \label{classKHTMLSettings_a45}

\item 
bool {\bf is\-Form\-Completion\-Enabled} () const \label{classKHTMLSettings_a46}

\item 
int {\bf max\-Form\-Completion\-Items} () const \label{classKHTMLSettings_a47}

\item 
bool {\bf is\-Auto\-Delayed\-Actions\-Enabled} () const \label{classKHTMLSettings_a48}

\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static {\bf KJava\-Script\-Advice} {\bf str\-To\-Advice} (const {\bf QString} \&\_\-str)\label{classKHTMLSettings_e0}

\item 
static void {\bf split\-Domain\-Advice} (const {\bf QString} \&config\-Str, {\bf QString} \&domain, {\bf KJava\-Script\-Advice} \&java\-Advice, {\bf KJava\-Script\-Advice} \&java\-Script\-Advice)\label{classKHTMLSettings_e1}

\item 
static const char $\ast$ {\bf advice\-To\-Str} ({\bf KJava\-Script\-Advice} \_\-advice)\label{classKHTMLSettings_e2}

\item 
static const {\bf QString} \& {\bf available\-Families} ()\label{classKHTMLSettings_e3}

\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf KHTMLFactory}\label{classKHTMLSettings_n0}

\end{CompactItemize}


\subsection{Detailed Description}
Settings for the HTML view. 



Definition at line 38 of file khtml\_\-settings.h.

\subsection{Member Enumeration Documentation}
\index{KHTMLSettings@{KHTMLSettings}!KJavaScriptAdvice@{KJavaScriptAdvice}}
\index{KJavaScriptAdvice@{KJavaScriptAdvice}!KHTMLSettings@{KHTMLSettings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KHTMLSettings::KJava\-Script\-Advice}}\label{classKHTMLSettings_w18}


This enum specifies whether Java/Java\-Script execution is allowed. 



Definition at line 45 of file khtml\_\-settings.h.\index{KHTMLSettings@{KHTMLSettings}!KJSWindowOpenPolicy@{KJSWindowOpenPolicy}}
\index{KJSWindowOpenPolicy@{KJSWindowOpenPolicy}!KHTMLSettings@{KHTMLSettings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KHTMLSettings::KJSWindow\-Open\-Policy}}\label{classKHTMLSettings_w20}


This enum specifies the policy for window.open. 



Definition at line 60 of file khtml\_\-settings.h.\index{KHTMLSettings@{KHTMLSettings}!KJSWindowStatusPolicy@{KJSWindowStatusPolicy}}
\index{KJSWindowStatusPolicy@{KJSWindowStatusPolicy}!KHTMLSettings@{KHTMLSettings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KHTMLSettings::KJSWindow\-Status\-Policy}}\label{classKHTMLSettings_w21}


This enum specifies the policy for window.status and .default\-Status. 



Definition at line 70 of file khtml\_\-settings.h.\index{KHTMLSettings@{KHTMLSettings}!KJSWindowMovePolicy@{KJSWindowMovePolicy}}
\index{KJSWindowMovePolicy@{KJSWindowMovePolicy}!KHTMLSettings@{KHTMLSettings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KHTMLSettings::KJSWindow\-Move\-Policy}}\label{classKHTMLSettings_w22}


This enum specifies the policy for window.move\-By and .move\-To. 



Definition at line 78 of file khtml\_\-settings.h.\index{KHTMLSettings@{KHTMLSettings}!KJSWindowResizePolicy@{KJSWindowResizePolicy}}
\index{KJSWindowResizePolicy@{KJSWindowResizePolicy}!KHTMLSettings@{KHTMLSettings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KHTMLSettings::KJSWindow\-Resize\-Policy}}\label{classKHTMLSettings_w23}


This enum specifies the policy for window.resize\-By and .resize\-To. 



Definition at line 86 of file khtml\_\-settings.h.\index{KHTMLSettings@{KHTMLSettings}!KJSWindowFocusPolicy@{KJSWindowFocusPolicy}}
\index{KJSWindowFocusPolicy@{KJSWindowFocusPolicy}!KHTMLSettings@{KHTMLSettings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KHTMLSettings::KJSWindow\-Focus\-Policy}}\label{classKHTMLSettings_w24}


This enum specifies the policy for window.focus. 



Definition at line 94 of file khtml\_\-settings.h.

\subsection{Constructor \& Destructor Documentation}
\index{KHTMLSettings@{KHTMLSettings}!~KHTMLSettings@{$\sim$KHTMLSettings}}
\index{~KHTMLSettings@{$\sim$KHTMLSettings}!KHTMLSettings@{KHTMLSettings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KHTMLSettings::$\sim${\bf KHTMLSettings} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKHTMLSettings_a4}


Destructor. 

Don't delete any instance by yourself. 

Definition at line 261 of file khtml\_\-settings.cc.

\subsection{Member Function Documentation}
\index{KHTMLSettings@{KHTMLSettings}!init@{init}}
\index{init@{init}!KHTMLSettings@{KHTMLSettings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLSettings::init ()}\label{classKHTMLSettings_a2}


Called by constructor and reparse\-Configuration. 



Definition at line 281 of file khtml\_\-settings.cc.

References KGlobal::config().\index{KHTMLSettings@{KHTMLSettings}!init@{init}}
\index{init@{init}!KHTMLSettings@{KHTMLSettings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLSettings::init ({\bf KConfig} $\ast$ {\em config}, bool {\em reset} = {\tt true})}\label{classKHTMLSettings_a3}


Read settings from {\tt config}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em reset}]if true, settings are always set; if false, settings are only set if the config file has a corresponding key. \end{description}
\end{Desc}


Definition at line 293 of file khtml\_\-settings.cc.

References QString::append(), QMap::begin(), QMap::clear(), QMap::end(), QFont::family(), QMap::find(), KConfig\-Base::group(), QMap::insert(), QString::lower(), and read\-Domain\-Settings().\index{KHTMLSettings@{KHTMLSettings}!readDomainSettings@{readDomainSettings}}
\index{readDomainSettings@{readDomainSettings}!KHTMLSettings@{KHTMLSettings}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLSettings::read\-Domain\-Settings ({\bf KConfig} $\ast$ {\em config}, bool {\em reset}, bool {\em global}, KPer\-Domain\-Settings \& {\em pd\_\-settings})}\label{classKHTMLSettings_a43}


reads from {\tt config's} current group, forcing initialization if {\tt reset} is true. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em global}]true if the global domain is to be read. \item[{\em pd\_\-settings}]will be initialised with the computed (inherited) settings. \end{description}
\end{Desc}


Definition at line 180 of file khtml\_\-settings.cc.

References QString::from\-Latin1().

Referenced by init().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
khtml\_\-settings.h\item 
khtml\_\-factory.cpp\item 
khtml\_\-settings.cc\end{CompactItemize}
