\section{khtml::KHTMLParser Class Reference}
\label{classkhtml_1_1KHTMLParser}\index{khtml::KHTMLParser@{khtml::KHTMLParser}}
The parser for html.  


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

Collaboration diagram for khtml::KHTMLParser:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=177pt]{classkhtml_1_1KHTMLParser__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KHTMLParser} ({\bf KHTMLView} $\ast$w, DOM::Document\-Ptr $\ast$i)\label{classkhtml_1_1KHTMLParser_a0}

\item 
{\bf KHTMLParser} (DOM::Document\-Fragment\-Impl $\ast$frag, DOM::Document\-Ptr $\ast$doc)\label{classkhtml_1_1KHTMLParser_a1}

\item 
void {\bf parse\-Token} (Token $\ast$\_\-t)
\begin{CompactList}\small\item\em parses one token delivered by the tokenizer \item\end{CompactList}\item 
void {\bf reset} ()
\begin{CompactList}\small\item\em resets the parser \item\end{CompactList}\item 
bool {\bf skip\-Mode} () const \label{classkhtml_1_1KHTMLParser_a5}

\item 
bool {\bf no\-Spaces} () const \label{classkhtml_1_1KHTMLParser_a6}

\item 
bool {\bf pre\-Mode} () const \label{classkhtml_1_1KHTMLParser_a7}

\item 
bool {\bf select\-Mode} () const \label{classkhtml_1_1KHTMLParser_a8}

\item 
DOM::HTMLDocument\-Impl $\ast$ {\bf doc} () const \label{classkhtml_1_1KHTMLParser_a9}

\item 
DOM::Document\-Ptr $\ast$ {\bf doc\-Ptr} () const \label{classkhtml_1_1KHTMLParser_a10}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
DOM::Node\-Impl $\ast$ {\bf get\-Element} (Token $\ast$)\label{classkhtml_1_1KHTMLParser_b0}

\item 
void {\bf process\-Close\-Tag} (Token $\ast$)\label{classkhtml_1_1KHTMLParser_b1}

\item 
bool {\bf insert\-Node} (DOM::Node\-Impl $\ast$n, bool flat=false)\label{classkhtml_1_1KHTMLParser_b2}

\item 
void {\bf push\-Block} (int \_\-id, int \_\-level)\label{classkhtml_1_1KHTMLParser_b3}

\item 
void {\bf pop\-Block} (int \_\-id)\label{classkhtml_1_1KHTMLParser_b4}

\item 
void {\bf pop\-One\-Block} ()\label{classkhtml_1_1KHTMLParser_b5}

\item 
void {\bf pop\-Inline\-Blocks} ()\label{classkhtml_1_1KHTMLParser_b6}

\item 
void {\bf free\-Block} (void)\label{classkhtml_1_1KHTMLParser_b7}

\item 
void {\bf create\-Head} ()\label{classkhtml_1_1KHTMLParser_b8}

\item 
DOM::Node\-Impl $\ast$ {\bf handle\-Isindex} (Token $\ast$t)\label{classkhtml_1_1KHTMLParser_b9}

\item 
void {\bf start\-Body} ()\label{classkhtml_1_1KHTMLParser_b10}

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
{\bf KHTMLView} $\ast$ {\bf HTMLWidget}\label{classkhtml_1_1KHTMLParser_p0}

\item 
DOM::Document\-Ptr $\ast$ {\bf document}\label{classkhtml_1_1KHTMLParser_p1}

\item 
DOM::Node\-Impl $\ast$ {\bf current}\label{classkhtml_1_1KHTMLParser_p2}

\item 
HTMLStack\-Elem $\ast$ {\bf block\-Stack}\label{classkhtml_1_1KHTMLParser_p3}

\item 
ushort $\ast$ {\bf forbidden\-Tag}\label{classkhtml_1_1KHTMLParser_p4}

\item 
DOM::HTMLForm\-Element\-Impl $\ast$ {\bf form}\label{classkhtml_1_1KHTMLParser_p5}

\item 
DOM::HTMLMap\-Element\-Impl $\ast$ {\bf map}\label{classkhtml_1_1KHTMLParser_p6}

\item 
DOM::HTMLHead\-Element\-Impl $\ast$ {\bf head}\label{classkhtml_1_1KHTMLParser_p7}

\item 
DOM::Node\-Impl $\ast$ {\bf isindex}\label{classkhtml_1_1KHTMLParser_p8}

\item 
bool {\bf in\-Body}\label{classkhtml_1_1KHTMLParser_p9}

\item 
bool {\bf have\-Content}\label{classkhtml_1_1KHTMLParser_p10}

\item 
bool {\bf have\-Body}\label{classkhtml_1_1KHTMLParser_p11}

\item 
bool {\bf have\-Frame\-Set}\label{classkhtml_1_1KHTMLParser_p12}

\item 
bool {\bf m\_\-inline}\label{classkhtml_1_1KHTMLParser_p13}

\item 
bool {\bf end}\label{classkhtml_1_1KHTMLParser_p14}

\item 
bool {\bf have\-Konq\-Block}\label{classkhtml_1_1KHTMLParser_p15}

\item 
bool {\bf in\-Select}\label{classkhtml_1_1KHTMLParser_p16}

\item 
int {\bf in\-Pre}\label{classkhtml_1_1KHTMLParser_p17}

\item 
int {\bf discard\_\-until}\label{classkhtml_1_1KHTMLParser_p18}

\item 
bool {\bf head\-Loaded}\label{classkhtml_1_1KHTMLParser_p19}

\end{CompactItemize}


\subsection{Detailed Description}
The parser for html. 

It receives a stream of tokens from the HTMLTokenizer, and builds up the Document structure form it. 



Definition at line 68 of file htmlparser.h.

\subsection{Member Function Documentation}
\index{khtml::KHTMLParser@{khtml::KHTMLParser}!parseToken@{parseToken}}
\index{parseToken@{parseToken}!khtml::KHTMLParser@{khtml::KHTMLParser}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLParser::parse\-Token (Token $\ast$ {\em \_\-t})}\label{classkhtml_1_1KHTMLParser_a3}


parses one token delivered by the tokenizer 



Definition at line 189 of file htmlparser.cpp.

References DOM::DOMString::string().\index{khtml::KHTMLParser@{khtml::KHTMLParser}!reset@{reset}}
\index{reset@{reset}!khtml::KHTMLParser@{khtml::KHTMLParser}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KHTMLParser::reset ()}\label{classkhtml_1_1KHTMLParser_a4}


resets the parser 



Definition at line 162 of file htmlparser.cpp.

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