\section{KHTMLView Class Reference}
\label{classKHTMLView}\index{KHTMLView@{KHTMLView}}
Renders and displays HTML in a {\bf QScroll\-View}.  


{\tt \#include $<$khtmlview.h$>$}

Inheritance diagram for KHTMLView:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=54pt]{classKHTMLView__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KHTMLView:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=163pt]{classKHTMLView__coll__graph}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf finished\-Layout} ()\label{classKHTMLView_l0}

\item 
void {\bf cleared} ()\label{classKHTMLView_l1}

\item 
void {\bf zoom\-View} (int)\label{classKHTMLView_l2}

\item 
void {\bf hide\-Access\-Keys} ()\label{classKHTMLView_l3}

\item 
void {\bf repaint\-Access\-Keys} ()\label{classKHTMLView_l4}

\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KHTMLView} ({\bf KHTMLPart} $\ast$part, {\bf QWidget} $\ast$parent, const char $\ast$name=0)
\item 
{\bf KHTMLPart} $\ast$ {\bf part} () const 
\item 
int {\bf frame\-Width} () const \label{classKHTMLView_a3}

\item 
void {\bf set\-Margin\-Width} (int x)
\item 
int {\bf margin\-Width} () const 
\item 
void {\bf set\-Margin\-Height} (int y)\label{classKHTMLView_a6}

\item 
int {\bf margin\-Height} ()
\item 
virtual void {\bf set\-VScroll\-Bar\-Mode} (Scroll\-Bar\-Mode mode)
\item 
virtual void {\bf set\-HScroll\-Bar\-Mode} (Scroll\-Bar\-Mode mode)
\item 
void {\bf print} ()
\item 
void {\bf print} (bool quick)
\item 
void {\bf layout} ()
\item 
void {\bf display\-Access\-Keys} ()
\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf slot\-Palette\-Changed} ()\label{classKHTMLView_j0}

\item 
void {\bf slot\-Scroll\-Bar\-Moved} ()\label{classKHTMLView_j1}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf clear} ()\label{classKHTMLView_b0}

\item 
virtual void {\bf resize\-Event} ({\bf QResize\-Event} $\ast$event)\label{classKHTMLView_b1}

\item 
virtual void {\bf show\-Event} ({\bf QShow\-Event} $\ast$)\label{classKHTMLView_b2}

\item 
virtual void {\bf hide\-Event} ({\bf QHide\-Event} $\ast$)\label{classKHTMLView_b3}

\item 
virtual bool {\bf focus\-Next\-Prev\-Child} (bool next)\label{classKHTMLView_b4}

\item 
virtual void {\bf draw\-Contents} ({\bf QPainter} $\ast$p, int clipx, int clipy, int clipw, int cliph)\label{classKHTMLView_b5}

\item 
virtual void {\bf draw\-Contents} ({\bf QPainter} $\ast$)\label{classKHTMLView_b6}

\item 
virtual void {\bf viewport\-Mouse\-Press\-Event} ({\bf QMouse\-Event} $\ast$)\label{classKHTMLView_b7}

\item 
virtual void {\bf focus\-In\-Event} ({\bf QFocus\-Event} $\ast$)\label{classKHTMLView_b8}

\item 
virtual void {\bf focus\-Out\-Event} ({\bf QFocus\-Event} $\ast$)\label{classKHTMLView_b9}

\item 
virtual void {\bf viewport\-Mouse\-Double\-Click\-Event} ({\bf QMouse\-Event} $\ast$)\label{classKHTMLView_b10}

\item 
virtual void {\bf viewport\-Mouse\-Move\-Event} ({\bf QMouse\-Event} $\ast$)\label{classKHTMLView_b11}

\item 
virtual void {\bf viewport\-Mouse\-Release\-Event} ({\bf QMouse\-Event} $\ast$)\label{classKHTMLView_b12}

\item 
virtual void {\bf viewport\-Resize\-Event} ({\bf QResize\-Event} $\ast$)\label{classKHTMLView_b13}

\item 
virtual void {\bf viewport\-Wheel\-Event} ({\bf QWheel\-Event} $\ast$)\label{classKHTMLView_b14}

\item 
virtual void {\bf drag\-Enter\-Event} ({\bf QDrag\-Enter\-Event} $\ast$)\label{classKHTMLView_b15}

\item 
virtual void {\bf drop\-Event} ({\bf QDrop\-Event} $\ast$)\label{classKHTMLView_b16}

