The HtmlHelpIndex
Class Reference
A helper class for HtmlHelp that manages a two level index in alphabetical order. More...
Declaration
Public Constructors Index
HtmlHelpIndex (HtmlHelpRecoder &recoder) | |
Public Destructor Index
~HtmlHelpIndex () | |
Public Member Functions Index
void | addItem (const QCString &first, const QCString &second, const QCString &url, const QCString &anchor, bool hasLink, bool reversed) |
void | writeFields (std::ostream &t) |
size_t | size () const |
Private Member Attributes Index
LinkedMap< IndexField > | m_map |
HtmlHelpRecoder & | m_recoder |
Description
A helper class for HtmlHelp that manages a two level index in alphabetical order.
Definition at line 113 of file htmlhelp.cpp.
Public Constructors
HtmlHelpIndex()
|
Constructs a new HtmlHelp index
Definition at line 116 of file htmlhelp.cpp.
Reference m_recoder.
Referenced by ~HtmlHelpIndex.
Public Member Functions
addItem()
|
Stores an item in the index if it is not already present. Items are stored in alphabetical order, by sorting on the concatenation of level1 and level2 (if present).
- Parameters
-
level1 the string at level 1 in the index.
level2 the string at level 2 in the index (or 0 if not applicable).
url the url of the documentation (without .html extension).
anchor the anchor of the documentation within the page.
hasLink if true, the url (without anchor) can be used in the level1 item, when writing the header of a list of level2 items.
reversed TRUE if level1 is the member name and level2 the compound name.
Definition at line 119 of file htmlhelp.cpp.
References QCString::isEmpty, m_map, reg::search, QCString::str and substitute.
size()
| inline |
Definition at line 123 of file htmlhelp.cpp.
Reference m_map.
writeFields()
|
Writes the sorted list of index items into a html like list.
An list of calls with name = level1,level2 as follows:
a1,b1
a1,b2
a2,b1
a2,b2
a3
a4,b1
Will result in the following list:
a1 -> link to url if hasLink==TRUE
b1 -> link to url#anchor
b2 -> link to url#anchor
a2 -> link to url if hasLink==TRUE
b1 -> link to url#anchor
b2 -> link to url#anchor
a3 -> link to url if hasLink==TRUE
a4 -> link to url if hasLink==TRUE
b1 -> link to url#anchor
Definition at line 122 of file htmlhelp.cpp.
References convertToHtml, convertToHtmlAndTruncate, FALSE, field2URL, QCString::find, QCString::isEmpty, QCString::left, m_map, m_recoder, qstricmp_sort, QCString::right and TRUE.
Private Member Attributes
m_map
|
Definition at line 125 of file htmlhelp.cpp.
Referenced by addItem, size and writeFields.
m_recoder
|
Definition at line 126 of file htmlhelp.cpp.
Referenced by HtmlHelpIndex and writeFields.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus by Doxygen 1.14.0.