2 % automatically generated by HelpGen from
3 % htmltaghandler.tex at 18/Mar/99 19:20:29
6 \section{\class{wxHtmlTagHandler
}}\label{wxhtmltaghandler
}
8 \wxheading{Derived from
}
14 \helpref{Overview
}{handlers
},
15 \helpref{wxHtmlTag
}{wxhtmltag
}
17 \latexignore{\rtfignore{\wxheading{Members
}}}
19 \membersection{wxHtmlTagHandler::m
\_Parser}\label{wxhtmltaghandlermparser
}
21 {\bf wxHtmlParser* m
\_Parser}
23 This attribute is used to access parent parser. It is protected so that
24 it can't be accessed by user but can be accessed from derived classes.
26 \membersection{wxHtmlTagHandler::wxHtmlTagHandler
}\label{wxhtmltaghandlerwxhtmltaghandler
}
28 \func{}{wxHtmlTagHandler
}{\void}
32 \membersection{wxHtmlTagHandler::SetParser
}\label{wxhtmltaghandlersetparser
}
34 \func{virtual void
}{SetParser
}{\param{wxHtmlParser
}{*parser
}}
36 Assigns
{\it parser
} to this handler. Each
{\bf instance
} of handler
37 is guaranteed to be called only from the parser.
39 \membersection{wxHtmlTagHandler::GetSupportedTags
}\label{wxhtmltaghandlergetsupportedtags
}
41 \func{virtual wxString
}{GetSupportedTags
}{\void}
43 Returns list of supported tags. The list is in uppercase and tags
44 are delimited by ','. Example :
{\tt "I,B,FONT,P"
}
46 \membersection{wxHtmlTagHandler::HandleTag
}\label{wxhtmltaghandlerhandletag
}
48 \func{virtual bool
}{HandleTag
}{\param{const wxHtmlTag\&
}{tag
}}
50 This is the core method of each handler. It is called each time
51 one of supported tags is detected.
{\it tag
} contains all neccessary
52 info (see
\helpref{wxHtmlTag
}{wxhtmltag
} for details).
54 \wxheading{Return value
}
56 TRUE if
\helpref{ParseInner
}{wxhtmltaghandlerparseinner
} was called,
62 bool MyHandler::HandleTag(const wxHtmlTag& tag)
65 // change state of parser (e.g. set bold face)
68 // restore original state of parser
72 You shouldn't call ParseInner if the tag is not paired with ending one.
74 \membersection{wxHtmlTagHandler::ParseInner
}\label{wxhtmltaghandlerparseinner
}
76 \func{void
}{ParseInner
}{\param{const wxHtmlTag\&
}{tag
}}
78 This method calls parser's
\helpref{DoParsing
}{wxhtmlparserdoparsing
} method
79 for the string between this tag and paired ending tag:
82 ...<A HREF="x.htm">Hello, world!</A>...
85 In this example, a call to ParseInner (with
{\it tag
} pointing to A tag)
86 will parse 'Hello, world!'.