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