\section{KHTMLPart Class Reference}
\label{classKHTMLPart}\index{KHTMLPart@{KHTMLPart}}
This class is khtml's main class. HTML Browser Widget.  


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

Inheritance diagram for KHTMLPart:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=99pt]{classKHTMLPart__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KHTMLPart:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=124pt]{classKHTMLPart__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf GUIProfile} \{ {\bf Default\-GUI}, 
{\bf Browser\-View\-GUI}
 \}
\item 
enum {\bf Caret\-Display\-Policy} \{ {\bf Caret\-Visible}, 
{\bf Caret\-Invisible}, 
{\bf Caret\-Blink}
 \}
\item 
enum {\bf Find\-Options} \{ {\bf Find\-Links\-Only} =  1 $\ast$ KFind\-Dialog::Minimum\-User\-Option, 
{\bf Find\-No\-Popups} =  2 $\ast$ KFind\-Dialog::Minimum\-User\-Option
 \}
\item 
enum {\bf Form\-Notification} \{ {\bf No\-Notification} =  0, 
{\bf Before}, 
{\bf Only}, 
{\bf Unused} = 255
 \}
\end{CompactItemize}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
void {\bf set\-Active\-Node} (const {\bf DOM::Node} \&node)
\item 
void {\bf stop\-Animations} ()
\item 
{\bf QCString} {\bf dcop\-Object\-Id} () const \label{classKHTMLPart_i2}

\item 
{\bf QVariant} {\bf execute\-Script} (const {\bf QString} \&script)
\item 
void {\bf set\-Caret\-Mode} (bool enable)
\item 
void {\bf set\-Editable} (bool enable)
\item 
void {\bf set\-Caret\-Visible} (bool show)
\item 
void {\bf submit\-Form\-Proxy} (const char $\ast${\bf action}, const {\bf QString} \&{\bf url}, const {\bf QByte\-Array} \&form\-Data, const {\bf QString} \&target, const {\bf QString} \&content\-Type=QString::null, const {\bf QString} \&boundary=QString::null)\label{classKHTMLPart_i7}

\end{CompactItemize}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf on\-URL} (const {\bf QString} \&{\bf url})
\item 
void {\bf popup\-Menu} (const {\bf QString} \&{\bf url}, const {\bf QPoint} \&point)
\item 
void {\bf selection\-Changed} ()
\item 
void {\bf node\-Activated} (const {\bf DOM::Node} \&)
\item 
void {\bf doc\-Created} ()\label{classKHTMLPart_l4}

\item 
void {\bf caret\-Position\-Changed} (const {\bf DOM::Node} \&node, long offset)
\item 
void {\bf form\-Submit\-Notification} (const char $\ast${\bf action}, const {\bf QString} \&{\bf url}, const {\bf QByte\-Array} \&form\-Data, const {\bf QString} \&target, const {\bf QString} \&content\-Type, const {\bf QString} \&boundary)
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KHTMLPart} ({\bf QWidget} $\ast$parent\-Widget=0, const char $\ast$widgetname=0, {\bf QObject} $\ast${\bf parent}=0, const char $\ast${\bf name}=0, GUIProfile prof=Default\-GUI)
\item 
{\bf KHTMLPart} ({\bf KHTMLView} $\ast$view, {\bf QObject} $\ast${\bf parent}=0, const char $\ast${\bf name}=0, GUIProfile prof=Default\-GUI)\label{classKHTMLPart_a1}

\item 
virtual {\bf $\sim$KHTMLPart} ()
\item 
virtual bool {\bf open\-URL} (const {\bf KURL} \&{\bf url})
\item 
virtual bool {\bf close\-URL} ()
\item 
virtual void {\bf show\-Error} ({\bf KIO::Job} $\ast$job)
\item 
{\bf DOM::HTMLDocument} {\bf html\-Document} () const 
\item 
{\bf DOM::Document} {\bf document} () const 
\item 
{\bf QString} {\bf document\-Source} () const 
\item 
{\bf DOM::Node} {\bf active\-Node} () const 
\item 
{\bf KParts::Browser\-Extension} $\ast$ {\bf browser\-Extension} () const 
\item 
{\bf KParts::Live\-Connect\-Extension} $\ast$ {\bf live\-Connect\-Extension} (const khtml::Render\-Part $\ast$) const \label{classKHTMLPart_a11}

\item 
{\bf KParts::Browser\-Host\-Extension} $\ast$ {\bf browser\-Host\-Extension} () const \label{classKHTMLPart_a12}

\item 
{\bf KHTMLView} $\ast$ {\bf view} () const 
\item 
void {\bf set\-JScript\-Enabled} (bool enable)
\item 
bool {\bf j\-Script\-Enabled} () const 
\item 
KJS::Interpreter $\ast$ {\bf j\-Script\-Interpreter} ()
\item 
void {\bf set\-Status\-Messages\-Enabled} (bool enable)
\item 
bool {\bf status\-Messages\-Enabled} () const 
\item 
void {\bf set\-Meta\-Refresh\-Enabled} (bool enable)
\item 
bool {\bf meta\-Refresh\-Enabled} () const 
\item 
{\bf QVariant} {\bf execute\-Script} (const {\bf DOM::Node} \&n, const {\bf QString} \&script)
\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 
{\bf KJava\-Applet\-Context} $\ast$ {\bf java\-Context} ()
\item 
{\bf KJava\-Applet\-Context} $\ast$ {\bf create\-Java\-Context} ()
\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 is\-Caret\-Mode} () const 
\item 
bool {\bf is\-Editable} () const 
\item 
void {\bf set\-Caret\-Position} ({\bf DOM::Node} node, long offset, bool extend\-Selection=false)
\item 
{\bf Caret\-Display\-Policy} {\bf caret\-Display\-Policy\-Non\-Focused} () const 
\item 
void {\bf set\-Caret\-Display\-Policy\-Non\-Focused} ({\bf Caret\-Display\-Policy} policy)
\item 
void {\bf enable\-JScript} (bool e)\label{classKHTMLPart_a39}

\item 
void {\bf enable\-Java} (bool e)\label{classKHTMLPart_a40}

\item 
void {\bf enable\-Plugins} (bool e)\label{classKHTMLPart_a41}

\item 
void {\bf autoload\-Images} (bool e)\label{classKHTMLPart_a42}

\item 
void {\bf enable\-Meta\-Refresh} (bool e)\label{classKHTMLPart_a43}

\item 
bool {\bf set\-Charset} (const {\bf QString} \&, bool)\label{classKHTMLPart_a44}

\item 
{\bf KURL} {\bf base\-URL} () const \label{classKHTMLPart_a45}

\item 
{\bf QString} {\bf base\-Target} () const \label{classKHTMLPart_a46}

\item 
{\bf KURL} {\bf background\-URL} () const 
\item 
void {\bf schedule\-Redirection} (int delay, const {\bf QString} \&{\bf url}, bool lock\-History=true)
\item 
virtual void {\bf begin} (const {\bf KURL} \&{\bf url}={\bf KURL}(), int x\-Offset=0, int y\-Offset=0)
\item 
virtual void {\bf write} (const char $\ast$str, int len=-1)
\item 
virtual void {\bf write} (const {\bf QString} \&str)
\item 
virtual void {\bf end} ()
\item 
void {\bf paint} ({\bf QPainter} $\ast$, const {\bf QRect} \&, int=0, bool $\ast$=0)
\item 
bool {\bf set\-Encoding} (const {\bf QString} \&{\bf name}, bool override=false)
\item 
{\bf QString} {\bf encoding} () const 
\item 
void {\bf set\-User\-Style\-Sheet} (const {\bf KURL} \&{\bf url})
\item 
void {\bf set\-User\-Style\-Sheet} (const {\bf QString} \&style\-Sheet)
\item 
void {\bf set\-Standard\-Font} (const {\bf QString} \&{\bf name})
\item 
void {\bf set\-Fixed\-Font} (const {\bf QString} \&{\bf name})
\item 
bool {\bf goto\-Anchor} (const {\bf QString} \&{\bf name})
\item 
bool {\bf next\-Anchor} ()
\item 
bool {\bf prev\-Anchor} ()
\item 
void {\bf set\-URLCursor} (const {\bf QCursor} \&c)
\item 
{\bf QCursor} {\bf url\-Cursor} () const 
\item 
void {\bf find\-Text} ()
\item 
void {\bf find\-Text} (const {\bf QString} \&str, long options, {\bf QWidget} $\ast${\bf parent}=0, KFind\-Dialog $\ast$find\-Dialog=0)
\item 
void {\bf find\-Text\-Begin} ()
\item 
bool {\bf find\-Text\-Next} (const {\bf QString} \&str, bool forward, bool case\-Sensitive, bool is\-Reg\-Exp)
\item 
bool {\bf find\-Text\-Next} ()
\item 
void {\bf set\-Zoom\-Factor} (int percent)
\item 
int {\bf zoom\-Factor} () const 
\item 
virtual {\bf QString} {\bf selected\-Text} () const 
\item 
{\bf QString} {\bf selected\-Text\-As\-HTML} () const 
\item 
DOM::Range {\bf selection} () const 
\item 
void {\bf selection} ({\bf DOM::Node} \&start\-Node, long \&start\-Offset, {\bf DOM::Node} \&end\-Node, long \&end\-Offset) const 
\item 
void {\bf set\-Selection} (const DOM::Range \&)
\item 
bool {\bf has\-Selection} () const 
\item 
void {\bf select\-All} ()
\item 
void {\bf show} ()
\item 
void {\bf hide} ()
\item 
{\bf KParts::Part\-Manager} $\ast$ {\bf part\-Manager} ()
\item 
virtual void {\bf save\-State} ({\bf QData\-Stream} \&stream)
\item 
virtual void {\bf restore\-State} ({\bf QData\-Stream} \&stream)
\item 
{\bf DOM::Node} {\bf node\-Under\-Mouse} () const 
\item 
{\bf DOM::Node} {\bf non\-Shared\-Node\-Under\-Mouse} () const 
\item 
const {\bf KHTMLSettings} $\ast$ {\bf settings} () const \label{classKHTMLPart_a86}

\item 
{\bf KHTMLPart} $\ast$ {\bf parent\-Part} ()
\item 
{\bf QString\-List} {\bf frame\-Names} () const 
\item 
{\bf QPtr\-List}$<$ {\bf KParts::Read\-Only\-Part} $>$ {\bf frames} () const \label{classKHTMLPart_a89}