\item 
virtual void {\bf close\-Event} ({\bf QClose\-Event} $\ast$)\label{classKHTMLView_b17}

\item 
virtual bool {\bf event\-Filter} ({\bf QObject} $\ast$, {\bf QEvent} $\ast$)\label{classKHTMLView_b18}

\item 
void {\bf key\-Press\-Event} ({\bf QKey\-Event} $\ast$\_\-ke)\label{classKHTMLView_b19}

\item 
void {\bf key\-Release\-Event} ({\bf QKey\-Event} $\ast$\_\-ke)\label{classKHTMLView_b20}

\item 
void {\bf contents\-Context\-Menu\-Event} ({\bf QContext\-Menu\-Event} $\ast$\_\-ce)\label{classKHTMLView_b21}

\item 
void {\bf do\-Auto\-Scroll} ()\label{classKHTMLView_b22}

\item 
void {\bf timer\-Event} ({\bf QTimer\-Event} $\ast$)\label{classKHTMLView_b23}

\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf DOM::HTMLDocument\-Impl}\label{classKHTMLView_n0}

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

\item 
class {\bf DOM::HTMLGeneric\-Form\-Element\-Impl}\label{classKHTMLView_n2}

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

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

\item 
class {\bf DOM::HTMLInput\-Element\-Impl}\label{classKHTMLView_n5}

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

\item 
class {\bf KHTMLPart}\label{classKHTMLView_n7}

\item 
class {\bf khtml::Render\-Canvas}\label{classKHTMLView_n8}

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

\item 
class {\bf khtml::Render\-Line\-Edit}\label{classKHTMLView_n10}

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

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

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

\item 
class {\bf khtml::Line\-Edit\-Widget}\label{classKHTMLView_n14}

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

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

\item 
void {\bf khtml::apply\-Rule} (DOM::CSSProperty $\ast${\bf prop})\label{classKHTMLView_n17}

\end{CompactItemize}


\subsection{Detailed Description}
Renders and displays HTML in a {\bf QScroll\-View}. 

Suitable for use as an application's main view. 



Definition at line 77 of file khtmlview.h.

\subsection{Constructor \& Destructor Documentation}
\index{KHTMLView@{KHTMLView}!KHTMLView@{KHTMLView}}
\index{KHTMLView@{KHTMLView}!KHTMLView@{KHTMLView}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KHTMLView::KHTMLView ({\bf KHTMLPart} $\ast$ {\em part}, {\bf QWidget} $\ast$ {\em parent}, const char $\ast$ {\em name} = {\tt 0})}\label{classKHTMLView_a0}


Constructs a KHTMLView. 



Definition at line 458 of file khtmlview.cpp.

References QScroll\-View::contents\-Moving(), QScroll\-View::enable\-Clipper(), part(), KImage\-IO::register\-Formats(), QScroll\-View::set\-HScroll\-Bar\-Mode(), QScroll\-View::set\-Resize\-Policy(), QScroll\-View::set\-VScroll\-Bar\-Mode(), KHTMLPart::show(), and QScroll\-View::viewport().

\subsection{Member Function Documentation}
\index{KHTMLView@{KHTMLView}!part@{part}}
\index{part@{part}!KHTMLView@{KHTMLView}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KHTMLPart}$\ast$ KHTMLView::part () const\hspace{0.3cm}{\tt  [inline]}}\label{classKHTMLView_a2}


Returns a pointer to the {\bf KHTMLPart}{\rm (p.\,\pageref{classKHTMLPart})} that is rendering the page. 



Definition at line 112 of file khtmlview.h.

Referenced by khtml::CSSStyle\-Selector::CSSStyle\-Selector(), and KHTMLView().\index{KHTMLView@{KHTMLView}!setMarginWidth@{setMarginWidth}}
\index{setMarginWidth@{setMarginWidth}!KHTMLView@{KHTMLView}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLView::set\-Margin\-Width (int {\em x})}\label{classKHTMLView_a4}


Sets a margin in x direction. 



Definition at line 729 of file khtmlview.cpp.\index{KHTMLView@{KHTMLView}!marginWidth@{marginWidth}}
\index{marginWidth@{marginWidth}!KHTMLView@{KHTMLView}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KHTMLView::margin\-Width () const\hspace{0.3cm}{\tt  [inline]}}\label{classKHTMLView_a5}


Returns the margin width. 

A return value of -1 means the default value will be used. 

