\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=124pt]{classKHTMLPartIface__coll__graph}
\end{center}
\end{figure}
\subsection*{DCOP Member Functions}
\begin{CompactItemize}
\item 
{\bf KURL} {\bf url} () const 
\item 
bool {\bf close\-URL} ()\label{classKHTMLPartIface_z1}

\item 
void {\bf set\-JScript\-Enabled} (bool enable)
\item 
bool {\bf j\-Script\-Enabled} () const 
\item 
void {\bf set\-Meta\-Refresh\-Enabled} (bool enable)
\item 
bool {\bf meta\-Refresh\-Enabled} () const 
\item 
void {\bf set\-DNDEnabled} (bool b)
\item 
bool {\bf dnd\-Enabled} () const 
\item 
void {\bf set\-Java\-Enabled} (bool enable)
\item 
bool {\bf java\-Enabled} () const 
\item 
void {\bf set\-Plugins\-Enabled} (bool enable)
\item 
bool {\bf plugins\-Enabled} () const 
\item 
void {\bf set\-Autoload\-Images} (bool enable)
\item 
bool {\bf autoload\-Images} () const 
\item 
void {\bf set\-Only\-Local\-References} (bool enable)
\item 
bool {\bf only\-Local\-References} () const 
\item 
bool {\bf set\-Encoding} (const {\bf QString} \&name)
\item 
{\bf QString} {\bf encoding} () const 
\item 
void {\bf set\-User\-Style\-Sheet} (const {\bf QString} \&style\-Sheet)
\item 
void {\bf set\-Fixed\-Font} (const {\bf QString} \&name)
\item 
bool {\bf goto\-Anchor} (const {\bf QString} \&name)
\item 
bool {\bf next\-Anchor} ()
\item 
bool {\bf prev\-Anchor} ()
\item 
void {\bf activate\-Node} ()
\item 
{\bf QString} {\bf selected\-Text} () const 
\item 
void {\bf select\-All} ()
\item 
{\bf QString} {\bf last\-Modified} () const 
\item 
ASYNC {\bf print} (bool quick)
\item 
void {\bf debug\-Render\-Tree} ()\label{classKHTMLPartIface_z28}

\item 
void {\bf debug\-DOMTree} ()\label{classKHTMLPartIface_z29}

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

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

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

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

\item 
{\bf QString} {\bf eval\-JS} (const {\bf QString} \&script)
\item 
void {\bf stop\-Animations} ()
\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 32 of file khtml\_\-iface.h.

\subsection{Member Function Documentation}
\index{KHTMLPartIface@{KHTMLPart\-Iface}!url@{url}}
\index{url@{url}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KURL} KHTMLPart\-Iface::url () const}\label{classKHTMLPartIface_z0}


\begin{Desc}
\item[Returns:]the current URL \end{Desc}


Definition at line 38 of file khtml\_\-iface.cc.\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_z2}


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 43 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_z3}


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



Definition at line 48 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_z4}


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



Definition at line 108 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_z5}


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



Definition at line 58 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_z6}


Enables or disables Drag'n'Drop support. 

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

Definition at line 63 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_z7}


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



Definition at line 68 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_z8}


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 73 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_z9}


Return if Java applet support is enabled/disabled. 



Definition at line 78 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_z10}


Enables or disables plugins via, default is enabled. 



Definition at line 83 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_z11}


Returns trie if plugins are enabled/disabled. 



Definition at line 88 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_z12}


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 93 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_z13}


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 98 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_z14}


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 103 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_z15}


Returns whether references should be loaded ( default false ). 



Definition at line 113 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_z16}


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 {\bf url()}{\rm (p.\,\pageref{classKHTMLPartIface_z0})} is not empty. 

Definition at line 118 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_z17}


Returns the encoding the page currently uses. 

Note that the encoding might be different from the charset. 

Definition at line 123 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_z18}


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 211 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_z19}


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 128 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_z20}


Finds the anchor named {\tt name}. 

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

Definition at line 134 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!nextAnchor@{nextAnchor}}
\index{nextAnchor@{nextAnchor}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart\-Iface::next\-Anchor ()}\label{classKHTMLPartIface_z21}


Go to next Anchor. 

This is useful to navigate from outside of the navigator. \begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 139 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!prevAnchor@{prevAnchor}}
\index{prevAnchor@{prevAnchor}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart\-Iface::prev\-Anchor ()}\label{classKHTMLPartIface_z22}


Go to previous Anchor. 

\begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 144 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!activateNode@{activateNode}}
\index{activateNode@{activateNode}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart\-Iface::activate\-Node ()}\label{classKHTMLPartIface_z23}


Activate the node that currently has the focus (emulates pressing Return). 



Definition at line 149 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_z24}


Returns the text the user has marked. 



Definition at line 216 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_z25}


Marks all text in the document as selected. 



Definition at line 158 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_z26}


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



Definition at line 163 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!print@{print}}
\index{print@{print}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart\-Iface::print (bool {\em quick})}\label{classKHTMLPartIface_z27}


Print the contents of the current html view. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em quick}]if true, fully automated printing, without the print dialog. \end{description}
\end{Desc}


Definition at line 231 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!evalJS@{evalJS}}
\index{evalJS@{evalJS}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KHTMLPart\-Iface::eval\-JS (const {\bf QString} \& {\em script})}\label{classKHTMLPartIface_z34}


Evaluate a given piece of Javascript code. 



Definition at line 226 of file khtml\_\-iface.cc.\index{KHTMLPartIface@{KHTMLPart\-Iface}!stopAnimations@{stopAnimations}}
\index{stopAnimations@{stopAnimations}!KHTMLPartIface@{KHTMLPart\-Iface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart\-Iface::stop\-Animations ()}\label{classKHTMLPartIface_z35}


Stops display of animated images. 



Definition at line 178 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}
