1999-10-27 23:30:38 +00:00
%
% automatically generated by HelpGen from
% helpfrm.h at 24/Oct/99 18:03:10
%
2006-01-09 13:42:57 +00:00
\section { \class { wxHtmlHelpDialog} } \label { wxhtmlhelpdialog}
This class is used by \helpref { wxHtmlHelpController} { wxhtmlhelpcontroller}
to display help.
It is an internal class and should not be used directly - except for the case
when you're writing your own HTML help controller.
\wxheading { Derived from}
\helpref { wxFrame} { wxframe}
\wxheading { Include files}
<wx/html/helpdlg.h>
\latexignore { \rtfignore { \wxheading { Members} } }
\membersection { wxHtmlHelpDialog::wxHtmlHelpDialog} \label { wxhtmlhelpdialogwxhtmlhelpdialog}
\func { } { wxHtmlHelpDialog} { \param { wxHtmlHelpData* } { data = NULL} }
\func { } { wxHtmlHelpDialog} { \param { wxWindow* } { parent} , \param { int } { wxWindowID} , \param { const wxString\& } { title = wxEmptyString} , \param { int } { style = wxHF\_ DEFAULT\_ STYLE} , \param { wxHtmlHelpData* } { data = NULL} }
Constructor. For the values of { \it style} , please see the documentation for \helpref { wxHtmlHelpController} { wxhtmlhelpcontroller} .
\membersection { wxHtmlHelpDialog::AddToolbarButtons} \label { wxhtmlhelpdialogaddtoolbarbuttons}
\func { virtual void} { AddToolbarButtons} { \param { wxToolBar *} { toolBar} , \param { int } { style} }
You may override this virtual method to add more buttons to the help window's
toolbar. { \it toolBar} is a pointer to the toolbar and { \it style} is the style
flag as passed to the Create method.
wxToolBar::Realize is called immediately after returning from this function.
\membersection { wxHtmlHelpDialog::Create} \label { wxhtmlhelpdialogcreate}
\func { bool} { Create} { \param { wxWindow* } { parent} , \param { wxWindowID } { id} , \param { const wxString\& } { title = wxEmptyString} , \param { int } { style = wxHF\_ DEFAULT\_ STYLE} }
Creates the dialog. See \helpref { the constructor} { wxhtmlhelpdialogwxhtmlhelpdialog}
for a description of the parameters.
\membersection { wxHtmlHelpDialog::GetController} \label { wxhtmlhelpdialoggetcontroller}
\constfunc { wxHtmlHelpController* } { GetController} { \void }
Returns the help controller associated with the dialog.
\membersection { wxHtmlHelpDialog::ReadCustomization} \label { wxhtmlhelpdialogreadcustomization}
\func { void} { ReadCustomization} { \param { wxConfigBase* } { cfg} , \param { const wxString\& } { path = wxEmptyString} }
Reads the user's settings for this dialog see \helpref { wxHtmlHelpController::ReadCustomization} { wxhtmlhelpcontrollerreadcustomization} )
\membersection { wxHtmlHelpDialog::SetController} \label { wxhtmlhelpdialogsetcontroller}
\func { void} { SetController} { \param { wxHtmlHelpController* } { contoller} }
Sets the help controller associated with the dialog.
\membersection { wxHtmlHelpDialog::SetTitleFormat} \label { wxhtmlhelpdialogsettitleformat}
\func { void} { SetTitleFormat} { \param { const wxString\& } { format} }
Sets the dialog's title format. { \it format} must contain exactly one "\% s"
(it will be replaced by the page title).
\membersection { wxHtmlHelpDialog::WriteCustomization} \label { wxhtmlhelpdialogwritecustomization}
\func { void} { WriteCustomization} { \param { wxConfigBase* } { cfg} , \param { const wxString\& } { path = wxEmptyString} }
Saves the user's settings for this dialog (see \helpref { wxHtmlHelpController::WriteCustomization} { wxhtmlhelpcontrollerwritecustomization} ).
1999-10-27 23:30:38 +00:00
\section { \class { wxHtmlHelpFrame} } \label { wxhtmlhelpframe}
2000-03-09 20:15:44 +00:00
This class is used by \helpref { wxHtmlHelpController} { wxhtmlhelpcontroller}
1999-10-27 23:30:38 +00:00
to display help.
2000-02-06 19:11:10 +00: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.
1999-10-27 23:30:38 +00:00
\wxheading { Derived from}
\helpref { wxFrame} { wxframe}
2000-02-27 21:06:58 +00:00
\wxheading { Include files}
<wx/html/helpfrm.h>
1999-10-27 23:30:38 +00:00
\latexignore { \rtfignore { \wxheading { Members} } }
\membersection { wxHtmlHelpFrame::wxHtmlHelpFrame} \label { wxhtmlhelpframewxhtmlhelpframe}
\func { } { wxHtmlHelpFrame} { \param { wxHtmlHelpData* } { data = NULL} }
2001-05-05 18:05:57 +00:00
\func { } { wxHtmlHelpFrame} { \param { wxWindow* } { parent} , \param { int } { wxWindowID} , \param { const wxString\& } { title = wxEmptyString} , \param { int } { style = wxHF\_ DEFAULT\_ STYLE} , \param { wxHtmlHelpData* } { data = NULL} }
1999-10-27 23:30:38 +00:00
2006-01-09 13:42:57 +00:00
Constructor. For the values of { \it style} , please see the documentation for \helpref { wxHtmlHelpController} { wxhtmlhelpcontroller} .
\membersection { wxHtmlHelpFrame::AddToolbarButtons} \label { wxhtmlhelpframeaddtoolbarbuttons}
\func { virtual void} { AddToolbarButtons} { \param { wxToolBar *} { toolBar} , \param { int } { style} }
You may override this virtual method to add more buttons to the help window's
toolbar. { \it toolBar} is a pointer to the toolbar and { \it style} is the style
flag as passed to the Create method.
1999-10-27 23:30:38 +00:00
2006-01-09 13:42:57 +00:00
wxToolBar::Realize is called immediately after returning from this function.
1999-10-27 23:30:38 +00:00
\membersection { wxHtmlHelpFrame::Create} \label { wxhtmlhelpframecreate}
2001-05-05 18:05:57 +00:00
\func { bool} { Create} { \param { wxWindow* } { parent} , \param { wxWindowID } { id} , \param { const wxString\& } { title = wxEmptyString} , \param { int } { style = wxHF\_ DEFAULT\_ STYLE} }
1999-10-27 23:30:38 +00:00
2001-05-05 18:05:57 +00:00
Creates the frame. See \helpref { the constructor} { wxhtmlhelpframewxhtmlhelpframe}
2006-01-09 13:42:57 +00:00
for a description of the parameters.
\membersection { wxHtmlHelpFrame::GetController} \label { wxhtmlhelpframegetcontroller}
\constfunc { wxHtmlHelpController* } { GetController} { \void }
Returns the help controller associated with the frame.
\membersection { wxHtmlHelpFrame::ReadCustomization} \label { wxhtmlhelpframereadcustomization}
\func { void} { ReadCustomization} { \param { wxConfigBase* } { cfg} , \param { const wxString\& } { path = wxEmptyString} }
Reads the user's settings for this frame see \helpref { wxHtmlHelpController::ReadCustomization} { wxhtmlhelpcontrollerreadcustomization} )
1999-10-27 23:30:38 +00:00
2006-01-09 13:42:57 +00:00
\membersection { wxHtmlHelpFrame::SetController} \label { wxhtmlhelpframesetcontroller}
\func { void} { SetController} { \param { wxHtmlHelpController* } { contoller} }
Sets the help controller associated with the frame.
\membersection { wxHtmlHelpFrame::SetTitleFormat} \label { wxhtmlhelpframesettitleformat}
\func { void} { SetTitleFormat} { \param { const wxString\& } { format} }
Sets the frame's title format. { \it format} must contain exactly one "\% s"
(it will be replaced by the page title).
\membersection { wxHtmlHelpFrame::WriteCustomization} \label { wxhtmlhelpframewritecustomization}
\func { void} { WriteCustomization} { \param { wxConfigBase* } { cfg} , \param { const wxString\& } { path = wxEmptyString} }
Saves the user's settings for this frame (see \helpref { wxHtmlHelpController::WriteCustomization} { wxhtmlhelpcontrollerwritecustomization} ).
\section { \class { wxHtmlHelpWindow} } \label { wxhtmlhelpwindow}
This class is used by \helpref { wxHtmlHelpController} { wxhtmlhelpcontroller}
to display help within a frame or dialog, but you can use it yourself to create an embedded HTML help window.
For example:
\begin { verbatim}
// m_ embeddedHelpWindow is a wxHtmlHelpWindow
// m_ embeddedHtmlHelp is a wxHtmlHelpController
// Create embedded HTML Help window
m_ embeddedHelpWindow = new wxHtmlHelpWindow;
m_ embeddedHtmlHelp.UseConfig(config, rootPath); // Set your own config object here
m_ embeddedHtmlHelp.SetHelpWindow(m_ embeddedHelpWindow);
m_ embeddedHelpWindow->Create(this,
wxID_ ANY, wxDefaultPosition, GetClientSize(), wxTAB_ TRAVERSAL|wxNO_ BORDER, wxHF_ DEFAULT_ STYLE);
m_ embeddedHtmlHelp.AddBook(wxFileName(_ T("doc.zip")));
\end { verbatim}
You should pass the style wxHF\_ EMBEDDED to the style parameter of wxHtmlHelpController to allow
the embedded window to be destroyed independently of the help controller.
\wxheading { Derived from}
\helpref { wxWindow} { wxwindow}
\wxheading { Include files}
2006-01-11 08:59:17 +00:00
<wx/html/helpwnd.h>
2006-01-09 13:42:57 +00:00
\latexignore { \rtfignore { \wxheading { Members} } }
\membersection { wxHtmlHelpWindow::wxHtmlHelpWindow} \label { wxhtmlhelpwindowwxhtmlhelpwindow}
\func { } { wxHtmlHelpWindow} { \param { wxHtmlHelpData* } { data = NULL} }
2007-02-12 13:59:37 +00:00
\func { } { wxHtmlHelpWindow} { \param { wxWindow* } { parent} , \param { int } { wxWindowID} , \param { const wxPoint\& } { pos = wxDefaultPosition} , \param { const wxSize\& } { pos = wxDefaultSize} , \param { int } { style = wxTAB\_ TRAVERSAL|wxTAB\_ wxNO\_ BORDER} , \param { int } { helpStyle = wxHF\_ DEFAULT\_ STYLE} , \param { wxHtmlHelpData* } { data = NULL} }
2006-01-09 13:42:57 +00:00
Constructor.
2007-01-19 12:36:54 +00:00
Constructor. For the values of { \it helpStyle} , please see the documentation for \helpref { wxHtmlHelpController} { wxhtmlhelpcontroller} .
2006-01-09 13:42:57 +00:00
\membersection { wxHtmlHelpWindow::Create} \label { wxhtmlhelpwindowcreate}
2007-02-12 13:59:37 +00:00
\func { bool} { Create} { \param { wxWindow* } { parent} , \param { wxWindowID } { id} , \param { const wxPoint\& } { pos = wxDefaultPosition} , \param { const wxSize\& } { pos = wxDefaultSize} , \param { int } { style = wxTAB\_ TRAVERSAL|wxTAB\_ wxNO\_ BORDER} , \param { int } { helpStyle = wxHF\_ DEFAULT\_ STYLE} , \param { wxHtmlHelpData* } { data = NULL} }
2006-01-09 13:42:57 +00:00
2007-01-19 12:36:54 +00:00
Creates the help window. See \helpref { the constructor} { wxhtmlhelpwindowwxhtmlhelpwindow}
2006-01-09 13:42:57 +00:00
for a description of the parameters.
\membersection { wxHtmlHelpWindow::CreateContents} \label { wxhtmlhelpwindowcreatecontents}
1999-10-27 23:30:38 +00:00
2005-02-06 17:27:04 +00:00
\func { void} { CreateContents} { \void }
1999-10-27 23:30:38 +00:00
Creates contents panel. (May take some time.)
2005-02-06 17:27:04 +00:00
Protected.
2006-01-09 13:42:57 +00:00
\membersection { wxHtmlHelpWindow::CreateIndex} \label { wxhtmlhelpwindowcreateindex}
1999-10-27 23:30:38 +00:00
2005-02-06 17:27:04 +00:00
\func { void} { CreateIndex} { \void }
1999-10-27 23:30:38 +00:00
Creates index panel. (May take some time.)
2005-02-06 17:27:04 +00:00
Protected.
2006-01-09 13:42:57 +00:00
\membersection { wxHtmlHelpWindow::CreateSearch} \label { wxhtmlhelpwindowcreatesearch}
1999-10-27 23:30:38 +00:00
\func { void} { CreateSearch} { \void }
Creates search panel.
2006-01-09 13:42:57 +00:00
\membersection { wxHtmlHelpWindow::Display} \label { wxhtmlhelpwindowdisplay}
1999-10-27 23:30:38 +00:00
\func { bool} { Display} { \param { const wxString\& } { x} }
\func { bool} { Display} { \param { const int } { id} }
2000-02-06 19:11:10 +00:00
Displays page x. If not found it will give the user the choice of
1999-10-27 23:30:38 +00:00
searching books.
Looking for the page runs in these steps:
2000-02-06 19:11:10 +00:00
\begin { enumerate} \itemsep =0pt
\item try to locate file named x (if x is for example "doc/howto.htm")
\item try to open starting page of book x
\item try to find x in contents (if x is for example "How To ...")
\item try to find x in index (if x is for example "How To ...")
\end { enumerate}
1999-10-27 23:30:38 +00:00
The second form takes numeric ID as the parameter.
(uses extension to MS format, <param name="ID" value=id>)
1999-10-29 22:16:53 +00:00
\pythonnote { The second form of this method is named DisplayId in
wxPython.}
2006-01-09 13:42:57 +00:00
\membersection { wxHtmlHelpWindow::DisplayContents} \label { wxhtmlhelpwindowdisplaycontents}
1999-10-27 23:30:38 +00:00
\func { bool} { DisplayContents} { \void }
Displays contents panel.
2006-01-09 13:42:57 +00:00
\membersection { wxHtmlHelpWindow::DisplayIndex} \label { wxhtmlhelpwindowdisplayindex}
1999-10-27 23:30:38 +00:00
\func { bool} { DisplayIndex} { \void }
Displays index panel.
2006-01-09 13:42:57 +00:00
\membersection { wxHtmlHelpWindow::GetData} \label { wxhtmlhelpwindowgetdata}
1999-10-27 23:30:38 +00:00
\func { wxHtmlHelpData*} { GetData} { \void }
2006-01-09 13:42:57 +00:00
Returns the wxHtmlHelpData object, which is usually a pointer to the controller's data.
1999-10-27 23:30:38 +00:00
2006-01-09 13:42:57 +00:00
\membersection { wxHtmlHelpWindow::KeywordSearch} \label { wxhtmlhelpwindowkeywordsearch}
1999-10-27 23:30:38 +00:00
2003-09-09 17:29:11 +00:00
\func { bool} { KeywordSearch} { \param { const wxString\& } { keyword} , \param { wxHelpSearchMode } { mode = wxHELP\_ SEARCH\_ ALL} }
1999-10-27 23:30:38 +00:00
2003-09-09 17:29:11 +00:00
Search for given keyword. Optionally it searches through the index (mode =
wxHELP\_ SEARCH\_ INDEX), default the content (mode = wxHELP\_ SEARCH\_ ALL).
1999-10-27 23:30:38 +00:00
2006-01-09 13:42:57 +00:00
\membersection { wxHtmlHelpWindow::ReadCustomization} \label { wxhtmlhelpwindowreadcustomization}
1999-10-27 23:30:38 +00:00
\func { void} { ReadCustomization} { \param { wxConfigBase* } { cfg} , \param { const wxString\& } { path = wxEmptyString} }
2006-01-09 13:42:57 +00:00
Reads the user's settings for this window (see \helpref { wxHtmlHelpController::ReadCustomization} { wxhtmlhelpcontrollerreadcustomization} )
1999-10-27 23:30:38 +00:00
2006-01-09 13:42:57 +00:00
\membersection { wxHtmlHelpWindow::RefreshLists} \label { wxhtmlhelpwindowrefreshlists}
1999-10-27 23:30:38 +00:00
2005-02-06 17:27:04 +00:00
\func { void} { RefreshLists} { \void }
1999-10-27 23:30:38 +00:00
2000-03-09 20:15:44 +00:00
Refresh all panels. This is necessary if a new book was added.
1999-10-27 23:30:38 +00:00
2005-02-06 17:27:04 +00:00
Protected.
2006-01-09 13:42:57 +00:00
\membersection { wxHtmlHelpWindow::SetTitleFormat} \label { wxhtmlhelpwindowsettitleformat}
1999-10-27 23:30:38 +00:00
\func { void} { SetTitleFormat} { \param { const wxString\& } { format} }
2000-03-09 20:15:44 +00:00
Sets the frame's title format. { \it format} must contain exactly one "\% s"
(it will be replaced by the page title).
1999-10-27 23:30:38 +00:00
2006-01-09 13:42:57 +00:00
\membersection { wxHtmlHelpWindow::UseConfig} \label { wxhtmlhelpwindowuseconfig}
1999-10-27 23:30:38 +00:00
\func { void} { UseConfig} { \param { wxConfigBase* } { config} , \param { const wxString\& } { rootpath = wxEmptyString} }
2006-01-09 13:42:57 +00:00
Associates a wxConfig object with the help window. It is recommended that you use \helpref { wxHtmlHelpController::UseConfig} { wxhtmlhelpcontrolleruseconfig} instead.
1999-10-27 23:30:38 +00:00
2006-01-09 13:42:57 +00:00
\membersection { wxHtmlHelpWindow::WriteCustomization} \label { wxhtmlhelpwindowwritecustomization}
1999-10-27 23:30:38 +00:00
\func { void} { WriteCustomization} { \param { wxConfigBase* } { cfg} , \param { const wxString\& } { path = wxEmptyString} }
2006-01-09 13:42:57 +00:00
Saves the user's settings for this window(see \helpref { wxHtmlHelpController::WriteCustomization} { wxhtmlhelpcontrollerwritecustomization} ).
1999-10-27 23:30:38 +00:00
2006-01-09 13:42:57 +00:00
\membersection { wxHtmlHelpWindow::AddToolbarButtons} \label { wxhtmlhelpwindowaddtoolbarbuttons}
2000-01-19 01:01:08 +00:00
\func { virtual void} { AddToolbarButtons} { \param { wxToolBar *} { toolBar} , \param { int } { style} }
2006-01-09 13:42:57 +00:00
You may override this virtual method to add more buttons to the help window's
2000-02-06 19:11:10 +00:00
toolbar. { \it toolBar} is a pointer to the toolbar and { \it style} is the style
2006-01-09 13:42:57 +00:00
flag as passed to the Create method.
2000-01-19 01:01:08 +00:00
wxToolBar::Realize is called immediately after returning from this function.
See { \it samples/html/helpview} for an example.
2000-02-06 19:11:10 +00:00
2006-01-09 13:42:57 +00:00
\section { \class { wxHtmlModalHelp} } \label { wxhtmlmodalhelp}
This class uses \helpref { wxHtmlHelpController} { wxhtmlhelpcontroller}
to display help in a modal dialog. This is useful on platforms such as wxMac
where if you display help from a modal dialog, the help window must itself be a modal
dialog.
Create objects of this class on the stack, for example:
\begin { verbatim}
// The help can be browsed during the lifetime of this object; when the user quits
// the help, program execution will continue.
wxHtmlModalHelp help(parent, wxT("help"), wxT("My topic"));
\end { verbatim}
\wxheading { Derived from}
None
\wxheading { Include files}
<wx/html/helpctrl.h>
\latexignore { \rtfignore { \wxheading { Members} } }
\membersection { wxHtmlModalHelp::wxHtmlModalHelp} \label { wxhtmlmodalhelpctor}
\func { } { wxHtmlModalHelp} { \param { wxWindow* } { parent} , \param { const wxString\& } { helpFile} , \param { const wxString\& } { topic = wxEmptyString} ,
\param { int } { style = wxHF\_ DEFAULT\_ STYLE | wxHF\_ DIALOG | wxHF\_ MODAL} }
\wxheading { Parameters}
{ \it parent} is the parent of the dialog.
{ \it helpFile} is the HTML help file to show.
{ \it topic} is an optional topic. If this is empty, the help contents will be shown.
{ \it style} is a combination of the flags described in the \helpref { wxHtmlHelpController} { wxhtmlhelpcontroller} documentation.