2 % automatically generated by HelpGen from
3 % helpfrm.h at 24/Oct/99 18:03:10
6 \section{\class{wxHtmlHelpFrame
}}\label{wxhtmlhelpframe
}
8 This class is used by
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
}
10 It is an internal class and should not be used directly - except for the case
11 when you're writing your own HTML help controller.
13 \wxheading{Derived from
}
15 \helpref{wxFrame
}{wxframe
}
17 \wxheading{Include files
}
21 \latexignore{\rtfignore{\wxheading{Members
}}}
23 \membersection{wxHtmlHelpFrame::wxHtmlHelpFrame
}\label{wxhtmlhelpframewxhtmlhelpframe
}
25 \func{}{wxHtmlHelpFrame
}{\param{wxHtmlHelpData*
}{data = NULL
}}
27 \func{}{wxHtmlHelpFrame
}{\param{wxWindow*
}{parent
},
\param{int
}{wxWindowID
},
\param{const wxString\&
}{title = wxEmptyString
},
\param{int
}{style = wxHF
\_DEFAULTSTYLE},
\param{wxHtmlHelpData*
}{data = NULL
}}
31 {\it style
} is combination of these flags:
33 \begin{twocollist
}\itemsep=
0pt
34 \twocolitem{\windowstyle{wxHF
\_TOOLBAR}}{Help frame has toolbar.
}
35 \twocolitem{\windowstyle{wxHF
\_FLATTOOLBAR}}{Help frame has toolbar with flat buttons (aka coolbar).
}
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.
}
39 \twocolitem{\windowstyle{wxHF
\_BOOKMARKS}}{Help frame has bookmarks controls.
}
40 \twocolitem{\windowstyle{wxHF
\_OPENFILES}}{Allow user to open arbitrary HTML
document.
}
41 \twocolitem{\windowstyle{wxHF
\_PRINT}}{Toolbar contains "print" button.
}
44 \membersection{wxHtmlHelpFrame::Create
}\label{wxhtmlhelpframecreate
}
46 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{const wxString\&
}{title = wxEmptyString
},
\param{int
}{style = wxHF
\_DEFAULTSTYLE}}
50 {\it style
} is combination of these flags:
52 \begin{twocollist
}\itemsep=
0pt
53 \twocolitem{\windowstyle{wxHF
\_TOOLBAR}}{Help frame has toolbar.
}
54 \twocolitem{\windowstyle{wxHF
\_FLATTOOLBAR}}{Help frame has toolbar with flat buttons (aka coolbar).
}
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.
}
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.
}
63 \membersection{wxHtmlHelpFrame::CreateContents
}\label{wxhtmlhelpframecreatecontents
}
65 \func{void
}{CreateContents
}{\param{bool
}{show
\_progress = FALSE
}}
67 Creates contents panel. (May take some time.)
69 \membersection{wxHtmlHelpFrame::CreateIndex
}\label{wxhtmlhelpframecreateindex
}
71 \func{void
}{CreateIndex
}{\param{bool
}{show
\_progress = FALSE
}}
73 Creates index panel. (May take some time.)
75 \membersection{wxHtmlHelpFrame::CreateSearch
}\label{wxhtmlhelpframecreatesearch
}
77 \func{void
}{CreateSearch
}{\void}
81 \membersection{wxHtmlHelpFrame::Display
}\label{wxhtmlhelpframedisplay
}
83 \func{bool
}{Display
}{\param{const wxString\&
}{x
}}
85 \func{bool
}{Display
}{\param{const int
}{id
}}
87 Displays page x. If not found it will give the user the choice of
89 Looking for the page runs in these steps:
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 ...")
98 The second form takes numeric ID as the parameter.
99 (uses extension to MS format, <param name="ID" value=id>)
101 \pythonnote{The second form of this method is named DisplayId in
104 \membersection{wxHtmlHelpFrame::DisplayContents
}\label{wxhtmlhelpframedisplaycontents
}
106 \func{bool
}{DisplayContents
}{\void}
108 Displays contents panel.
110 \membersection{wxHtmlHelpFrame::DisplayIndex
}\label{wxhtmlhelpframedisplayindex
}
112 \func{bool
}{DisplayIndex
}{\void}
114 Displays index panel.
116 \membersection{wxHtmlHelpFrame::GetData
}\label{wxhtmlhelpframegetdata
}
118 \func{wxHtmlHelpData*
}{GetData
}{\void}
120 Return wxHtmlHelpData object.
122 \membersection{wxHtmlHelpFrame::KeywordSearch
}\label{wxhtmlhelpframekeywordsearch
}
124 \func{bool
}{KeywordSearch
}{\param{const wxString\&
}{keyword
}}
126 Search for given keyword.
128 \membersection{wxHtmlHelpFrame::ReadCustomization
}\label{wxhtmlhelpframereadcustomization
}
130 \func{void
}{ReadCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
132 Reads user's settings for this frame (see
\helpref{wxHtmlHelpController::ReadCustomization
}{wxhtmlhelpcontrollerreadcustomization
})
134 \membersection{wxHtmlHelpFrame::RefreshLists
}\label{wxhtmlhelpframerefreshlists
}
136 \func{void
}{RefreshLists
}{\param{bool
}{show
\_progress = FALSE
}}
138 Refresh all panels. This is necessary if a new book was added.
140 \membersection{wxHtmlHelpFrame::SetTitleFormat
}\label{wxhtmlhelpframesettitleformat
}
142 \func{void
}{SetTitleFormat
}{\param{const wxString\&
}{format
}}
144 Sets the frame's title format.
{\it format
} must contain exactly one "\%s"
145 (it will be replaced by the page title).
147 \membersection{wxHtmlHelpFrame::UseConfig
}\label{wxhtmlhelpframeuseconfig
}
149 \func{void
}{UseConfig
}{\param{wxConfigBase*
}{config
},
\param{const wxString\&
}{rootpath = wxEmptyString
}}
151 Add books to search choice panel.
153 \membersection{wxHtmlHelpFrame::WriteCustomization
}\label{wxhtmlhelpframewritecustomization
}
155 \func{void
}{WriteCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
157 Saves user's settings for this frame (see
\helpref{wxHtmlHelpController::WriteCustomization
}{wxhtmlhelpcontrollerwritecustomization
}).
159 \membersection{wxHtmlHelpFrame::AddToolbarButtons
}\label{wxhtmlhelpframeaddtoolbarbuttons
}
161 \func{virtual void
}{AddToolbarButtons
}{\param{wxToolBar *
}{toolBar
},
\param{int
}{style
}}
163 You may override this virtual method to add more buttons into help frame's
164 toolbar.
{\it toolBar
} is a pointer to the toolbar and
{\it style
} is the style
165 flag as passed to Create method.
167 wxToolBar::Realize is called immediately after returning from this function.
169 See
{\it samples/html/helpview
} for an example.