]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/html/helpfrm.h
Make storing non-trivial data in wxThreadSpecificInfo possible.
[wxWidgets.git] / interface / wx / html / helpfrm.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: html/helpfrm.h
e54c96f1 3// Purpose: interface of wxHtmlHelpFrame
23324ae1 4// Author: wxWidgets team
526954c5 5// Licence: wxWindows licence
23324ae1
FM
6/////////////////////////////////////////////////////////////////////////////
7
90f011dc
RD
8/// style flags for the Help Frame
9#define wxHF_TOOLBAR 0x0001
10#define wxHF_CONTENTS 0x0002
11#define wxHF_INDEX 0x0004
12#define wxHF_SEARCH 0x0008
13#define wxHF_BOOKMARKS 0x0010
14#define wxHF_OPEN_FILES 0x0020
15#define wxHF_PRINT 0x0040
16#define wxHF_FLAT_TOOLBAR 0x0080
17#define wxHF_MERGE_BOOKS 0x0100
18#define wxHF_ICONS_BOOK 0x0200
19#define wxHF_ICONS_BOOK_CHAPTER 0x0400
20#define wxHF_ICONS_FOLDER 0x0000 // this is 0 since it is default
21#define wxHF_DEFAULT_STYLE (wxHF_TOOLBAR | wxHF_CONTENTS | \
22 wxHF_INDEX | wxHF_SEARCH | \
23 wxHF_BOOKMARKS | wxHF_PRINT)
24
25
23324ae1
FM
26/**
27 @class wxHtmlHelpFrame
7c913512 28
c87f263e 29 This class is used by wxHtmlHelpController to display help.
23324ae1
FM
30 It is an internal class and should not be used directly - except for the case
31 when you're writing your own HTML help controller.
7c913512 32
23324ae1 33 @library{wxhtml}
c87f263e 34 @category{help,html}
23324ae1
FM
35*/
36class wxHtmlHelpFrame : public wxFrame
37{
38public:
c87f263e
FM
39 wxHtmlHelpFrame(wxHtmlHelpData* data = NULL);
40
23324ae1 41 /**
c87f263e
FM
42 Constructor.
43
44 For the possible values of @a style, please see wxHtmlHelpController.
23324ae1 45 */
90f011dc 46 wxHtmlHelpFrame(wxWindow* parent, wxWindowID id,
7c913512
FM
47 const wxString& title = wxEmptyString,
48 int style = wxHF_DEFAULT_STYLE,
a44f3b5a
FM
49 wxHtmlHelpData* data = NULL,
50 wxConfigBase* config = NULL,
51 const wxString& rootpath = wxEmptyString);
23324ae1
FM
52
53 /**
54 You may override this virtual method to add more buttons to the help window's
4cc4bfaf 55 toolbar. @a toolBar is a pointer to the toolbar and @a style is the style
c87f263e
FM
56 flag as passed to the Create() method.
57
23324ae1
FM
58 wxToolBar::Realize is called immediately after returning from this function.
59 */
4cc4bfaf 60 virtual void AddToolbarButtons(wxToolBar* toolBar, int style);
23324ae1
FM
61
62 /**
c87f263e 63 Creates the frame. See @ref wxHtmlHelpFrame() "the constructor"
23324ae1
FM
64 for a description of the parameters.
65 */
66 bool Create(wxWindow* parent, wxWindowID id,
5267aefd
FM
67 const wxString& title = wxEmptyString, int style = wxHF_DEFAULT_STYLE,
68 wxConfigBase* config = NULL,
69 const wxString& rootpath = wxEmptyString);
23324ae1
FM
70
71 /**
72 Returns the help controller associated with the frame.
73 */
328f5751 74 wxHtmlHelpController* GetController() const;
23324ae1 75
23324ae1
FM
76 /**
77 Sets the help controller associated with the frame.
78 */
d13b34d3 79 void SetController(wxHtmlHelpController* controller);
23324ae1
FM
80
81 /**
c87f263e
FM
82 Sets the frame's title format.
83
84 @a format must contain exactly one "%s" (it will be replaced by the page title).
23324ae1
FM
85 */
86 void SetTitleFormat(const wxString& format);
23324ae1 87};
e54c96f1 88