- and end with @b TAG_HANDLER_END macro. I strongly recommend to have a look
- at @e include/wxhtml/mod_templ.h file. Otherwise you won't understand
- the structure of macros. See macros reference:
- @b TAG_HANDLER_BEGIN(@e name, @e tags)
- Starts handler definition. @e name is handler identifier (in fact
- part of class name), @e tags is string containing list of tags
- supported by this handler (in uppercase). This macro derives new class from
- wxHtmlWinTagHandler and implements it is
- #GetSupportedTags method.
- Example: TAG_HANDLER_BEGIN(FONTS, "B,I,U,T")
- @b TAG_HANDLER_VARS
- This macro starts block of variables definitions. (Variables are identical
- to class attributes.) Example:
-
- @code
- TAG_HANDLER_BEGIN(VARS_ONLY, "CRAZYTAG")
- TAG_HANDLER_VARS
- int my_int_var;
- wxString something_else;
- TAG_HANDLER_END(VARS_ONLY)
- @endcode
-
- This macro is used only in rare cases.
- @b TAG_HANDLER_CONSTR(@e name)
- This macro supplies object constructor. @e name is same name as the one
- from TAG_HANDLER_BEGIN macro. Body of constructor follow after
- this macro (you must use and ). Example:
-
- @code
- TAG_HANDLER_BEGIN(VARS2, "CRAZYTAG")
- TAG_HANDLER_VARS
- int my_int_var;
- TAG_HANDLER_CONSTR(vars2)
- { // !!!!!!
- my_int_var = 666;
- } // !!!!!!
- TAG_HANDLER_END(VARS2)
- @endcode
-
- Never used in wxHTML :-)
- @b TAG_HANDLER_PROC(@e varib)
- This is very important macro. It defines #HandleTag
- method. @e varib is name of parameter passed to the method, usually
- @e tag. Body of method follows after this macro.
- Note than you must use and ! Example:
-
- @code
- TAG_HANDLER_BEGIN(TITLE, "TITLE")
- TAG_HANDLER_PROC(tag)
- {
- printf("TITLE found...\n");
- }
- TAG_HANDLER_END(TITLE)
- @endcode
-
- @b TAG_HANDLER_END(@e name)
- Ends definition of tag handler @e name.
- @b Tags Modules
- You can use set of 3 macros TAGS_MODULE_BEGIN, TAGS_MODULE_ADD and
+ and end with @b TAG_HANDLER_END macro.
+
+ I strongly recommend to have a look at @e include/wxhtml/mod_templ.h file.
+ Otherwise you won't understand the structure of macros.
+
+ See macros reference:
+ @li @b TAG_HANDLER_BEGIN(@e name, @e tags):
+ Starts handler definition. @e name is handler identifier (in fact
+ part of class name), @e tags is string containing list of tags
+ supported by this handler (in uppercase). This macro derives new class from
+ wxHtmlWinTagHandler and implements it is wxHtmlTagHandler::GetSupportedTags method.
+ Example: TAG_HANDLER_BEGIN(FONTS, "B,I,U,T")
+
+ @li @b TAG_HANDLER_VARS:
+ This macro starts block of variables definitions. (Variables are identical
+ to class attributes.) Example:
+
+ @code
+ TAG_HANDLER_BEGIN(VARS_ONLY, "CRAZYTAG")
+ TAG_HANDLER_VARS
+ int my_int_var;
+ wxString something_else;
+ TAG_HANDLER_END(VARS_ONLY)
+ @endcode
+
+ This macro is used only in rare cases.
+
+ @li @b TAG_HANDLER_CONSTR(@e name):
+ This macro supplies object constructor. @e name is same name as the one
+ from TAG_HANDLER_BEGIN macro. Body of constructor follow after
+ this macro (you must use { and } ). Example:
+
+ @code
+ TAG_HANDLER_BEGIN(VARS2, "CRAZYTAG")
+ TAG_HANDLER_VARS
+ int my_int_var;
+ TAG_HANDLER_CONSTR(vars2)
+ { // !!!!!!
+ my_int_var = 666;
+ } // !!!!!!
+ TAG_HANDLER_END(VARS2)
+ @endcode
+
+ Never used in wxHTML :-)
+
+ @li @b TAG_HANDLER_PROC(@e varib):
+ This is very important macro. It defines wxHtmlTagHandler::HandleTag
+ method. @e varib is name of parameter passed to the method, usually
+ @e tag. Body of method follows after this macro.
+ Note than you must use { and } !
+ Example:
+
+ @code
+ TAG_HANDLER_BEGIN(TITLE, "TITLE")
+ TAG_HANDLER_PROC(tag)
+ {
+ printf("TITLE found...\n");
+ }
+ TAG_HANDLER_END(TITLE)
+ @endcode
+
+ @li @b TAG_HANDLER_END(@e name):
+ Ends definition of tag handler @e name.
+
+ @subsection overview_html_handlers_modules Tags Modules
+
+ You can use set of 3 macros TAGS_MODULE_BEGIN, TAGS_MODULE_ADD and