]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/hthlpfrm.tex
fixed nonsenses in tnoneng.tex
[wxWidgets.git] / docs / latex / wx / hthlpfrm.tex
CommitLineData
09397bc6
VS
1%
2% automatically generated by HelpGen from
3% helpfrm.h at 24/Oct/99 18:03:10
4%
5
09397bc6
VS
6\section{\class{wxHtmlHelpFrame}}\label{wxhtmlhelpframe}
7
7b28757f 8This class is used by \helpref{wxHtmlHelpController}{wxhtmlhelpcontroller}
09397bc6 9to display help.
457e6c54
JS
10It is an internal class and should not be used directly - except for the case
11when you're writing your own HTML help controller.
09397bc6
VS
12
13\wxheading{Derived from}
14
15\helpref{wxFrame}{wxframe}
16
9704b250
VS
17\wxheading{Include files}
18
19<wx/html/helpfrm.h>
20
09397bc6
VS
21\latexignore{\rtfignore{\wxheading{Members}}}
22
09397bc6
VS
23\membersection{wxHtmlHelpFrame::wxHtmlHelpFrame}\label{wxhtmlhelpframewxhtmlhelpframe}
24
25\func{}{wxHtmlHelpFrame}{\param{wxHtmlHelpData* }{data = NULL}}
26
27\func{}{wxHtmlHelpFrame}{\param{wxWindow* }{parent}, \param{int }{wxWindowID}, \param{const wxString\& }{title = wxEmptyString}, \param{int }{style = wxHF\_DEFAULTSTYLE}, \param{wxHtmlHelpData* }{data = NULL}}
28
29Constructor.
30
31{\it style} is combination of these flags:
32
457e6c54 33\begin{twocollist}\itemsep=0pt
09397bc6 34\twocolitem{\windowstyle{wxHF\_TOOLBAR}}{Help frame has toolbar.}
f6bcfd97 35\twocolitem{\windowstyle{wxHF\_FLATTOOLBAR}}{Help frame has toolbar with flat buttons (aka coolbar).}
09397bc6
VS
36\twocolitem{\windowstyle{wxHF\_CONTENTS}}{Help frame has contents panel.}
37\twocolitem{\windowstyle{wxHF\_INDEX}}{Help frame has index panel.}
38\twocolitem{\windowstyle{wxHF\_SEARCH}}{Help frame has search panel.}
c914a1a2 39\twocolitem{\windowstyle{wxHF\_BOOKMARKS}}{Help frame has bookmarks controls.}
ecacdf8f
VS
40\twocolitem{\windowstyle{wxHF\_OPENFILES}}{Allow user to open arbitrary HTML document.}
41\twocolitem{\windowstyle{wxHF\_PRINT}}{Toolbar contains "print" button.}
09397bc6
VS
42\end{twocollist}
43
09397bc6
VS
44\membersection{wxHtmlHelpFrame::Create}\label{wxhtmlhelpframecreate}
45
46\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id}, \param{const wxString\& }{title = wxEmptyString}, \param{int }{style = wxHF\_DEFAULTSTYLE}}
47
48Creates the frame.
49
50{\it style} is combination of these flags:
51
457e6c54 52\begin{twocollist}\itemsep=0pt
09397bc6 53\twocolitem{\windowstyle{wxHF\_TOOLBAR}}{Help frame has toolbar.}
f6bcfd97 54\twocolitem{\windowstyle{wxHF\_FLATTOOLBAR}}{Help frame has toolbar with flat buttons (aka coolbar).}
09397bc6
VS
55\twocolitem{\windowstyle{wxHF\_CONTENTS}}{Help frame has contents panel.}
56\twocolitem{\windowstyle{wxHF\_INDEX}}{Help frame has index panel.}
57\twocolitem{\windowstyle{wxHF\_SEARCH}}{Help frame has search panel.}
f6bcfd97
BP
58\twocolitem{\windowstyle{wxHF\_BOOKMARKS}}{Help frame has bookmarks controls.}
59\twocolitem{\windowstyle{wxHF\_OPENFILES}}{Allow user to open arbitrary HTML document.}
60\twocolitem{\windowstyle{wxHF\_PRINT}}{Toolbar contains "print" button.}
09397bc6
VS
61\end{twocollist}
62
09397bc6
VS
63\membersection{wxHtmlHelpFrame::CreateContents}\label{wxhtmlhelpframecreatecontents}
64
65\func{void}{CreateContents}{\param{bool }{show\_progress = FALSE}}
66
67Creates contents panel. (May take some time.)
68
09397bc6
VS
69\membersection{wxHtmlHelpFrame::CreateIndex}\label{wxhtmlhelpframecreateindex}
70
71\func{void}{CreateIndex}{\param{bool }{show\_progress = FALSE}}
72
73Creates index panel. (May take some time.)
74
09397bc6
VS
75\membersection{wxHtmlHelpFrame::CreateSearch}\label{wxhtmlhelpframecreatesearch}
76
77\func{void}{CreateSearch}{\void}
78
79Creates search panel.
80
09397bc6
VS
81\membersection{wxHtmlHelpFrame::Display}\label{wxhtmlhelpframedisplay}
82
83\func{bool}{Display}{\param{const wxString\& }{x}}
84
85\func{bool}{Display}{\param{const int }{id}}
86
457e6c54 87Displays page x. If not found it will give the user the choice of
09397bc6
VS
88searching books.
89Looking for the page runs in these steps:
457e6c54
JS
90
91\begin{enumerate}\itemsep=0pt
92\item try to locate file named x (if x is for example "doc/howto.htm")
93\item try to open starting page of book x
94\item try to find x in contents (if x is for example "How To ...")
95\item try to find x in index (if x is for example "How To ...")
96\end{enumerate}
09397bc6
VS
97
98The second form takes numeric ID as the parameter.
99(uses extension to MS format, <param name="ID" value=id>)
100
b32c6ff0
RD
101\pythonnote{The second form of this method is named DisplayId in
102wxPython.}
103
09397bc6
VS
104\membersection{wxHtmlHelpFrame::DisplayContents}\label{wxhtmlhelpframedisplaycontents}
105
106\func{bool}{DisplayContents}{\void}
107
108Displays contents panel.
109
110\membersection{wxHtmlHelpFrame::DisplayIndex}\label{wxhtmlhelpframedisplayindex}
111
112\func{bool}{DisplayIndex}{\void}
113
114Displays index panel.
115
09397bc6
VS
116\membersection{wxHtmlHelpFrame::GetData}\label{wxhtmlhelpframegetdata}
117
118\func{wxHtmlHelpData*}{GetData}{\void}
119
120Return wxHtmlHelpData object.
121
122\membersection{wxHtmlHelpFrame::KeywordSearch}\label{wxhtmlhelpframekeywordsearch}
123
124\func{bool}{KeywordSearch}{\param{const wxString\& }{keyword}}
125
126Search for given keyword.
127
09397bc6
VS
128\membersection{wxHtmlHelpFrame::ReadCustomization}\label{wxhtmlhelpframereadcustomization}
129
130\func{void}{ReadCustomization}{\param{wxConfigBase* }{cfg}, \param{const wxString\& }{path = wxEmptyString}}
131
132Reads user's settings for this frame (see \helpref{wxHtmlHelpController::ReadCustomization}{wxhtmlhelpcontrollerreadcustomization})
133
134\membersection{wxHtmlHelpFrame::RefreshLists}\label{wxhtmlhelpframerefreshlists}
135
136\func{void}{RefreshLists}{\param{bool }{show\_progress = FALSE}}
137
7b28757f 138Refresh all panels. This is necessary if a new book was added.
09397bc6
VS
139
140\membersection{wxHtmlHelpFrame::SetTitleFormat}\label{wxhtmlhelpframesettitleformat}
141
142\func{void}{SetTitleFormat}{\param{const wxString\& }{format}}
143
7b28757f
JS
144Sets the frame's title format. {\it format} must contain exactly one "\%s"
145(it will be replaced by the page title).
09397bc6
VS
146
147\membersection{wxHtmlHelpFrame::UseConfig}\label{wxhtmlhelpframeuseconfig}
148
149\func{void}{UseConfig}{\param{wxConfigBase* }{config}, \param{const wxString\& }{rootpath = wxEmptyString}}
150
457e6c54 151Add books to search choice panel.
09397bc6
VS
152
153\membersection{wxHtmlHelpFrame::WriteCustomization}\label{wxhtmlhelpframewritecustomization}
154
155\func{void}{WriteCustomization}{\param{wxConfigBase* }{cfg}, \param{const wxString\& }{path = wxEmptyString}}
156
457e6c54 157Saves user's settings for this frame (see \helpref{wxHtmlHelpController::WriteCustomization}{wxhtmlhelpcontrollerwritecustomization}).
09397bc6 158
b854b7b8
VS
159\membersection{wxHtmlHelpFrame::AddToolbarButtons}\label{wxhtmlhelpframeaddtoolbarbuttons}
160
161\func{virtual void}{AddToolbarButtons}{\param{wxToolBar *}{toolBar}, \param{int }{style}}
162
163You may override this virtual method to add more buttons into help frame's
457e6c54 164toolbar. {\it toolBar} is a pointer to the toolbar and {\it style} is the style
b854b7b8
VS
165flag as passed to Create method.
166
167wxToolBar::Realize is called immediately after returning from this function.
168
169See {\it samples/html/helpview} for an example.
457e6c54 170