]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/hthlpfrm.tex
added compression ratio argument to wxZlibOutputStream ctor
[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
8This class is used by \helpref{wxHtmlHelpController}{wxhtmlhelpcontroller}
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
21
09397bc6
VS
22\latexignore{\rtfignore{\wxheading{Members}}}
23
09397bc6
VS
24\membersection{wxHtmlHelpFrame::wxHtmlHelpFrame}\label{wxhtmlhelpframewxhtmlhelpframe}
25
26\func{}{wxHtmlHelpFrame}{\param{wxHtmlHelpData* }{data = NULL}}
27
28\func{}{wxHtmlHelpFrame}{\param{wxWindow* }{parent}, \param{int }{wxWindowID}, \param{const wxString\& }{title = wxEmptyString}, \param{int }{style = wxHF\_DEFAULTSTYLE}, \param{wxHtmlHelpData* }{data = NULL}}
29
30Constructor.
31
32{\it style} is combination of these flags:
33
457e6c54 34\begin{twocollist}\itemsep=0pt
09397bc6
VS
35\twocolitem{\windowstyle{wxHF\_TOOLBAR}}{Help frame has toolbar.}
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
VS
53\twocolitem{\windowstyle{wxHF\_TOOLBAR}}{Help frame has toolbar.}
54\twocolitem{\windowstyle{wxHF\_CONTENTS}}{Help frame has contents panel.}
55\twocolitem{\windowstyle{wxHF\_INDEX}}{Help frame has index panel.}
56\twocolitem{\windowstyle{wxHF\_SEARCH}}{Help frame has search panel.}
57\end{twocollist}
58
09397bc6
VS
59\membersection{wxHtmlHelpFrame::CreateContents}\label{wxhtmlhelpframecreatecontents}
60
61\func{void}{CreateContents}{\param{bool }{show\_progress = FALSE}}
62
63Creates contents panel. (May take some time.)
64
09397bc6
VS
65\membersection{wxHtmlHelpFrame::CreateIndex}\label{wxhtmlhelpframecreateindex}
66
67\func{void}{CreateIndex}{\param{bool }{show\_progress = FALSE}}
68
69Creates index panel. (May take some time.)
70
09397bc6
VS
71\membersection{wxHtmlHelpFrame::CreateSearch}\label{wxhtmlhelpframecreatesearch}
72
73\func{void}{CreateSearch}{\void}
74
75Creates search panel.
76
09397bc6
VS
77\membersection{wxHtmlHelpFrame::Display}\label{wxhtmlhelpframedisplay}
78
79\func{bool}{Display}{\param{const wxString\& }{x}}
80
81\func{bool}{Display}{\param{const int }{id}}
82
457e6c54 83Displays page x. If not found it will give the user the choice of
09397bc6
VS
84searching books.
85Looking for the page runs in these steps:
457e6c54
JS
86
87\begin{enumerate}\itemsep=0pt
88\item try to locate file named x (if x is for example "doc/howto.htm")
89\item try to open starting page of book x
90\item try to find x in contents (if x is for example "How To ...")
91\item try to find x in index (if x is for example "How To ...")
92\end{enumerate}
09397bc6
VS
93
94The second form takes numeric ID as the parameter.
95(uses extension to MS format, <param name="ID" value=id>)
96
b32c6ff0
RD
97\pythonnote{The second form of this method is named DisplayId in
98wxPython.}
99
09397bc6
VS
100\membersection{wxHtmlHelpFrame::DisplayContents}\label{wxhtmlhelpframedisplaycontents}
101
102\func{bool}{DisplayContents}{\void}
103
104Displays contents panel.
105
106\membersection{wxHtmlHelpFrame::DisplayIndex}\label{wxhtmlhelpframedisplayindex}
107
108\func{bool}{DisplayIndex}{\void}
109
110Displays index panel.
111
09397bc6
VS
112\membersection{wxHtmlHelpFrame::GetData}\label{wxhtmlhelpframegetdata}
113
114\func{wxHtmlHelpData*}{GetData}{\void}
115
116Return wxHtmlHelpData object.
117
118\membersection{wxHtmlHelpFrame::KeywordSearch}\label{wxhtmlhelpframekeywordsearch}
119
120\func{bool}{KeywordSearch}{\param{const wxString\& }{keyword}}
121
122Search for given keyword.
123
09397bc6
VS
124\membersection{wxHtmlHelpFrame::ReadCustomization}\label{wxhtmlhelpframereadcustomization}
125
126\func{void}{ReadCustomization}{\param{wxConfigBase* }{cfg}, \param{const wxString\& }{path = wxEmptyString}}
127
128Reads user's settings for this frame (see \helpref{wxHtmlHelpController::ReadCustomization}{wxhtmlhelpcontrollerreadcustomization})
129
130\membersection{wxHtmlHelpFrame::RefreshLists}\label{wxhtmlhelpframerefreshlists}
131
132\func{void}{RefreshLists}{\param{bool }{show\_progress = FALSE}}
133
457e6c54 134Refresh all panels. This is necessary if new book was added.
09397bc6
VS
135
136\membersection{wxHtmlHelpFrame::SetTitleFormat}\label{wxhtmlhelpframesettitleformat}
137
138\func{void}{SetTitleFormat}{\param{const wxString\& }{format}}
139
140Sets frame's title format. {\it format} must contain exactly one "\%s"
141(it will be replaced by page's title).
142
143\membersection{wxHtmlHelpFrame::UseConfig}\label{wxhtmlhelpframeuseconfig}
144
145\func{void}{UseConfig}{\param{wxConfigBase* }{config}, \param{const wxString\& }{rootpath = wxEmptyString}}
146
457e6c54 147Add books to search choice panel.
09397bc6
VS
148
149\membersection{wxHtmlHelpFrame::WriteCustomization}\label{wxhtmlhelpframewritecustomization}
150
151\func{void}{WriteCustomization}{\param{wxConfigBase* }{cfg}, \param{const wxString\& }{path = wxEmptyString}}
152
457e6c54 153Saves user's settings for this frame (see \helpref{wxHtmlHelpController::WriteCustomization}{wxhtmlhelpcontrollerwritecustomization}).
09397bc6 154
b854b7b8
VS
155\membersection{wxHtmlHelpFrame::AddToolbarButtons}\label{wxhtmlhelpframeaddtoolbarbuttons}
156
157\func{virtual void}{AddToolbarButtons}{\param{wxToolBar *}{toolBar}, \param{int }{style}}
158
159You may override this virtual method to add more buttons into help frame's
457e6c54 160toolbar. {\it toolBar} is a pointer to the toolbar and {\it style} is the style
b854b7b8
VS
161flag as passed to Create method.
162
163wxToolBar::Realize is called immediately after returning from this function.
164
165See {\it samples/html/helpview} for an example.
457e6c54 166