\section{KHTMLPart\-Iface Class Reference}
\label{classKHTMLPartIface}\index{KHTMLPartIface@{KHTMLPartIface}}
DCOP interface for KHTML.  


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

Collaboration diagram for KHTMLPart\-Iface:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=138pt]{classKHTMLPartIface__coll__graph}
\end{center}
\end{figure}
\subsection*{DCOP Member Functions}
\begin{CompactItemize}
\item 
bool {\bf close\-URL} ()\label{classKHTMLPartIface_z0}

\item 
void {\bf set\-JScript\-Enabled} (bool enable)
\begin{CompactList}\small\item\em Enable/disable Javascript support. \item\end{CompactList}\item 
bool {\bf j\-Script\-Enabled} () const 
\begin{CompactList}\small\item\em Returns {\tt true} if Javascript support is enabled or {\tt false} otherwise. \item\end{CompactList}\item 
void {\bf set\-Meta\-Refresh\-Enabled} (bool enable)
\begin{CompactList}\small\item\em Enable/disable the automatic forwarding by $<$meta http-equiv=\char`\"{}refresh\char`\"{} ....$>$. \item\end{CompactList}\item 
bool {\bf meta\-Refresh\-Enabled} () const 
\begin{CompactList}\small\item\em Returns {\tt true} if automtaic forwarding is enabled. \item\end{CompactList}\item 
void {\bf set\-DNDEnabled} (bool b)
\begin{CompactList}\small\item\em Enables or disables Drag'n'Drop support. \item\end{CompactList}\item 
bool {\bf dnd\-Enabled} () const 
\begin{CompactList}\small\item\em Returns whether Dragn'n'Drop support is enabled or not. \item\end{CompactList}\item 
void {\bf set\-Java\-Enabled} (bool enable)
\begin{CompactList}\small\item\em Enables/disables Java applet support. \item\end{CompactList}\item 
bool {\bf java\-Enabled} () const 
\begin{CompactList}\small\item\em Return if Java applet support is enabled/disabled. \item\end{CompactList}\item 
void {\bf set\-Plugins\-Enabled} (bool enable)
\begin{CompactList}\small\item\em Enables or disables plugins via, default is enabled. \item\end{CompactList}\item 
bool {\bf plugins\-Enabled} () const 
\begin{CompactList}\small\item\em Returns trie if plugins are enabled/disabled. \item\end{CompactList}\item 
void {\bf set\-Autoload\-Images} (bool enable)
\begin{CompactList}\small\item\em Specifies whether images contained in the document should be loaded automatically or not. \item\end{CompactList}\item 
bool {\bf autoload\-Images} () const 
\begin{CompactList}\small\item\em Returns whether images contained in the document are loaded automatically or not. \item\end{CompactList}\item 
void {\bf set\-Only\-Local\-References} (bool enable)
\begin{CompactList}\small\item\em Security option. \item\end{CompactList}\item 
bool {\bf only\-Local\-References} () const 
\begin{CompactList}\small\item\em Returnd whether references should be loaded ( default false ). \item\end{CompactList}\item 
bool {\bf set\-Encoding} (const  {\bf QString} \&name)
\begin{CompactList}\small\item\em Sets the encoding the page uses. \item\end{CompactList}\item 
{\bf QString} {\bf encoding} () const 
\begin{CompactList}\small\item\em Returns the encoding the page currently uses. \item\end{CompactList}\item 
void {\bf set\-User\-Style\-Sheet} (const  {\bf QString} \&style\-Sheet)
\begin{CompactList}\small\item\em Sets a user defined style sheet to be used on top of the HTML 4 default style sheet. \item\end{CompactList}\item 
void {\bf set\-Fixed\-Font} (const  {\bf QString} \&name)
\begin{CompactList}\small\item\em Sets the fixed font style. \item\end{CompactList}\item 
bool {\bf goto\-Anchor} (const  {\bf QString} \&name)
\begin{CompactList}\small\item\em Finds the anchor named {\tt name}. \item\end{CompactList}\item 
{\bf QString} {\bf selected\-Text} () const 
\begin{CompactList}\small\item\em Returns the text the user has marked. \item\end{CompactList}\item 
void {\bf select\-All} ()
\begin{CompactList}\small\item\em Marks all text in the document as selected. \item\end{CompactList}\item 
{\bf QString} {\bf last\-Modified} () const 
\begin{CompactList}\small\item\em Last-modified date (in raw string format), if received in the [HTTP] headers. \item\end{CompactList}\item 
void {\bf debug\-Render\-Tree} ()\label{classKHTMLPartIface_z23}

