\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=58pt]{classKHTMLView__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KHTMLView:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=177pt]{classKHTMLView__coll__graph}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf cleared} ()\label{classKHTMLView_l0}

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

\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KHTMLView} ({\bf KHTMLPart} $\ast$part, {\bf QWidget} $\ast$parent, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Constructs a KHTMLView. \item\end{CompactList}\item 
{\bf KHTMLPart} $\ast$ {\bf part} () const 
\begin{CompactList}\small\item\em Returns a pointer to the {\bf KHTMLPart}{\rm (p.\,\pageref{classKHTMLPart})} that is rendering the page. \item\end{CompactList}\item 
int {\bf frame\-Width} () const \label{classKHTMLView_a3}

\item 
void {\bf set\-Margin\-Width} (int x)
\begin{CompactList}\small\item\em Sets a margin in x direction. \item\end{CompactList}\item 
int {\bf margin\-Width} () const 
\begin{CompactList}\small\item\em Returns the margin width. \item\end{CompactList}\item 
void {\bf set\-Margin\-Height} (int y)\label{classKHTMLView_a6}

\item 
int {\bf margin\-Height} ()
\begin{CompactList}\small\item\em Returns the margin height. \item\end{CompactList}\item 
virtual void {\bf set\-VScroll\-Bar\-Mode} (Scroll\-Bar\-Mode mode)
\begin{CompactList}\small\item\em Sets verticals scrollbar mode. \item\end{CompactList}\item 
virtual void {\bf set\-HScroll\-Bar\-Mode} (Scroll\-Bar\-Mode mode)
\begin{CompactList}\small\item\em Sets horizontal scrollbar mode. \item\end{CompactList}\item 
void {\bf print} ()
\begin{CompactList}\small\item\em Prints the HTML document. \item\end{CompactList}\item 
void {\bf layout} ()
\begin{CompactList}\small\item\em ensure the display is up to date \item\end{CompactList}\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\-Out\-Event} ({\bf QFocus\-Event} $\ast$)\label{classKHTMLView_b8}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

\item 
class {\bf khtml::Render\-Root}\label{classKHTMLView_n6}

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

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

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

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

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

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

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

\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 71 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} = 0)}\label{classKHTMLView_a0}


Constructs a KHTMLView. 



Definition at line 255 of file khtmlview.cpp.

References QScroll\-View::contents\-Moving(), QScroll\-View::enable\-Clipper(), KStd\-Accel::name(), KImage\-IO::register\-Formats(), QScroll\-View::set\-HScroll\-Bar\-Mode(), QScroll\-View::set\-Resize\-Policy(), QScroll\-View::set\-VScroll\-Bar\-Mode(), 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 103 of file khtmlview.h.

Referenced by khtml::CSSStyle\-Selector::CSSStyle\-Selector().\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 417 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 117 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 129 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 1375 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 1385 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 1157 of file khtmlview.cpp.

References QString::arg(), QPainter::begin(), QPainter::bounding\-Rect(), KString\-Handler::csqueeze(), QDate::current\-Date(), QPainter::draw\-Text(), QPainter::end(), QPainter::font\-Metrics(), KLocale::format\-Date(), QPaint\-Device\-Metrics::height(), QString::is\-Empty(), 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_a11}


ensure the display is up to date 



Definition at line 429 of file khtmlview.cpp.

References QScroll\-View::set\-HScroll\-Bar\-Mode(), QScroll\-View::set\-VScroll\-Bar\-Mode(), QScroll\-View::visible\-Height(), QScroll\-View::visible\-Width(), and KHTMLPart::xml\-Doc\-Impl().

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