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