\item 
{\bf KHTMLPart} $\ast$ {\bf find\-Frame} (const {\bf QString} \&f)
\item 
{\bf KHTMLPart} $\ast$ {\bf find\-Frame\-Parent} ({\bf KParts::Read\-Only\-Part} $\ast$calling\-Part, const {\bf QString} \&f, khtml::Child\-Frame $\ast$$\ast$child\-Frame=0)
\item 
{\bf KParts::Read\-Only\-Part} $\ast$ {\bf current\-Frame} () const 
\item 
bool {\bf frame\-Exists} (const {\bf QString} \&frame\-Name)
\item 
KJSProxy $\ast$ {\bf framej\-Script} ({\bf KParts::Read\-Only\-Part} $\ast$frame\-Part)
\item 
{\bf KParts::Read\-Only\-Part} $\ast$ {\bf find\-Frame\-Part} (const {\bf QString} \&f)
\item 
void {\bf set\-JSStatus\-Bar\-Text} (const {\bf QString} \&text)
\item 
void {\bf set\-JSDefault\-Status\-Bar\-Text} (const {\bf QString} \&text)
\item 
{\bf QString} {\bf js\-Status\-Bar\-Text} () const 
\item 
{\bf QString} {\bf js\-Default\-Status\-Bar\-Text} () const 
\item 
{\bf QString} {\bf referrer} () const 
\item 
{\bf QString} {\bf page\-Referrer} () const 
\item 
{\bf QString} {\bf last\-Modified} () const 
\item 
void {\bf preload\-Style\-Sheet} (const {\bf QString} \&{\bf url}, const {\bf QString} \&stylesheet)
\item 
void {\bf preload\-Script} (const {\bf QString} \&{\bf url}, const {\bf QString} \&script)
\item 
bool {\bf restored} () const \label{classKHTMLPart_a105}

\item 
void {\bf set\-Form\-Notification} (Form\-Notification fn)
\item 
Form\-Notification {\bf form\-Notification} () const 
\item 
{\bf KURL} {\bf toplevel\-URL} ()
\item 
bool {\bf is\-Modified} () const 
\item 
void {\bf set\-Suppressed\-Popup\-Indicator} (bool enable)
\end{CompactItemize}
\subsection*{Protected Types}
\begin{CompactItemize}
\item 
enum {\bf Page\-Security} \{ {\bf Not\-Crypted}, 
{\bf Encrypted}, 
{\bf Mixed}
 \}
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
{\bf KURL} {\bf complete\-URL} (const {\bf QString} \&{\bf url})
\item 
void {\bf html\-Error} (int error\-Code, const {\bf QString} \&text, const {\bf KURL} \&req\-Url)
\item 
virtual void {\bf custom\-Event} ({\bf QCustom\-Event} $\ast${\bf event})\label{classKHTMLPart_b2}

\item 
virtual void {\bf khtml\-Mouse\-Press\-Event} (khtml::Mouse\-Press\-Event $\ast${\bf event})
\item 
virtual void {\bf khtml\-Mouse\-Double\-Click\-Event} (khtml::Mouse\-Double\-Click\-Event $\ast$)
\item 
virtual void {\bf khtml\-Mouse\-Move\-Event} (khtml::Mouse\-Move\-Event $\ast${\bf event})
\item 
virtual void {\bf khtml\-Mouse\-Release\-Event} (khtml::Mouse\-Release\-Event $\ast${\bf event})
\item 
virtual void {\bf khtml\-Draw\-Contents\-Event} (khtml::Draw\-Contents\-Event $\ast$)
\item 
virtual void {\bf gui\-Activate\-Event} ({\bf KParts::GUIActivate\-Event} $\ast${\bf event})
\item 
virtual bool {\bf open\-File} ()
\item 
virtual void {\bf url\-Selected} (const {\bf QString} \&{\bf url}, int button, int state, const {\bf QString} \&\_\-target, {\bf KParts::URLArgs} args={\bf KParts::URLArgs}())\label{classKHTMLPart_b10}

\item 
virtual {\bf KParts::Read\-Only\-Part} $\ast$ {\bf create\-Part} ({\bf QWidget} $\ast$parent\-Widget, const char $\ast$widget\-Name, {\bf QObject} $\ast${\bf parent}, const char $\ast${\bf name}, const {\bf QString} \&mimetype, {\bf QString} \&service\-Name, {\bf QString\-List} \&service\-Types, const {\bf QString\-List} \&params)
\item 
bool {\bf plugin\-Page\-Question\-Asked} (const {\bf QString} \&mimetype) const \label{classKHTMLPart_b12}

\item 
void {\bf set\-Plugin\-Page\-Question\-Asked} (const {\bf QString} \&mimetype)\label{classKHTMLPart_b13}

\item 
void {\bf set\-Page\-Security} (Page\-Security sec)\label{classKHTMLPart_b14}

\item 
virtual bool {\bf do\-Open\-Stream} (const {\bf QString} \&mime\-Type)
\item 
virtual bool {\bf do\-Write\-Stream} (const {\bf QByte\-Array} \&data)
\item 
virtual bool {\bf do\-Close\-Stream} ()
\end{CompactItemize}
\subsection*{Properties}
\begin{CompactItemize}
\item 
bool {\bf java\-Script\-Enabled}\label{classKHTMLPart_00}

\item 
bool {\bf java\-Enabled}\label{classKHTMLPart_01}

\item 
bool {\bf autoload\-Images}\label{classKHTMLPart_02}

\item 
bool {\bf dnd\-Enabled}\label{classKHTMLPart_03}

\item 
bool {\bf plugins\-Enabled}\label{classKHTMLPart_04}

\item 
bool {\bf only\-Local\-References}\label{classKHTMLPart_05}

\item 
{\bf QCString} {\bf dcop\-Object\-Id}\label{classKHTMLPart_06}

\item 
bool {\bf modified}\label{classKHTMLPart_07}

\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf KHTMLView}\label{classKHTMLPart_n0}

\item 
class {\bf DOM::HTMLTitle\-Element\-Impl}\label{classKHTMLPart_n1}

\item 
class {\bf DOM::HTMLFrame\-Element\-Impl}\label{classKHTMLPart_n2}

\item 
class {\bf DOM::HTMLIFrame\-Element\-Impl}\label{classKHTMLPart_n3}

\item 
class {\bf DOM::HTMLObject\-Element\-Impl}\label{classKHTMLPart_n4}

\item 
class {\bf DOM::HTMLAnchor\-Element\-Impl}\label{classKHTMLPart_n5}

\item 
class {\bf DOM::HTMLMeta\-Element\-Impl}\label{classKHTMLPart_n6}

\item 
class {\bf DOM::Node\-Impl}\label{classKHTMLPart_n7}

\item 
class {\bf KHTMLRun}\label{classKHTMLPart_n8}

\item 
class {\bf DOM::HTMLForm\-Element\-Impl}\label{classKHTMLPart_n9}

\item 
class {\bf khtml::Render\-Part\-Object}\label{classKHTMLPart_n10}

\item 
class {\bf KJS::Window}\label{classKHTMLPart_n11}

\item 
class {\bf KJS::Scheduled\-Action}\label{classKHTMLPart_n12}

\item 
class {\bf KJS::JSNode\-Filter}\label{classKHTMLPart_n13}

\item 
class {\bf KJS::Window\-Func}\label{classKHTMLPart_n14}

\item 
class {\bf KJS::External\-Func}\label{classKHTMLPart_n15}

\item 
class {\bf KJS::JSEvent\-Listener}\label{classKHTMLPart_n16}

\item 
class {\bf KJS::JSLazy\-Event\-Listener}\label{classKHTMLPart_n17}

\item 
class {\bf KJS::DOMDocument}\label{classKHTMLPart_n18}

\item 
class {\bf KJS::Source\-File}\label{classKHTMLPart_n19}

\item 
class {\bf KJSProxy}\label{classKHTMLPart_n20}

\item 
class {\bf KHTMLPart\-Browser\-Extension}\label{classKHTMLPart_n21}

\item 
class {\bf DOM::Document\-Impl}\label{classKHTMLPart_n22}

\item 
class {\bf DOM::HTMLDocument\-Impl}\label{classKHTMLPart_n23}

\item 
class {\bf KHTMLPart\-Browser\-Host\-Extension}\label{classKHTMLPart_n24}

\item 
class {\bf khtml::HTMLTokenizer}\label{classKHTMLPart_n25}

\item 
class {\bf khtml::XMLTokenizer}\label{classKHTMLPart_n26}

\item 
class {\bf khtml::Render\-Widget}\label{classKHTMLPart_n27}

\item 
class {\bf khtml::CSSStyle\-Selector}\label{classKHTMLPart_n28}

\item 
class {\bf KHTMLPart\-Iface}\label{classKHTMLPart_n29}

\item 
class {\bf KHTMLPart\-Function}\label{classKHTMLPart_n30}

\item 
class {\bf KHTMLPart\-Private}\label{classKHTMLPart_n31}

\end{CompactItemize}


\subsection{Detailed Description}
This class is khtml's main class. HTML Browser Widget. 

It features an almost complete web browser, and html renderer.

The easiest way to use this class (if you just want to display an HTML page at some URL) is the following:



\footnotesize\begin{verbatim} KURL url = "http://www.kde.org";
 KHTMLPart *w = new KHTMLPart();
 w->openURL(url);
 w->view()->resize(500, 400);
 w->show();
\end{verbatim}
\normalsize


Java and Java\-Script are enabled by default depending on the user's settings. If you do not need them, and especially if you display unfiltered data from untrusted sources, it is strongly recommended to turn them off. In that case, you should also turn off the automatic redirect and plugins:



\footnotesize\begin{verbatim} w->setJScriptEnabled(false);
 w->setJavaEnabled(false);
 w->setMetaRefreshEnabled(false);
 w->setPluginsEnabled(false);
\end{verbatim}
\normalsize


You may also wish to disable external references. This will prevent KHTML from loading images, frames, etc, or redirecting to external sites.



\footnotesize\begin{verbatim} w->setOnlyLocalReferences(true);
\end{verbatim}
\normalsize


Some apps want to write their HTML code directly into the widget instead of opening an url. You can do this in the following way:



\footnotesize\begin{verbatim} QString myHTMLCode = ...;
 KHTMLPart *w = new KHTMLPart();
 w->begin();
 w->write(myHTMLCode);
 ...
 w->end();
\end{verbatim}
\normalsize


You can do as many calls to {\bf write()}{\rm (p.\,\pageref{classKHTMLPart_a50})} as you wish. There are two {\bf write()}{\rm (p.\,\pageref{classKHTMLPart_a50})} methods, one accepting a {\bf QString} and one accepting a {\tt char} {\tt $\ast$} argument. You should use one or the other (but not both) since the method using the {\tt char} {\tt $\ast$} argument does an additional decoding step to convert the written data to Unicode.

It is also possible to write content to the HTML part using the standard streaming API from {\bf KParts::Read\-Only\-Part}. The usage of the API is similar to that of the {\bf begin()}{\rm (p.\,\pageref{classKHTMLPart_a49})}, {\bf write()}{\rm (p.\,\pageref{classKHTMLPart_a50})}, {\bf end()}{\rm (p.\,\pageref{classKHTMLPart_a52})} process described above as the following example shows:



\footnotesize\begin{verbatim} KHTMLPart *doc = new KHTMLPart();
 doc->openStream( "text/html", KURL() );
 doc->writeStream( QCString( "<html><body><p>KHTML Rocks!</p></body></html>" ) );
 doc->closeStream();
\end{verbatim}
\normalsize


