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
}
22 \latexignore{\rtfignore{\wxheading{Members
}}}
24 \membersection{wxHtmlHelpFrame::wxHtmlHelpFrame
}\label{wxhtmlhelpframewxhtmlhelpframe
}
26 \func{}{wxHtmlHelpFrame
}{\param{wxHtmlHelpData*
}{data = NULL
}}
28 \func{}{wxHtmlHelpFrame
}{\param{wxWindow*
}{parent
},
\param{int
}{wxWindowID
},
\param{const wxString\&
}{title = wxEmptyString
},
\param{int
}{style = wxHF
\_DEFAULTSTYLE},
\param{wxHtmlHelpData*
}{data = NULL
}}
32 {\it style
} is combination of these flags:
34 \begin{twocollist
}\itemsep=
0pt
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.
}
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
\_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.
}
59 \membersection{wxHtmlHelpFrame::CreateContents
}\label{wxhtmlhelpframecreatecontents
}
61 \func{void
}{CreateContents
}{\param{bool
}{show
\_progress = FALSE
}}
63 Creates contents panel. (May take some time.)
65 \membersection{wxHtmlHelpFrame::CreateIndex
}\label{wxhtmlhelpframecreateindex
}
67 \func{void
}{CreateIndex
}{\param{bool
}{show
\_progress = FALSE
}}
69 Creates index panel. (May take some time.)
71 \membersection{wxHtmlHelpFrame::CreateSearch
}\label{wxhtmlhelpframecreatesearch
}
73 \func{void
}{CreateSearch
}{\void}
77 \membersection{wxHtmlHelpFrame::Display
}\label{wxhtmlhelpframedisplay
}
79 \func{bool
}{Display
}{\param{const wxString\&
}{x
}}
81 \func{bool
}{Display
}{\param{const int
}{id
}}
83 Displays page x. If not found it will give the user the choice of
85 Looking for the page runs in these steps:
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 ...")
94 The second form takes numeric ID as the parameter.
95 (uses extension to MS format, <param name="ID" value=id>)
97 \pythonnote{The second form of this method is named DisplayId in
100 \membersection{wxHtmlHelpFrame::DisplayContents
}\label{wxhtmlhelpframedisplaycontents
}
102 \func{bool
}{DisplayContents
}{\void}
104 Displays contents panel.
106 \membersection{wxHtmlHelpFrame::DisplayIndex
}\label{wxhtmlhelpframedisplayindex
}
108 \func{bool
}{DisplayIndex
}{\void}
110 Displays index panel.
112 \membersection{wxHtmlHelpFrame::GetData
}\label{wxhtmlhelpframegetdata
}
114 \func{wxHtmlHelpData*
}{GetData
}{\void}
116 Return wxHtmlHelpData object.
118 \membersection{wxHtmlHelpFrame::KeywordSearch
}\label{wxhtmlhelpframekeywordsearch
}
120 \func{bool
}{KeywordSearch
}{\param{const wxString\&
}{keyword
}}
122 Search for given keyword.
124 \membersection{wxHtmlHelpFrame::ReadCustomization
}\label{wxhtmlhelpframereadcustomization
}
126 \func{void
}{ReadCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
128 Reads user's settings for this frame (see
\helpref{wxHtmlHelpController::ReadCustomization
}{wxhtmlhelpcontrollerreadcustomization
})
130 \membersection{wxHtmlHelpFrame::RefreshLists
}\label{wxhtmlhelpframerefreshlists
}
132 \func{void
}{RefreshLists
}{\param{bool
}{show
\_progress = FALSE
}}
134 Refresh all panels. This is necessary if new book was added.
136 \membersection{wxHtmlHelpFrame::SetTitleFormat
}\label{wxhtmlhelpframesettitleformat
}
138 \func{void
}{SetTitleFormat
}{\param{const wxString\&
}{format
}}
140 Sets frame's title format.
{\it format
} must contain exactly one "\%s"
141 (it will be replaced by page's title).
143 \membersection{wxHtmlHelpFrame::UseConfig
}\label{wxhtmlhelpframeuseconfig
}
145 \func{void
}{UseConfig
}{\param{wxConfigBase*
}{config
},
\param{const wxString\&
}{rootpath = wxEmptyString
}}
147 Add books to search choice panel.
149 \membersection{wxHtmlHelpFrame::WriteCustomization
}\label{wxhtmlhelpframewritecustomization
}
151 \func{void
}{WriteCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
153 Saves user's settings for this frame (see
\helpref{wxHtmlHelpController::WriteCustomization
}{wxhtmlhelpcontrollerwritecustomization
}).
155 \membersection{wxHtmlHelpFrame::AddToolbarButtons
}\label{wxhtmlhelpframeaddtoolbarbuttons
}
157 \func{virtual void
}{AddToolbarButtons
}{\param{wxToolBar *
}{toolBar
},
\param{int
}{style
}}
159 You may override this virtual method to add more buttons into help frame's
160 toolbar.
{\it toolBar
} is a pointer to the toolbar and
{\it style
} is the style
161 flag as passed to Create method.
163 wxToolBar::Realize is called immediately after returning from this function.
165 See
{\it samples/html/helpview
} for an example.