]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/hthlpfrm.tex
finished implementation for stencil and colored patterns
[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
576507e2 27\func{}{wxHtmlHelpFrame}{\param{wxWindow* }{parent}, \param{int }{wxWindowID}, \param{const wxString\& }{title = wxEmptyString}, \param{int }{style = wxHF\_DEFAULT\_STYLE}, \param{wxHtmlHelpData* }{data = NULL}}
09397bc6
VS
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.}
576507e2 35\twocolitem{\windowstyle{wxHF\_FLAT\_TOOLBAR}}{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.}
576507e2 40\twocolitem{\windowstyle{wxHF\_OPEN\_FILES}}{Allow user to open arbitrary HTML document.}
ecacdf8f 41\twocolitem{\windowstyle{wxHF\_PRINT}}{Toolbar contains "print" button.}
576507e2
VS
42\twocolitem{\windowstyle{wxHF\_MERGE\_BOOKS}}{Contents pane does not show
43book nodes. All books are merged together and appear as single book to the
44user.}
45\twocolitem{\windowstyle{wxHF\_ICONS\_BOOK}}{All nodes in contents pane
46have a book icon. This is how Microsoft's HTML help viewer behaves.}
47\twocolitem{\windowstyle{wxHF\_ICONS\_FOLDER}}{Book nodes in contents pane have
48a book icon, book's sections have a folder icon. This is the default.}
e7240349 49\twocolitem{\windowstyle{wxHF\_ICONS\_BOOK\_CHAPTER}}{Both book nodes and
576507e2
VS
50nodes of top-level sections of a book (i.e. chapters) have a book icon,
51all other sections (sections, subsections, ...) have a folder icon.}
52\twocolitem{\windowstyle{wxHF\_DEFAULT\_STYLE}}{{\tt wxHF\_TOOLBAR | wxHF\_CONTENTS
53| wxHF\_INDEX | wxHF\_SEARCH | wxHF\_BOOKMARKS | wxHF\_PRINT}}
09397bc6
VS
54\end{twocollist}
55
09397bc6
VS
56\membersection{wxHtmlHelpFrame::Create}\label{wxhtmlhelpframecreate}
57
576507e2 58\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id}, \param{const wxString\& }{title = wxEmptyString}, \param{int }{style = wxHF\_DEFAULT\_STYLE}}
09397bc6 59
576507e2
VS
60Creates the frame. See \helpref{the constructor}{wxhtmlhelpframewxhtmlhelpframe}
61for parameters description.
09397bc6 62
09397bc6
VS
63\membersection{wxHtmlHelpFrame::CreateContents}\label{wxhtmlhelpframecreatecontents}
64
f6e9a818 65\func{void}{CreateContents}{\void}
09397bc6
VS
66
67Creates contents panel. (May take some time.)
68
f6e9a818
RN
69Protected.
70
09397bc6
VS
71\membersection{wxHtmlHelpFrame::CreateIndex}\label{wxhtmlhelpframecreateindex}
72
f6e9a818 73\func{void}{CreateIndex}{\void}
09397bc6
VS
74
75Creates index panel. (May take some time.)
76
f6e9a818
RN
77Protected.
78
09397bc6
VS
79\membersection{wxHtmlHelpFrame::CreateSearch}\label{wxhtmlhelpframecreatesearch}
80
81\func{void}{CreateSearch}{\void}
82
83Creates search panel.
84
09397bc6
VS
85\membersection{wxHtmlHelpFrame::Display}\label{wxhtmlhelpframedisplay}
86
87\func{bool}{Display}{\param{const wxString\& }{x}}
88
89\func{bool}{Display}{\param{const int }{id}}
90
457e6c54 91Displays page x. If not found it will give the user the choice of
09397bc6
VS
92searching books.
93Looking for the page runs in these steps:
457e6c54
JS
94
95\begin{enumerate}\itemsep=0pt
96\item try to locate file named x (if x is for example "doc/howto.htm")
97\item try to open starting page of book x
98\item try to find x in contents (if x is for example "How To ...")
99\item try to find x in index (if x is for example "How To ...")
100\end{enumerate}
09397bc6
VS
101
102The second form takes numeric ID as the parameter.
103(uses extension to MS format, <param name="ID" value=id>)
104
b32c6ff0
RD
105\pythonnote{The second form of this method is named DisplayId in
106wxPython.}
107
09397bc6
VS
108\membersection{wxHtmlHelpFrame::DisplayContents}\label{wxhtmlhelpframedisplaycontents}
109
110\func{bool}{DisplayContents}{\void}
111
112Displays contents panel.
113
114\membersection{wxHtmlHelpFrame::DisplayIndex}\label{wxhtmlhelpframedisplayindex}
115
116\func{bool}{DisplayIndex}{\void}
117
118Displays index panel.
119
09397bc6
VS
120\membersection{wxHtmlHelpFrame::GetData}\label{wxhtmlhelpframegetdata}
121
122\func{wxHtmlHelpData*}{GetData}{\void}
123
124Return wxHtmlHelpData object.
125
126\membersection{wxHtmlHelpFrame::KeywordSearch}\label{wxhtmlhelpframekeywordsearch}
127
69b5cec2 128\func{bool}{KeywordSearch}{\param{const wxString\& }{keyword}, \param{wxHelpSearchMode }{mode = wxHELP\_SEARCH\_ALL}}
09397bc6 129
69b5cec2
VS
130Search for given keyword. Optionally it searches through the index (mode =
131wxHELP\_SEARCH\_INDEX), default the content (mode = wxHELP\_SEARCH\_ALL).
09397bc6 132
09397bc6
VS
133\membersection{wxHtmlHelpFrame::ReadCustomization}\label{wxhtmlhelpframereadcustomization}
134
135\func{void}{ReadCustomization}{\param{wxConfigBase* }{cfg}, \param{const wxString\& }{path = wxEmptyString}}
136
137Reads user's settings for this frame (see \helpref{wxHtmlHelpController::ReadCustomization}{wxhtmlhelpcontrollerreadcustomization})
138
139\membersection{wxHtmlHelpFrame::RefreshLists}\label{wxhtmlhelpframerefreshlists}
140
f6e9a818 141\func{void}{RefreshLists}{\void}
09397bc6 142
7b28757f 143Refresh all panels. This is necessary if a new book was added.
09397bc6 144
f6e9a818
RN
145Protected.
146
09397bc6
VS
147\membersection{wxHtmlHelpFrame::SetTitleFormat}\label{wxhtmlhelpframesettitleformat}
148
149\func{void}{SetTitleFormat}{\param{const wxString\& }{format}}
150
7b28757f
JS
151Sets the frame's title format. {\it format} must contain exactly one "\%s"
152(it will be replaced by the page title).
09397bc6
VS
153
154\membersection{wxHtmlHelpFrame::UseConfig}\label{wxhtmlhelpframeuseconfig}
155
156\func{void}{UseConfig}{\param{wxConfigBase* }{config}, \param{const wxString\& }{rootpath = wxEmptyString}}
157
457e6c54 158Add books to search choice panel.
09397bc6
VS
159
160\membersection{wxHtmlHelpFrame::WriteCustomization}\label{wxhtmlhelpframewritecustomization}
161
162\func{void}{WriteCustomization}{\param{wxConfigBase* }{cfg}, \param{const wxString\& }{path = wxEmptyString}}
163
457e6c54 164Saves user's settings for this frame (see \helpref{wxHtmlHelpController::WriteCustomization}{wxhtmlhelpcontrollerwritecustomization}).
09397bc6 165
b854b7b8
VS
166\membersection{wxHtmlHelpFrame::AddToolbarButtons}\label{wxhtmlhelpframeaddtoolbarbuttons}
167
168\func{virtual void}{AddToolbarButtons}{\param{wxToolBar *}{toolBar}, \param{int }{style}}
169
170You may override this virtual method to add more buttons into help frame's
457e6c54 171toolbar. {\it toolBar} is a pointer to the toolbar and {\it style} is the style
b854b7b8
VS
172flag as passed to Create method.
173
174wxToolBar::Realize is called immediately after returning from this function.
175
176See {\it samples/html/helpview} for an example.
457e6c54 177