\item 
void {\bf view\-Document\-Source} ()\label{classKHTMLPartIface_z24}

\item 
void {\bf view\-Frame\-Source} ()\label{classKHTMLPartIface_z25}

\item 
void {\bf save\-Background} (const  {\bf QString} \&url)\label{classKHTMLPartIface_z26}

\item 
void {\bf save\-Document} (const  {\bf QString} \&url)\label{classKHTMLPartIface_z27}

\item 
{\bf QString} {\bf eval\-JS} (const  {\bf QString} \&script)\label{classKHTMLPartIface_z28}

\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KHTMLPart\-Iface} ({\bf KHTMLPart} $\ast$)\label{classKHTMLPartIface_a0}

\end{CompactItemize}


\subsection{Detailed Description}
DCOP interface for KHTML. 



Definition at line 31 of file khtml\_\-iface.h.

\subsection{Member Function Documentation}
\index{KHTMLPartIface@{KHTMLPart\-Iface}!setJScriptEnabled@{setJScriptEnabled}}
\index{setJScriptEnabled@{setJScriptEnabled}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart\-Iface::set\-JScript\-Enabled (bool {\em enable})}\label{classKHTMLPartIface_z1}


Enable/disable Javascript support. 

Note that this will in either case permanently override the default usersetting. If you want to have the default User\-Settings, don't call this method. 

Definition at line 14 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!jScriptEnabled@{jScriptEnabled}}
\index{jScriptEnabled@{jScriptEnabled}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart\-Iface::j\-Script\-Enabled () const}\label{classKHTMLPartIface_z2}


Returns {\tt true} if Javascript support is enabled or {\tt false} otherwise. 



Definition at line 19 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!setMetaRefreshEnabled@{setMetaRefreshEnabled}}
\index{setMetaRefreshEnabled@{setMetaRefreshEnabled}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart\-Iface::set\-Meta\-Refresh\-Enabled (bool {\em enable})}\label{classKHTMLPartIface_z3}


Enable/disable the automatic forwarding by $<$meta http-equiv=\char`\"{}refresh\char`\"{} ....$>$. 



Definition at line 84 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!metaRefreshEnabled@{metaRefreshEnabled}}
\index{metaRefreshEnabled@{metaRefreshEnabled}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart\-Iface::meta\-Refresh\-Enabled () const}\label{classKHTMLPartIface_z4}


Returns {\tt true} if automtaic forwarding is enabled. 



Definition at line 34 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!setDNDEnabled@{setDNDEnabled}}
\index{setDNDEnabled@{setDNDEnabled}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart\-Iface::set\-DNDEnabled (bool {\em b})}\label{classKHTMLPartIface_z5}


Enables or disables Drag'n'Drop support. 

A drag operation is started if the users drags a link. 

Definition at line 39 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!dndEnabled@{dndEnabled}}
\index{dndEnabled@{dndEnabled}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart\-Iface::dnd\-Enabled () const}\label{classKHTMLPartIface_z6}


Returns whether Dragn'n'Drop support is enabled or not. 



Definition at line 44 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!setJavaEnabled@{setJavaEnabled}}
\index{setJavaEnabled@{setJavaEnabled}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart\-Iface::set\-Java\-Enabled (bool {\em enable})}\label{classKHTMLPartIface_z7}


Enables/disables Java applet support. 

Note that calling this function will permanently override the User settings about Java applet support. Not calling this function is the only way to let the default settings apply. 

Definition at line 49 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!javaEnabled@{javaEnabled}}
\index{javaEnabled@{javaEnabled}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart\-Iface::java\-Enabled () const}\label{classKHTMLPartIface_z8}


Return if Java applet support is enabled/disabled. 



Definition at line 54 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!setPluginsEnabled@{setPluginsEnabled}}
\index{setPluginsEnabled@{setPluginsEnabled}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart\-Iface::set\-Plugins\-Enabled (bool {\em enable})}\label{classKHTMLPartIface_z9}


Enables or disables plugins via, default is enabled. 



