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
\_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.
}
39 \twocolitem{\windowstyle{wxHF
\_OPENFILES}}{Allow user to open arbitrary HTML
document.
}
40 \twocolitem{\windowstyle{wxHF
\_PRINT}}{Toolbar contains "print" button.
}
43 \membersection{wxHtmlHelpFrame::Create
}\label{wxhtmlhelpframecreate
}
45 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{const wxString\&
}{title = wxEmptyString
},
\param{int
}{style = wxHF
\_DEFAULTSTYLE}}
49 {\it style
} is combination of these flags:
51 \begin{twocollist
}\itemsep=
0pt
52 \twocolitem{\windowstyle{wxHF
\_TOOLBAR}}{Help frame has toolbar.
}
53 \twocolitem{\windowstyle{wxHF
\_CONTENTS}}{Help frame has contents panel.
}
54 \twocolitem{\windowstyle{wxHF
\_INDEX}}{Help frame has index panel.
}
55 \twocolitem{\windowstyle{wxHF
\_SEARCH}}{Help frame has search panel.
}
58 \membersection{wxHtmlHelpFrame::CreateContents
}\label{wxhtmlhelpframecreatecontents
}
60 \func{void
}{CreateContents
}{\param{bool
}{show
\_progress = FALSE
}}
62 Creates contents panel. (May take some time.)
64 \membersection{wxHtmlHelpFrame::CreateIndex
}\label{wxhtmlhelpframecreateindex
}
66 \func{void
}{CreateIndex
}{\param{bool
}{show
\_progress = FALSE
}}
68 Creates index panel. (May take some time.)
70 \membersection{wxHtmlHelpFrame::CreateSearch
}\label{wxhtmlhelpframecreatesearch
}
72 \func{void
}{CreateSearch
}{\void}
76 \membersection{wxHtmlHelpFrame::Display
}\label{wxhtmlhelpframedisplay
}
78 \func{bool
}{Display
}{\param{const wxString\&
}{x
}}
80 \func{bool
}{Display
}{\param{const int
}{id
}}
82 Displays page x. If not found it will give the user the choice of
84 Looking for the page runs in these steps:
86 \begin{enumerate
}\itemsep=
0pt
87 \item try to locate file named x (if x is for example "doc/howto.htm")
88 \item try to open starting page of book x
89 \item try to find x in contents (if x is for example "How To ...")
90 \item try to find x in index (if x is for example "How To ...")
93 The second form takes numeric ID as the parameter.
94 (uses extension to MS format, <param name="ID" value=id>)
96 \pythonnote{The second form of this method is named DisplayId in
99 \membersection{wxHtmlHelpFrame::DisplayContents
}\label{wxhtmlhelpframedisplaycontents
}
101 \func{bool
}{DisplayContents
}{\void}
103 Displays contents panel.
105 \membersection{wxHtmlHelpFrame::DisplayIndex
}\label{wxhtmlhelpframedisplayindex
}
107 \func{bool
}{DisplayIndex
}{\void}
109 Displays index panel.
111 \membersection{wxHtmlHelpFrame::GetData
}\label{wxhtmlhelpframegetdata
}
113 \func{wxHtmlHelpData*
}{GetData
}{\void}
115 Return wxHtmlHelpData object.
117 \membersection{wxHtmlHelpFrame::KeywordSearch
}\label{wxhtmlhelpframekeywordsearch
}
119 \func{bool
}{KeywordSearch
}{\param{const wxString\&
}{keyword
}}
121 Search for given keyword.
123 \membersection{wxHtmlHelpFrame::ReadCustomization
}\label{wxhtmlhelpframereadcustomization
}
125 \func{void
}{ReadCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
127 Reads user's settings for this frame (see
\helpref{wxHtmlHelpController::ReadCustomization
}{wxhtmlhelpcontrollerreadcustomization
})
129 \membersection{wxHtmlHelpFrame::RefreshLists
}\label{wxhtmlhelpframerefreshlists
}
131 \func{void
}{RefreshLists
}{\param{bool
}{show
\_progress = FALSE
}}
133 Refresh all panels. This is necessary if a new book was added.
135 \membersection{wxHtmlHelpFrame::SetTitleFormat
}\label{wxhtmlhelpframesettitleformat
}
137 \func{void
}{SetTitleFormat
}{\param{const wxString\&
}{format
}}
139 Sets the frame's title format.
{\it format
} must contain exactly one "\%s"
140 (it will be replaced by the page title).
142 \membersection{wxHtmlHelpFrame::UseConfig
}\label{wxhtmlhelpframeuseconfig
}
144 \func{void
}{UseConfig
}{\param{wxConfigBase*
}{config
},
\param{const wxString\&
}{rootpath = wxEmptyString
}}
146 Add books to search choice panel.
148 \membersection{wxHtmlHelpFrame::WriteCustomization
}\label{wxhtmlhelpframewritecustomization
}
150 \func{void
}{WriteCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{const wxString\&
}{path = wxEmptyString
}}
152 Saves user's settings for this frame (see
\helpref{wxHtmlHelpController::WriteCustomization
}{wxhtmlhelpcontrollerwritecustomization
}).
154 \membersection{wxHtmlHelpFrame::AddToolbarButtons
}\label{wxhtmlhelpframeaddtoolbarbuttons
}
156 \func{virtual void
}{AddToolbarButtons
}{\param{wxToolBar *
}{toolBar
},
\param{int
}{style
}}
158 You may override this virtual method to add more buttons into help frame's
159 toolbar.
{\it toolBar
} is a pointer to the toolbar and
{\it style
} is the style
160 flag as passed to Create method.
162 wxToolBar::Realize is called immediately after returning from this function.
164 See
{\it samples/html/helpview
} for an example.