1 \section{Help Files Format
}\label{helpformat
}
3 wxHTML library uses a reduced version of MS HTML Workshop format.
4 Tex2RTF can produce these files when generating HTML, if you set
{\bf htmlWorkshopFiles
} to
{\bf true
} in
7 (See
\helpref{wxHtmlHelpController
}{wxhtmlhelpcontroller
} for help controller description.)
9 A
{\bf book
} consists of three files : header file, contents file and index file.
11 \wxheading{Header file (.hhp)
}
13 Header file must contain these lines (and may contain additional lines which are ignored) :
16 Contents file=@filename.hhc@
17 Index file=@filename.hhk@
18 Title=@title of your book@
19 Default topic=@default page to be displayed.htm@
22 All filenames (including the Default topic) are relative to the location of .hhp file.
24 For larger projects I recommend storing everything but .hhp file into one .zip archive. (The contents file
25 would then be referred to as myhelp.zip\#zip:contents.hhc)
27 \wxheading{Contents file (.hhc)
}
29 Contents file has HTML syntax and it can be parsed by regular HTML parser. It contains exactly one list
30 (
\verb$<ul>$....
\verb$</ul>$ statement):
36 <param name="Name" value="@topic name@">
37 <param name="ID" value=@numeric_id@>
38 <param name="Local" value="@filename.htm@">
41 <param name="Name" value="@topic name@">
42 <param name="ID" value=@numeric_id@>
43 <param name="Local" value="@filename.htm@">
50 You can modify value attributes of param tags.
{\it topic name
} is name of chapter/topic as is displayed in
51 contents,
{\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
}
54 Items in the list may be nested - one
\verb$<li>$ statement may contain a
\verb$<ul>$ sub-statement:
60 <param name="Name" value="Top node">
61 <param name="Local" value="top.htm">
65 <param name="Name" value="subnode in topnode">
66 <param name="Local" value="subnode1.htm">
72 <param name="Name" value="Another Top">
73 <param name="Local" value="top2.htm">
80 \wxheading{Index file (.hhk)
}
82 Index files have same format as contents file except that ID params are ignored and sublists are
{\bf not
}