]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/html/helpdata.h
wxSocket::Initialize() and Shutdown() are for main thread only.
[wxWidgets.git] / interface / wx / html / helpdata.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: html/helpdata.h
e54c96f1 3// Purpose: interface of wxHtmlHelpData
23324ae1
FM
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
9/**
10 @class wxHtmlHelpData
7c913512 11
c87f263e
FM
12 This class is used by wxHtmlHelpController and wxHtmlHelpFrame to access HTML
13 help items.
14
7c913512 15 It is internal class and should not be used directly - except for the case
23324ae1 16 you're writing your own HTML help controller.
7c913512 17
23324ae1 18 @library{wxhtml}
c87f263e 19 @category{help,html}
23324ae1
FM
20*/
21class wxHtmlHelpData : public wxObject
22{
23public:
24 /**
25 Constructor.
26 */
27 wxHtmlHelpData();
28
29 /**
c87f263e
FM
30 Adds new book.
31
32 @a book_url is URL (not filename!) of HTML help project (hhp) or ZIP file
33 that contains arbitrary number of .hhp projects (this zip file can have
34 either .zip or .htb extension, htb stands for "html book").
35
23324ae1
FM
36 Returns success.
37 */
38 bool AddBook(const wxString& book_url);
39
40 /**
41 Returns page's URL based on integer ID stored in project.
42 */
43 wxString FindPageById(int id);
44
45 /**
46 Returns page's URL based on its (file)name.
47 */
48 wxString FindPageByName(const wxString& page);
49
50 /**
51 Returns array with help books info.
52 */
5267aefd 53 const wxHtmlBookRecArray& GetBookRecArray() const;
23324ae1
FM
54
55 /**
56 Returns reference to array with contents entries.
57 */
5267aefd 58 const wxHtmlHelpDataItems& GetContentsArray() const;
23324ae1
FM
59
60 /**
61 Returns reference to array with index entries.
62 */
5267aefd 63 const wxHtmlHelpDataItems& GetIndexArray() const;
23324ae1
FM
64
65 /**
c87f263e 66 Sets the temporary directory where binary cached versions of MS HTML Workshop
23324ae1
FM
67 files will be stored. (This is turned off by default and you can enable
68 this feature by setting non-empty temp dir.)
69 */
70 void SetTempDir(const wxString& path);
71};
e54c96f1 72