1 <html><head><TITLE>wxExtHelpController
</TITLE></head>
3 <H2><A HREF =
"#DOC.DOCU" > <IMG BORDER=
0 SRC=down.gif
></A> class wxExtHelpController
</H2><BLOCKQUOTE>
5 This class implements help via an external browser
11 <DT><h3>Public Methods
</h3><DD><DT><A HREF=
"#DOC.8.6"> <IMG BORDER=
0 SRC=icon1.gif
></A> virtual bool
<B>DisplayBlock
</B>(long blockNo)
</B>
12 <DD><I>Display help for id sectionNo -- identical with DisplaySection()
</I>
13 <DT><A HREF=
"#DOC.8.4"> <IMG BORDER=
0 SRC=icon1.gif
></A> virtual bool
<B>DisplayContents
</B>(void)
</B>
14 <DD><I>Display list of all help entries
</I>
15 <DT><A HREF=
"#DOC.8.5"> <IMG BORDER=
0 SRC=icon1.gif
></A> virtual bool
<B>DisplaySection
</B>(int sectionNo)
</B>
16 <DD><I>Display help for id sectionNo
</I>
17 <DT><A HREF=
"#DOC.8.1"> <IMG BORDER=
0 SRC=icon1.gif
></A> virtual bool
<B>Initialize
</B>(const wxString
& file, int WXUNUSED(server))
</B>
18 <DD><I>This must be called to tell the controller where to find the
20 <DT><A HREF=
"#DOC.8.2"> <IMG BORDER=
0 SRC=icon1.gif
></A> virtual bool
<B>Initialize
</B>(const wxString
& file)
</B>
21 <DD><I>This must be called to tell the controller where to find the
23 <DT><A HREF=
"#DOC.8.7"> <IMG BORDER=
0 SRC=icon1.gif
></A> virtual bool
<B>KeywordSearch
</B>(const wxString
& k)
</B>
24 <DD><I>Search comment/documentation fields in map file and present a
25 list to chose from
</I>
26 <DT><A HREF=
"#DOC.8.3"> <IMG BORDER=
0 SRC=icon1.gif
></A> virtual bool
<B>LoadFile
</B>(const wxString
& file = "")
</B>
27 <DD><I>If file is "", reloads file given in Initialize
</I>
28 <DT><A HREF=
"#DOC.8.10"> <IMG BORDER=
0 SRC=icon1.gif
></A> virtual void
<B>OnQuit
</B>(void)
</B>
29 <DD><I>does nothing
</I>
30 <DT><A HREF=
"#DOC.8.9"> <IMG BORDER=
0 SRC=icon1.gif
></A> virtual bool
<B>Quit
</B>(void)
</B>
31 <DD><I>does nothing
</I>
32 <DT><A HREF=
"#DOC.8.8"> <IMG BORDER=
0 SRC=icon1.gif
></A> void
<B>SetBrowser
</B>(wxString const
& browsername =
<!2><A HREF=
"#DOC.4">WXEXTHELP_DEFAULTBROWSER
</A>, bool isNetscape =
<!2><A HREF=
"#DOC.5">WXEXTHELP_DEFAULTBROWSER_IS_NETSCAPE
</A>)
</B>
33 <DD><I>Tell it which browser to use
</I>
35 <DT><h3>Private Fields
</h3><DD><DT><A HREF=
"#DOC.8.15"> <IMG BORDER=
0 SRC=icon1.gif
></A> bool
<B>m_BrowserIsNetscape
</B> </B>
36 <DD><I>Is the viewer a variant of netscape?
</I>
37 <DT><A HREF=
"#DOC.8.14"> <IMG BORDER=
0 SRC=icon1.gif
></A> wxString
<B>m_BrowserName
</B> </B>
38 <DD><I>How to call the html viewer
</I>
39 <DT><A HREF=
"#DOC.8.11"> <IMG BORDER=
0 SRC=icon1.gif
></A> wxString
<B>m_MapFile
</B> </B>
40 <DD><I>Filename of currently active map file
</I>
41 <DT><A HREF=
"#DOC.8.13"> <IMG BORDER=
0 SRC=icon1.gif
></A> wxExtHelpMapList*
<B>m_MapList
</B> </B>
42 <DD><I>A list containing all id,url,documentation triples
</I>
43 <DT><A HREF=
"#DOC.8.12"> <IMG BORDER=
0 SRC=icon1.gif
></A> int
<B>m_NumOfEntries
</B> </B>
44 <DD><I>How many entries do we have in the map file?
</I>
46 <DT><h3>Private Methods
</h3><DD><DT><A HREF=
"#DOC.8.16"> <IMG BORDER=
0 SRC=icon1.gif
></A> bool
<B>CallBrowser
</B>(wxString const
&)
</B>
47 <DD><I>Call the browser using a relative URL
</I>
51 <h2> Documentation
</h2>
54 This class implements help via an external browser.
55 It requires the name of a directory containing the documentation
56 and a file mapping numerical Section numbers to relative URLS.
<P>The map file contains two or three fields per line:
57 numeric_id relative_URL [; comment/documentation]
<P>The numeric_id is the id used to look up the entry in
58 DisplaySection()/DisplayBlock(). The relative_URL is a filename of
59 an html file, relative to the help directory. The optional
60 comment/documentation field (after a ';') is used for keyword
61 searches, so some meaningful text here does not hurt.
62 If the documentation itself contains a ';', only the part before
63 that will be displayed in the listbox, but all of it used for search.
<P>Lines starting with ';' will be ignored.
<P>This confuses DOC++, so I leave it out for now:
64 <TT>ifdef USE_HELP
</TT>: public wxHelpControllerBase
66 DECLARE_CLASS(wxExtHelpController)
75 <DT><IMG BORDER=
0 SRC=icon2.gif
><TT><B> virtual bool Initialize(const wxString
& file, int WXUNUSED(server))
</B></TT>
76 <DD>This must be called to tell the controller where to find the
78 <DL><DT><B>Returns:
</B><DD>true on success
79 <DT><B>Parameters:
</B><DD><B>file
</B> - - NOT a filename, but a directory name.
83 <DT><IMG BORDER=
0 SRC=icon2.gif
><TT><B> virtual bool Initialize(const wxString
& file)
</B></TT>
84 <DD>This must be called to tell the controller where to find the
86 <DL><DT><B>Returns:
</B><DD>true on success
87 <DT><B>Parameters:
</B><DD><B>file
</B> - - NOT a filename, but a directory name.
91 <DT><IMG BORDER=
0 SRC=icon2.gif
><TT><B> virtual bool LoadFile(const wxString
& file = "")
</B></TT>
92 <DD>If file is "", reloads file given in Initialize.
93 @file Name of help directory.
95 <DL><DT><B>Returns:
</B><DD>true on success
97 <A NAME=
"DisplayContents">
99 <DT><IMG BORDER=
0 SRC=icon2.gif
><TT><B> virtual bool DisplayContents(void)
</B></TT>
100 <DD>Display list of all help entries
101 <DL><DT><B>Returns:
</B><DD>true on success
103 <A NAME=
"DisplaySection">
105 <DT><IMG BORDER=
0 SRC=icon2.gif
><TT><B> virtual bool DisplaySection(int sectionNo)
</B></TT>
106 <DD>Display help for id sectionNo
107 <DL><DT><B>Returns:
</B><DD>true on success
109 <A NAME=
"DisplayBlock">
111 <DT><IMG BORDER=
0 SRC=icon2.gif
><TT><B> virtual bool DisplayBlock(long blockNo)
</B></TT>
112 <DD>Display help for id sectionNo -- identical with DisplaySection()
113 <DL><DT><B>Returns:
</B><DD>true on success
115 <A NAME=
"KeywordSearch">
117 <DT><IMG BORDER=
0 SRC=icon2.gif
><TT><B> virtual bool KeywordSearch(const wxString
& k)
</B></TT>
118 <DD>Search comment/documentation fields in map file and present a
120 @key k string to search for, empty string will list all entries
122 <DL><DT><B>Returns:
</B><DD>true on success
126 <DT><IMG BORDER=
0 SRC=icon2.gif
><TT><B> virtual bool Quit(void)
</B></TT>
131 <DT><IMG BORDER=
0 SRC=icon2.gif
><TT><B> virtual void OnQuit(void)
</B></TT>
134 <A NAME=
"SetBrowser">
136 <DT><IMG BORDER=
0 SRC=icon2.gif
><TT><B> void SetBrowser(wxString const
& browsername =
<!2><A HREF=
"#DOC.4">WXEXTHELP_DEFAULTBROWSER
</A>, bool isNetscape =
<!2><A HREF=
"#DOC.5">WXEXTHELP_DEFAULTBROWSER_IS_NETSCAPE
</A>)
</B></TT>
137 <DD>Tell it which browser to use.
138 The Netscape support will check whether Netscape is already
139 running (by looking at the .netscape/lock file in the user's
140 home directory) and tell it to load the page into the existing
143 <DL><DT><B>Parameters:
</B><DD><B>browsername
</B> - The command to call a browser/html viewer.
144 <br><B>isNetscape
</B> - Set this to TRUE if the browser is some variant of Netscape.
<br></DL><P>
147 <DT><IMG BORDER=
0 SRC=icon2.gif
><TT><B> wxString m_MapFile
</B></TT>
148 <DD>Filename of currently active map file
150 <A NAME=
"m_NumOfEntries">
152 <DT><IMG BORDER=
0 SRC=icon2.gif
><TT><B> int m_NumOfEntries
</B></TT>
153 <DD>How many entries do we have in the map file?
157 <DT><IMG BORDER=
0 SRC=icon2.gif
><TT><B> wxExtHelpMapList* m_MapList
</B></TT>
158 <DD>A list containing all id,url,documentation triples
160 <A NAME=
"m_BrowserName">
162 <DT><IMG BORDER=
0 SRC=icon2.gif
><TT><B> wxString m_BrowserName
</B></TT>
163 <DD>How to call the html viewer
165 <A NAME=
"m_BrowserIsNetscape">
167 <DT><IMG BORDER=
0 SRC=icon2.gif
><TT><B> bool m_BrowserIsNetscape
</B></TT>
168 <DD>Is the viewer a variant of netscape?
170 <A NAME=
"CallBrowser">
172 <DT><IMG BORDER=
0 SRC=icon2.gif
><TT><B> bool CallBrowser(wxString const
&)
</B></TT>
173 <DD>Call the browser using a relative URL
176 <DL><DT><B>This class has no child classes.
</B></DL>
177 <DL></DL><P><I><A HREF=
"aindex.html"> alphabetic index
</A></I> <I><A HREF=
"HIER.html"> hierarchy of classes
</A></I><P></BODY><hr>
178 <A HREF=
"http://www.zib.de/Visual/software/doc++/index.html"><IMG BORDER=
0 ALIGN=RIGHT SRC=logo.gif
></A>
179 <P Align=Center
><I>this page has been generated automatically by doc++
180 <P Align=Center
>(c)opyright by
<A HREF=
"http://www.zib.de/zoeckler/"> Malte Zöckler
</A>,
<A HREF=
"mailto:wunderling@zib.de"> Roland Wunderling
</A><br>contact:
<A HREF=
"mailto:doc++@zib.de"> doc++@zib.de
</a>