\begin{Desc}
\item[Author:]Lars Knoll ({\tt knoll@kde.org}) \end{Desc}




Definition at line 184 of file khtml\_\-part.h.

\subsection{Member Enumeration Documentation}
\index{KHTMLPart@{KHTMLPart}!CaretDisplayPolicy@{CaretDisplayPolicy}}
\index{CaretDisplayPolicy@{CaretDisplayPolicy}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KHTMLPart::Caret\-Display\-Policy}}\label{classKHTMLPart_w12}


Enumeration for displaying the caret. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em Visible}]caret is displayed \item[{\em Invisible}]caret is not displayed \item[{\em Blink}]caret toggles between visible and invisible \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 482 of file khtml\_\-part.h.\index{KHTMLPart@{KHTMLPart}!FindOptions@{FindOptions}}
\index{FindOptions@{FindOptions}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KHTMLPart::Find\-Options}}\label{classKHTMLPart_w13}


Extra Find options that can be used when calling the extended {\bf find\-Text()}{\rm (p.\,\pageref{classKHTMLPart_a65})}. 

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


Definition at line 685 of file khtml\_\-part.h.

\subsection{Constructor \& Destructor Documentation}
\index{KHTMLPart@{KHTMLPart}!KHTMLPart@{KHTMLPart}}
\index{KHTMLPart@{KHTMLPart}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KHTMLPart::KHTMLPart ({\bf QWidget} $\ast$ {\em parent\-Widget} = {\tt 0}, const char $\ast$ {\em widgetname} = {\tt 0}, {\bf QObject} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0}, GUIProfile {\em prof} = {\tt DefaultGUI})}\label{classKHTMLPart_a0}


Constructs a new KHTMLPart. 

KHTML basically consists of two objects: The KHTMLPart itself, holding the document data ({\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} document), and the {\bf KHTMLView}{\rm (p.\,\pageref{classKHTMLView})}, derived from {\bf QScroll\-View}, in which the document content is rendered in. You can specify two different parent objects for a KHTMLPart, one parent for the KHTMLPart document and on parent for the {\bf KHTMLView}{\rm (p.\,\pageref{classKHTMLView})}. If the second {\tt parent} argument is 0L, then {\tt parent\-Widget} is used as parent for both objects, the part and the view. 

Definition at line 204 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!~KHTMLPart@{$\sim$KHTMLPart}}
\index{~KHTMLPart@{$\sim$KHTMLPart}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KHTMLPart::$\sim${\bf KHTMLPart} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKHTMLPart_a2}


Destructor. 



Definition at line 448 of file khtml\_\-part.cpp.

References close\-URL(), KGlobal::config(), QObject::disconnect(), parent\-Part(), KConfig\-Base::set\-Group(), and KConfig\-Base::write\-Entry().

\subsection{Member Function Documentation}
\index{KHTMLPart@{KHTMLPart}!openURL@{openURL}}
\index{openURL@{openURL}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::open\-URL (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [virtual]}}\label{classKHTMLPart_a3}


Opens the specified URL {\tt url}. 

Reimplemented from {\bf KParts::Read\-Only\-Part::open\-URL} . 

Reimplemented from {\bf KParts::Read\-Only\-Part}.

Definition at line 546 of file khtml\_\-part.cpp.

References QTool\-Tip::add(), KProtocol\-Manager::cache\-Control(), close\-URL(), KParts::Read\-Only\-Part::completed(), QObject::connect(), QValue\-List::count(), QObject::disconnect(), endl(), QValue\-List::first(), KIO::get(), goto\-Anchor(), KURL::host(), html\-Error(), KIO::http\_\-post(), KXMLGUIClient::instance(), QString::is\-Empty(), KURL::join(), kd\-Debug(), parent\-Part(), KURL::path(), QValue\-List::pop\_\-front(), KURL::pretty\-URL(), KURL::protocol(), KURL::query\-Item(), QTool\-Tip::remove(), KURL::set\-Path(), KURL::split(), KParts::Read\-Only\-Part::started(), QString::starts\-With(), KIO::stat(), QString::to\-Int(), toplevel\-URL(), KParts::Read\-Only\-Part::url(), KURL::url(), KProtocol\-Manager::user\-Agent\-For\-Host(), and KParts::Part::widget().

Referenced by restore\-State(), and set\-Encoding().\index{KHTMLPart@{KHTMLPart}!closeURL@{closeURL}}
\index{closeURL@{closeURL}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::close\-URL ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKHTMLPart_a4}


Stops loading the document and kills all data requests (for images, etc.). 



Reimplemented from {\bf KParts::Read\-Only\-Part}.

Definition at line 750 of file khtml\_\-part.cpp.

References KProtocol\-Manager::cache\-Control(), KHTMLPage\-Cache::cancel\-Entry(), KHTMLPage\-Cache::cancel\-Fetch(), QObject::disconnect(), end(), endl(), kd\-Debug(), node\-Activated(), KURL::pretty\-URL(), and KHTMLPage\-Cache::self().

Referenced by open\-URL(), restore\-State(), set\-Encoding(), and $\sim$KHTMLPart().\index{KHTMLPart@{KHTMLPart}!showError@{showError}}
\index{showError@{showError}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::show\-Error ({\bf KIO::Job} $\ast$ {\em job})\hspace{0.3cm}{\tt  [virtual]}}\label{classKHTMLPart_a5}


Called when a certain error situation (i.e. 

connection timed out) occurred. The default implementation either shows a {\bf KIO} error dialog or loads a more verbose error description a as page, depending on the users configuration. {\tt job} is the job that signaled the error situation 

Definition at line 1659 of file khtml\_\-part.cpp.

References endl(), html\-Error(), and kd\-Debug().\index{KHTMLPart@{KHTMLPart}!htmlDocument@{htmlDocument}}
\index{htmlDocument@{htmlDocument}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOM::HTMLDocument} KHTMLPart::html\-Document () const}\label{classKHTMLPart_a6}


Returns a reference to the {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} HTML document (for non-HTML documents, returns null). 



Definition at line 832 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!document@{document}}
\index{document@{document}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOM::Document} KHTMLPart::document () const}\label{classKHTMLPart_a7}


Returns a reference to the {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} document. 



Definition at line 840 of file khtml\_\-part.cpp.

Referenced by selection().\index{KHTMLPart@{KHTMLPart}!documentSource@{documentSource}}
\index{documentSource@{documentSource}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KHTMLPart::document\-Source () const}\label{classKHTMLPart_a8}


Returns the content of the source document. 

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


Definition at line 845 of file khtml\_\-part.cpp.

References QFile::close(), KIO::Net\-Access$<$ T, K $>$::download(), encoding(), KHTMLPage\-Cache::is\-Complete(), KURL::is\-Local\-File(), QFile::open(), QText\-Stream::read(), KIO::Net\-Access$<$ T, K $>$::remove\-Temp\-File(), KHTMLPage\-Cache::save\-Data(), KHTMLPage\-Cache::self(), and QText\-Stream::set\-Codec().\index{KHTMLPart@{KHTMLPart}!activeNode@{activeNode}}
\index{activeNode@{activeNode}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOM::Node} KHTMLPart::active\-Node () const}\label{classKHTMLPart_a9}


Returns the node that has the keyboard focus. 



Definition at line 6668 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!browserExtension@{browserExtension}}
\index{browserExtension@{browserExtension}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KParts::Browser\-Extension} $\ast$ KHTMLPart::browser\-Extension () const}\label{classKHTMLPart_a10}


Returns a pointer to the {\bf KParts::Browser\-Extension}. 



Definition at line 877 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!view@{view}}
\index{view@{view}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KHTMLView} $\ast$ KHTMLPart::view () const}\label{classKHTMLPart_a13}


Returns a pointer to the HTML document's view. 



Definition at line 887 of file khtml\_\-part.cpp.

Referenced by caret\-Display\-Policy\-Non\-Focused(), find\-Text\-Next(), khtml\-Mouse\-Move\-Event(), set\-Caret\-Display\-Policy\-Non\-Focused(), set\-Caret\-Mode(), set\-Caret\-Position(), set\-Caret\-Visible(), and set\-Editable().\index{KHTMLPart@{KHTMLPart}!setJScriptEnabled@{setJScriptEnabled}}
\index{setJScriptEnabled@{setJScriptEnabled}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-JScript\-Enabled (bool {\em enable})}\label{classKHTMLPart_a14}


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 911 of file khtml\_\-part.cpp.

References KHTMLView::clear(), and j\-Script\-Enabled().\index{KHTMLPart@{KHTMLPart}!jScriptEnabled@{jScriptEnabled}}
\index{jScriptEnabled@{jScriptEnabled}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::j\-Script\-Enabled () const}\label{classKHTMLPart_a15}


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



Definition at line 920 of file khtml\_\-part.cpp.

References only\-Local\-References().

Referenced by set\-JScript\-Enabled().\index{KHTMLPart@{KHTMLPart}!jScriptInterpreter@{jScriptInterpreter}}
\index{jScriptInterpreter@{jScriptInterpreter}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KJS::Interpreter $\ast$ KHTMLPart::j\-Script\-Interpreter ()}\label{classKHTMLPart_a16}


Returns the Java\-Script interpreter the part is using. 

This method is mainly intended for applications which embed and extend the part and provides a mechanism for adding additional native objects to the interpreter (or removing the built-ins).

One thing people using this method to add things to the interpreter must consider, is that when you start writing new content to the part, the interpreter is cleared. This includes both use of the {\bf begin( const KURL \&, int, int )}{\rm (p.\,\pageref{classKHTMLPart_a49})} method, and the {\bf open\-URL( const KURL \& )}{\rm (p.\,\pageref{classKHTMLPart_a3})} method. If you want your objects to have a longer lifespan, then you must retain a KJS::Object yourself to ensure that the reference count of your custom objects never reaches 0. You will also need to re-add your bindings everytime this happens - one way to detect the need for this is to connect to the doc\-Created() signal, another is to reimplement the {\bf begin()}{\rm (p.\,\pageref{classKHTMLPart_a49})} method. 

Definition at line 897 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!setStatusMessagesEnabled@{setStatusMessagesEnabled}}
\index{setStatusMessagesEnabled@{setStatusMessagesEnabled}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-Status\-Messages\-Enabled (bool {\em enable})}\label{classKHTMLPart_a17}


Enable/disable statusbar messages. 



Definition at line 892 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!statusMessagesEnabled@{statusMessagesEnabled}}
\index{statusMessagesEnabled@{statusMessagesEnabled}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::status\-Messages\-Enabled () const}\label{classKHTMLPart_a18}


Returns {\tt true} if status messages are enabled. 



Definition at line 906 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!setMetaRefreshEnabled@{setMetaRefreshEnabled}}
\index{setMetaRefreshEnabled@{setMetaRefreshEnabled}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-Meta\-Refresh\-Enabled (bool {\em enable})}\label{classKHTMLPart_a19}


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



Definition at line 929 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!metaRefreshEnabled@{metaRefreshEnabled}}
\index{metaRefreshEnabled@{metaRefreshEnabled}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::meta\-Refresh\-Enabled () const}\label{classKHTMLPart_a20}


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



