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
}
10 \helpref{wxObject
}{wxobject
}
12 \wxheading{Include files
}
18 \helpref{wxHtml
}{librarieslist
}
22 \helpref{Overview
}{handlers
},
23 \helpref{wxHtmlTag
}{wxhtmltag
}
25 \latexignore{\rtfignore{\wxheading{Members
}}}
27 \membersection{wxHtmlTagHandler::m
\_Parser}\label{wxhtmltaghandlermparser
}
29 {\bf wxHtmlParser* m
\_Parser}
31 This attribute is used to access parent parser. It is protected so that
32 it can't be accessed by user but can be accessed from derived classes.
34 \membersection{wxHtmlTagHandler::wxHtmlTagHandler
}\label{wxhtmltaghandlerwxhtmltaghandler
}
36 \func{}{wxHtmlTagHandler
}{\void}
40 \membersection{wxHtmlTagHandler::GetSupportedTags
}\label{wxhtmltaghandlergetsupportedtags
}
42 \func{virtual wxString
}{GetSupportedTags
}{\void}
44 Returns list of supported tags. The list is in uppercase and tags
45 are delimited by ','. Example :
{\tt "I,B,FONT,P"
}
47 \membersection{wxHtmlTagHandler::HandleTag
}\label{wxhtmltaghandlerhandletag
}
49 \func{virtual bool
}{HandleTag
}{\param{const wxHtmlTag\&
}{tag
}}
51 This is the core method of each handler. It is called each time
52 one of supported tags is detected.
{\it tag
} contains all necessary
53 info (see
\helpref{wxHtmlTag
}{wxhtmltag
} for details).
55 \wxheading{Return value
}
57 true if
\helpref{ParseInner
}{wxhtmltaghandlerparseinner
} was called,
63 bool MyHandler::HandleTag(const wxHtmlTag& tag)
66 // change state of parser (e.g. set bold face)
69 // restore original state of parser
73 You shouldn't call ParseInner if the tag is not paired with an ending one.
75 \membersection{wxHtmlTagHandler::ParseInner
}\label{wxhtmltaghandlerparseinner
}
77 \func{void
}{ParseInner
}{\param{const wxHtmlTag\&
}{tag
}}
79 This method calls parser's
\helpref{DoParsing
}{wxhtmlparserdoparsing
} method
80 for the string between this tag and the paired ending tag:
83 ...<A HREF="x.htm">Hello, world!</A>...
86 In this example, a call to ParseInner (with
{\it tag
} pointing to A tag)
87 will parse 'Hello, world!'.
89 \membersection{wxHtmlTagHandler::SetParser
}\label{wxhtmltaghandlersetparser
}
91 \func{virtual void
}{SetParser
}{\param{wxHtmlParser
}{*parser
}}
93 Assigns
{\it parser
} to this handler. Each
{\bf instance
} of handler
94 is guaranteed to be called only from the parser.