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