Definition at line 934 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!executeScript@{executeScript}}
\index{executeScript@{executeScript}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QVariant} KHTMLPart::execute\-Script (const {\bf DOM::Node} \& {\em n}, const {\bf QString} \& {\em script})}\label{classKHTMLPart_a21}


Same as {\bf execute\-Script( const QString \& )}{\rm (p.\,\pageref{classKHTMLPart_i3})} except with the Node parameter specifying the 'this' value. 



Definition at line 1161 of file khtml\_\-part.cpp.

References endl(), kd\-Debug(), QObject::name(), and QVariant::to\-String().

Referenced by execute\-Script().\index{KHTMLPart@{KHTMLPart}!setDNDEnabled@{setDNDEnabled}}
\index{setDNDEnabled@{setDNDEnabled}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-DNDEnabled (bool {\em b})}\label{classKHTMLPart_a22}


Enables or disables Drag'n'Drop support. 

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

Definition at line 5709 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!dndEnabled@{dndEnabled}}
\index{dndEnabled@{dndEnabled}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::dnd\-Enabled () const}\label{classKHTMLPart_a23}


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

\index{KHTMLPart@{KHTMLPart}!setJavaEnabled@{setJavaEnabled}}
\index{setJavaEnabled@{setJavaEnabled}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-Java\-Enabled (bool {\em enable})}\label{classKHTMLPart_a24}


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 1219 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!javaEnabled@{javaEnabled}}
\index{javaEnabled@{javaEnabled}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::java\-Enabled () const}\label{classKHTMLPart_a25}


Return true if Java applet support is enabled, false if disabled. 

\index{KHTMLPart@{KHTMLPart}!javaContext@{javaContext}}
\index{javaContext@{javaContext}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KJava\-Applet\-Context} $\ast$ KHTMLPart::java\-Context ()}\label{classKHTMLPart_a26}


Returns the java context of the applets. 

If no applet exists, 0 is returned. 

Definition at line 1238 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!createJavaContext@{createJavaContext}}
\index{createJavaContext@{createJavaContext}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KJava\-Applet\-Context} $\ast$ KHTMLPart::create\-Java\-Context ()}\label{classKHTMLPart_a27}


Returns the java context of the applets. 

If no context exists yet, a new one is created. 

Definition at line 1243 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!setPluginsEnabled@{setPluginsEnabled}}
\index{setPluginsEnabled@{setPluginsEnabled}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-Plugins\-Enabled (bool {\em enable})}\label{classKHTMLPart_a28}


Enables or disables plugins, default is enabled. 



Definition at line 1248 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!pluginsEnabled@{pluginsEnabled}}
\index{pluginsEnabled@{pluginsEnabled}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::plugins\-Enabled () const}\label{classKHTMLPart_a29}


Returns true if plugins are enabled/disabled. 

\index{KHTMLPart@{KHTMLPart}!setAutoloadImages@{setAutoloadImages}}
\index{setAutoloadImages@{setAutoloadImages}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-Autoload\-Images (bool {\em enable})}\label{classKHTMLPart_a30}


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

\begin{Desc}
\item[Note:]Request will be ignored if called before {\bf begin()}{\rm (p.\,\pageref{classKHTMLPart_a49})}. \end{Desc}


Definition at line 1310 of file khtml\_\-part.cpp.

References KXMLGUIClient::action\-Collection(), QPtr\-List::append(), KXMLGUIClient::plug\-Action\-List(), and KXMLGUIClient::unplug\-Action\-List().

Referenced by begin().\index{KHTMLPart@{KHTMLPart}!autoloadImages@{autoloadImages}}
\index{autoloadImages@{autoloadImages}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::autoload\-Images () const}\label{classKHTMLPart_a31}


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 {\bf begin()}{\rm (p.\,\pageref{classKHTMLPart_a49})} was called. \end{Desc}
\index{KHTMLPart@{KHTMLPart}!setOnlyLocalReferences@{setOnlyLocalReferences}}
\index{setOnlyLocalReferences@{setOnlyLocalReferences}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-Only\-Local\-References (bool {\em enable})}\label{classKHTMLPart_a32}


Security option. 

Specify whether only {\tt file:/} or data:/ urls are allowed to be loaded without user confirmation by KHTML. ( for example referenced by stylesheets, images, scripts, subdocuments, embedded elements ).

This option is mainly intended for enabling the \char`\"{}mail reader mode\char`\"{}, where you load untrusted content with a {\tt file:/} url.

Please note that enabling this option currently automatically disables Javascript, Java and Plugins support. This might change in the future if the security model is becoming more sophisticated, so don't rely on this behaviour.

( default false - everything is loaded unless forbidden by {\bf KApplication::authorize\-URLAction}). 

Definition at line 2545 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!onlyLocalReferences@{onlyLocalReferences}}
\index{onlyLocalReferences@{onlyLocalReferences}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::only\-Local\-References () const}\label{classKHTMLPart_a33}


Returns whether only {\tt file:/} or data:/ references are allowed to be loaded ( default false ). 

\begin{Desc}
\item[See also:]{\bf set\-Only\-Local\-References}{\rm (p.\,\pageref{classKHTMLPart_a32})}. \end{Desc}


Referenced by j\-Script\-Enabled().\index{KHTMLPart@{KHTMLPart}!isCaretMode@{isCaretMode}}
\index{isCaretMode@{isCaretMode}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::is\-Caret\-Mode () const}\label{classKHTMLPart_a34}


Returns whether caret mode is on/off. 

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


Definition at line 2595 of file khtml\_\-part.cpp.

Referenced by KHTMLView::layout(), set\-Caret\-Mode(), set\-Caret\-Visible(), and set\-Editable().\index{KHTMLPart@{KHTMLPart}!isEditable@{isEditable}}
\index{isEditable@{isEditable}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::is\-Editable () const}\label{classKHTMLPart_a35}


Returns {\tt true} if the document is editable, {\tt false} otherwise. 

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


Definition at line 2616 of file khtml\_\-part.cpp.

Referenced by khtml\-Mouse\-Move\-Event(), khtml\-Mouse\-Press\-Event(), KHTMLView::layout(), set\-Caret\-Mode(), set\-Caret\-Visible(), and set\-Editable().\index{KHTMLPart@{KHTMLPart}!setCaretPosition@{setCaretPosition}}
\index{setCaretPosition@{setCaretPosition}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-Caret\-Position ({\bf DOM::Node} {\em node}, long {\em offset}, bool {\em extend\-Selection} = {\tt false})}\label{classKHTMLPart_a36}


Sets the caret to the given position. 

If the given location is invalid, it will snap to the nearest valid location. Immediately afterwards a {\tt caret\-Position\-Changed} signal containing the effective position is emitted \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em node}]node to set to \item[{\em offset}]zero-based offset within the node \item[{\em extend\-Selection}]If {\tt true}, a selection will be spanned from the last caret position to the given one. Otherwise, any existing selection will be deselected. \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 2621 of file khtml\_\-part.cpp.

References endl(), KHTMLView::ensure\-Caret\-Visible(), DOM::Node::handle(), k\_\-funcinfo, kd\-Debug(), DOM::Node::node\-Name(), DOM::DOMString::string(), and view().\index{KHTMLPart@{KHTMLPart}!caretDisplayPolicyNonFocused@{caretDisplayPolicyNonFocused}}
\index{caretDisplayPolicyNonFocused@{caretDisplayPolicyNonFocused}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KHTMLPart::Caret\-Display\-Policy} KHTMLPart::caret\-Display\-Policy\-Non\-Focused () const}\label{classKHTMLPart_a37}


Returns the current caret policy when the view is not focused. 

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


Definition at line 2635 of file khtml\_\-part.cpp.

References KHTMLView::caret\-Display\-Policy\-Non\-Focused(), and view().\index{KHTMLPart@{KHTMLPart}!setCaretDisplayPolicyNonFocused@{setCaretDisplayPolicyNonFocused}}
\index{setCaretDisplayPolicyNonFocused@{setCaretDisplayPolicyNonFocused}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-Caret\-Display\-Policy\-Non\-Focused ({\bf Caret\-Display\-Policy} {\em policy})}\label{classKHTMLPart_a38}


Sets the caret display policy when the view is not focused. 

Whenever the caret is in use, this property determines how the caret should be displayed when the document view is not focused.

The default policy is Caret\-Invisible. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em policy}]new display policy \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 2644 of file khtml\_\-part.cpp.

References KHTMLView::set\-Caret\-Display\-Policy\-Non\-Focused(), and view().\index{KHTMLPart@{KHTMLPart}!backgroundURL@{backgroundURL}}
\index{backgroundURL@{backgroundURL}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KURL} KHTMLPart::background\-URL () const}\label{classKHTMLPart_a47}


Returns the URL for the background Image (used by save background). 



Definition at line 3908 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!scheduleRedirection@{scheduleRedirection}}
\index{scheduleRedirection@{scheduleRedirection}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::schedule\-Redirection (int {\em delay}, const {\bf QString} \& {\em url}, bool {\em lock\-History} = {\tt true})}\label{classKHTMLPart_a48}


Schedules a redirection after {\tt delay} seconds. 



Definition at line 2323 of file khtml\_\-part.cpp.

References endl(), and kd\-Debug().\index{KHTMLPart@{KHTMLPart}!begin@{begin}}
\index{begin@{begin}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::begin (const {\bf KURL} \& {\em url} = {\tt {\bf KURL}()}, int {\em x\-Offset} = {\tt 0}, int {\em y\-Offset} = {\tt 0})\hspace{0.3cm}{\tt  [virtual]}}\label{classKHTMLPart_a49}


Clears the widget and prepares it for new content. 

If you want {\bf url()} to return for example \char`\"{}file:/tmp/test.html\char`\"{}, you can use the following code: 

\footnotesize\begin{verbatim} view->begin( KURL("file:/tmp/test.html" ) );
\end{verbatim}
\normalsize


\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]is the url of the document to be displayed. Even if you are generating the HTML on the fly, it may be useful to specify a directory so that any pixmaps are found.\item[{\em x\-Offset}]is the initial horizontal scrollbar value. Usually you don't want to use this.\item[{\em y\-Offset}]is the initial vertical scrollbar value. Usually you don't want to use this.\end{description}
\end{Desc}
All child frames and the old document are removed if you call this method. 

Definition at line 1819 of file khtml\_\-part.cpp.

References QObject::connect(), QString::is\-Empty(), KMime\-Type::mime\-Type(), parent\-Part(), KURL::pretty\-URL(), KURL::protocol(), KURL::ref(), set\-Autoload\-Images(), KURL::set\-Query(), KURL::set\-Ref(), set\-Suppressed\-Popup\-Indicator(), set\-User\-Style\-Sheet(), KParts::Part::set\-Window\-Caption(), QString::starts\-With(), and KURL::url().

