]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/html/helpfrm.h
Removing more CodeWarrior project files.
[wxWidgets.git] / interface / wx / html / helpfrm.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: html/helpfrm.h
e54c96f1 3// Purpose: interface of wxHtmlHelpFrame
23324ae1
FM
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
9/**
10 @class wxHtmlHelpFrame
7c913512 11
c87f263e 12 This class is used by wxHtmlHelpController to display help.
23324ae1
FM
13 It is an internal class and should not be used directly - except for the case
14 when you're writing your own HTML help controller.
7c913512 15
23324ae1 16 @library{wxhtml}
c87f263e 17 @category{help,html}
23324ae1
FM
18*/
19class wxHtmlHelpFrame : public wxFrame
20{
21public:
c87f263e
FM
22 wxHtmlHelpFrame(wxHtmlHelpData* data = NULL);
23
23324ae1 24 /**
c87f263e
FM
25 Constructor.
26
27 For the possible values of @a style, please see wxHtmlHelpController.
23324ae1 28 */
7c913512
FM
29 wxHtmlHelpFrame(wxWindow* parent, int wxWindowID,
30 const wxString& title = wxEmptyString,
31 int style = wxHF_DEFAULT_STYLE,
a44f3b5a
FM
32 wxHtmlHelpData* data = NULL,
33 wxConfigBase* config = NULL,
34 const wxString& rootpath = wxEmptyString);
23324ae1
FM
35
36 /**
37 You may override this virtual method to add more buttons to the help window's
4cc4bfaf 38 toolbar. @a toolBar is a pointer to the toolbar and @a style is the style
c87f263e
FM
39 flag as passed to the Create() method.
40
23324ae1
FM
41 wxToolBar::Realize is called immediately after returning from this function.
42 */
4cc4bfaf 43 virtual void AddToolbarButtons(wxToolBar* toolBar, int style);
23324ae1
FM
44
45 /**
c87f263e 46 Creates the frame. See @ref wxHtmlHelpFrame() "the constructor"
23324ae1
FM
47 for a description of the parameters.
48 */
49 bool Create(wxWindow* parent, wxWindowID id,
5267aefd
FM
50 const wxString& title = wxEmptyString, int style = wxHF_DEFAULT_STYLE,
51 wxConfigBase* config = NULL,
52 const wxString& rootpath = wxEmptyString);
23324ae1
FM
53
54 /**
55 Returns the help controller associated with the frame.
56 */
328f5751 57 wxHtmlHelpController* GetController() const;
23324ae1 58
23324ae1
FM
59 /**
60 Sets the help controller associated with the frame.
61 */
62 void SetController(wxHtmlHelpController* contoller);
63
64 /**
c87f263e
FM
65 Sets the frame's title format.
66
67 @a format must contain exactly one "%s" (it will be replaced by the page title).
23324ae1
FM
68 */
69 void SetTitleFormat(const wxString& format);
23324ae1 70};
e54c96f1 71