2 % automatically generated by HelpGen from
3 % htmlhelp.h at 02/May/99 19:58:53
6 \section{\class{wxHtmlHelpController
}}\label{wxhtmlhelpcontroller
}
8 {\bf WARNING! This help controller has an API incompatible with wxWindows
11 This help controller provides easy way how to display HTML help in your
12 application (see
{\it test
} sample). Whole help system is based on
{\bf books
}
13 (see
\helpref{AddBook
}{wxhtmlhelpcontrolleraddbook
}). A book is logical
14 part of documentation (for example "User's Guide" or "Programmer's Guide" or
15 "C++ Reference" or "wxWindows Reference"). Help controller can handle as
16 many books as you want.
18 wxHTML uses Microsoft's HTML Help Workshop project files (.hhp, .hhk, .hhc) as its
19 native format. The file format is described
\helpref{here
}{helpformat
}.
20 Have a look at docs/html/ directory where sample project files are stored.
22 You can use tex2rtf to generate MHHW projects (see wxHTML homepage for details).
24 In order to use the controller in your application under Windows you must
25 have following line in your .rc file:
28 #include "wx/html/msw/wxhtml.rc"
31 \wxheading{Derived from
}
35 \latexignore{\rtfignore{\wxheading{Members
}}}
37 \membersection{wxHtmlHelpController::wxHtmlHelpController
}\label{wxhtmlhelpcontrollerwxhtmlhelpcontroller
}
39 \func{}{wxHtmlHelpController
}{\void}
43 \membersection{wxHtmlHelpController::SetTitleFormat
}\label{wxhtmlhelpcontrollersettitleformat
}
45 \func{void
}{SetTitleFormat
}{\param{const wxString\&
}{format
}}
47 Sets format of title of the frame. Must contain exactly one "\%s"
48 (for title of displayed HTML page).
50 \membersection{wxHtmlHelpController::SetTempDir
}\label{wxhtmlhelpcontrollersettempdir
}
52 \func{void
}{SetTempDir
}{\param{const wxString\&
}{path
}}
54 Sets path for storing temporary files (cached binary versions of index and contents files. These binary
55 forms are much faster to read.) Default value is empty string (empty string means
56 that no cached data are stored). Note that these files are NOT
57 deleted when program exits!
59 \membersection{wxHtmlHelpController::AddBook
}\label{wxhtmlhelpcontrolleraddbook
}
61 \func{bool
}{AddBook
}{\param{const wxString\&
}{book
},
\param{bool
}{show_wait_msg
}}
63 Adds book (
\helpref{.hhp file
}{helpformat
} - HTML Help Workshop project file) into the list of loaded books.
64 This must be called at least once before displaying any help.
66 If
{\it show_wait_msg
} is TRUE then a decorationless window with progress message is displayed.
68 \membersection{wxHtmlHelpController::Display
}\label{wxhtmlhelpcontrollerdisplay
}
70 \func{void
}{Display
}{\param{const wxString\&
}{x
}}
72 Displays page
{\it x
}. This is THE important function - it is used to display
73 the help in application.
75 You can specify the page in many ways:
78 \item as direct filename of HTML
document
79 \item as chapter name (from contents) or as a book name
80 \item as some word from index
81 \item even as any word (will be searched)
84 Looking for the page runs in these steps:
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 named 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 ...")
91 \item switch to Search panel and start searching
94 \func{void
}{Display
}{\param{const int
}{id
}}
96 This alternative form is used to search help contents by numeric IDs.
98 \membersection{wxHtmlHelpController::DisplayContents
}\label{wxhtmlhelpcontrollerdisplaycontents
}
100 \func{void
}{DisplayContents
}{\void}
102 Displays help window and focuses contents panel.
104 \membersection{wxHtmlHelpController::DisplayIndex
}\label{wxhtmlhelpcontrollerdisplayindex
}
106 \func{void
}{DisplayIndex
}{\void}
108 Displays help window and focuses index panel.
110 \membersection{wxHtmlHelpController::KeywordSearch
}\label{wxhtmlhelpcontrollerkeywordsearch
}
112 \func{bool
}{KeywordSearch
}{\param{const wxString\&
}{keyword
}}
114 Displays help window, focuses search panel and starts searching.
115 Returns TRUE if the keyword was found.
117 IMPORTANT! KeywordSearch searches only pages listed in .htc file(s)!
118 (you should have all pages in contents file...)
120 \membersection{wxHtmlHelpController::UseConfig
}\label{wxhtmlhelpcontrolleruseconfig
}
122 \func{void
}{UseConfig
}{\param{wxConfigBase*
}{config
},
\param{const wxString\&
}{rootpath = wxEmptyString
}}
124 Associates
{\it config
} object with the controller.
126 If there is associated config object, wxHtmlHelpController automatically
127 reads and writes settings (including wxHtmlWindow's settings) when needed.
129 The only thing you must do is create wxConfig object and call UseConfig.
131 \membersection{wxHtmlHelpController::ReadCustomization
}\label{wxhtmlhelpcontrollerreadcustomization
}
133 \func{void
}{ReadCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{wxString
}{path = wxEmptyString
}}
135 Reads controllers setting (position of window etc.)
137 \membersection{wxHtmlHelpController::WriteCustomization
}\label{wxhtmlhelpcontrollerwritecustomization
}
139 \func{void
}{WriteCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{wxString
}{path = wxEmptyString
}}
141 Stores controllers setting (position of window etc.)