Referenced by do\-Open\-Stream(), framej\-Script(), and html\-Error().\index{KHTMLPart@{KHTMLPart}!write@{write}}
\index{write@{write}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::write (const char $\ast$ {\em str}, int {\em len} = {\tt -1})\hspace{0.3cm}{\tt  [virtual]}}\label{classKHTMLPart_a50}


Writes another part of the HTML code to the widget. 

You may call this function many times in sequence. But remember: The fewer calls you make, the faster the widget will be.

The HTML code is send through a decoder which decodes the stream to Unicode.

The {\tt len} parameter is needed for streams encoded in utf-16, since these can have $\backslash$0 chars in them. In case the encoding you're using isn't utf-16, you can safely leave out the length parameter.

Attention: Don't mix calls to write( const char $\ast$) with calls to {\bf write( const QString \& )}{\rm (p.\,\pageref{classKHTMLPart_a51})}.

The result might not be what you want. 

Definition at line 1909 of file khtml\_\-part.cpp.

References QString::is\-Empty().

Referenced by do\-Write\-Stream(), end(), and html\-Error().\index{KHTMLPart@{KHTMLPart}!write@{write}}
\index{write@{write}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::write (const {\bf QString} \& {\em str})\hspace{0.3cm}{\tt  [virtual]}}\label{classKHTMLPart_a51}


Writes another part of the HTML code to the widget. 

You may call this function many times in sequence. But remember: The fewer calls you make, the faster the widget will be. 

Definition at line 1941 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!end@{end}}
\index{end@{end}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::end ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKHTMLPart_a52}


Call this after your last call to {\bf write()}{\rm (p.\,\pageref{classKHTMLPart_a50})}. 



Definition at line 1956 of file khtml\_\-part.cpp.

References write().

Referenced by close\-URL(), do\-Close\-Stream(), framej\-Script(), html\-Error(), and stop\-Animations().\index{KHTMLPart@{KHTMLPart}!paint@{paint}}
\index{paint@{paint}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::paint ({\bf QPainter} $\ast$, const {\bf QRect} \&, int = {\tt 0}, bool $\ast$ = {\tt 0})}\label{classKHTMLPart_a53}


Paints the HTML page to a {\bf QPainter}. 

See KHTMLView::paint for details 

Definition at line 1989 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!setEncoding@{setEncoding}}
\index{setEncoding@{setEncoding}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::set\-Encoding (const {\bf QString} \& {\em name}, bool {\em override} = {\tt false})}\label{classKHTMLPart_a54}


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()} is not empty. 

Definition at line 2400 of file khtml\_\-part.cpp.

References close\-URL(), KURL::is\-Empty(), and open\-URL().\index{KHTMLPart@{KHTMLPart}!encoding@{encoding}}
\index{encoding@{encoding}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KHTMLPart::encoding () const}\label{classKHTMLPart_a55}


Returns the encoding the page currently uses. 

Note that the encoding might be different from the charset. 

Definition at line 2418 of file khtml\_\-part.cpp.

Referenced by document\-Source().\index{KHTMLPart@{KHTMLPart}!setUserStyleSheet@{setUserStyleSheet}}
\index{setUserStyleSheet@{setUserStyleSheet}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-User\-Style\-Sheet (const {\bf KURL} \& {\em url})}\label{classKHTMLPart_a56}


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 2442 of file khtml\_\-part.cpp.

Referenced by begin().\index{KHTMLPart@{KHTMLPart}!setUserStyleSheet@{setUserStyleSheet}}
\index{setUserStyleSheet@{setUserStyleSheet}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-User\-Style\-Sheet (const {\bf QString} \& {\em style\-Sheet})}\label{classKHTMLPart_a57}


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 2448 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!setStandardFont@{setStandardFont}}
\index{setStandardFont@{setStandardFont}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-Standard\-Font (const {\bf QString} \& {\em name})}\label{classKHTMLPart_a58}


Sets the standard font style. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em name}]The font name to use for standard text. \end{description}
\end{Desc}


Definition at line 2520 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!setFixedFont@{setFixedFont}}
\index{setFixedFont@{setFixedFont}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-Fixed\-Font (const {\bf QString} \& {\em name})}\label{classKHTMLPart_a59}


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 2525 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!gotoAnchor@{gotoAnchor}}
\index{gotoAnchor@{gotoAnchor}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::goto\-Anchor (const {\bf QString} \& {\em name})}\label{classKHTMLPart_a60}


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 2454 of file khtml\_\-part.cpp.

References endl(), kd\-Debug(), and QString::ref().

Referenced by open\-URL().\index{KHTMLPart@{KHTMLPart}!nextAnchor@{nextAnchor}}
\index{nextAnchor@{nextAnchor}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::next\-Anchor ()}\label{classKHTMLPart_a61}


Go to the next anchor. 

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


Definition at line 2502 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!prevAnchor@{prevAnchor}}
\index{prevAnchor@{prevAnchor}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::prev\-Anchor ()}\label{classKHTMLPart_a62}


Go to previous anchor \begin{Desc}
\item[Since:]3.2. \end{Desc}




Definition at line 2511 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!setURLCursor@{setURLCursor}}
\index{setURLCursor@{setURLCursor}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-URLCursor (const {\bf QCursor} \& {\em c})}\label{classKHTMLPart_a63}


Sets the cursor to use when the cursor is on a link. 



Definition at line 2530 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!urlCursor@{urlCursor}}
\index{urlCursor@{urlCursor}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QCursor} KHTMLPart::url\-Cursor () const}\label{classKHTMLPart_a64}


Returns the cursor which is used when the cursor is on a link. 



Definition at line 2535 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!findText@{findText}}
\index{findText@{findText}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::find\-Text ()}\label{classKHTMLPart_a65}


Starts a new search by popping up a dialog asking the user what he wants to search for. 

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


Definition at line 2867 of file khtml\_\-part.cpp.

References QObject::connect(), QObject::disconnect(), has\-Selection(), selection\-Changed(), and KParts::Part::widget().

Referenced by find\-Text\-Next().\index{KHTMLPart@{KHTMLPart}!findText@{findText}}
\index{findText@{findText}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::find\-Text (const {\bf QString} \& {\em str}, long {\em options}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, KFind\-Dialog $\ast$ {\em find\-Dialog} = {\tt 0})}\label{classKHTMLPart_a66}


Starts a new search, but bypasses the user dialog. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em str}]The string to search for. \item[{\em options}]Find options. \item[{\em parent}]Parent used for centering popups like \char`\"{}string not found\char`\"{}. \item[{\em find\-Dialog}]Optionally, you can supply your own dialog. \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.3 \end{Desc}


Definition at line 2905 of file khtml\_\-part.cpp.

References QObject::connect(), and selection\-Changed().\index{KHTMLPart@{KHTMLPart}!findTextBegin@{findTextBegin}}
\index{findTextBegin@{findTextBegin}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::find\-Text\-Begin ()}\label{classKHTMLPart_a67}


Initiates a text search. 



Definition at line 2670 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!findTextNext@{findTextNext}}
\index{findTextNext@{findTextNext}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::find\-Text\-Next (const {\bf QString} \& {\em str}, bool {\em forward}, bool {\em case\-Sensitive}, bool {\em is\-Reg\-Exp})}\label{classKHTMLPart_a68}


Finds the next occurrence of the string or expression. 

If is\-Reg\-Exp is true then str is converted to a {\bf QReg\-Exp}, and case\-Sensitive is ignored. 

\begin{Desc}
\item[{\bf Deprecated}], use find\-Text( str, options, parent, find\-Dialog ) \end{Desc}


Definition at line 2747 of file khtml\_\-part.cpp.

References DOM::DOMString::implementation(), QReg\-Exp::matched\-Length(), QReg\-Exp::search(), and QReg\-Exp::set\-Case\-Sensitive().\index{KHTMLPart@{KHTMLPart}!findTextNext@{findTextNext}}
\index{findTextNext@{findTextNext}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::find\-Text\-Next ()}\label{classKHTMLPart_a69}


Finds the next occurence of a string set by {\bf find\-Text()}{\rm (p.\,\pageref{classKHTMLPart_a65})}. 

\begin{Desc}
\item[Returns:]true if a new match was found. \end{Desc}
\begin{Desc}
\item[Since:]3.3 \end{Desc}


Definition at line 2934 of file khtml\_\-part.cpp.

References QString::append(), KShortcut::clear(), endl(), QString::find(), find\-Text(), has\-Selection(), QString::is\-Empty(), kd\-Debug(), QString::length(), QString::replace(), QString::truncate(), KHTMLView::update\-Find\-Ahead\-Timeout(), and view().\index{KHTMLPart@{KHTMLPart}!setZoomFactor@{setZoomFactor}}
\index{setZoomFactor@{setZoomFactor}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-Zoom\-Factor (int {\em percent})}\label{classKHTMLPart_a70}


Sets the Zoom factor. 

The value is given in percent, larger values mean a generally larger font and larger page contents. It is not guaranteed that all parts of the page are scaled with the same factor though.

The given value should be in the range of 20..300, values outside that range are not guaranteed to work. A value of 100 will disable all zooming and show the page with the sizes determined via the given lengths in the stylesheets. 

Definition at line 5506 of file khtml\_\-part.cpp.

References QApplication::restore\-Override\-Cursor(), and QApplication::set\-Override\-Cursor().

Referenced by restore\-State().\index{KHTMLPart@{KHTMLPart}!zoomFactor@{zoomFactor}}
\index{zoomFactor@{zoomFactor}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KHTMLPart::zoom\-Factor () const}\label{classKHTMLPart_a71}


Returns the current zoom factor. 



Definition at line 5442 of file khtml\_\-part.cpp.

Referenced by khtml::CSSStyle\-Selector::CSSStyle\-Selector(), KHTMLView::print(), and restore\-State().\index{KHTMLPart@{KHTMLPart}!selectedText@{selectedText}}
\index{selectedText@{selectedText}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KHTMLPart::selected\-Text () const\hspace{0.3cm}{\tt  [virtual]}}\label{classKHTMLPart_a72}


Returns the text the user has marked. 



Definition at line 3276 of file khtml\_\-part.cpp.

References DOM::Node::element\-Id(), DOM::Node::first\-Child(), DOM::Node::handle(), QString::is\-Empty(), KShortcut::is\-Null(), DOM::Node::is\-Null(), QString::left(), QString::length(), QString::mid(), DOM::Node::next\-Sibling(), DOM::Node::node\-Type(), and DOM::Node::parent\-Node().

Referenced by khtml\-Mouse\-Release\-Event().\index{KHTMLPart@{KHTMLPart}!selectedTextAsHTML@{selectedTextAsHTML}}
\index{selectedTextAsHTML@{selectedTextAsHTML}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KHTMLPart::selected\-Text\-As\-HTML () const}\label{classKHTMLPart_a73}


Return the text the user has marked. 

This is guaranteed to be valid xml, and to contain the $<$html$>$ and $<$body$>$ tags.

FIXME probably should make virtual for 4.0 ?

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


Definition at line 3259 of file khtml\_\-part.cpp.

