\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=72pt]{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}
 \}
\begin{CompactList}\small\item\em This enum specifies whether Java/Java\-Script execution is allowed. \item\end{CompactList}\item 
enum {\bf KAnimation\-Advice} \{ {\bf KAnimation\-Disabled} = 0, 
{\bf KAnimation\-Loop\-Once}, 
{\bf KAnimation\-Enabled}
 \}
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KHTMLSettings} (const  {\bf KHTMLSettings} \&other)\label{classKHTMLSettings_a1}

\item 
void {\bf init} ()
\begin{CompactList}\small\item\em Called by constructor and reparse\-Configuration. \item\end{CompactList}\item 
void {\bf init} ({\bf KConfig} $\ast$config, bool reset=true)
\begin{CompactList}\small\item\em Read settings from {\tt config}. \item\end{CompactList}\item 
virtual {\bf $\sim$KHTMLSettings} ()
\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\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 
KAnimation\-Advice {\bf show\-Animations} () const \label{classKHTMLSettings_a8}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

\item 
{\bf QString} {\bf settings\-To\-CSS} () const \label{classKHTMLSettings_a29}

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

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

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

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

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

\item 
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 
const  char $\ast$ {\bf advice\-To\-Str} ({\bf KJava\-Script\-Advice} \_\-advice)\label{classKHTMLSettings_e2}

\item 
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 35 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_w6}


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



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

Referenced by init().

\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 138 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 158 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} = 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 170 of file khtml\_\-settings.cc.

References KLocale::encoding(), QFont::family(), KGlobal\-Settings::fixed\-Font(), QString::from\-Latin1(), KGlobal\-Settings::general\-Font(), KConfig\-Base::group(), KConfig\-Base::has\-Group(), KConfig\-Base::has\-Key(), KJava\-Script\-Advice, KGlobal::locale(), QString::lower(), KConfig\-Base::read\-Bool\-Entry(), KConfig\-Base::read\-Color\-Entry(), KConfig\-Base::read\-Entry(), KConfig\-Base::read\-List\-Entry(), KConfig\-Base::read\-Num\-Entry(), KConfig\-Base::set\-Group(), and KConfig\-Base::write\-Entry().

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}
