2 % automatically generated by HelpGen from
3 % helpfrm.h at 24/Oct/99 18:03:10
7 \section{\class{wxHtmlHelpFrame
}}\label{wxhtmlhelpframe
}
9 This class is used by
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
}
11 It is internal class and should not be used directly - except for the case
12 you're writing your own HTML help controller.
15 \wxheading{Derived from
}
17 \helpref{wxFrame
}{wxframe
}
19 \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:
34 \twocolitem{\windowstyle{wxHF
\_TOOLBAR}}{Help frame has toolbar.
}
35 \twocolitem{\windowstyle{wxHF
\_CONTENTS}}{Help frame has contents panel.
}
36 \twocolitem{\windowstyle{wxHF
\_INDEX}}{Help frame has index panel.
}
37 \twocolitem{\windowstyle{wxHF
\_SEARCH}}{Help frame has search panel.
}
38 \twocolitem{\windowstyle{wxHF
\_BOOKMARKS}}{Help frame has bookmarks controls.
}
42 \membersection{wxHtmlHelpFrame::Create
}\label{wxhtmlhelpframecreate
}
44 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{const wxString\&
}{title = wxEmptyString
},
\param{int
}{style = wxHF
\_DEFAULTSTYLE}}
48 {\it style
} is combination of these flags:
51 \twocolitem{\windowstyle{wxHF
\_TOOLBAR}}{Help frame has toolbar.
}
52 \twocolitem{\windowstyle{wxHF
\_CONTENTS}}{Help frame has contents panel.
}
53 \twocolitem{\windowstyle{wxHF
\_INDEX}}{Help frame has index panel.
}
54 \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.)
66 \membersection{wxHtmlHelpFrame::CreateIndex
}\label{wxhtmlhelpframecreateindex
}
68 \func{void
}{CreateIndex
}{\param{bool
}{show
\_progress = FALSE
}}
70 Creates index panel. (May take some time.)
73 \membersection{wxHtmlHelpFrame::CreateSearch
}\label{wxhtmlhelpframecreatesearch
}
75 \func{void
}{CreateSearch
}{\void}
80 \membersection{wxHtmlHelpFrame::Display
}\label{wxhtmlhelpframedisplay
}
82 \func{bool
}{Display
}{\param{const wxString\&
}{x
}}
84 \func{bool
}{Display
}{\param{const int
}{id
}}
86 Displays page x. If not found it will offect the user a choice of
88 Looking for the page runs in these steps:
89 1. try to locate file named x (if x is for example "doc/howto.htm")
90 2. try to open starting page of book x
91 3. try to find x in contents (if x is for example "How To ...")
92 4. 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.
113 \membersection{wxHtmlHelpFrame::GetData
}\label{wxhtmlhelpframegetdata
}
115 \func{wxHtmlHelpData*
}{GetData
}{\void}
117 Return wxHtmlHelpData object.
119 \membersection{wxHtmlHelpFrame::KeywordSearch
}\label{wxhtmlhelpframekeywordsearch
}
121 \func{bool
}{KeywordSearch
}{\param{const wxString\&
}{keyword
}}
123 Search for given keyword.
126 \membersection{wxHtmlHelpFrame::ReadCustomization
}\label{wxhtmlhelpframereadcustomization
}
128 \func{void
}{ReadCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
130 Reads user's settings for this frame (see
\helpref{wxHtmlHelpController::ReadCustomization
}{wxhtmlhelpcontrollerreadcustomization
})
132 \membersection{wxHtmlHelpFrame::RefreshLists
}\label{wxhtmlhelpframerefreshlists
}
134 \func{void
}{RefreshLists
}{\param{bool
}{show
\_progress = FALSE
}}
136 Refresh all panels. This is neccessary if new book was added.
138 \membersection{wxHtmlHelpFrame::SetTitleFormat
}\label{wxhtmlhelpframesettitleformat
}
140 \func{void
}{SetTitleFormat
}{\param{const wxString\&
}{format
}}
142 Sets frame's title format.
{\it format
} must contain exactly one "\%s"
143 (it will be replaced by page's title).
145 \membersection{wxHtmlHelpFrame::UseConfig
}\label{wxhtmlhelpframeuseconfig
}
147 \func{void
}{UseConfig
}{\param{wxConfigBase*
}{config
},
\param{const wxString\&
}{rootpath = wxEmptyString
}}
149 Add books to search choice panel
152 \membersection{wxHtmlHelpFrame::WriteCustomization
}\label{wxhtmlhelpframewritecustomization
}
154 \func{void
}{WriteCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
156 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 pointer to the toolbar and
{\it style
} is 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.