References endl(), has\-Selection(), kd\-Debug(), and selection().\index{KHTMLPart@{KHTMLPart}!selection@{selection}}
\index{selection@{selection}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}DOM::Range KHTMLPart::selection () const}\label{classKHTMLPart_a74}


Returns the selected part of the HTML. 



Definition at line 3427 of file khtml\_\-part.cpp.

References DOM::Document::create\-Range(), document(), endl(), DOM::Node::handle(), and kd\-Debug().

Referenced by selected\-Text\-As\-HTML().\index{KHTMLPart@{KHTMLPart}!selection@{selection}}
\index{selection@{selection}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::selection ({\bf DOM::Node} \& {\em start\-Node}, long \& {\em start\-Offset}, {\bf DOM::Node} \& {\em end\-Node}, long \& {\em end\-Offset}) const}\label{classKHTMLPart_a75}


Returns the selected part of the HTML by returning the starting and end position. 

If there is no selection, both nodes and offsets are equal. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em start\-Node}]returns node selection starts in \item[{\em start\-Offset}]returns offset within starting node \item[{\em end\-Node}]returns node selection ends in \item[{\em end\-Offset}]returns offset within end node. \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 3481 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!setSelection@{setSelection}}
\index{setSelection@{setSelection}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-Selection (const DOM::Range \&)}\label{classKHTMLPart_a76}


Sets the current selection. 



Definition at line 3489 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!hasSelection@{hasSelection}}
\index{hasSelection@{hasSelection}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::has\-Selection () const}\label{classKHTMLPart_a77}


Has the user selected anything? 

Call {\bf selected\-Text()}{\rm (p.\,\pageref{classKHTMLPart_a72})} to retrieve the selected text.

\begin{Desc}
\item[Returns:]{\tt true} if there is text selected. \end{Desc}


Definition at line 3417 of file khtml\_\-part.cpp.

Referenced by find\-Text(), find\-Text\-Next(), and selected\-Text\-As\-HTML().\index{KHTMLPart@{KHTMLPart}!selectAll@{selectAll}}
\index{selectAll@{selectAll}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::select\-All ()}\label{classKHTMLPart_a78}


Marks all text in the document as selected. 



Definition at line 6479 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!show@{show}}
\index{show@{show}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::show ()}\label{classKHTMLPart_a79}


Convenience method to show the document's view. 

Equivalent to {\bf widget()}-$>${\bf show()}{\rm (p.\,\pageref{classKHTMLPart_a79})} or {\bf view()}{\rm (p.\,\pageref{classKHTMLPart_a13})}-$>${\bf show()}{\rm (p.\,\pageref{classKHTMLPart_a79})} . 

Definition at line 5410 of file khtml\_\-part.cpp.

Referenced by KHTMLView::KHTMLView().\index{KHTMLPart@{KHTMLPart}!hide@{hide}}
\index{hide@{hide}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::hide ()}\label{classKHTMLPart_a80}


Convenience method to hide the document's view. 

Equivalent to {\bf widget()}-$>${\bf hide()}{\rm (p.\,\pageref{classKHTMLPart_a80})} or {\bf view()}{\rm (p.\,\pageref{classKHTMLPart_a13})}-$>${\bf hide()}{\rm (p.\,\pageref{classKHTMLPart_a80})}. 

Definition at line 5416 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!partManager@{partManager}}
\index{partManager@{partManager}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KParts::Part\-Manager} $\ast$ KHTMLPart::part\-Manager ()}\label{classKHTMLPart_a81}


Returns a reference to the partmanager instance which manages html frame objects. 



Definition at line 4484 of file khtml\_\-part.cpp.

References QObject::connect(), and KParts::Part\-Manager::set\-Allow\-Nested\-Parts().

Referenced by current\-Frame().\index{KHTMLPart@{KHTMLPart}!saveState@{saveState}}
\index{saveState@{saveState}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::save\-State ({\bf QData\-Stream} \& {\em stream})\hspace{0.3cm}{\tt  [virtual]}}\label{classKHTMLPart_a82}


Saves the KHTMLPart's complete state (including child frame objects) to the provided {\bf QData\-Stream}. 

This is called from the {\bf save\-State()}{\rm (p.\,\pageref{classKHTMLPart_a82})} method of the {\bf browser\-Extension()}{\rm (p.\,\pageref{classKHTMLPart_a10})}. 

Definition at line 5138 of file khtml\_\-part.cpp.

References endl(), kd\-Debug(), QObject::name(), and KURL::url().\index{KHTMLPart@{KHTMLPart}!restoreState@{restoreState}}
\index{restoreState@{restoreState}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::restore\-State ({\bf QData\-Stream} \& {\em stream})\hspace{0.3cm}{\tt  [virtual]}}\label{classKHTMLPart_a83}


Restores the KHTMLPart's previously saved state (including child frame objects) from the provided {\bf QData\-Stream}. 

\begin{Desc}
\item[See also:]{\bf save\-State()}{\rm (p.\,\pageref{classKHTMLPart_a82})}\end{Desc}
This is called from the {\bf restore\-State()}{\rm (p.\,\pageref{classKHTMLPart_a83})} method of the {\bf browser\-Extension()}{\rm (p.\,\pageref{classKHTMLPart_a10})} . 

Definition at line 5224 of file khtml\_\-part.cpp.

References QValue\-List::append(), QValue\-List::begin(), close\-URL(), QValue\-List::end(), frame\-Names(), open\-URL(), set\-Zoom\-Factor(), and zoom\-Factor().\index{KHTMLPart@{KHTMLPart}!nodeUnderMouse@{nodeUnderMouse}}
\index{nodeUnderMouse@{nodeUnderMouse}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOM::Node} KHTMLPart::node\-Under\-Mouse () const}\label{classKHTMLPart_a84}


Returns the {\tt Node} currently under the mouse. 

The returned node may be a shared node (e. g. an $<$area$>$ node if the mouse is hovering over an image map). 

Definition at line 5422 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!nonSharedNodeUnderMouse@{nonSharedNodeUnderMouse}}
\index{nonSharedNodeUnderMouse@{nonSharedNodeUnderMouse}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOM::Node} KHTMLPart::non\-Shared\-Node\-Under\-Mouse () const}\label{classKHTMLPart_a85}


Returns the {\tt Node} currently under the mouse that is not shared. 

The returned node is always the node that is physically under the mouse pointer (irrespective of logically overlying elements like, e. g., $<$area$>$ on image maps). \begin{Desc}
\item[Since:]3.3 \end{Desc}


Definition at line 5427 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!parentPart@{parentPart}}
\index{parentPart@{parentPart}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KHTMLPart} $\ast$ KHTMLPart::parent\-Part ()}\label{classKHTMLPart_a87}


Returns a pointer to the parent KHTMLPart if the part is a frame in an HTML frameset. 

Returns 0L otherwise. 

Definition at line 5101 of file khtml\_\-part.cpp.

References QObject::parent().

Referenced by begin(), find\-Frame\-Parent(), khtml\-Mouse\-Move\-Event(), khtml\-Mouse\-Press\-Event(), khtml\-Mouse\-Release\-Event(), open\-URL(), set\-Suppressed\-Popup\-Indicator(), toplevel\-URL(), and $\sim$KHTMLPart().\index{KHTMLPart@{KHTMLPart}!frameNames@{frameNames}}
\index{frameNames@{frameNames}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString\-List} KHTMLPart::frame\-Names () const}\label{classKHTMLPart_a88}


Returns a list of names of all frame (including iframe) objects of the current document. 

Note that this method is not working recursively for sub-frames. 

Definition at line 5666 of file khtml\_\-part.cpp.

Referenced by restore\-State().\index{KHTMLPart@{KHTMLPart}!findFrame@{findFrame}}
\index{findFrame@{findFrame}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KHTMLPart} $\ast$ KHTMLPart::find\-Frame (const {\bf QString} \& {\em f})}\label{classKHTMLPart_a90}


Finds a frame by name. 

Returns 0L if frame can't be found. 

Definition at line 5037 of file khtml\_\-part.cpp.

References find\-Frame\-Parent(), and QObject::inherits().\index{KHTMLPart@{KHTMLPart}!findFrameParent@{findFrameParent}}
\index{findFrameParent@{findFrameParent}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KHTMLPart} $\ast$ KHTMLPart::find\-Frame\-Parent ({\bf KParts::Read\-Only\-Part} $\ast$ {\em calling\-Part}, const {\bf QString} \& {\em f}, khtml::Child\-Frame $\ast$$\ast$ {\em child\-Frame} = {\tt 0})}\label{classKHTMLPart_a91}


Recursively finds the part containing the frame with name {\tt f} and checks if it is accessible by {\tt calling\-Part} Returns 0L if no suitable frame can't be found. 

Returns parent part if a suitable frame was found and frame info in {\tt $\ast$child\-Frame} \begin{Desc}
\item[Since:]3.3 \end{Desc}


Definition at line 4996 of file khtml\_\-part.cpp.

References endl(), QObject::inherits(), kd\-Debug(), QObject::name(), and parent\-Part().

Referenced by find\-Frame(), and find\-Frame\-Part().\index{KHTMLPart@{KHTMLPart}!currentFrame@{currentFrame}}
\index{currentFrame@{currentFrame}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KParts::Read\-Only\-Part} $\ast$ KHTMLPart::current\-Frame () const}\label{classKHTMLPart_a92}


Return the current frame (the one that has focus) Not necessarily a direct child of ours, framesets can be nested. 

Returns \char`\"{}this\char`\"{} if this part isn't a frameset. 

Definition at line 5056 of file khtml\_\-part.cpp.

References KParts::Part\-Manager::active\-Part(), QObject::inherits(), and part\-Manager().\index{KHTMLPart@{KHTMLPart}!frameExists@{frameExists}}
\index{frameExists@{frameExists}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::frame\-Exists (const {\bf QString} \& {\em frame\-Name})}\label{classKHTMLPart_a93}


Returns whether a frame with the specified name is exists or not. 

In contrary to the find\-Frame method this one also returns true if the frame is defined but no displaying component has been found/loaded, yet. 

Definition at line 5071 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!framejScript@{framejScript}}
\index{framejScript@{framejScript}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KJSProxy $\ast$ KHTMLPart::framej\-Script ({\bf KParts::Read\-Only\-Part} $\ast$ {\em frame\-Part})}\label{classKHTMLPart_a94}


Returns child frame frame\-Part its script interpreter. 



Definition at line 5083 of file khtml\_\-part.cpp.

References begin(), end(), and j\-Script().\index{KHTMLPart@{KHTMLPart}!findFramePart@{findFramePart}}
\index{findFramePart@{findFramePart}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KParts::Read\-Only\-Part} $\ast$ KHTMLPart::find\-Frame\-Part (const {\bf QString} \& {\em f})}\label{classKHTMLPart_a95}


Finds a frame by name. 

Returns 0L if frame can't be found. 

Definition at line 5050 of file khtml\_\-part.cpp.

