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::AddBook
}\label{wxhtmlhelpcontrolleraddbook
}
45 \func{bool
}{AddBook
}{\param{const wxString\&
}{book
},
\param{bool
}{show_wait_msg
}}
47 Adds book (
\helpref{.hhp file
}{helpformat
} - HTML Help Workshop project file) into the list of loaded books.
48 This must be called at least once before displaying any help.
50 If
{\it show_wait_msg
} is TRUE then a decorationless window with progress message is displayed.
52 \membersection{wxHtmlHelpController::Display
}\label{wxhtmlhelpcontrollerdisplay
}
54 \func{void
}{Display
}{\param{const wxString\&
}{x
}}
56 Displays page
{\it x
}. This is THE important function - it is used to display
57 the help in application.
59 You can specify the page in many ways:
62 \item as direct filename of HTML
document
63 \item as chapter name (from contents) or as a book name
64 \item as some word from index
65 \item even as any word (will be searched)
68 Looking for the page runs in these steps:
71 \item try to locate file named x (if x is for example "doc/howto.htm")
72 \item try to open starting page of book named x
73 \item try to find x in contents (if x is for example "How To ...")
74 \item try to find x in index (if x is for example "How To ...")
75 \item switch to Search panel and start searching
78 \func{void
}{Display
}{\param{const int
}{id
}}
80 This alternative form is used to search help contents by numeric IDs.
82 \membersection{wxHtmlHelpController::DisplayContents
}\label{wxhtmlhelpcontrollerdisplaycontents
}
84 \func{void
}{DisplayContents
}{\void}
86 Displays help window and focuses contents panel.
88 \membersection{wxHtmlHelpController::DisplayIndex
}\label{wxhtmlhelpcontrollerdisplayindex
}
90 \func{void
}{DisplayIndex
}{\void}
92 Displays help window and focuses index panel.
94 \membersection{wxHtmlHelpController::KeywordSearch
}\label{wxhtmlhelpcontrollerkeywordsearch
}
96 \func{bool
}{KeywordSearch
}{\param{const wxString\&
}{keyword
}}
98 Displays help window, focuses search panel and starts searching.
99 Returns TRUE if the keyword was found.
101 IMPORTANT! KeywordSearch searches only pages listed in .htc file(s)!
102 (you should have all pages in contents file...)
104 \membersection{wxHtmlHelpController::ReadCustomization
}\label{wxhtmlhelpcontrollerreadcustomization
}
106 \func{void
}{ReadCustomization
}{\param{wxConfigBase*
}{cfg
},
\param{wxString
}{path = wxEmptyString
}}
108 Reads controllers setting (position of window etc.)
110 \membersection{wxHtmlHelpController::SetTempDir
}\label{wxhtmlhelpcontrollersettempdir
}
112 \func{void
}{SetTempDir
}{\param{const wxString\&
}{path
}}
114 Sets path for storing temporary files (cached binary versions of index and contents files. These binary
115 forms are much faster to read.) Default value is empty string (empty string means
116 that no cached data are stored). Note that these files are NOT
117 deleted when program exits!
119 \membersection{wxHtmlHelpController::SetTitleFormat
}\label{wxhtmlhelpcontrollersettitleformat
}
121 \func{void
}{SetTitleFormat
}{\param{const wxString\&
}{format
}}
123 Sets format of title of the frame. Must contain exactly one "\%s"
124 (for title of displayed HTML page).
126 \membersection{wxHtmlHelpController::UseConfig
}\label{wxhtmlhelpcontrolleruseconfig
}
128 \func{void
}{UseConfig
}{\param{wxConfigBase*
}{config
},
\param{const wxString\&
}{rootpath = wxEmptyString
}}
130 Associates
{\it config
} object with the controller.
132 If there is associated config object, wxHtmlHelpController automatically
133 reads and writes settings (including wxHtmlWindow's settings) when needed.
135 The only thing you must do is create wxConfig object and call UseConfig.
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.)