2008-03-08 08:52:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: html/helpfrm.h
|
2008-03-10 11:24:38 -04:00
|
|
|
// Purpose: interface of wxHtmlHelpFrame
|
2008-03-08 08:52:38 -05:00
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
@class wxHtmlHelpFrame
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-10-23 09:55:07 -04:00
|
|
|
This class is used by wxHtmlHelpController to display help.
|
2008-03-08 08:52:38 -05:00
|
|
|
It is an internal class and should not be used directly - except for the case
|
|
|
|
when you're writing your own HTML help controller.
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
@library{wxhtml}
|
2008-10-23 09:55:07 -04:00
|
|
|
@category{help,html}
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
class wxHtmlHelpFrame : public wxFrame
|
|
|
|
{
|
|
|
|
public:
|
2008-10-23 09:55:07 -04:00
|
|
|
wxHtmlHelpFrame(wxHtmlHelpData* data = NULL);
|
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
/**
|
2008-10-23 09:55:07 -04:00
|
|
|
Constructor.
|
|
|
|
|
|
|
|
For the possible values of @a style, please see wxHtmlHelpController.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2008-03-08 09:43:31 -05:00
|
|
|
wxHtmlHelpFrame(wxWindow* parent, int wxWindowID,
|
|
|
|
const wxString& title = wxEmptyString,
|
|
|
|
int style = wxHF_DEFAULT_STYLE,
|
2008-11-09 11:46:52 -05:00
|
|
|
wxHtmlHelpData* data = NULL,
|
|
|
|
wxConfigBase* config = NULL,
|
|
|
|
const wxString& rootpath = wxEmptyString);
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
You may override this virtual method to add more buttons to the help window's
|
2008-03-09 08:33:59 -04:00
|
|
|
toolbar. @a toolBar is a pointer to the toolbar and @a style is the style
|
2008-10-23 09:55:07 -04:00
|
|
|
flag as passed to the Create() method.
|
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
wxToolBar::Realize is called immediately after returning from this function.
|
|
|
|
*/
|
2008-03-09 08:33:59 -04:00
|
|
|
virtual void AddToolbarButtons(wxToolBar* toolBar, int style);
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
2008-10-23 09:55:07 -04:00
|
|
|
Creates the frame. See @ref wxHtmlHelpFrame() "the constructor"
|
2008-03-08 08:52:38 -05:00
|
|
|
for a description of the parameters.
|
|
|
|
*/
|
|
|
|
bool Create(wxWindow* parent, wxWindowID id,
|
2008-10-29 11:34:31 -04:00
|
|
|
const wxString& title = wxEmptyString, int style = wxHF_DEFAULT_STYLE,
|
|
|
|
wxConfigBase* config = NULL,
|
|
|
|
const wxString& rootpath = wxEmptyString);
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the help controller associated with the frame.
|
|
|
|
*/
|
2008-03-09 12:24:26 -04:00
|
|
|
wxHtmlHelpController* GetController() const;
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
2008-10-23 09:55:07 -04:00
|
|
|
Reads the user's settings for this frame.
|
|
|
|
|
|
|
|
@see wxHtmlHelpController::ReadCustomization
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
void ReadCustomization(wxConfigBase* cfg,
|
|
|
|
const wxString& path = wxEmptyString);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Sets the help controller associated with the frame.
|
|
|
|
*/
|
|
|
|
void SetController(wxHtmlHelpController* contoller);
|
|
|
|
|
|
|
|
/**
|
2008-10-23 09:55:07 -04:00
|
|
|
Sets the frame's title format.
|
|
|
|
|
|
|
|
@a format must contain exactly one "%s" (it will be replaced by the page title).
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
void SetTitleFormat(const wxString& format);
|
|
|
|
|
|
|
|
/**
|
2008-10-23 09:55:07 -04:00
|
|
|
Saves the user's settings for this frame.
|
|
|
|
|
|
|
|
@see wxHtmlHelpController::WriteCustomization
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
void WriteCustomization(wxConfigBase* cfg,
|
|
|
|
const wxString& path = wxEmptyString);
|
|
|
|
};
|
2008-03-10 11:24:38 -04:00
|
|
|
|