## wxHtmlHelpData

This class is used by wxHtmlHelpController and wxHtmlHelpFrame to access HTML help items. It is internal class and should not be used directly - except for the case you're writing your own HTML help controller.

Derived from

wxObject

Include files

<wx/html/helpdata.h>

Members

wxHtmlHelpData::wxHtmlHelpData
wxHtmlHelpData::AddBook
wxHtmlHelpData::FindPageById
wxHtmlHelpData::FindPageByName
wxHtmlHelpData::GetBookRecArray
wxHtmlHelpData::GetContents
wxHtmlHelpData::GetContentsCnt
wxHtmlHelpData::GetIndex
wxHtmlHelpData::GetIndexCnt
wxHtmlHelpData::SetTempDir

### wxHtmlHelpData::wxHtmlHelpData

wxHtmlHelpData()

Constructor.

### wxHtmlHelpData::AddBook

bool AddBook(const wxString& book)

Adds new book. 'book' is location of HTML help project (hhp) or ZIP file that contains arbitrary number of .hhp projects (this zip file can have either .zip or .htb extension, htb stands for "html book"). Returns success.

### wxHtmlHelpData::FindPageById

wxString FindPageById(int id)

Returns page's URL based on integer ID stored in project.

### wxHtmlHelpData::FindPageByName

wxString FindPageByName(const wxString& page)

Returns page's URL based on its (file)name.

### wxHtmlHelpData::GetBookRecArray

const wxHtmlBookRecArray& GetBookRecArray()

Returns array with help books info.

### wxHtmlHelpData::GetContents

wxHtmlContentsItem* GetContents()

Returns contents lists pointer.

### wxHtmlHelpData::GetContentsCnt

int GetContentsCnt()

Returns size of contents list.

### wxHtmlHelpData::GetIndex

wxHtmlContentsItem* GetIndex()

Returns pointer to index items list.

### wxHtmlHelpData::GetIndexCnt

int GetIndexCnt()

Returns size of index list.

### wxHtmlHelpData::SetTempDir

void SetTempDir(const wxString& path)

Sets temporary directory where binary cached versions of MS HTML Workshop files will be stored. (This is turned off by default and you can enable this feature by setting non-empty temp dir.)