2 % automatically generated by HelpGen from
3 % htmlwinparser.tex at 14/Mar/99 20:13:37
6 \section{\class{wxHtmlWinParser
}}\label{wxhtmlwinparser
}
8 This class is derived from
\helpref{wxHtmlParser
}{wxhtmlparser
} and
9 its mail goal is to parse HTML input so that it can be displayed in
10 \helpref{wxHtmlWindow
}{wxhtmlwindow
}. It uses special
11 \helpref{wxHtmlWinTagHandler
}{wxhtmlwintaghandler
}.
16 \item Product of parsing is wxHtmlCell (resp. wxHtmlContainer) object.
17 \item This parser produces temporary data! You should call
18 \helpref{delete GetTempData()
}{wxhtmlparsergettempdata
}!
21 \wxheading{Derived from
}
23 \helpref{wxHtmlParser
}{wxhtmlparser
}
27 \helpref{Handlers overview
}{handlers
}
29 \latexignore{\rtfignore{\wxheading{Members
}}}
31 \membersection{wxHtmlWinParser::wxHtmlWinParser
}\label{wxhtmlwinparserwxhtmlwinparser
}
33 \func{}{wxHtmlWinParser
}{\void}
35 \func{}{wxHtmlWinParser
}{\param{wxWindow
}{*wnd
}}
37 Constructor. Don't use the default one, use constructor with
38 {\it wnd
} paremeter (
{\it wnd
} is pointer to associated
\helpref{wxHtmlWindow
}{wxhtmlwindow
})
40 \membersection{wxHtmlWinParser::SetDC
}\label{wxhtmlwinparsersetdc
}
42 \func{virtual void
}{SetDC
}{\param{wxDC
}{*dc
}}
44 Sets the DC. This must be called before
\helpref{Parse
}{wxhtmlparserparse
}!
46 \membersection{wxHtmlWinParser::GetDC
}\label{wxhtmlwinparsergetdc
}
48 \func{wxDC*
}{GetDC
}{\void}
50 Returns pointer to the DC used during parsing.
52 \membersection{wxHtmlWinParser::GetCharHeight
}\label{wxhtmlwinparsergetcharheight
}
54 \constfunc{int
}{GetCharHeight
}{\void}
56 Returns (average) char height in standard font. It's used as DC-independent metrics.
58 {\bf Note:
} This function doesn't return
{\it actual
} height. If you wanna
59 know height of current font, call
{\tt GetDC -> GetCharHeight()
}
61 \membersection{wxHtmlWinParser::GetCharWidth
}\label{wxhtmlwinparsergetcharwidth
}
63 \constfunc{int
}{GetCharWidth
}{\void}
65 Returns average char width in standard font. It's used as DC-independent metrics.
67 {\bf Note:
} This function doesn't return
{\it actual
} width. If you wanna
68 know height of current font, call
{\tt GetDC -> GetCharWidth()
}
70 \membersection{wxHtmlWinParser::GetWindow
}\label{wxhtmlwinparsergetwindow
}
72 \func{wxWindow*
}{GetWindow
}{\void}
74 Returns associated window (wxHtmlWindow). This may be NULL! (You should always
75 test if it is non-NULL. For example
{\tt TITLE
} handler sets window
76 title only if some window is associated, otherwise it does nothing)
79 \membersection{wxHtmlWinParser::SetFonts
}\label{wxhtmlwinparsersetfonts
}
81 \func{void
}{SetFonts
}{\param{wxString
}{normal
\_face},
\param{int
}{normal
\_italic\_mode},
\param{wxString
}{fixed
\_face},
\param{int
}{fixed
\_italic\_mode},
\param{int
}{*sizes
}}
83 Sets fonts. This method is identical to
\helpref{wxHtmlWindow::SetFonts
}{wxhtmlwindowsetfonts
}
85 \membersection{wxHtmlWinParser::AddModule
}\label{wxhtmlwinparseraddmodule
}
87 \func{static void
}{AddModule
}{\param{wxHtmlTagsModule
}{*module
}}
89 Adds
\helpref{module
}{handlers
} to the list of wxHtmlWinParser tag handler.
91 \membersection{wxHtmlWinParser::GetContainer
}\label{wxhtmlwinparsergetcontainer
}
93 \constfunc{wxHtmlContainerCell*
}{GetContainer
}{\void}
95 Returns pointer to the currectly opened container (see
\helpref{Overview
}{cells
}).
99 m_WParser -> GetContainer() -> InsertCell(new ...);
102 \membersection{wxHtmlWinParser::OpenContainer
}\label{wxhtmlwinparseropencontainer
}
104 \func{wxHtmlContainerCell*
}{OpenContainer
}{\void}
106 Opens new container and returns pointer to it (see
\helpref{Overview
}{cells
}).
109 %\membersection{wxHtmlWinParser::SetContainer}\label{wxhtmlwinparsersetcontainer}
111 %\func{wxHtmlContainerCell*}{SetContainer}{\param{wxHtmlContainerCell *}{c}}
113 %Allows you to directly set opened container. This is not recommended - you should use OpenContainer
117 \membersection{wxHtmlWinParser::CloseContainer
}\label{wxhtmlwinparserclosecontainer
}
119 \func{wxHtmlContainerCell*
}{CloseContainer
}{\void}
121 Closes the container, sets actual container to the parent one
122 and returns pointer to it (see
\helpref{Overview
}{cells
}).
124 \membersection{wxHtmlWinParser::GetFontSize
}\label{wxhtmlwinparsergetfontsize
}
126 \constfunc{int
}{GetFontSize
}{\void}
128 Returns actual font size (HTML size varies from -
2 to +
4)
130 \membersection{wxHtmlWinParser::SetFontSize
}\label{wxhtmlwinparsersetfontsize
}
132 \func{void
}{SetFontSize
}{\param{int
}{s
}}
134 Sets actual font size (HTML size varies from -
2 to +
4)
136 \membersection{wxHtmlWinParser::GetFontBold
}\label{wxhtmlwinparsergetfontbold
}
138 \constfunc{int
}{GetFontBold
}{\void}
140 Returns TRUE if actual font is bold, FALSE otherwise.
142 \membersection{wxHtmlWinParser::SetFontBold
}\label{wxhtmlwinparsersetfontbold
}
144 \func{void
}{SetFontBold
}{\param{int
}{x
}}
146 Sets bold flag of actualfont.
{\it x
} is either TRUE of FALSE.
148 \membersection{wxHtmlWinParser::GetFontItalic
}\label{wxhtmlwinparsergetfontitalic
}
150 \constfunc{int
}{GetFontItalic
}{\void}
152 Returns TRUE if actual font is italic, FALSE otherwise.
155 \membersection{wxHtmlWinParser::SetFontItalic
}\label{wxhtmlwinparsersetfontitalic
}
157 \func{void
}{SetFontItalic
}{\param{int
}{x
}}
159 Sets italic flag of actualfont.
{\it x
} is either TRUE of FALSE.
161 \membersection{wxHtmlWinParser::GetFontUnderlined
}\label{wxhtmlwinparsergetfontunderlined
}
163 \constfunc{int
}{GetFontUnderlined
}{\void}
165 Returns TRUE if actual font is underlined, FALSE otherwise.
167 \membersection{wxHtmlWinParser::SetFontUnderlined
}\label{wxhtmlwinparsersetfontunderlined
}
169 \func{void
}{SetFontUnderlined
}{\param{int
}{x
}}
171 Sets underlined flag of actualfont.
{\it x
} is either TRUE of FALSE.
173 \membersection{wxHtmlWinParser::GetFontFixed
}\label{wxhtmlwinparsergetfontfixed
}
175 \constfunc{int
}{GetFontFixed
}{\void}
177 Returns TRUE if actual font is fixed face, FALSE otherwise.
179 \membersection{wxHtmlWinParser::SetFontFixed
}\label{wxhtmlwinparsersetfontfixed
}
181 \func{void
}{SetFontFixed
}{\param{int
}{x
}}
183 Sets fixed face flag of actualfont.
{\it x
} is either TRUE of FALSE.
185 \membersection{wxHtmlWinParser::GetAlign
}\label{wxhtmlwinparsergetalign
}
187 \constfunc{int
}{GetAlign
}{\void}
189 Returns default horizontal alignment.
191 \membersection{wxHtmlWinParser::SetAlign
}\label{wxhtmlwinparsersetalign
}
193 \func{void
}{SetAlign
}{\param{int
}{a
}}
195 Sets default horizontal alignment (see
\helpref{wxHtmlContainerCell::SetAlignHor
}{wxhtmlcontainercellsetalignhor
}.
196 Alignment of newly opened container is set to this value.
198 \membersection{wxHtmlWinParser::GetLinkColor
}\label{wxhtmlwinparsergetlinkcolor
}
200 \constfunc{const wxColour\&
}{GetLinkColor
}{\void}
202 Returns
color of hypertext link text.
204 \membersection{wxHtmlWinParser::SetLinkColor
}\label{wxhtmlwinparsersetlinkcolor
}
206 \func{void
}{SetLinkColor
}{\param{const wxColour\&
}{clr
}}
208 Sets
color of hypertext link.
210 \membersection{wxHtmlWinParser::GetActualColor
}\label{wxhtmlwinparsergetactualcolor
}
212 \constfunc{const wxColour\&
}{GetActualColor
}{\void}
214 Returns actual text
color.
216 \membersection{wxHtmlWinParser::SetActualColor
}\label{wxhtmlwinparsersetactualcolor
}
218 \func{void
}{SetActualColor
}{\param{const wxColour\&
}{clr
}}
220 Sets actual text
color. Note: this DOESN'T change the
color!
221 You must create
\helpref{wxHtmlColourCell
}{wxhtmlcolourcell
} yourself.
223 \membersection{wxHtmlWinParser::GetLink
}\label{wxhtmlwinparsergetlink
}
225 \constfunc{const wxString\&
}{GetLink
}{\void}
227 Returns actual hypertext link. (This value is non-empty string
228 if the parser is between
{\tt <A>
} and
{\tt </A>
} tags,
229 wxEmptyString otherwise.
232 \membersection{wxHtmlWinParser::SetLink
}\label{wxhtmlwinparsersetlink
}
234 \func{void
}{SetLink
}{\param{const wxString\&
}{link
}}
236 Sets actual hypertext link. wxEmptyString means no link.
238 \membersection{wxHtmlWinParser::CreateCurrentFont
}\label{wxhtmlwinparsercreatecurrentfont
}
240 \func{virtual wxFont*
}{CreateCurrentFont
}{\void}
242 Creates font based on current setting (see
243 \helpref{SetFontSize
}{wxhtmlwinparsersetfontsize
},
244 \helpref{SetFontBold
}{wxhtmlwinparsersetfontbold
},
245 \helpref{SetFontItalic
}{wxhtmlwinparsersetfontitalic
},
246 \helpref{SetFontFixed
}{wxhtmlwinparsersetfontfixed
},
247 \helpref{SetFontUnderlined
}{wxhtmlwinparsersetfontunderlined
})
248 and returns pointer to it.
249 (If the font was already created only a pointer is returned.)
251 Fonts created during parsing are temporary data and are not freed on DoneParser.
252 You must call
\helpref{delete myparser->GetTempData();
}{wxhtmlparsergettempdata
}