Definition at line 126 of file khtmlview.h.\index{KHTMLView@{KHTMLView}!marginHeight@{marginHeight}}
\index{marginHeight@{marginHeight}!KHTMLView@{KHTMLView}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KHTMLView::margin\-Height ()\hspace{0.3cm}{\tt  [inline]}}\label{classKHTMLView_a7}


Returns the margin height. 

A return value of -1 means the default value will be used. 

Definition at line 138 of file khtmlview.h.\index{KHTMLView@{KHTMLView}!setVScrollBarMode@{setVScrollBarMode}}
\index{setVScrollBarMode@{setVScrollBarMode}!KHTMLView@{KHTMLView}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLView::set\-VScroll\-Bar\-Mode (Scroll\-Bar\-Mode {\em mode})\hspace{0.3cm}{\tt  [virtual]}}\label{classKHTMLView_a8}


Sets verticals scrollbar mode. 

Reimplemented for internal reasons. 

Reimplemented from {\bf QScroll\-View}.

Definition at line 2526 of file khtmlview.cpp.

References QScroll\-View::set\-VScroll\-Bar\-Mode().\index{KHTMLView@{KHTMLView}!setHScrollBarMode@{setHScrollBarMode}}
\index{setHScrollBarMode@{setHScrollBarMode}!KHTMLView@{KHTMLView}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLView::set\-HScroll\-Bar\-Mode (Scroll\-Bar\-Mode {\em mode})\hspace{0.3cm}{\tt  [virtual]}}\label{classKHTMLView_a9}


Sets horizontal scrollbar mode. 

Reimplemented for internal reasons. 

Reimplemented from {\bf QScroll\-View}.

Definition at line 2536 of file khtmlview.cpp.

References QScroll\-View::set\-HScroll\-Bar\-Mode().\index{KHTMLView@{KHTMLView}!print@{print}}
\index{print@{print}!KHTMLView@{KHTMLView}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLView::print ()}\label{classKHTMLView_a10}


Prints the HTML document. 



Definition at line 2295 of file khtmlview.cpp.\index{KHTMLView@{KHTMLView}!print@{print}}
\index{print@{print}!KHTMLView@{KHTMLView}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLView::print (bool {\em quick})}\label{classKHTMLView_a11}


Prints the HTML document. 

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


Definition at line 2300 of file khtmlview.cpp.

References QString::arg(), QPainter::begin(), QPainter::bounding\-Rect(), KString\-Handler::csqueeze(), QPainter::draw\-Text(), QPainter::end(), endl(), QPainter::font\-Metrics(), KLocale::format\-Date(), QPaint\-Device\-Metrics::height(), QString::is\-Empty(), kd\-Debug(), KGlobal::locale(), QPainter::reset\-XForm(), QPainter::scale(), QPainter::set\-Clip\-Rect(), QPainter::set\-Font(), QPainter::set\-Pen(), QPainter::translate(), QScroll\-View::viewport(), QPaint\-Device\-Metrics::width(), KHTMLPart::xml\-Doc\-Impl(), and KHTMLPart::zoom\-Factor().\index{KHTMLView@{KHTMLView}!layout@{layout}}
\index{layout@{layout}!KHTMLView@{KHTMLView}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLView::layout ()}\label{classKHTMLView_a12}


ensure the display is up to date 



Definition at line 741 of file khtmlview.cpp.

References display\-Access\-Keys(), endl(), QScroll\-View::horizontal\-Scroll\-Bar(), KHTMLPart::is\-Caret\-Mode(), KHTMLPart::is\-Editable(), kd\-Debug(), QScroll\-View::set\-HScroll\-Bar\-Mode(), QScroll\-View::set\-VScroll\-Bar\-Mode(), QScroll\-View::vertical\-Scroll\-Bar(), QScroll\-View::visible\-Height(), QScroll\-View::visible\-Width(), and KHTMLPart::xml\-Doc\-Impl().\index{KHTMLView@{KHTMLView}!displayAccessKeys@{displayAccessKeys}}
\index{displayAccessKeys@{displayAccessKeys}!KHTMLView@{KHTMLView}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLView::display\-Access\-Keys ()}\label{classKHTMLView_a13}


Display all accesskeys in small tooltips. 



Definition at line 2137 of file khtmlview.cpp.

References QScroll\-View::add\-Child(), QScroll\-View::contents\-Height(), QScroll\-View::contents\-Width(), QRect::height(), KMIN, QRect::left(), DOM::DOMString::length(), DOM::DOMString::string(), QRect::top(), QScroll\-View::viewport(), QRect::width(), and KHTMLPart::xml\-Doc\-Impl().

Referenced by layout().

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