2 % automatically generated by HelpGen from
3 % htmlhelp.h at 02/May/99 19:58:53
7 \section{\class{wxHtmlHelpController
}}\label{wxhtmlhelpcontroller
}
9 {\bf WARNING! This help controller has API incompatible with wxWindows
12 This help controller provides easy way how to display HTML help in your
13 application (see
{\it test
} sample). Whole help system is based on
{\bf books
}
14 (see
\helpref{AddBook
}{wxhtmlhelpcontrolleraddbook
}). A book is logical
15 part of documentation (for example "User's Guide" or "Programmer's Guide" or
16 "C++ Reference" or "wxWindows Reference"). Help controller can handle as
17 many books as you want.
19 wxHTML uses Microsoft's HTML Help Workshop project files (.hhp, .hhk, .hhc) as its
20 native format. The file format is described
\helpref{here
}{helpformat
}.
21 Have a look at docs/html/ directory where sample project files are stored.
23 You can use tex2rtf to generate MHHW projects (see wxHTML homepage for details).
25 In order to use the controller in your application under Windows you must
26 have following line in your .rc file:
29 #include "wx/html/msw/wxhtml.rc"
33 \wxheading{Derived from
}
38 \latexignore{\rtfignore{\wxheading{Members
}}}
41 \membersection{wxHtmlHelpController::wxHtmlHelpController
}\label{wxhtmlhelpcontrollerwxhtmlhelpcontroller
}
43 \func{}{wxHtmlHelpController
}{\void}
49 \membersection{wxHtmlHelpController::SetTitleFormat
}\label{wxhtmlhelpcontrollersettitleformat
}
51 \func{void
}{SetTitleFormat
}{\param{const wxString\&
}{format
}}
53 Sets format of title of the frame. Must contain exactly one "\%s"
54 (for title of displayed HTML page).
57 \membersection{wxHtmlHelpController::SetTempDir
}\label{wxhtmlhelpcontrollersettempdir
}
59 \func{void
}{SetTempDir
}{\param{const wxString\&
}{path
}}
61 Sets path for storing temporary files (cached binary versions of index and contents files. These binary
62 forms are much faster to read.) Default value is empty string (empty string means
63 that no cached data are stored). Note that these files are NOT
64 deleted when program exits!
67 \membersection{wxHtmlHelpController::AddBook
}\label{wxhtmlhelpcontrolleraddbook
}
69 \func{bool
}{AddBook
}{\param{const wxString\&
}{book
},
\param{bool
}{show_wait_msg
}}
71 Adds book (
\helpref{.hhp file
}{helpformat
} - HTML Help Workshop project file) into the list of loaded books.
72 This must be called at least once before displaying any help.
74 If
{\it show_wait_msg
} is TRUE then a decorationless window with progress message is displayed.
77 \membersection{wxHtmlHelpController::Display
}\label{wxhtmlhelpcontrollerdisplay
}
79 \func{void
}{Display
}{\param{const wxString\&
}{x
}}
81 Displays page
{\it x
}. This is THE important function - it is used to display
82 the help in application.
84 You can specify the page in many ways:
87 \item as direct filename of HTML
document
88 \item as chapter name (from contents) or as a book name
89 \item as some word from index
90 \item even as any word (will be searched)
93 Looking for the page runs in these steps:
96 \item try to locate file named x (if x is for example "doc/howto.htm")
97 \item try to open starting page of book named x
98 \item try to find x in contents (if x is for example "How To ...")
99 \item try to find x in index (if x is for example "How To ...")
100 \item switch to Search panel and start searching
103 \func{void
}{Display
}{\param{const int
}{id
}}
105 This alternative form is used to search help contents by numeric IDs.
110 \membersection{wxHtmlHelpController::DisplayContents
}\label{wxhtmlhelpcontrollerdisplaycontents
}
112 \func{void
}{DisplayContents
}{\void}
114 Displays help window and focuses contents panel.
116 \membersection{wxHtmlHelpController::DisplayIndex
}\label{wxhtmlhelpcontrollerdisplayindex
}
118 \func{void
}{DisplayIndex
}{\void}
120 Displays help window and focuses index panel.
123 \membersection{wxHtmlHelpController::KeywordSearch
}\label{wxhtmlhelpcontrollerkeywordsearch
}
125 \func{bool
}{KeywordSearch
}{\param{const wxString\&
}{keyword
}}
127 Displays help window, focuses search panel and starts searching.
128 Returns TRUE if the keyword was found.
130 IMPORTANT! KeywordSearch searches only pages listed in .htc file(s)!
131 (you should have all pages in contents file...)
134 \membersection{wxHtmlHelpController::UseConfig
}\label{wxhtmlhelpcontrolleruseconfig
}
136 \func{void
}{UseConfig
}{\param{wxConfigBase*
}{config
},
\param{const wxString\&
}{rootpath = wxEmptyString
}}
138 Associates
{\it config
} object with the controller.
140 If there is associated config object, wxHtmlHelpController automatically
141 reads and writes settings (including wxHtmlWindow's settings) when needed.
143 The only thing you must do is create wxConfig object and call UseConfig.
146 \membersection{wxHtmlHelpController::ReadCustomization
}\label{wxhtmlhelpcontrollerreadcustomization
}
148 \func{void
}{ReadCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{wxString
}{path = wxEmptyString
}}
150 Reads controllers setting (position of window etc.)
153 \membersection{wxHtmlHelpController::WriteCustomization
}\label{wxhtmlhelpcontrollerwritecustomization
}
155 \func{void
}{WriteCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{wxString
}{path = wxEmptyString
}}
157 Stores controllers setting (position of window etc.)