Definition at line 59 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!pluginsEnabled@{pluginsEnabled}}
\index{pluginsEnabled@{pluginsEnabled}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart\-Iface::plugins\-Enabled () const}\label{classKHTMLPartIface_z10}


Returns trie if plugins are enabled/disabled. 



Definition at line 64 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!setAutoloadImages@{setAutoloadImages}}
\index{setAutoloadImages@{setAutoloadImages}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart\-Iface::set\-Autoload\-Images (bool {\em enable})}\label{classKHTMLPartIface_z11}


Specifies whether images contained in the document should be loaded automatically or not. 

\begin{Desc}
\item[Note:]Request will be ignored if called before begin(). \end{Desc}


Definition at line 69 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!autoloadImages@{autoloadImages}}
\index{autoloadImages@{autoloadImages}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart\-Iface::autoload\-Images () const}\label{classKHTMLPartIface_z12}


Returns whether images contained in the document are loaded automatically or not. 

\begin{Desc}
\item[Note:]that the returned information is unrelieable as long as no begin() was called. \end{Desc}


Definition at line 74 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!setOnlyLocalReferences@{setOnlyLocalReferences}}
\index{setOnlyLocalReferences@{setOnlyLocalReferences}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart\-Iface::set\-Only\-Local\-References (bool {\em enable})}\label{classKHTMLPartIface_z13}


Security option. 

Specify whether only local references ( stylesheets, images, scripts, subdocuments ) should be loaded. ( default false - everything is loaded, if the more specific options allow ) 

Definition at line 79 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!onlyLocalReferences@{onlyLocalReferences}}
\index{onlyLocalReferences@{onlyLocalReferences}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart\-Iface::only\-Local\-References () const}\label{classKHTMLPartIface_z14}


Returnd whether references should be loaded ( default false ). 



Definition at line 89 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!setEncoding@{setEncoding}}
\index{setEncoding@{setEncoding}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart\-Iface::set\-Encoding (const {\bf QString} \& {\em name})}\label{classKHTMLPartIface_z15}


Sets the encoding the page uses. 

This can be different from the charset. The widget will try to reload the current page in the new encoding, if url() is not empty. 

Definition at line 94 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!encoding@{encoding}}
\index{encoding@{encoding}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KHTMLPart\-Iface::encoding () const}\label{classKHTMLPartIface_z16}


Returns the encoding the page currently uses. 

Note that the encoding might be different from the charset. 

Definition at line 99 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!setUserStyleSheet@{setUserStyleSheet}}
\index{setUserStyleSheet@{setUserStyleSheet}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart\-Iface::set\-User\-Style\-Sheet (const {\bf QString} \& {\em style\-Sheet})}\label{classKHTMLPartIface_z17}


Sets a user defined style sheet to be used on top of the HTML 4 default style sheet. 

This gives a wide range of possibilities to change the layout of the page. 

Definition at line 157 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!setFixedFont@{setFixedFont}}
\index{setFixedFont@{setFixedFont}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart\-Iface::set\-Fixed\-Font (const {\bf QString} \& {\em name})}\label{classKHTMLPartIface_z18}


Sets the fixed font style. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em name}]The font name to use for fixed text, e.g. the {\tt $<$pre$>$} tag. \end{description}
\end{Desc}


Definition at line 104 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!gotoAnchor@{gotoAnchor}}
\index{gotoAnchor@{gotoAnchor}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart\-Iface::goto\-Anchor (const {\bf QString} \& {\em name})}\label{classKHTMLPartIface_z19}


Finds the anchor named {\tt name}. 

If the anchor is found, the widget scrolls to the closest position. Returns {\tt if} the anchor has been found. 

Definition at line 109 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!selectedText@{selectedText}}
\index{selectedText@{selectedText}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KHTMLPart\-Iface::selected\-Text () const}\label{classKHTMLPartIface_z20}


Returns the text the user has marked. 



Definition at line 162 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!selectAll@{selectAll}}
\index{selectAll@{selectAll}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart\-Iface::select\-All ()}\label{classKHTMLPartIface_z21}


Marks all text in the document as selected. 



Definition at line 114 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!lastModified@{lastModified}}
\index{lastModified@{lastModified}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KHTMLPart\-Iface::last\-Modified () const}\label{classKHTMLPartIface_z22}


Last-modified date (in raw string format), if received in the [HTTP] headers. 



Definition at line 119 of file khtml\_\-iface.cc.

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