]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/html/helpdata.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: html/helpdata.h
3 // Purpose: interface of wxHtmlHelpData
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
12 This class is used by wxHtmlHelpController
13 and wxHtmlHelpFrame to access HTML help items.
14 It is internal class and should not be used directly - except for the case
15 you're writing your own HTML help controller.
20 class wxHtmlHelpData
: public wxObject
29 Adds new book. @e book is URL (not filename!) of HTML help project (hhp)
30 or ZIP file that contains arbitrary number of .hhp projects (this zip
31 file can have either .zip or .htb extension, htb stands for "html book").
34 bool AddBook(const wxString
& book_url
);
37 Returns page's URL based on integer ID stored in project.
39 wxString
FindPageById(int id
);
42 Returns page's URL based on its (file)name.
44 wxString
FindPageByName(const wxString
& page
);
47 Returns array with help books info.
49 const wxHtmlBookRecArray
GetBookRecArray();
52 Returns reference to array with contents entries.
54 const wxHtmlHelpDataItems
GetContentsArray();
57 Returns reference to array with index entries.
59 const wxHtmlHelpDataItems
GetIndexArray();
62 Sets temporary directory where binary cached versions of MS HTML Workshop
63 files will be stored. (This is turned off by default and you can enable
64 this feature by setting non-empty temp dir.)
66 void SetTempDir(const wxString
& path
);