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