]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/htmlhlpf.tex
1. wxLog::FlushActive() added
[wxWidgets.git] / docs / latex / wx / htmlhlpf.tex
CommitLineData
704a4b75
VS
1\membersection{Help Files Format}\label{helpformat}
2
22d6efa8 3wxHTML library uses a reduced version of MS HTML Workshop format.
704a4b75
VS
4
5(See \helpref{wxHtmlHelpController}{wxhtmlhelpcontroller} for help controller description.)
6
7A {\bf book} consists of three files : header file, contents file and index file.
8
9\wxheading{Header file (.hhp)}
10
11Header file must contain these lines (and may contain additional lines which are ignored) :
12
13\begin{verbatim}
14Contents file=@filename.hhc@
15Index file=@filename.hhk@
16Title=@title of your book@
17Default topic=@default page to be displayed.htm@
18\end{verbatim}
19
20All filenames (including Default topic) are relative to the location of .hhp file.
21
22For larger projects I recommend storing everything but .hhp file into one .zip archive. (E.g. contents file
23would then be reffered as myhelp.zip\#zip:contents.hhc)
24
25\wxheading{Contents file (.hhc)}
26
27Contents file has HTML syntax and it can be parsed by regular HTML parser. It contains exactly one list
28(<ul>....</ul> statement):
29
30\begin{verbatim}
31<ul>
32
33 <li> <object>
34 <param name="Name" value="@topic name@">
35 <param name="ID" value=@numeric_id@>
36 <param name="Local" value="@filename.htm@">
37 </object>
38 <li> <object>
39 <param name="Name" value="@topic name@">
40 <param name="ID" value=@numeric_id@>
41 <param name="Local" value="@filename.htm@">
42 </object>
43 ...
44
45</ul>
46\end{verbatim}
47
48You can modify value attributes of param tags. {\it topic name} is name of chapter/topic as is displayed in
49contents, {\it filename.htm} is HTML page name (relative to .hhp file) and {\it numeric_id} is optional
50- it is used only when you use \helpref{wxHtmlHelpController::Display(int)}{wxhtmlhelpcontrollerdisplay}
51
52Items in the list may be nested - one \<li\> statement may contain \<ul\> sub-statement:
53
54\begin{verbatim}
55<ul>
56
57 <li> <object>
58 <param name="Name" value="Top node">
59 <param name="Local" value="top.htm">
60 </object>
61 <ul>
62 <li> <object>
63 <param name="Name" value="subnode in topnode">
64 <param name="Local" value="subnode1.htm">
65 </object>
66 ...
67 </ul>
68
69 <li> <object>
70 <param name="Name" value="Another Top">
71 <param name="Local" value="top2.htm">
72 </object>
73 ...
74
75</ul>
76\end{verbatim}
77
704a4b75
VS
78\wxheading{Index file (.hhk)}
79
80Index files have same format as contents file except that ID params are ignored and sublists are {\bf not}
81allowed.
82