Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members

ContentTagHandler Class Reference

The busiest class in extracting the contents tree by parsing an index file. More...

#include <contenttaghandler.h>

Inheritance diagram for ContentTagHandler:

wxHtmlTagHandler List of all members.

Public Member Functions

 ContentTagHandler (wxFontEncoding enc, bool useEnc, wxTreeCtrl *tree=NULL, CHMListCtrl *list=NULL)
 Constructs the tag handler.

wxString GetSupportedTags ()
 What tags are we interested in?

bool HandleTag (const wxHtmlTag &tag)
 Does the bulk of the work, constructing the tree.


Private Attributes

wxTreeItemId _parents [TREE_BUF_SIZE]
int _level
wxTreeCtrl * _treeCtrl
CHMListCtrl_listCtrl
wxString _title
wxString _url
wxFontEncoding _enc
bool _useEnc

Detailed Description

The busiest class in extracting the contents tree by parsing an index file.


Constructor & Destructor Documentation

ContentTagHandler::ContentTagHandler wxFontEncoding  enc,
bool  useEnc,
wxTreeCtrl *  tree = NULL,
CHMListCtrl list = NULL
 

Constructs the tag handler.

Parameters:
enc Encoding to use. Only useful for Unicode builds.
useEnc Actually use the information passed in enc or not?
tree Tree control to fill. The control must be empty. Used for the content tree.
list Alternatively (or simultaneously), fill this custom list control (used for the index).


Member Function Documentation

bool ContentTagHandler::HandleTag const wxHtmlTag &  tag  ) 
 

Does the bulk of the work, constructing the tree.

Parameters:
tag The current tag to handle.
Returns:
true if we've parsed inner tags also, false otherwise.


The documentation for this class was generated from the following files:
Generated on Fri Jan 23 11:06:47 2004 for xCHM by doxygen 1.3.3