1999-07-10 21:17:24 +00:00
|
|
|
%
|
|
|
|
% automatically generated by HelpGen from
|
|
|
|
% htmlwinparser.tex at 14/Mar/99 20:13:37
|
|
|
|
%
|
|
|
|
|
|
|
|
\section{\class{wxHtmlWinParser}}\label{wxhtmlwinparser}
|
|
|
|
|
|
|
|
This class is derived from \helpref{wxHtmlParser}{wxhtmlparser} and
|
|
|
|
its mail goal is to parse HTML input so that it can be displayed in
|
|
|
|
\helpref{wxHtmlWindow}{wxhtmlwindow}. It uses special
|
|
|
|
\helpref{wxHtmlWinTagHandler}{wxhtmlwintaghandler}.
|
|
|
|
|
|
|
|
\wxheading{Notes}
|
|
|
|
|
|
|
|
\begin{enumerate}
|
|
|
|
\item Product of parsing is wxHtmlCell (resp. wxHtmlContainer) object.
|
|
|
|
\item This parser produces temporary data! You should call
|
|
|
|
\helpref{delete GetTempData()}{wxhtmlparsergettempdata}!
|
|
|
|
\end{enumerate}
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxHtmlParser}{wxhtmlparser}
|
|
|
|
|
|
|
|
\wxheading{See Also}
|
|
|
|
|
|
|
|
\helpref{Handlers overview}{handlers}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxHtmlWinParser::wxHtmlWinParser}\label{wxhtmlwinparserwxhtmlwinparser}
|
|
|
|
|
|
|
|
\func{}{wxHtmlWinParser}{\void}
|
|
|
|
|
|
|
|
\func{}{wxHtmlWinParser}{\param{wxWindow }{*wnd}}
|
|
|
|
|
|
|
|
Constructor. Don't use the default one, use constructor with
|
|
|
|
{\it wnd} paremeter ({\it wnd} is pointer to associated \helpref{wxHtmlWindow}{wxhtmlwindow})
|
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlWinParser::AddModule}\label{wxhtmlwinparseraddmodule}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\func{static void}{AddModule}{\param{wxHtmlTagsModule }{*module}}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
Adds \helpref{module}{handlers} to the list of wxHtmlWinParser tag handler.
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlWinParser::CloseContainer}\label{wxhtmlwinparserclosecontainer}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\func{wxHtmlContainerCell*}{CloseContainer}{\void}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
Closes the container, sets actual container to the parent one
|
|
|
|
and returns pointer to it (see \helpref{Overview}{cells}).
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlWinParser::CreateCurrentFont}\label{wxhtmlwinparsercreatecurrentfont}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\func{virtual wxFont*}{CreateCurrentFont}{\void}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
Creates font based on current setting (see
|
|
|
|
\helpref{SetFontSize}{wxhtmlwinparsersetfontsize},
|
|
|
|
\helpref{SetFontBold}{wxhtmlwinparsersetfontbold},
|
|
|
|
\helpref{SetFontItalic}{wxhtmlwinparsersetfontitalic},
|
|
|
|
\helpref{SetFontFixed}{wxhtmlwinparsersetfontfixed},
|
|
|
|
\helpref{SetFontUnderlined}{wxhtmlwinparsersetfontunderlined})
|
|
|
|
and returns pointer to it.
|
|
|
|
(If the font was already created only a pointer is returned.)
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
Fonts created during parsing are temporary data and are not freed on DoneParser.
|
|
|
|
You must call \helpref{delete myparser->GetTempData();}{wxhtmlparsergettempdata}
|
|
|
|
to free the memory!
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlWinParser::GetActualColor}\label{wxhtmlwinparsergetactualcolor}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\constfunc{const wxColour\&}{GetActualColor}{\void}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
Returns actual text color.
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlWinParser::GetAlign}\label{wxhtmlwinparsergetalign}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\constfunc{int}{GetAlign}{\void}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
Returns default horizontal alignment.
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlWinParser::GetCharHeight}\label{wxhtmlwinparsergetcharheight}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\constfunc{int}{GetCharHeight}{\void}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
Returns (average) char height in standard font. It's used as DC-independent metrics.
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-25 13:46:48 +00:00
|
|
|
{\bf Note:} This function doesn't return {\it actual} height. If you want to
|
|
|
|
know the height of the current font, call {\tt GetDC -> GetCharHeight()}.
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlWinParser::GetCharWidth}\label{wxhtmlwinparsergetcharwidth}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\constfunc{int}{GetCharWidth}{\void}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
Returns average char width in standard font. It's used as DC-independent metrics.
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-25 13:46:48 +00:00
|
|
|
{\bf Note:} This function doesn't return {\it actual} width. If you want to
|
|
|
|
know the height of the current font, call {\tt GetDC -> GetCharWidth()}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
|
|
|
\membersection{wxHtmlWinParser::GetContainer}\label{wxhtmlwinparsergetcontainer}
|
|
|
|
|
|
|
|
\constfunc{wxHtmlContainerCell*}{GetContainer}{\void}
|
|
|
|
|
|
|
|
Returns pointer to the currectly opened container (see \helpref{Overview}{cells}).
|
|
|
|
Common use:
|
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
m_WParser -> GetContainer() -> InsertCell(new ...);
|
|
|
|
\end{verbatim}
|
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlWinParser::GetDC}\label{wxhtmlwinparsergetdc}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\func{wxDC*}{GetDC}{\void}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
Returns pointer to the DC used during parsing.
|
1999-07-10 21:17:24 +00:00
|
|
|
|
|
|
|
\membersection{wxHtmlWinParser::GetFontBold}\label{wxhtmlwinparsergetfontbold}
|
|
|
|
|
|
|
|
\constfunc{int}{GetFontBold}{\void}
|
|
|
|
|
|
|
|
Returns TRUE if actual font is bold, FALSE otherwise.
|
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlWinParser::GetFontFixed}\label{wxhtmlwinparsergetfontfixed}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\constfunc{int}{GetFontFixed}{\void}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
Returns TRUE if actual font is fixed face, FALSE otherwise.
|
1999-07-10 21:17:24 +00:00
|
|
|
|
|
|
|
\membersection{wxHtmlWinParser::GetFontItalic}\label{wxhtmlwinparsergetfontitalic}
|
|
|
|
|
|
|
|
\constfunc{int}{GetFontItalic}{\void}
|
|
|
|
|
|
|
|
Returns TRUE if actual font is italic, FALSE otherwise.
|
|
|
|
|
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlWinParser::GetFontSize}\label{wxhtmlwinparsergetfontsize}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\constfunc{int}{GetFontSize}{\void}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
Returns actual font size (HTML size varies from -2 to +4)
|
1999-07-10 21:17:24 +00:00
|
|
|
|
|
|
|
\membersection{wxHtmlWinParser::GetFontUnderlined}\label{wxhtmlwinparsergetfontunderlined}
|
|
|
|
|
|
|
|
\constfunc{int}{GetFontUnderlined}{\void}
|
|
|
|
|
|
|
|
Returns TRUE if actual font is underlined, FALSE otherwise.
|
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlWinParser::GetLink}\label{wxhtmlwinparsergetlink}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\constfunc{const wxString\&}{GetLink}{\void}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
Returns actual hypertext link. (This value is non-empty string
|
|
|
|
if the parser is between {\tt <A>} and {\tt </A>} tags,
|
|
|
|
wxEmptyString otherwise.
|
1999-07-10 21:17:24 +00:00
|
|
|
|
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlWinParser::GetLinkColor}\label{wxhtmlwinparsergetlinkcolor}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\constfunc{const wxColour\&}{GetLinkColor}{\void}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
Returns color of hypertext link text.
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlWinParser::GetWindow}\label{wxhtmlwinparsergetwindow}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\func{wxWindow*}{GetWindow}{\void}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
Returns associated window (wxHtmlWindow). This may be NULL! (You should always
|
|
|
|
test if it is non-NULL. For example {\tt TITLE} handler sets window
|
|
|
|
title only if some window is associated, otherwise it does nothing)
|
1999-07-10 21:17:24 +00:00
|
|
|
|
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlWinParser::OpenContainer}\label{wxhtmlwinparseropencontainer}
|
|
|
|
|
|
|
|
\func{wxHtmlContainerCell*}{OpenContainer}{\void}
|
|
|
|
|
|
|
|
Opens new container and returns pointer to it (see \helpref{Overview}{cells}).
|
|
|
|
|
|
|
|
%
|
|
|
|
\membersection{wxHtmlWinParser::SetActualColor}\label{wxhtmlwinparsersetactualcolor}
|
|
|
|
|
|
|
|
\func{void}{SetActualColor}{\param{const wxColour\& }{clr}}
|
|
|
|
|
|
|
|
Sets actual text color. Note: this DOESN'T change the color!
|
|
|
|
You must create \helpref{wxHtmlColourCell}{wxhtmlcolourcell} yourself.
|
1999-07-10 21:17:24 +00:00
|
|
|
|
|
|
|
\membersection{wxHtmlWinParser::SetAlign}\label{wxhtmlwinparsersetalign}
|
|
|
|
|
|
|
|
\func{void}{SetAlign}{\param{int }{a}}
|
|
|
|
|
|
|
|
Sets default horizontal alignment (see \helpref{wxHtmlContainerCell::SetAlignHor}{wxhtmlcontainercellsetalignhor}.
|
|
|
|
Alignment of newly opened container is set to this value.
|
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
%\membersection{wxHtmlWinParser::SetContainer}\label{wxhtmlwinparsersetcontainer}
|
|
|
|
%
|
|
|
|
%\func{wxHtmlContainerCell*}{SetContainer}{\param{wxHtmlContainerCell *}{c}}
|
|
|
|
%
|
|
|
|
%Allows you to directly set opened container. This is not recommended - you should use OpenContainer
|
|
|
|
%whereever possible.
|
|
|
|
%
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlWinParser::SetDC}\label{wxhtmlwinparsersetdc}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\func{virtual void}{SetDC}{\param{wxDC }{*dc}}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
Sets the DC. This must be called before \helpref{Parse}{wxhtmlparserparse}!
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlWinParser::SetFontBold}\label{wxhtmlwinparsersetfontbold}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\func{void}{SetFontBold}{\param{int }{x}}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
Sets bold flag of actualfont. {\it x} is either TRUE of FALSE.
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlWinParser::SetFontFixed}\label{wxhtmlwinparsersetfontfixed}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\func{void}{SetFontFixed}{\param{int }{x}}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
Sets fixed face flag of actualfont. {\it x} is either TRUE of FALSE.
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlWinParser::SetFontItalic}\label{wxhtmlwinparsersetfontitalic}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\func{void}{SetFontItalic}{\param{int }{x}}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
Sets italic flag of actualfont. {\it x} is either TRUE of FALSE.
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlWinParser::SetFontSize}\label{wxhtmlwinparsersetfontsize}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\func{void}{SetFontSize}{\param{int }{s}}
|
|
|
|
|
|
|
|
Sets actual font size (HTML size varies from -2 to +4)
|
|
|
|
|
|
|
|
\membersection{wxHtmlWinParser::SetFontUnderlined}\label{wxhtmlwinparsersetfontunderlined}
|
|
|
|
|
|
|
|
\func{void}{SetFontUnderlined}{\param{int }{x}}
|
|
|
|
|
|
|
|
Sets underlined flag of actualfont. {\it x} is either TRUE of FALSE.
|
|
|
|
|
|
|
|
\membersection{wxHtmlWinParser::SetFonts}\label{wxhtmlwinparsersetfonts}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\func{void}{SetFonts}{\param{wxString }{normal\_face}, \param{int }{normal\_italic\_mode}, \param{wxString }{fixed\_face}, \param{int }{fixed\_italic\_mode}, \param{const int }{*sizes}}
|
|
|
|
|
|
|
|
Sets fonts. This method is identical to \helpref{wxHtmlWindow::SetFonts}{wxhtmlwindowsetfonts}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
|
|
|
\membersection{wxHtmlWinParser::SetLink}\label{wxhtmlwinparsersetlink}
|
|
|
|
|
|
|
|
\func{void}{SetLink}{\param{const wxString\& }{link}}
|
|
|
|
|
|
|
|
Sets actual hypertext link. wxEmptyString means no link.
|
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\membersection{wxHtmlWinParser::SetLinkColor}\label{wxhtmlwinparsersetlinkcolor}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
\func{void}{SetLinkColor}{\param{const wxColour\& }{clr}}
|
1999-07-10 21:17:24 +00:00
|
|
|
|
1999-10-16 15:38:26 +00:00
|
|
|
Sets color of hypertext link.
|
1999-08-05 22:05:15 +00:00
|
|
|
|