References find\-Frame\-Parent().\index{KHTMLPart@{KHTMLPart}!setJSStatusBarText@{setJSStatusBarText}}
\index{setJSStatusBarText@{setJSStatusBarText}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-JSStatus\-Bar\-Text (const {\bf QString} \& {\em text})}\label{classKHTMLPart_a96}


Called by KJS. 

Sets the Status\-Bar\-Text assigned via window.status 

Definition at line 5567 of file khtml\_\-part.cpp.

References KParts::Part::set\-Status\-Bar\-Text().\index{KHTMLPart@{KHTMLPart}!setJSDefaultStatusBarText@{setJSDefaultStatusBarText}}
\index{setJSDefaultStatusBarText@{setJSDefaultStatusBarText}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-JSDefault\-Status\-Bar\-Text (const {\bf QString} \& {\em text})}\label{classKHTMLPart_a97}


Called by KJS. 

Sets the Default\-Status\-Bar\-Text assigned via window.default\-Status 

Definition at line 5572 of file khtml\_\-part.cpp.

References KParts::Part::set\-Status\-Bar\-Text().\index{KHTMLPart@{KHTMLPart}!jsStatusBarText@{jsStatusBarText}}
\index{jsStatusBarText@{jsStatusBarText}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KHTMLPart::js\-Status\-Bar\-Text () const}\label{classKHTMLPart_a98}


Called by KJS. 

Returns the Status\-Bar\-Text assigned via window.status 

Definition at line 5577 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!jsDefaultStatusBarText@{jsDefaultStatusBarText}}
\index{jsDefaultStatusBarText@{jsDefaultStatusBarText}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KHTMLPart::js\-Default\-Status\-Bar\-Text () const}\label{classKHTMLPart_a99}


Called by KJS. 

Returns the Default\-Status\-Bar\-Text assigned via window.default\-Status 

Definition at line 5582 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!referrer@{referrer}}
\index{referrer@{referrer}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KHTMLPart::referrer () const}\label{classKHTMLPart_a100}


Referrer used for links in this page. 



Definition at line 5587 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!pageReferrer@{pageReferrer}}
\index{pageReferrer@{pageReferrer}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KHTMLPart::page\-Referrer () const}\label{classKHTMLPart_a101}


Referrer used to obtain this page. 



Definition at line 5592 of file khtml\_\-part.cpp.

References KURL::is\-Valid(), KURL::protocol(), KURL::set\-Pass(), KURL::set\-Ref(), KURL::set\-User(), and KURL::url().\index{KHTMLPart@{KHTMLPart}!lastModified@{lastModified}}
\index{lastModified@{lastModified}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KHTMLPart::last\-Modified () const}\label{classKHTMLPart_a102}


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



Definition at line 5613 of file khtml\_\-part.cpp.

References KURL::is\-Local\-File(), KURL::path(), and QDate\-Time::to\-String().\index{KHTMLPart@{KHTMLPart}!preloadStyleSheet@{preloadStyleSheet}}
\index{preloadStyleSheet@{preloadStyleSheet}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::preload\-Style\-Sheet (const {\bf QString} \& {\em url}, const {\bf QString} \& {\em stylesheet})}\label{classKHTMLPart_a103}


Loads a style sheet into the stylesheet cache. 



Definition at line 6703 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!preloadScript@{preloadScript}}
\index{preloadScript@{preloadScript}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::preload\-Script (const {\bf QString} \& {\em url}, const {\bf QString} \& {\em script})}\label{classKHTMLPart_a104}


Loads a script into the script cache. 



Definition at line 6708 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!setFormNotification@{setFormNotification}}
\index{setFormNotification@{setFormNotification}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-Form\-Notification (Form\-Notification {\em fn})}\label{classKHTMLPart_a106}


Determine if signal should be emitted before, instead or never when a submit\-Form() happens. 

\begin{Desc}
\item[Since:]3.2 \#\#\# KDE4 remove me \end{Desc}


Definition at line 7044 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!formNotification@{formNotification}}
\index{formNotification@{formNotification}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KHTMLPart::Form\-Notification KHTMLPart::form\-Notification () const}\label{classKHTMLPart_a107}


Determine if signal should be emitted before, instead or never when a submit\-Form() happens. 

\#\#\# KDE4 remove me \begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 7048 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!toplevelURL@{toplevelURL}}
\index{toplevelURL@{toplevelURL}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KURL} KHTMLPart::toplevel\-URL ()}\label{classKHTMLPart_a108}


Returns the toplevel (origin) URL of this document, even if this part is a frame or an iframe. 

\begin{Desc}
\item[Returns:]the actual original url. \end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 7052 of file khtml\_\-part.cpp.

References parent\-Part(), and KParts::Read\-Only\-Part::url().

Referenced by open\-URL().\index{KHTMLPart@{KHTMLPart}!isModified@{isModified}}
\index{isModified@{isModified}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::is\-Modified () const}\label{classKHTMLPart_a109}


Checks whether the page contains unsubmitted form changes. 

\begin{Desc}
\item[Returns:]true if form changes exist \end{Desc}
\begin{Desc}
\item[Since:]3.3 \end{Desc}


Definition at line 7064 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!setSuppressedPopupIndicator@{setSuppressedPopupIndicator}}
\index{setSuppressedPopupIndicator@{setSuppressedPopupIndicator}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-Suppressed\-Popup\-Indicator (bool {\em enable})}\label{classKHTMLPart_a110}


Shows or hides the suppressed popup indicator \begin{Desc}
\item[Since:]3.4. \end{Desc}




Definition at line 7087 of file khtml\_\-part.cpp.

References QTool\-Tip::add(), KXMLGUIClient::instance(), parent\-Part(), and QTool\-Tip::remove().

Referenced by begin().\index{KHTMLPart@{KHTMLPart}!onURL@{onURL}}
\index{onURL@{onURL}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::on\-URL (const {\bf QString} \& {\em url})\hspace{0.3cm}{\tt  [signal]}}\label{classKHTMLPart_l0}


Emitted if the cursor is moved over an URL. 

\index{KHTMLPart@{KHTMLPart}!popupMenu@{popupMenu}}
\index{popupMenu@{popupMenu}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::popup\-Menu (const {\bf QString} \& {\em url}, const {\bf QPoint} \& {\em point})\hspace{0.3cm}{\tt  [signal]}}\label{classKHTMLPart_l1}


Emitted when the user clicks the right mouse button on the document. 



Referenced by khtml\-Mouse\-Move\-Event(), and khtml\-Mouse\-Press\-Event().\index{KHTMLPart@{KHTMLPart}!selectionChanged@{selectionChanged}}
\index{selectionChanged@{selectionChanged}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::selection\-Changed ()\hspace{0.3cm}{\tt  [signal]}}\label{classKHTMLPart_l2}


This signal is emitted when the selection changes. 



Referenced by find\-Text(), and khtml\-Mouse\-Release\-Event().\index{KHTMLPart@{KHTMLPart}!nodeActivated@{nodeActivated}}
\index{nodeActivated@{nodeActivated}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::node\-Activated (const {\bf DOM::Node} \&)\hspace{0.3cm}{\tt  [signal]}}\label{classKHTMLPart_l3}


This signal is emitted when an element retrieves the keyboard focus. 

Note that the signal argument can be a null node if no element is active, meaning a node has explicitly been deactivated without a new one becoming active. 

Referenced by close\-URL().\index{KHTMLPart@{KHTMLPart}!caretPositionChanged@{caretPositionChanged}}
\index{caretPositionChanged@{caretPositionChanged}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::caret\-Position\-Changed (const {\bf DOM::Node} \& {\em node}, long {\em offset})\hspace{0.3cm}{\tt  [signal]}}\label{classKHTMLPart_l5}


This signal is emitted whenever the caret position has been changed. 

The signal transmits the position the DOM::Range way, the node and the zero-based offset within this node. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em node}]node which the caret is in. This can be null if the caret has been deactivated. \item[{\em offset}]offset within the node. If the node is null, the offset is meaningless. \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}
\index{KHTMLPart@{KHTMLPart}!formSubmitNotification@{formSubmitNotification}}
\index{formSubmitNotification@{formSubmitNotification}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::form\-Submit\-Notification (const char $\ast$ {\em action}, const {\bf QString} \& {\em url}, const {\bf QByte\-Array} \& {\em form\-Data}, const {\bf QString} \& {\em target}, const {\bf QString} \& {\em content\-Type}, const {\bf QString} \& {\em boundary})\hspace{0.3cm}{\tt  [signal]}}\label{classKHTMLPart_l6}


If form notification is on, this will be emitted either for a form submit or before the form submit according to the setting. 

\begin{Desc}
\item[Since:]3.2 \#\#\# KDE4 remove me \end{Desc}
\index{KHTMLPart@{KHTMLPart}!completeURL@{completeURL}}
\index{completeURL@{completeURL}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KURL} KHTMLPart::complete\-URL (const {\bf QString} \& {\em url})\hspace{0.3cm}{\tt  [protected]}}\label{classKHTMLPart_b0}


returns a {\bf KURL} object for the given url. 

Use when you know what you're doing. 

Definition at line 2311 of file khtml\_\-part.cpp.

Referenced by khtml\-Mouse\-Move\-Event().\index{KHTMLPart@{KHTMLPart}!htmlError@{htmlError}}
\index{htmlError@{htmlError}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::html\-Error (int {\em error\-Code}, const {\bf QString} \& {\em text}, const {\bf KURL} \& {\em req\-Url})\hspace{0.3cm}{\tt  [protected]}}\label{classKHTMLPart_b1}


presents a detailed error message to the user. 

{\tt error\-Code} kio error code, eg KIO::ERR\_\-SERVER\_\-TIMEOUT. {\tt text} kio additional information text. {\tt url} the url that triggered the error. 

Definition at line 1676 of file khtml\_\-part.cpp.

References QString::arg(), begin(), KParts::Read\-Only\-Part::completed(), QStyle\-Sheet::convert\-From\-Plain\-Text(), end(), endl(), KLocale::format\-Date\-Time(), QString::from\-Latin1(), QString::is\-Null(), QString\-List::join(), kd\-Debug(), KGlobal::locale(), KIO::raw\-Error\-Detail(), KParts::Read\-Only\-Part::started(), and write().

Referenced by open\-URL(), and show\-Error().\index{KHTMLPart@{KHTMLPart}!khtmlMousePressEvent@{khtmlMousePressEvent}}
\index{khtmlMousePressEvent@{khtmlMousePressEvent}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::khtml\-Mouse\-Press\-Event (khtml::Mouse\-Press\-Event $\ast$ {\em event})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKHTMLPart_b3}


Eventhandler of the khtml::Mouse\-Press\-Event. 



Definition at line 5824 of file khtml\_\-part.cpp.

