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::GetSupportedTags
}\label{wxhtmltaghandlergetsupportedtags
}
34 \func{virtual wxString
}{GetSupportedTags
}{\void}
36 Returns list of supported tags. The list is in uppercase and tags
37 are delimited by ','. Example :
{\tt "I,B,FONT,P"
}
39 \membersection{wxHtmlTagHandler::HandleTag
}\label{wxhtmltaghandlerhandletag
}
41 \func{virtual bool
}{HandleTag
}{\param{const wxHtmlTag\&
}{tag
}}
43 This is the core method of each handler. It is called each time
44 one of supported tags is detected.
{\it tag
} contains all neccessary
45 info (see
\helpref{wxHtmlTag
}{wxhtmltag
} for details).
47 \wxheading{Return value
}
49 TRUE if
\helpref{ParseInner
}{wxhtmltaghandlerparseinner
} was called,
55 bool MyHandler::HandleTag(const wxHtmlTag& tag)
58 // change state of parser (e.g. set bold face)
61 // restore original state of parser
65 You shouldn't call ParseInner if the tag is not paired with ending one.
67 \membersection{wxHtmlTagHandler::ParseInner
}\label{wxhtmltaghandlerparseinner
}
69 \func{void
}{ParseInner
}{\param{const wxHtmlTag\&
}{tag
}}
71 This method calls parser's
\helpref{DoParsing
}{wxhtmlparserdoparsing
} method
72 for the string between this tag and paired ending tag:
75 ...<A HREF="x.htm">Hello, world!</A>...
78 In this example, a call to ParseInner (with
{\it tag
} pointing to A tag)
79 will parse 'Hello, world!'.
81 \membersection{wxHtmlTagHandler::SetParser
}\label{wxhtmltaghandlersetparser
}
83 \func{virtual void
}{SetParser
}{\param{wxHtmlParser
}{*parser
}}
85 Assigns
{\it parser
} to this handler. Each
{\bf instance
} of handler
86 is guaranteed to be called only from the parser.