1999-10-27 19:30:38 -04:00
|
|
|
%
|
|
|
|
% automatically generated by HelpGen from
|
|
|
|
% helpfrm.h at 24/Oct/99 18:03:10
|
|
|
|
%
|
|
|
|
|
|
|
|
\section{\class{wxHtmlHelpFrame}}\label{wxhtmlhelpframe}
|
|
|
|
|
2000-03-09 15:15:44 -05:00
|
|
|
This class is used by \helpref{wxHtmlHelpController}{wxhtmlhelpcontroller}
|
1999-10-27 19:30:38 -04:00
|
|
|
to display help.
|
2000-02-06 14:11:10 -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.
|
1999-10-27 19:30:38 -04:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxFrame}{wxframe}
|
|
|
|
|
2000-02-27 16:06:58 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/html/helpfrm.h>
|
|
|
|
|
1999-10-27 19:30:38 -04:00
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxHtmlHelpFrame::wxHtmlHelpFrame}\label{wxhtmlhelpframewxhtmlhelpframe}
|
|
|
|
|
|
|
|
\func{}{wxHtmlHelpFrame}{\param{wxHtmlHelpData* }{data = NULL}}
|
|
|
|
|
2001-05-05 14:05:57 -04: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 19:30:38 -04:00
|
|
|
|
|
|
|
Constructor.
|
|
|
|
|
|
|
|
{\it style} is combination of these flags:
|
|
|
|
|
2000-02-06 14:11:10 -05:00
|
|
|
\begin{twocollist}\itemsep=0pt
|
1999-10-27 19:30:38 -04:00
|
|
|
\twocolitem{\windowstyle{wxHF\_TOOLBAR}}{Help frame has toolbar.}
|
2001-05-05 14:05:57 -04:00
|
|
|
\twocolitem{\windowstyle{wxHF\_FLAT\_TOOLBAR}}{Help frame has toolbar with flat buttons (aka coolbar).}
|
1999-10-27 19:30:38 -04:00
|
|
|
\twocolitem{\windowstyle{wxHF\_CONTENTS}}{Help frame has contents panel.}
|
|
|
|
\twocolitem{\windowstyle{wxHF\_INDEX}}{Help frame has index panel.}
|
|
|
|
\twocolitem{\windowstyle{wxHF\_SEARCH}}{Help frame has search panel.}
|
1999-12-11 10:34:14 -05:00
|
|
|
\twocolitem{\windowstyle{wxHF\_BOOKMARKS}}{Help frame has bookmarks controls.}
|
2001-05-05 14:05:57 -04:00
|
|
|
\twocolitem{\windowstyle{wxHF\_OPEN\_FILES}}{Allow user to open arbitrary HTML document.}
|
2000-01-25 19:49:46 -05:00
|
|
|
\twocolitem{\windowstyle{wxHF\_PRINT}}{Toolbar contains "print" button.}
|
2001-05-05 14:05:57 -04:00
|
|
|
\twocolitem{\windowstyle{wxHF\_MERGE\_BOOKS}}{Contents pane does not show
|
|
|
|
book nodes. All books are merged together and appear as single book to the
|
|
|
|
user.}
|
|
|
|
\twocolitem{\windowstyle{wxHF\_ICONS\_BOOK}}{All nodes in contents pane
|
|
|
|
have a book icon. This is how Microsoft's HTML help viewer behaves.}
|
|
|
|
\twocolitem{\windowstyle{wxHF\_ICONS\_FOLDER}}{Book nodes in contents pane have
|
|
|
|
a book icon, book's sections have a folder icon. This is the default.}
|
2001-05-24 06:39:33 -04:00
|
|
|
\twocolitem{\windowstyle{wxHF\_ICONS\_BOOK\_CHAPTER}}{Both book nodes and
|
2001-05-05 14:05:57 -04:00
|
|
|
nodes of top-level sections of a book (i.e. chapters) have a book icon,
|
|
|
|
all other sections (sections, subsections, ...) have a folder icon.}
|
|
|
|
\twocolitem{\windowstyle{wxHF\_DEFAULT\_STYLE}}{{\tt wxHF\_TOOLBAR | wxHF\_CONTENTS
|
|
|
|
| wxHF\_INDEX | wxHF\_SEARCH | wxHF\_BOOKMARKS | wxHF\_PRINT}}
|
1999-10-27 19:30:38 -04:00
|
|
|
\end{twocollist}
|
|
|
|
|
|
|
|
\membersection{wxHtmlHelpFrame::Create}\label{wxhtmlhelpframecreate}
|
|
|
|
|
2001-05-05 14:05:57 -04:00
|
|
|
\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id}, \param{const wxString\& }{title = wxEmptyString}, \param{int }{style = wxHF\_DEFAULT\_STYLE}}
|
1999-10-27 19:30:38 -04:00
|
|
|
|
2001-05-05 14:05:57 -04:00
|
|
|
Creates the frame. See \helpref{the constructor}{wxhtmlhelpframewxhtmlhelpframe}
|
|
|
|
for parameters description.
|
1999-10-27 19:30:38 -04:00
|
|
|
|
|
|
|
\membersection{wxHtmlHelpFrame::CreateContents}\label{wxhtmlhelpframecreatecontents}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
\func{void}{CreateContents}{\param{bool }{show\_progress = false}}
|
1999-10-27 19:30:38 -04:00
|
|
|
|
|
|
|
Creates contents panel. (May take some time.)
|
|
|
|
|
|
|
|
\membersection{wxHtmlHelpFrame::CreateIndex}\label{wxhtmlhelpframecreateindex}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
\func{void}{CreateIndex}{\param{bool }{show\_progress = false}}
|
1999-10-27 19:30:38 -04:00
|
|
|
|
|
|
|
Creates index panel. (May take some time.)
|
|
|
|
|
|
|
|
\membersection{wxHtmlHelpFrame::CreateSearch}\label{wxhtmlhelpframecreatesearch}
|
|
|
|
|
|
|
|
\func{void}{CreateSearch}{\void}
|
|
|
|
|
|
|
|
Creates search panel.
|
|
|
|
|
|
|
|
\membersection{wxHtmlHelpFrame::Display}\label{wxhtmlhelpframedisplay}
|
|
|
|
|
|
|
|
\func{bool}{Display}{\param{const wxString\& }{x}}
|
|
|
|
|
|
|
|
\func{bool}{Display}{\param{const int }{id}}
|
|
|
|
|
2000-02-06 14:11:10 -05:00
|
|
|
Displays page x. If not found it will give the user the choice of
|
1999-10-27 19:30:38 -04:00
|
|
|
searching books.
|
|
|
|
Looking for the page runs in these steps:
|
2000-02-06 14:11:10 -05: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 19:30:38 -04:00
|
|
|
|
|
|
|
The second form takes numeric ID as the parameter.
|
|
|
|
(uses extension to MS format, <param name="ID" value=id>)
|
|
|
|
|
1999-10-29 18:16:53 -04:00
|
|
|
\pythonnote{The second form of this method is named DisplayId in
|
|
|
|
wxPython.}
|
|
|
|
|
1999-10-27 19:30:38 -04:00
|
|
|
\membersection{wxHtmlHelpFrame::DisplayContents}\label{wxhtmlhelpframedisplaycontents}
|
|
|
|
|
|
|
|
\func{bool}{DisplayContents}{\void}
|
|
|
|
|
|
|
|
Displays contents panel.
|
|
|
|
|
|
|
|
\membersection{wxHtmlHelpFrame::DisplayIndex}\label{wxhtmlhelpframedisplayindex}
|
|
|
|
|
|
|
|
\func{bool}{DisplayIndex}{\void}
|
|
|
|
|
|
|
|
Displays index panel.
|
|
|
|
|
|
|
|
\membersection{wxHtmlHelpFrame::GetData}\label{wxhtmlhelpframegetdata}
|
|
|
|
|
|
|
|
\func{wxHtmlHelpData*}{GetData}{\void}
|
|
|
|
|
|
|
|
Return wxHtmlHelpData object.
|
|
|
|
|
|
|
|
\membersection{wxHtmlHelpFrame::KeywordSearch}\label{wxhtmlhelpframekeywordsearch}
|
|
|
|
|
|
|
|
\func{bool}{KeywordSearch}{\param{const wxString\& }{keyword}}
|
|
|
|
|
|
|
|
Search for given keyword.
|
|
|
|
|
|
|
|
\membersection{wxHtmlHelpFrame::ReadCustomization}\label{wxhtmlhelpframereadcustomization}
|
|
|
|
|
|
|
|
\func{void}{ReadCustomization}{\param{wxConfigBase* }{cfg}, \param{const wxString\& }{path = wxEmptyString}}
|
|
|
|
|
|
|
|
Reads user's settings for this frame (see \helpref{wxHtmlHelpController::ReadCustomization}{wxhtmlhelpcontrollerreadcustomization})
|
|
|
|
|
|
|
|
\membersection{wxHtmlHelpFrame::RefreshLists}\label{wxhtmlhelpframerefreshlists}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
\func{void}{RefreshLists}{\param{bool }{show\_progress = false}}
|
1999-10-27 19:30:38 -04:00
|
|
|
|
2000-03-09 15:15:44 -05:00
|
|
|
Refresh all panels. This is necessary if a new book was added.
|
1999-10-27 19:30:38 -04:00
|
|
|
|
|
|
|
\membersection{wxHtmlHelpFrame::SetTitleFormat}\label{wxhtmlhelpframesettitleformat}
|
|
|
|
|
|
|
|
\func{void}{SetTitleFormat}{\param{const wxString\& }{format}}
|
|
|
|
|
2000-03-09 15:15:44 -05: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 19:30:38 -04:00
|
|
|
|
|
|
|
\membersection{wxHtmlHelpFrame::UseConfig}\label{wxhtmlhelpframeuseconfig}
|
|
|
|
|
|
|
|
\func{void}{UseConfig}{\param{wxConfigBase* }{config}, \param{const wxString\& }{rootpath = wxEmptyString}}
|
|
|
|
|
2000-02-06 14:11:10 -05:00
|
|
|
Add books to search choice panel.
|
1999-10-27 19:30:38 -04:00
|
|
|
|
|
|
|
\membersection{wxHtmlHelpFrame::WriteCustomization}\label{wxhtmlhelpframewritecustomization}
|
|
|
|
|
|
|
|
\func{void}{WriteCustomization}{\param{wxConfigBase* }{cfg}, \param{const wxString\& }{path = wxEmptyString}}
|
|
|
|
|
2000-02-06 14:11:10 -05:00
|
|
|
Saves user's settings for this frame (see \helpref{wxHtmlHelpController::WriteCustomization}{wxhtmlhelpcontrollerwritecustomization}).
|
1999-10-27 19:30:38 -04:00
|
|
|
|
2000-01-18 20:01:08 -05:00
|
|
|
\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 into help frame's
|
2000-02-06 14:11:10 -05:00
|
|
|
toolbar. {\it toolBar} is a pointer to the toolbar and {\it style} is the style
|
2000-01-18 20:01:08 -05:00
|
|
|
flag as passed to Create method.
|
|
|
|
|
|
|
|
wxToolBar::Realize is called immediately after returning from this function.
|
|
|
|
|
|
|
|
See {\it samples/html/helpview} for an example.
|
2000-02-06 14:11:10 -05:00
|
|
|
|