wx.Html.HtmlTagHandler Class Reference

Inheritance diagram for wx.Html.HtmlTagHandler:

wx.Object wx.Doc.TagCHandler wx.Html.HtmlArtProviderTagHandler wx.Html.HtmlButtonTagHandler wx.Html.HtmlChoiceTagHandler wx.Html.HtmlImageListHandler wx.Html.HtmlOptionTagHandler wx.Html.HtmlTextFieldTagHandler

List of all members.

Public Member Functions

abstract string GetSupportedTags ()
abstract bool HandleTag (HtmlTag tag)
 HtmlTagHandler ()
 HtmlTagHandler (IntPtr wxObject)

Protected Member Functions

void ParseInner (HtmlTag tag)

Properties

HtmlParser Parser [get, set]
HtmlWinParser WParser [get]


Detailed Description

Overload this and add this to an HtmlParser to define new tags. The typical use of tag handlers is the definition of new tags that designate forms which have been implemented as wxWidgets panels. Refer to wx.HtmlHelpFrame.OnAboutBox() for a simple example.

Refer to HtmlButtonTagHandler for a tag presenting a button that raises a CommandEvent.


Constructor & Destructor Documentation

wx.Html.HtmlTagHandler.HtmlTagHandler ( IntPtr  wxObject  ) 

wx.Html.HtmlTagHandler.HtmlTagHandler (  ) 


Member Function Documentation

abstract string wx.Html.HtmlTagHandler.GetSupportedTags (  )  [pure virtual]

Use this to define the tags that this handler implements. Return a comma-separated list of tag names like "I,B,FONT,P".

Please note, that in contrast to modern XML-compatible conventions wxWidgets uses upper case letters as standard form for tag names. For this reason, wx.NET will convert th result of this method automatically into upper case form. However, analogous code in C++ will probably not run with the original wxWidgets in C++ if this result contains lower case letters.

Implemented in wx.Doc.TagCHandler, wx.Html.HtmlButtonTagHandler, wx.Html.HtmlOptionTagHandler, wx.Html.HtmlImageListHandler, wx.Html.HtmlArtProviderTagHandler, wx.Html.HtmlChoiceTagHandler, and wx.Html.HtmlTextFieldTagHandler.

abstract bool wx.Html.HtmlTagHandler.HandleTag ( HtmlTag  tag  )  [pure virtual]

Implement the tags as defined by GetSupportedTags().

Implemented in wx.Html.HtmlButtonTagHandler, wx.Html.HtmlOptionTagHandler, wx.Html.HtmlImageListHandler, wx.Html.HtmlArtProviderTagHandler, wx.Html.HtmlChoiceTagHandler, and wx.Html.HtmlTextFieldTagHandler.

void wx.Html.HtmlTagHandler.ParseInner ( HtmlTag  tag  )  [protected]


Property Documentation

HtmlParser wx.Html.HtmlTagHandler.Parser [get, set]

HtmlWinParser wx.Html.HtmlTagHandler.WParser [get]


Manual of the wx.NET   (c) 2003-2011 the wx.NET project at   Get wx.NET at SourceForge.net. Fast, secure and Free Open Source software downloads