References QMouse\-Event::button(), QMouse\-Event::global\-Pos(), DOM::Node::handle(), is\-Editable(), DOM::Node::is\-Null(), parent\-Part(), popup\-Menu(), QMouse\-Event::pos(), and QMouse\-Event::state().\index{KHTMLPart@{KHTMLPart}!khtmlMouseDoubleClickEvent@{khtmlMouseDoubleClickEvent}}
\index{khtmlMouseDoubleClickEvent@{khtmlMouseDoubleClickEvent}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::khtml\-Mouse\-Double\-Click\-Event (khtml::Mouse\-Double\-Click\-Event $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKHTMLPart_b4}


Eventhandler for the khtml::Mouse\-Double\-Click\-Event. 



Definition at line 5904 of file khtml\_\-part.cpp.

References QMouse\-Event::button(), DOM::Node::handle(), DOM::Node::is\-Null(), and QMouse\-Event::state().\index{KHTMLPart@{KHTMLPart}!khtmlMouseMoveEvent@{khtmlMouseMoveEvent}}
\index{khtmlMouseMoveEvent@{khtmlMouseMoveEvent}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::khtml\-Mouse\-Move\-Event (khtml::Mouse\-Move\-Event $\ast$ {\em event})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKHTMLPart_b5}


Eventhandler for the khtml::Mouse\-Mouse\-Move\-Event. 



Definition at line 6154 of file khtml\_\-part.cpp.

References KMultiple\-Drag::add\-Drag\-Object(), QString::arg(), complete\-URL(), QScroll\-View::contents\-To\-Viewport(), KGlobal\-Settings::dnd\-Event\-Delay(), QDrag\-Object::drag(), DOM::Node::element\-Id(), QMouse\-Event::global\-Pos(), DOM::Node::handle(), is\-Editable(), DOM::Node::is\-Null(), QPixmap::is\-Null(), DOM::DOMString::length(), KURLDrag::meta\-Data(), KMime\-Type::mime\-Type(), parent\-Part(), KMime\-Type::pixmap\-For\-URL(), popup\-Menu(), QMouse\-Event::pos(), KURL::set\-Pass(), QDrag\-Object::set\-Pixmap(), QMouse\-Event::state(), DOM::DOMString::string(), view(), QMouse\-Event::x(), and QMouse\-Event::y().\index{KHTMLPart@{KHTMLPart}!khtmlMouseReleaseEvent@{khtmlMouseReleaseEvent}}
\index{khtmlMouseReleaseEvent@{khtmlMouseReleaseEvent}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::khtml\-Mouse\-Release\-Event (khtml::Mouse\-Release\-Event $\ast$ {\em event})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKHTMLPart_b6}


Eventhandler for the khtml::Mouse\-Mouse\-Release\-Event. 



Definition at line 6293 of file khtml\_\-part.cpp.

References QMouse\-Event::button(), KParts::Browser\-Interface::call\-Method(), QObject::connect(), d, QObject::disconnect(), endl(), DOM::Node::first\-Child(), KShortcut::is\-Null(), DOM::Node::is\-Null(), kd\-Debug(), DOM::Node::next\-Sibling(), DOM::Node::parent\-Node(), parent\-Part(), QString::replace(), selected\-Text(), selection\-Changed(), and KParts::Part::set\-Status\-Bar\-Text().\index{KHTMLPart@{KHTMLPart}!khtmlDrawContentsEvent@{khtmlDrawContentsEvent}}
\index{khtmlDrawContentsEvent@{khtmlDrawContentsEvent}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::khtml\-Draw\-Contents\-Event (khtml::Draw\-Contents\-Event $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKHTMLPart_b7}


Eventhandler for the khtml::Draw\-Contents\-Event. 



Definition at line 6407 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!guiActivateEvent@{guiActivateEvent}}
\index{guiActivateEvent@{guiActivateEvent}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::gui\-Activate\-Event ({\bf KParts::GUIActivate\-Event} $\ast$ {\em event})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKHTMLPart_b8}


Internal reimplementation of {\bf KParts::Part::gui\-Activate\-Event} . 



Definition at line 6411 of file khtml\_\-part.cpp.

References QPtr\-List::append(), and KXMLGUIClient::plug\-Action\-List().\index{KHTMLPart@{KHTMLPart}!openFile@{openFile}}
\index{openFile@{openFile}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::open\-File ()\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKHTMLPart_b9}


Internal empty reimplementation of {\bf KParts::Read\-Only\-Part::open\-File} . 



Implements {\bf KParts::Read\-Only\-Part}.

Definition at line 1465 of file khtml\_\-part.cpp.\index{KHTMLPart@{KHTMLPart}!createPart@{createPart}}
\index{createPart@{createPart}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KParts::Read\-Only\-Part} $\ast$ KHTMLPart::create\-Part ({\bf QWidget} $\ast$ {\em parent\-Widget}, const char $\ast$ {\em widget\-Name}, {\bf QObject} $\ast$ {\em parent}, const char $\ast$ {\em name}, const {\bf QString} \& {\em mimetype}, {\bf QString} \& {\em service\-Name}, {\bf QString\-List} \& {\em service\-Types}, const {\bf QString\-List} \& {\em params})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKHTMLPart_b11}


This method is called when a new embedded object (include html frames) is to be created. 

Reimplement it if you want to add support for certain embeddable objects without registering them in the {\bf KDE} wide registry system (KSy\-Co\-Ca) . Another reason for re-implementing this method could be if you want to derive from KTHMLPart and also want all html frame objects to be a object of your derived type, in which case you should return a new instance for the mimetype 'text/html' . 

Definition at line 4430 of file khtml\_\-part.cpp.

References QString::append(), QValue\-List::begin(), KLib\-Factory::create(), QValue\-List::end(), endl(), KLib\-Loader::factory(), QObject::inherits(), QValue\-List::is\-Empty(), kd\-Warning(), KTrader::query(), KLib\-Loader::self(), and KTrader::self().\index{KHTMLPart@{KHTMLPart}!doOpenStream@{doOpenStream}}
\index{doOpenStream@{doOpenStream}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::do\-Open\-Stream (const {\bf QString} \& {\em mime\-Type})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKHTMLPart_b15}


Implements the streaming API of {\bf KParts::Read\-Only\-Part}. 



Definition at line 1965 of file khtml\_\-part.cpp.

References begin(), KMime\-Type::mime\-Type(), and KParts::Read\-Only\-Part::url().\index{KHTMLPart@{KHTMLPart}!doWriteStream@{doWriteStream}}
\index{doWriteStream@{doWriteStream}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::do\-Write\-Stream (const {\bf QByte\-Array} \& {\em data})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKHTMLPart_b16}


Implements the streaming API of {\bf KParts::Read\-Only\-Part}. 



Definition at line 1976 of file khtml\_\-part.cpp.

References write().\index{KHTMLPart@{KHTMLPart}!doCloseStream@{doCloseStream}}
\index{doCloseStream@{doCloseStream}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KHTMLPart::do\-Close\-Stream ()\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKHTMLPart_b17}


Implements the streaming API of {\bf KParts::Read\-Only\-Part}. 



Definition at line 1982 of file khtml\_\-part.cpp.

References end().\index{KHTMLPart@{KHTMLPart}!setActiveNode@{setActiveNode}}
\index{setActiveNode@{setActiveNode}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-Active\-Node (const {\bf DOM::Node} \& {\em node})\hspace{0.3cm}{\tt  [slot]}}\label{classKHTMLPart_i0}


Sets the focused node of the document to the specified node. 

If the node is a form control, the control will receive focus in the same way that it would if the user had clicked on it or tabbed to it with the keyboard. For most other types of elements, there is no visual indication of whether or not they are focused.

See active\-Node

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em node}]The node to focus \end{description}
\end{Desc}


Definition at line 6654 of file khtml\_\-part.cpp.

References QRect::bottom(), QRect::left(), QRect::right(), and QRect::top().\index{KHTMLPart@{KHTMLPart}!stopAnimations@{stopAnimations}}
\index{stopAnimations@{stopAnimations}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::stop\-Animations ()\hspace{0.3cm}{\tt  [slot]}}\label{classKHTMLPart_i1}


Stops all animated images on the current and child pages. 



Definition at line 1995 of file khtml\_\-part.cpp.

References end().\index{KHTMLPart@{KHTMLPart}!executeScript@{executeScript}}
\index{executeScript@{executeScript}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QVariant} KHTMLPart::execute\-Script (const {\bf QString} \& {\em script})\hspace{0.3cm}{\tt  [slot]}}\label{classKHTMLPart_i3}


Execute the specified snippet of Java\-Script code. 

Returns {\tt true} if Java\-Script was enabled, no error occurred and the code returned true itself or {\tt false} otherwise. 

\begin{Desc}
\item[{\bf Deprecated}], use execute\-String( DOM::Node(), script) \end{Desc}


Definition at line 1156 of file khtml\_\-part.cpp.

References execute\-Script().\index{KHTMLPart@{KHTMLPart}!setCaretMode@{setCaretMode}}
\index{setCaretMode@{setCaretMode}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-Caret\-Mode (bool {\em enable})\hspace{0.3cm}{\tt  [slot]}}\label{classKHTMLPart_i4}


Enables/disables caret mode. 

Enabling caret mode displays a caret which can be used to navigate the document using the keyboard only. Caret mode is switched off by default.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em enable}]{\tt true} to enable, {\tt false} to disable caret mode. \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 2578 of file khtml\_\-part.cpp.

References KHTMLView::caret\-Off(), endl(), KHTMLView::ensure\-Caret\-Visible(), KHTMLView::init\-Caret(), is\-Caret\-Mode(), is\-Editable(), kd\-Debug(), and view().\index{KHTMLPart@{KHTMLPart}!setEditable@{setEditable}}
\index{setEditable@{setEditable}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-Editable (bool {\em enable})\hspace{0.3cm}{\tt  [slot]}}\label{classKHTMLPart_i5}


Makes the document editable. 

Setting this property to {\tt true} makes the document, and its subdocuments (such as frames, iframes, objects) editable as a whole. FIXME: insert more information about navigation, features etc. as seen fit

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em enable}]{\tt true} to set document editable, {\tt false} to set it read-only. \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.2 (pending, do not use) \end{Desc}


Definition at line 2600 of file khtml\_\-part.cpp.

References KHTMLView::caret\-Off(), KHTMLView::ensure\-Caret\-Visible(), KHTMLView::init\-Caret(), is\-Caret\-Mode(), is\-Editable(), and view().\index{KHTMLPart@{KHTMLPart}!setCaretVisible@{setCaretVisible}}
\index{setCaretVisible@{setCaretVisible}!KHTMLPart@{KHTMLPart}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLPart::set\-Caret\-Visible (bool {\em show})\hspace{0.3cm}{\tt  [slot]}}\label{classKHTMLPart_i6}


Sets the visibility of the caret. 

This methods displays or hides the caret regardless of the current caret display policy (see set\-Caret\-Display\-Non\-Focused), and regardless of focus.

The caret will be shown/hidden only under at least one of the following conditions: \begin{itemize}
\item the document is editable \item the document is in caret mode \item the document's currently focused element is editable\end{itemize}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em show}]{\tt true} to make visible, {\tt false} to hide. \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 2651 of file khtml\_\-part.cpp.

References KHTMLView::caret\-Off(), KHTMLView::caret\-On(), is\-Caret\-Mode(), is\-Editable(), and view().

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