#include <hhcparser.h>
Public Member Functions | |
| HHCParser (wxFontEncoding enc, wxTreeCtrl *tree, CHMListCtrl *list) | |
| Constructor. | |
| void | parse (const char *chunk) |
| Parse a chunk of data. | |
Private Member Functions | |
| void | handleTag (const std::string &tag) |
| Handle a retrieved tag. I'm only interested in very few tags. | |
| bool | getParameters (const char *input, std::string &name, std::string &value) |
| Retrieve a parameter name. | |
| void | addToTree (const wxString &name, const wxString &value) |
| Add the information to the contents tree. | |
| void | addToList (const wxString &name, const wxString &value) |
| Add the information to the index list. | |
| wxString | replaceHTMLChars (const wxString &input) |
| Replace special HTML strings with correct code. | |
| wxString | translateEncoding (const wxString &input) |
| Convert to proper character encoding. | |
| unsigned | getHTMLCode (const wxString &name) |
| HTML code for given name (if available). | |
| wxChar | charForCode (unsigned code) |
| Get the char that code stands for. | |
Private Attributes | |
| int | _level |
| bool | _inquote |
| bool | _intag |
| bool | _inobject |
| std::string | _tag |
| std::string | _name |
| std::string | _value |
| wxTreeCtrl * | _tree |
| CHMListCtrl * | _list |
| wxTreeItemId | _parents [TREE_BUF_SIZE] |
| wxFontEncoding | _enc |
| int | _counter |
| wxCSConv | _cv |
| bool | _htmlChars |
1.4.4