]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/httaghnd.tex
don't use _T() inside wxGetTranslation() and related macros (wxTRANSLATE, _, ......
[wxWidgets.git] / docs / latex / wx / httaghnd.tex
CommitLineData
704a4b75
VS
1%
2% automatically generated by HelpGen from
3% htmltaghandler.tex at 18/Mar/99 19:20:29
4%
5
704a4b75
VS
6\section{\class{wxHtmlTagHandler}}\label{wxhtmltaghandler}
7
8\wxheading{Derived from}
9
9704b250
VS
10\helpref{wxObject}{wxobject}
11
12\wxheading{Include files}
13
14<wx/html/htmlpars.h>
704a4b75 15
a7af285d
VZ
16\wxheading{Library}
17
18\helpref{wxHtml}{librarieslist}
19
704a4b75
VS
20\wxheading{See Also}
21
22\helpref{Overview}{handlers},
23\helpref{wxHtmlTag}{wxhtmltag}
24
704a4b75
VS
25\latexignore{\rtfignore{\wxheading{Members}}}
26
27\membersection{wxHtmlTagHandler::m\_Parser}\label{wxhtmltaghandlermparser}
28
29{\bf wxHtmlParser* m\_Parser}
30
31This attribute is used to access parent parser. It is protected so that
32it can't be accessed by user but can be accessed from derived classes.
33
34\membersection{wxHtmlTagHandler::wxHtmlTagHandler}\label{wxhtmltaghandlerwxhtmltaghandler}
35
36\func{}{wxHtmlTagHandler}{\void}
37
38Constructor.
39
704a4b75
VS
40\membersection{wxHtmlTagHandler::GetSupportedTags}\label{wxhtmltaghandlergetsupportedtags}
41
42\func{virtual wxString}{GetSupportedTags}{\void}
43
44Returns list of supported tags. The list is in uppercase and tags
45are delimited by ','. Example : {\tt "I,B,FONT,P" }
46
704a4b75
VS
47\membersection{wxHtmlTagHandler::HandleTag}\label{wxhtmltaghandlerhandletag}
48
49\func{virtual bool}{HandleTag}{\param{const wxHtmlTag\& }{tag}}
50
51This is the core method of each handler. It is called each time
2edb0bde 52one of supported tags is detected. {\it tag} contains all necessary
704a4b75
VS
53info (see \helpref{wxHtmlTag}{wxhtmltag} for details).
54
55\wxheading{Return value}
56
cc81d32f
VS
57true if \helpref{ParseInner}{wxhtmltaghandlerparseinner} was called,
58false otherwise.
704a4b75
VS
59
60\wxheading{Example}
61
62\begin{verbatim}
63bool MyHandler::HandleTag(const wxHtmlTag& tag)
64{
65 ...
66 // change state of parser (e.g. set bold face)
67 ParseInner(tag);
68 ...
69 // restore original state of parser
70}
71\end{verbatim}
72
2edb0bde 73You shouldn't call ParseInner if the tag is not paired with an ending one.
704a4b75 74
704a4b75
VS
75\membersection{wxHtmlTagHandler::ParseInner}\label{wxhtmltaghandlerparseinner}
76
77\func{void}{ParseInner}{\param{const wxHtmlTag\& }{tag}}
78
79This method calls parser's \helpref{DoParsing}{wxhtmlparserdoparsing} method
2edb0bde 80for the string between this tag and the paired ending tag:
704a4b75
VS
81
82\begin{verbatim}
83...<A HREF="x.htm">Hello, world!</A>...
84\end{verbatim}
85
22d6efa8
JS
86In this example, a call to ParseInner (with {\it tag} pointing to A tag)
87will parse 'Hello, world!'.
88
559fe022
VS
89\membersection{wxHtmlTagHandler::SetParser}\label{wxhtmltaghandlersetparser}
90
91\func{virtual void}{SetParser}{\param{wxHtmlParser }{*parser}}
92
93Assigns {\it parser} to this handler. Each {\bf instance} of handler
94is guaranteed to be called only from the parser.
95