fpdoc.tex 62 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775
  1. %
  2. % $Id$
  3. % This file is part of the FPC documentation.
  4. % Copyright (C) 1997, by Michael Van Canneyt
  5. %
  6. % The FPC documentation is free text; you can redistribute it and/or
  7. % modify it under the terms of the GNU Library General Public License as
  8. % published by the Free Software Foundation; either version 2 of the
  9. % License, or (at your option) any later version.
  10. %
  11. % The FPC Documentation is distributed in the hope that it will be useful,
  12. % but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. % Library General Public License for more details.
  15. %
  16. % You should have received a copy of the GNU Library General Public
  17. % License along with the FPC documentation; see the file COPYING.LIB. If not,
  18. % write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  19. % Boston, MA 02111-1307, USA.
  20. %
  21. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  22. % Preamble.
  23. \input{preamble.inc}
  24. \latex{%
  25. \ifpdf
  26. \pdfinfo{/Author(Michael Van Canneyt)
  27. /Title(Users' Guide)
  28. /Subject(FPDoc Users' guide)
  29. /Keywords(Free Pascal)
  30. }
  31. \fi}
  32. %
  33. % Settings
  34. %
  35. \makeindex
  36. %
  37. % Start of document.
  38. %
  39. \newcommand{\fpdoc}{\textsc{FPDoc}\xspace}
  40. \newcommand{\seesu}[1]{section \ref{suse:#1}, page \pageref{suse:#1}\xspace}
  41. \newcommand{\seetag}[1]{\tag{#1} (\pageref{tag:#1})\xspace}
  42. \newcommand{\tag}[1]{\textbf{#1}}
  43. \newcommand{\attr}[1]{\textit{#1}}
  44. \usepackage{tabularx}
  45. \usepackage{syntax}
  46. \begin{document}
  47. \title{FPDoc :\\Free Pascal code documenter: Reference manual}
  48. \docdescription{Reference manual for FPDoc}
  49. \docversion{0.9}
  50. \date{\today}
  51. \author{Micha\"el Van Canneyt}
  52. \maketitle
  53. \tableofcontents
  54. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  55. % Introduction
  56. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  57. \chapter{Introduction}
  58. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  59. % About this document
  60. \section{About this document}
  61. This is the reference manual for \fpdoc, a free documentation tool for
  62. Pascal units. It describes the usage of \fpdoc and how to write
  63. documentation with it.
  64. It attempts to be complete, but the tool is under continuous development,
  65. and so there may be some slight differences between the documentation and
  66. the actual program. In case of discrepancy, the sources of the tool are the
  67. final reference. A \file{README} or \file{CHANGES} file may be provided, and
  68. can also give some hints as to things which have changed. In case of doubt,
  69. these files or the sources are authoritative.
  70. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  71. % About FPDoc
  72. \section{About \fpdoc}
  73. \fpdoc is a tool that combines a Pascal unit file and a description file
  74. in XML format and produces reference documentation for the unit. The
  75. reference documentation contains documentation for all of the identifiers
  76. found in the unit's interface section. The documentation is fully
  77. cross-referenced, making it easy to navigate. It is also possible to refer
  78. to other documentation sets written with \fpdoc, making it possible to
  79. maintain larger documentation sets for large projects.
  80. Contrary to some other documentation techniques, \fpdoc does not require the
  81. presence of formatted comments in the source code. It takes a source file
  82. and a documentation file (in XML format) and merges these two together to a
  83. full documentation of the source. This means that the code doesn't get
  84. obfuscated with large pieces of comment, making it hard to read and
  85. understand.
  86. \fpdoc is package-oriented, which means that it considers units as part of a
  87. package. Documentation for all units in a package can be generated in one
  88. run.
  89. At the moment of writing, the documentation can be generated in the
  90. following formats:
  91. \begin{description}
  92. \item[HTML] Plain HTML. Javascript is used to be able to show a small window
  93. with class properties or class methods, but the generated HTML will work
  94. without JavaScript as well. Style sheets are used to do the markup, so the
  95. output can be customised.
  96. \item[XHTML] As HTML, but using a more strict syntax.
  97. \item[LaTeX] LaTeX files, which can be used with the \file{fpc.sty} file
  98. which comes with the \fpc documentation. From this output, PDF documents can
  99. be generated, and with the use of latex2rtf, RTF or Winhelp files. Text
  100. files can also be generated.
  101. \item[Text] plain ascii text files. No cross-referencing exists. Other than
  102. that it resembles the LaTeX output in it's structure.
  103. \item[Man] Unix man pages. Each function/procedure/method identifier is a man
  104. page. Constants are on a separate page, as are types, variables and
  105. resourcestrings.
  106. \end{description}
  107. Plans exist to create direct RTF output as well.
  108. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  109. % Getting more information.
  110. \section{Getting more information.}
  111. If the documentation doesn't give an answer to your questions,
  112. you can obtain more information on the Internet, on the following address:
  113. \htmladdnormallink{http://fpdoc.freepascal.org/}
  114. {http://fpdoc.freepascal.org}
  115. It contains links to download all \fpdoc related material.
  116. Finally, if you think something should be added to this manual
  117. (entirely possible), please do not hesitate and contact me at
  118. \htmladdnormallink{[email protected]}{mailto:[email protected]}.
  119. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  120. % Installation
  121. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  122. \chapter{Compiling and Installing \fpdoc}
  123. \label{ch:Installation}
  124. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  125. % Compiling
  126. \section{Compiling}
  127. In order to compile \fpdoc, the following things are needed:
  128. \begin{enumerate}
  129. \item The fpdoc sources. These can be downloaded from the \fpdoc website.
  130. \item The \fpc compiler sources. \fpdoc uses the scanner from the \fpc
  131. comiler to scan the source file.
  132. \item The FCL units (or their sources) should be installed.
  133. \item fpcmake is needed to create the makefile for fpdoc. It comes with
  134. \fpc, so if \fpc is installed, there should be no problem.
  135. \item To make new internationalisation support files, \file{rstconv} must be
  136. installed, and the GNU gettext package.
  137. \end{enumerate}
  138. Links to download all these programs can be found on the \fpdoc website.
  139. When the fpdoc sources have been unzipped, the Makefile must be generated.
  140. Before generating the makefile, the location of the compiler source
  141. directory should be indicated. In the \file{Makefile.fpc} file, which has a
  142. windows ini file format, locate the \var{fpcdir} entry in the \var{defaults}
  143. section:
  144. \begin{verbatim}
  145. fpcdir=../..
  146. \end{verbatim}
  147. and change it so it points to the top-level \fpc source directory.
  148. After that, running \file{fpcmake} will produce the \file{Makefile}, and
  149. running \file{make} should produce 2 executables: \file{fpdoc} and
  150. \file{makeskel}.
  151. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  152. % Installation
  153. \section{Installation}
  154. When installing from sources, a simple
  155. \begin{verbatim}
  156. make install
  157. cd intl
  158. make install
  159. \end{verbatim}
  160. should completely install the documentation tool.
  161. When installing from a archive with the binaries, it should be sufficient
  162. to copy the binaries to a directory in the \var{PATH}.
  163. To have fpdoc available in several languages, the language files should be
  164. installed in the following directory on Unix systems:
  165. \begin{verbatim}
  166. /usr/local/share/locale/XX/LC_MESSAGES/
  167. \end{verbatim}
  168. or
  169. \begin{verbatim}
  170. /usr/share/locale/XX/LC_MESSAGES/
  171. \end{verbatim}
  172. Depending on the setup. Here \var{XX} should be replaced by the locale
  173. identifier.
  174. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  175. % Usage
  176. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  177. \chapter{\fpdoc usage}
  178. \label{ch:usage}
  179. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  180. % Usage
  181. \section{fpdoc}
  182. Using \fpdoc is quite simple. It takes some command-line options, and based
  183. on these options, creates documentation. The command-line options can be
  184. given as long or short options, as is common for most GNU programs.
  185. In principle, only 2 command-line options are needed:
  186. \begin{description}
  187. \item[package] This specifies the name of the package for which
  188. documentation must be created. Exactly one package option can be
  189. specified.
  190. \item[input] The name of a unit file for which documentation should be
  191. generated. This can be a simple filename, but can also contain some syntax
  192. options as they could be given to the \fpc scanner. More than one
  193. \var{input} option can be given, and documentation will be generated for all
  194. specified input files.
  195. \end{description}
  196. Some examples:
  197. \begin{verbatim}
  198. fpdoc --package=fcl --input=crt.pp
  199. \end{verbatim}
  200. This will scan the \file{crt.pp} file and generate documentation for it
  201. in a directory called \file{fcl}.
  202. \begin{verbatim}
  203. fpdoc --package=fcl --input='-I../inc -S2 -DDebug classes.pp'
  204. \end{verbatim}
  205. This will scan the file \file{classes.pp}, with the \var{DEBUG} symbol
  206. defined, the scanner will look for include files in the \file{../inc}
  207. directory, and \var{OBJFPC}-mode syntax will be accepted.
  208. (for more information about these options, see the \fpc compiler user's
  209. guide)
  210. With the above commands, a set of documentation files will be generated in
  211. HTML format (this is the standard). There will be no description of any of
  212. the identifiers found in the unit's interface section, but all identifiers
  213. declarations will be present in the documentation.
  214. The actual documentation (i.e. the description of each of the identifiers)
  215. resides in a description file, which can be specified with the \var{descr}
  216. option:
  217. \begin{verbatim}
  218. fpdoc --package=fcl --descr=crt.xml --input=crt.pp
  219. \end{verbatim}
  220. This will scan the \file{crt.pp} file and generate documentation for it,
  221. using the descriptions found in the file{crt.xml} file. The documentation
  222. will be written in a directory called \file{fcl}.
  223. \begin{verbatim}
  224. fpdoc --package=fcl --descr=classes.xml \
  225. --input='-I../inc -S2 -DDebug classes.pp'
  226. \end{verbatim}
  227. All options should be given on one line.
  228. This will scan the file \file{classes.pp}, with the \var{DEBUG} symbol
  229. defined, the scanner will look for include files in the \file{../inc}
  230. directory, and \var{OBJFPC}-mode syntax will be accepted.
  231. More than one input file or description file can be given:
  232. \begin{verbatim}
  233. fpdoc --package=fcl --descr=classes.xml --descr=process.xml \
  234. --input='-I../inc -S2 -DDebug classes.pp' \
  235. --input='-I../inc -S2 -DDebug process.pp'
  236. \end{verbatim}
  237. Here, documentation will be generated for 2 units: \file{classes}
  238. and \var{process}
  239. The format of the description file is discussed in the next chapter.
  240. Other formats can be generated, such as latex:
  241. \begin{verbatim}
  242. fpdoc --format=latex --package=fcl \
  243. --descr=classes.xml --descr=process.xml\
  244. --input='-I../inc -S2 -DDebug classes.pp' \
  245. --input='-I../inc -S2 -DDebug process.pp'
  246. \end{verbatim}
  247. This will generate a LaTeX file called \file{fcl.tex}, which contains the
  248. documentation of the units \file{classes} and \var{process}. The latex file
  249. contains no document preamble, it starts with a chapter command.
  250. It is meant to be included (using the LaTeX include command) in a latex
  251. document with a preamble.
  252. The output of \fpdoc can be further customised by several command-line
  253. options, which will be explained in the next section.
  254. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  255. % Usage
  256. \section{\fpdoc command-line options reference}
  257. In this section all \fpdoc command-line options are explained.
  258. % content
  259. \subsection{content}
  260. \label{suse:content}
  261. This option tells \fpdoc to generate a content file.
  262. A content file contains a list of all the
  263. possible anchors (labels) in the generated documentation file, and can be
  264. used to create cross-links in documentation for units in other packages,
  265. using the counterpart of the content option, the \var{import} option
  266. (\seesu{import}).
  267. %descr
  268. \subsection{descr}
  269. \label{suse:descr}
  270. This option specifies the name of a description file that contains the
  271. actual documentation for the unit. This option can be given several
  272. times, for several description files. The file will be searched relative to
  273. the current directory. No extension is added to the file, it should be a
  274. complete filename.
  275. If the filename starts with an 'at' sign \var{@}, then it is interpreted
  276. as a text file which contains a list of filenames, one per line.
  277. Each of these files will be added to the list of description files.
  278. The nodes in the description files will be merged into one big tree. This
  279. means that the documentation can be divided over multiple files. When
  280. merging the description files, nodes that occur twice will end up only once
  281. in the big node tree: the last node will always be the node that ends up in
  282. the parse tree. This means that the order of the various input commands or
  283. the ordering of the files in the file list is important.
  284. Examples:
  285. \begin{verbatim}
  286. --descr=crt.xml
  287. \end{verbatim}
  288. will tell \fpdoc to read documentation from \file{crt.xml}, while
  289. \begin{verbatim}
  290. [email protected]
  291. \end{verbatim}
  292. will tell \fpdoc to read filenames from \file{fcl.lst}; each of the
  293. filenames found in it will be added to the list of files to be scanned for
  294. descriptions.
  295. %format
  296. \subsection{format}
  297. \label{suse:format}
  298. Specifies the output format in which the documentation will be generated.
  299. Currently, the following formats are known:
  300. \begin{description}
  301. \item[htm] Plain HTML with 8.3 conforming filenames.
  302. \item[html] HTML with long filenames.
  303. \item[xhtml] XHTML with long filenames.
  304. \item[latex] LaTex, which uses the \file{fpc.sty} style used by the \fpc
  305. documentation.
  306. \item[xml-struct] Structured XML.
  307. \end{description}
  308. % help
  309. \subsection{help}
  310. Gives a short copyright notice.
  311. % hide-protected
  312. \subsection{hide-protected}
  313. \label{suse:hideprotected}
  314. By default, the documentation will include descriptions and listings of
  315. protected fields and methods in classes or objects. This option changes this
  316. behaviour; if it is specified, no documentation will be generated for these
  317. methods. Note that public methods or properties that refer to these
  318. protected methods will then have a dangling (i.e. unavailable) link.
  319. % html-search
  320. \subsection{html-search}
  321. \label{suse:htmlsearch}
  322. This option can be used when generating HTML documentation, to specify an
  323. url that can be used to search in the generated documentation. The URL will be
  324. included in the header of each generated page with a \var{Search} caption.
  325. The option is ignored for non-html output formats.
  326. \fpdoc does not generate a search page, this should be made by some external
  327. tool. Only the url to such a page can be specified.
  328. Example:
  329. \begin{verbatim}
  330. --html-search=../search.html
  331. \end{verbatim}
  332. % import
  333. \subsection{import}
  334. \label{suse:import}
  335. Import a table of contents file, generated by \fpdoc for another package
  336. with the \var{content} option (\seesu{content}). This option can be used
  337. to refer to documentation nodes in documentation sets for other packages.
  338. The argument consists of two parts: a filename, and a link prefix.
  339. The filename is the name of the file that will be imported. The link
  340. prefix is a prefix that will be made to each HTML link; this needs to be
  341. done to be able to place the files in different directories.
  342. Example:
  343. \begin{verbatim}
  344. --import=../fcl.cnt,../fcl
  345. \end{verbatim}
  346. This will read the file fcl.cnt in the parent directory. For HTML
  347. documentation, all links to items in the fcl.cnt file, the link will be
  348. prepended with \file{../fcl}.
  349. This allows a setup where all packages have their own subdirectory of a
  350. common documentation directory, and all content files reside in the main
  351. documentation directory, as e.g. in the following directory tree:
  352. \begin{verbatim}
  353. /docs/fcl
  354. /fpdoc
  355. /fpgui
  356. /fpgfx
  357. /fpimg
  358. \end{verbatim}
  359. The file fcl.cnt would reside in the \file{docs} directory. Similarly, for
  360. each package a contents file \file{xxx.cnt} could be places in that
  361. directory. Inside the subdirectory, commands as the above could be used to
  362. provide links to other documentation packages.
  363. Note that for Latex documentation, this option is ignored.
  364. % input
  365. \subsection{input}
  366. \label{suse:input}
  367. This option tells \fpdoc what input file should be used. The argument can
  368. be just a filename, but can also be a complete compiler command-line with
  369. options that concern the scanning of the Pascal source: defines, include
  370. files, syntax options, as they would be specified to the \fpc compiler
  371. when compiling the file. If a complete command is used, then it should be
  372. enclosed in single or double quotes, so the shell will not break them in
  373. parts.
  374. It is possible to specify multiple input commands; they will be treated one
  375. by one, and documentation will be generated for each of the processed files.
  376. % lang
  377. \subsection{lang}
  378. \label{suse:lang}
  379. Select the language for the generated documentation. This will change all
  380. header names to the equivalent in the specified language. The documentation
  381. itself will not be translated, only the captions and headers used in the
  382. text.
  383. Currently, valid choices are
  384. \begin{description}
  385. \item[de] German.
  386. \item[fr] French.
  387. \item[nl] Dutch.
  388. \end{description}
  389. Example:
  390. \begin{verbatim}
  391. --lang=de
  392. \end{verbatim}
  393. Will select German language for headers.
  394. The language files should be installed correctly for this option to work.
  395. See the section on installing to check whether the languages are installed
  396. correctly.
  397. % latex-highlight
  398. \subsection{latex-highlight}
  399. \label{suse:latexhighlight}
  400. Switches on an internal latex syntax highlighter. This is not yet
  401. implemented. By default, syntax highlighting is provided by the syntax
  402. package that comes with \fpc.
  403. % output
  404. \subsection{output}
  405. \label{suse:output}
  406. This option tells \fpdoc where the output file should be generated.
  407. How this option is interpreted depends on the format that is used.
  408. For latex, this is interpreted as the filename for the tex file.
  409. For all other formats, this is interpreted as the directory where all
  410. documentation files will be written. The directory will be created if
  411. it does not yet exist.
  412. The filename or directory name is interpreted as relative to the current
  413. directory.
  414. Example:
  415. \begin{verbatim}
  416. --format=html --output=docs/classes
  417. \end{verbatim}
  418. will generate HTML documentation in the directory \file{docs/classes}.
  419. \begin{verbatim}
  420. --format=latex --output=docs/classes.tex
  421. \end{verbatim}
  422. will generate latex documentation in the file \file{docs/classes}.
  423. % package
  424. \subsection{package}
  425. \label{suse:package}
  426. This option specifies the name of the package to be used. The package name
  427. will also be used as a default for the \var{output} option (\seesu{output}).
  428. % show-private
  429. \subsection{show-private}
  430. \label{suse:showprivate}
  431. By default, no documentation is generated for private methods or fields of
  432. classes or objects. This option causes \fpdoc to generate documentation
  433. for these methods and fields as well.
  434. % warn-no-node
  435. \subsection{warn-no-node}
  436. \label{suse:warnnonode}
  437. If this option is given, then fpdoc will emit a warning if it cannot find a
  438. documentation node for some identifier. This can be used to see whether the
  439. description files are up-to-date, or whether they must be updated.
  440. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  441. % Makeskel
  442. \section{makeskel}
  443. \label{se:makeskel}
  444. % Introduction
  445. \subsection{introduction}
  446. \label{suse:makeskelintro}
  447. The makeskel tool can be used to generate an empty description file
  448. for a unit. The description file will contain an element node for each
  449. identifier in the interface section of the Pascal unit.
  450. It's usage is quite straightforward: the name of an input file
  451. (one or more) must be specified (as for \fpdoc), an output file,
  452. and the name of a package:
  453. \begin{verbatim}
  454. makeskel --package=rtl --input=crt.pp --output=crt.xml
  455. \end{verbatim}
  456. This will read the file \file{crt.pp} and will create a file \file{crt.xml}
  457. which contains empty nodes for all identifiers found in \file{crt.pp}, all
  458. in a package named \var{rtl}.
  459. The \var{input} option can be given more than once, as for the \file{fpdoc}
  460. command:
  461. \begin{verbatim}
  462. makeskel --input='-Sn system.pp' --input=crt.pp --output=rtl.xml
  463. \end{verbatim}
  464. As can be seen, the \var{input} option can contain some compiler options,
  465. as is the case for \fpdoc. The above command will process the files
  466. \file{system.pp} and \var{crt.pp}, and will create \tag{element} tags
  467. for the identifiers in both units in the file \var{rtl.xml}.
  468. The output of \file{makeskel} is a valid, empty description file. It will
  469. contain a \tag{module} tag for each unit specified, and each \tag{module}
  470. will have \tag{element} tags for each identifier in the unit.
  471. Each \tag{element} tag will by default contain \tag{short}, \tag{descr},
  472. \tag{errors} and \tag{seealso} tags, but this can be customised.
  473. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  474. % Makeskel
  475. \section{Makeskel option reference}
  476. \label{se:makeskeloption}
  477. The output of \file{makeskel} can be customised using several options, which
  478. are discussed below.
  479. % descr
  480. \subsection{descr}
  481. \subsection{suse:descr}
  482. When in update mode (\seesu{update}), this opion can be used to add an
  483. existing documentation file, as for \file{fpdoc}. Nodes that are already
  484. in one of the existing documentation files will not be written to the
  485. output file.
  486. % disable-arguments
  487. \subsection{disable-arguments}
  488. \label{suse:msdisablearguments}
  489. By default, for each function or procedure argument, a \tag{element} tag will
  490. be generated. This option disables this behaviour: no \tag{element} tags
  491. will be generated for procedure and function arguments.
  492. % disable-errors
  493. \subsection{disable-errors}
  494. \label{suse:msdisableerrors}
  495. If this option is specified, no \tag{errors} tag will be generated in the
  496. element nodes. By default all element tags contain a \tag{errors} node.
  497. The \tag{errors} tag is ignored when it is not needed; Normally, an
  498. \tag{errors} tag is only needed for procedure and function elements.
  499. % disable-function-results
  500. \subsection{disable-function-results}
  501. \label{suse:disablefunctionresults}
  502. If this option is specified, then no \tag{element} tag will be generated for
  503. function results. By default, \file{makeskel} will generate a result node
  504. for each function in the interface section. The result node is used in the
  505. documentation to document the return value of the function under a separate
  506. heading in the documentation page. Specifying this option suppresses the
  507. generation of the \tag{element} tag for the function result.
  508. % disable-private
  509. \subsection{disable-private}
  510. \label{suse:disableprivate}
  511. If this option is specified, then no \tag{element} tags will be generated
  512. for private methods or fields of classes or objects.
  513. The default behaviour is to generate nodes for private methods or fields.
  514. It can be used to generate a skeleton for end-user and developer
  515. documentation.
  516. % disable-protected
  517. \subsection{disable-protected}
  518. \label{suse:disableprotected}
  519. If this option is specified, then no \tag{element} tags will be generated
  520. for protected and private methods or fields of classes or objects.
  521. The default is to generate nodes for protected methods or fields. If this
  522. option is given, the option \var{--disable-private} is implied. It can be
  523. used to generate end-user-only documentation for classes.
  524. % disable-seealso
  525. \subsection{disable-seealso}
  526. \label{suse:msdisableseealso}
  527. If this option is specified, no \tag{seealso} tag will be generated in the
  528. element nodes. By default all \tag{element} tags contain a \tag{seealso} tag.
  529. % emitclassseparator
  530. \subsection{emitclassseparator}
  531. \label{suse:msemitclassseparator}
  532. When this option is specified, at the beginning of the elements for the
  533. documentation of a class, a comment tag is emitted which contains a
  534. separator text. This can be useful to separate documentation of different
  535. classes and make the description file more understandable.
  536. % help
  537. \subsection{help}
  538. \label{suse:mshelp}
  539. \file{Makeskel} emits a short copyright notice and exits when this option is
  540. specified.
  541. % input
  542. \subsection{input}
  543. \label{suse:msinput}
  544. This option is identical in meaning and functionality as the \var{input}
  545. option for \fpdoc. (\seesu{input}) It specifies the Pascal unit source
  546. file that will be scanned and for which a skeleton description file will be
  547. generated. Multiple \var{input} options can be given, and \tag{element}
  548. tags will be written for all the files, in one big output file.
  549. % lang
  550. \subsection{lang}
  551. \label{suse:mslang}
  552. This option is used to specify the language for messages emitted by
  553. \file{makeskel}. The supported languages are identical to the ones
  554. for \fpdoc:
  555. \begin{description}
  556. \item[de] German.
  557. \item[fr] French.
  558. \item[nl] Dutch.
  559. \end{description}
  560. % output
  561. \subsection{output}
  562. \label{suse:msoutput}
  563. This option specifies the name of the output file. A full filename must be
  564. given, no extension will be added. If this option is omitted, the output
  565. will be sent to standard output.
  566. When using update mode, the output file name should not appear in the list of
  567. existing documentation files. The \file{makeskel} program will do some
  568. elementary checks on this.
  569. % package
  570. \subsection{package}
  571. \label{suse:mspackage}
  572. This option specifies the package name that will be used when generating the
  573. skeleton. It is a mandatory option.
  574. % update
  575. \subsection{update}
  576. \label{suse:update}
  577. This option tells makeskel to create an update file: it will read
  578. description files (\seesu{descr}) and will only create documentation nodes
  579. for identifiers which do not yet have a documentation node in the read
  580. documentation files. The output file in this case can be merged with one (or
  581. more) of the documentation files: it's name should not appear in the list of
  582. existing documentation files. The \file{makeskel} program will do some
  583. elementary checks on this.
  584. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  585. % The description file.
  586. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  587. \chapter{The description file}
  588. \label{ch:descriptionfile}
  589. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  590. % Introduction
  591. \section{Introduction}
  592. The description file is a XML document, which means that it is a kind of
  593. HTML or SGML like format, however it is more structured than HTML, making it
  594. easier to parse - and makes it easier to connect or merge it with a Pascal
  595. source file. Since the allowed syntax uses a lot of HTML tags, this makes
  596. it easy to write code for those that are familiar with writing HTML.
  597. More information about the XML format, SGML and HTML can be found on the
  598. website of the W3 (World Wide Web) consortium:
  599. \htmladdnormallink{http://www.w3.org/}{http://www.w3.org}
  600. The remaining of this chapter assumes a basic knowledge of tags, their
  601. attributes and markup language, so these terms will not be explained here.
  602. The minimal documentation file would look something like this:
  603. \begin{verbatim}
  604. <?xml version="1.0" encoding="ISO8859-1"?>
  605. <fpdoc-descriptions>
  606. <package name="fpc">
  607. <module name="Classes">
  608. </module>
  609. </fpdoc-description>
  610. </package>
  611. \end{verbatim}
  612. The header \tag{xml} tag is mandatory, and indicates that the file contains a
  613. documentation XML document.
  614. Inside the document, one or more top-level \tag{fpdoc-descriptions}
  615. tags may appear. Each of these tags can contain one or more \tag{package}
  616. tags, which must have a \attr{name} attribute. The name attribute will be
  617. used by fpdoc to select the documentation nodes.
  618. Inside a \tag{package} tag, one or more \tag{module} tags may appear. there
  619. should be one \tag{module} tag per unit that should be documented. The value
  620. of the \attr{name} attribute of the \var{module} should be the name of the
  621. unit for which the \tag{module} tag contains the documentation. The value
  622. of the \var{name} attribute is case insensitive, i.e.
  623. \begin{verbatim}
  624. <module name="CRT">
  625. \end{verbatim}
  626. can be used for the documentation of the \file{crt} unit.
  627. As it is above, the documentation description does not do much. To write
  628. real documentation, the \tag{module} tag must be filled with the
  629. documentation for each identifier that appears in the unit interface header.
  630. For each identifier in the unit interface header, the \tag{module} should
  631. contain a tag that documents the identifier: this is the \tag{element} tag.
  632. The name attribute of the element tag links the documentation to the
  633. identifier: the \attr{name} attribute should have as value the fully
  634. qualified name of the identifier in the unit.
  635. For example, to document the type
  636. \begin{verbatim}
  637. Type
  638. MyEnum = (meOne,meTwo,meThree);
  639. \end{verbatim}
  640. an \tag{element} tag called \var{myenum} should exist:
  641. \begin{verbatim}
  642. <element name="myenum">
  643. </element>
  644. \end{verbatim}
  645. But also for each of the three enumerated values an \tag{element} tag should
  646. exist:
  647. \begin{verbatim}
  648. <element name="myenum.meOne">
  649. </element>
  650. <element name="myenum.meTwo">
  651. </element>
  652. <element name="myenum.meThree">
  653. </element>
  654. \end{verbatim}
  655. As it can be seen, the names of the identifiers follow a hierarchical
  656. structure. More about this in the next section.
  657. Now the tags for the types are present, all that should be done is to fill
  658. it with the actual description. For this, several tags can be placed inside
  659. a \tag{element} tag. The most important tag is the \tag{descr} tag. The
  660. contents of the \tag{descr} tag will be used to describe a type, function,
  661. constant or variable:
  662. \begin{verbatim}
  663. <element name="myenum">
  664. <descr>
  665. The MyEnum type is a simple enumeration type which is not
  666. really useful, except for demonstration purposes.
  667. </descr>
  668. </element>
  669. \end{verbatim}
  670. A second important tag is the \tag{short} tag. It should contain a
  671. short description of the identifier, preferably a description that fits on
  672. one line. The \tag{short} tag will be used in
  673. various overviews, at the top of a page in the HTML documentation (a
  674. synopsis) or will be used instead of the \tag{descr} tag if that one
  675. is not available. It can also be used in different other cases: For
  676. instance the different values of an enumeration type will be laid
  677. out in a table, using the \tag{short} description:
  678. \begin{verbatim}
  679. <element name="myenum.meOne">
  680. <short>The first enumeration value</short>
  681. </element>
  682. <element name="myenum.meTwo">
  683. <short>The second enumeration value</short>
  684. </element>
  685. <element name="myenum.meThree">
  686. <short>The third enumeration value</short>
  687. </element>
  688. \end{verbatim}
  689. This will be converted to a table looking more or less like this:
  690. \begin{tabularx}{\textwidth}{lX}
  691. meOne & The first enumeration value \\
  692. meTwo & The second enumeration value \\
  693. meThree & The third enumeration value \\
  694. \end{tabularx}
  695. For functions and procedures, a list of possible error conditions can be
  696. documented inside a \tag{errors} tag. This tag is equivalent to the
  697. \tag{descr} tag, but is placed under a different heading in the generated
  698. documentation.
  699. Finally, to cross-reference between related functions, types or classes, a
  700. \tag{seealso} tag is also introduced. This will be used to lay out a series
  701. of links to related information. This tag can only have sub-tags which are
  702. \var{link} tags. For more about the \tag{link} tag, see \seetag{link}.
  703. To add a section or page of documentation that is not directly related to a
  704. single identifier in a unit, a \tag{topic} tag can be used. This tag can
  705. appear inside a \var{package} or \var{module} tag, and can contain a
  706. \tag{short} or \tag{descr} tag. The contents of the \tag{short} tag will be
  707. used for the title of the section or page. In on-line formats, a short list
  708. of related topics will appear in the package or module page, with links to
  709. the pages that contain the text of the topics. In a linear format, the topic
  710. sections will be inserted before the description of all identifiers.
  711. If the topic appears in a \tag{package} tag, then it can be nested: 2 levels
  712. of topics may be used. This is not so for topics inside a module: they can
  713. not be nested (the level of nesting in a linear documentation format is limited).
  714. The following is an example of a valid topic tag:
  715. \begin{verbatim}
  716. <module name="CRT">
  717. <topic name="UsingKeyboard">
  718. <short>Using the keyboard functions</short>
  719. <descr>
  720. To use the keyboard functions of the CRT unit, one...
  721. </descr>
  722. </topic>
  723. \end{verbatim}
  724. Topic nodes can be useful to add 'how to' sections to a unit, or to provide
  725. general IDE help.
  726. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  727. % cross-referencing
  728. \section{Element names and cross-referencing}
  729. \subsection{Element name conventions}
  730. As mentioned in the previous section, the \var{element} tag's \attr{name}
  731. attribute is hierarchical. All levels in the hierarchy are denoted by a dot
  732. (.) in the name attribute.
  733. As shown in the previous example, for an enumerated type, the various
  734. enumeration constants can be documented by specifying their name as
  735. \var{enumname.constname}. For example, given the type
  736. \begin{verbatim}
  737. Type
  738. MyEnum = (meOne,meTwo,meThree);
  739. \end{verbatim}
  740. The various enumeration values can be documented using the element names
  741. \var{MyEnum.meOne}, \var{MyEnum.meTwo} and \var{MyEnum.meThree}:
  742. \begin{verbatim}
  743. <element name="myenum.meOne">
  744. </element>
  745. <element name="myenum.meTwo">
  746. </element>
  747. <element name="myenum.meThree">
  748. </element>
  749. \end{verbatim}
  750. Note that the casing of the name attribute need not be the same as the
  751. casing of the declaration.
  752. This hierarchical structure can be used for all non-simple types:
  753. \begin{itemize}
  754. \item Enumeration type values.
  755. \item Fields in records, objects, classes. For nested record definitions,
  756. multiple levels are possible in the name.
  757. \item Methods of classes and objects.
  758. \item Properties of classes.
  759. \item Function and procedure arguments.
  760. \item Function results. The name is always the function name followed by
  761. \var{Result}.
  762. \end{itemize}
  763. \subsection{Cross referencing: the \var{link} tag}
  764. To refer to another point in the documentation (a related function, class or
  765. whatever), a \tag{link} tag exists. The \var{link} tag takes as a sole
  766. attribute a target \attr{id} attribute. The link tag usually encloses a
  767. piece of text. In the HTML version of the documentation, this piece of text
  768. will function as a hyperlink. In the latex version, a page number reference
  769. will be printed.
  770. The \attr{id} attribute contains the name of an element to which the link
  771. refers. The name is not case sensitive, but it must be a fully qualified
  772. name.
  773. An example of the link type would be:
  774. \begin{verbatim}
  775. The <link id="MyEnum">MyEnum</link> type is a simple type.
  776. \end{verbatim}
  777. The link attribute also has a short form:
  778. \begin{verbatim}
  779. The <link id="MyEnum"/> type is a simple type.
  780. \end{verbatim}
  781. In the short form, the value of the \attr{id} attribute will be used as the
  782. text which will be hyperlinked. This is especially useful in the \tag{seealso}
  783. tag.
  784. To refer to a type in another unit, the unit name must be prepended to the
  785. \attr{id} attribute:
  786. \begin{verbatim}
  787. <link id="myunit.myenum"/>
  788. \end{verbatim}
  789. will link to the \var{myenum} type in a unit named \file{myunit}.
  790. To refer to a node in the documentation of another package, the package name
  791. should be prepended to the \attr{id} attribute, and it should be prepended
  792. with the hash symbol (\#):
  793. \begin{verbatim}
  794. <link id="#fcl.classes.sofrombeginning"/>
  795. \end{verbatim}
  796. will link to the constant \var{sofrombeginning} in the \file{classes} unit
  797. of the FCL reference documentation. Note that for this to work correctly,
  798. the contents file which was created when generating the documentation of
  799. the type must be imported correctly (see the \var{import} option).
  800. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  801. % Tag reference
  802. \section{Tag reference}
  803. \subsection{Overview}
  804. The tags can roughly be divided in 2 groups:
  805. \begin{enumerate}
  806. \item Documentation structure tags. These are needed for fpdoc to do it's
  807. work. They determine what elements are documented. See \seet{structtags}
  808. \item Text structure and formartting tags. These tags indicate blocks of text, such as
  809. paragraphs, tables, lists and remarks, but also specify formatting: apply formatting (make-up)
  810. to the text, or to provide links to other parts of the text. These mostly occur in
  811. text structure tags. See \seet{formattags}
  812. \end{enumerate}
  813. \begin{table}[ht]
  814. \caption{Documentation structure tags}\label{tab:structtags}
  815. \begin{tabularx}{\textwidth}{lXr}
  816. Tag & Description & Page \\ \hline
  817. descr & Element description & \pageref{tag:descr} \\
  818. element & Identifier documentation & \pageref{tag:element} \\
  819. errors & Error section & \pageref{tag:errors} \\
  820. fpdoc-description & Global tag & \pageref{tag:fpdocdescription} \\
  821. module & Unit tag & \pageref{tag:module} \\
  822. package & Package global tab & \pageref{tag:package} \\
  823. seealso & Cross-reference section & \pageref{tag:seealso} \\
  824. short & Short description & \pageref{tag:short} \\
  825. topic & Topic page & \pageref{tag:topic} \\ \hline
  826. \end{tabularx}
  827. \end{table}
  828. \begin{table}[ht]
  829. \caption{Text formatting tags}\label{tab:formattags}
  830. \begin{tabularx}{\textwidth}{lXr}
  831. Tag & Description & Page \\ \hline
  832. b & Format bold & \pageref{tag:b} \\
  833. caption & Specify table caption & \pageref{tag:caption} \\
  834. code & Syntax highlight code & \pageref{tag:code} \\
  835. dd & definition data & \pageref{tag:dd} \\
  836. dl & definition list & \pageref{tag:dl} \\
  837. dt & Definition term & \pageref{tag:dt} \\
  838. i & format italics & \pageref{tag:i} \\
  839. li & list element & \pageref{tag:li} \\
  840. link & Cross-reference & \pageref{tag:link} \\
  841. ol & numbered list & \pageref{tag:ol} \\
  842. p & paragraph & \pageref{tag:p} \\
  843. pre & Preformatted text & \pageref{tag:pre} \\
  844. remark & remark paragraph & \pageref{tag:remark} \\
  845. table & Table & \pageref{tag:table} \\
  846. td & Table cell & \pageref{tag:td} \\
  847. th & Table header & \pageref{tag:th} \\
  848. tr & Table row & \pageref{tag:tr} \\
  849. u & format underlined & \pageref{tag:u} \\
  850. ul & bulleted list & \pageref{tag:ul} \\
  851. var & format as variable & \pageref{tag:var} \\ \hline
  852. \end{tabularx}
  853. \end{table}
  854. The nodes for formatting a text resemble closely the basic HTML formatting tags with the
  855. following exceptions:
  856. \begin{itemize}
  857. \item Each opening tag must have a corresponding closing tag.
  858. \item Tags are case sensitive.
  859. \item Tables and paragraphs are at the same level, i.e. a table cannot occur
  860. inside a paragraph. The same is true for all 'structural' tags such as
  861. lists,
  862. \end{itemize}
  863. Also, if special formatting tags such as a table or lists are inserted, then
  864. the remaining text must be inside a paragraph tag. This means that the
  865. following is wrong:
  866. \begin{verbatim}
  867. <descr>
  868. Some beginning text
  869. <ol>
  870. <li>A list item</li>
  871. </ol>
  872. some ending text
  873. </descr>
  874. \end{verbatim}
  875. Instead, the correct XML should be
  876. \begin{verbatim}
  877. <descr>
  878. <p>Some beginning text</p>
  879. <ol>
  880. <li>A list item</li>
  881. </ol>
  882. <p>some ending text</p>
  883. </descr>
  884. \end{verbatim}
  885. % Tag B
  886. \subsection{\tag{b} : format bold}
  887. \label{tag:b}
  888. This tag will cause the text inside it to be formatted using a bold font.
  889. Example:
  890. \begin{verbatim}
  891. Normal text <b>Bold text</b> normal text.
  892. \end{verbatim}
  893. will be formatted as:\\
  894. Normal text \textbf{Bold text} normal text.
  895. See also: \seetag{i}, \seetag{u}.
  896. % Tag caption
  897. \subsection{\tag{caption} : Specify table caption}
  898. \label{tag:caption}
  899. This tag can occur inside a \tag{table} tag and serves to set the table
  900. caption.
  901. Example
  902. \begin{verbatim}
  903. <table>
  904. <caption>This caption will end up above the table</caption>
  905. <th><td>Column 1</td><td>Column 2</td></th>
  906. </table>
  907. \end{verbatim}
  908. See also: \seetag{table}
  909. % Tag code
  910. \subsection{\tag{code} : format as pascal code}
  911. \label{tag:code}
  912. The \tag{code} tag serves to insert Pascal code into the text. When possible
  913. this code will be highlighted in the output. It can be used to put
  914. highlighted Pascal code in the documentation of some identifier. It can
  915. occur inside \tag{descr} or \tag{errors} tags.
  916. Note that any text surrounding the \tag{code} tag should be placed in
  917. paragraph tags \tag{p}.
  918. Example:
  919. \begin{verbatim}
  920. <code>
  921. With Strings do
  922. For i:=Count-1 downto 0 do
  923. Delete(i);
  924. </code>
  925. \end{verbatim}
  926. Seealso: \seetag{pre}, \seetag{p}
  927. % Tag descr
  928. \subsection{\tag{descr} : Descriptions}
  929. \label{tag:descr}
  930. This is the actual documentation tag. The contents of this tag will be
  931. written as the documentation of the element. It can contain any mixture of
  932. text and markup tags. The \tag{descr} tag can only occur inside a
  933. \tag{element} or \tag{module}.
  934. Example:
  935. \begin{verbatim}
  936. <element name="MyEnym">
  937. <descr>Myenum is a simple enumeration type</descr>
  938. </element>
  939. \end{verbatim}
  940. See also: \seetag{element}, \seetag{short}, \seetag{errors}, \seetag{seealso}
  941. % Tag dd
  942. \subsection{\tag{dd} : definition data.}
  943. \label{tag:dd}
  944. The \tag{dd} tag is used to denote the definition of a term in a definition
  945. list. It can occur only inside a definition list tag (\tag{dl}), after a
  946. definition term (\tag{dt}) tag. It's usage is identical to the one in HTML.
  947. Example:
  948. \begin{verbatim}
  949. <dl>
  950. <dt>FPC</dt><dd>stands for Free Pascal Compiler.</dd>
  951. </dl>
  952. \end{verbatim}
  953. Will be typeset as
  954. \begin{description}
  955. \item[FPC] stands for Free Pascal Compiler.
  956. \end{description}
  957. See also: \seetag{dl}, \seetag{dt}, \seetag{ol}, \seetag{ul}
  958. % Tag dl
  959. \subsection{\tag{dl} : definition list.}
  960. \label{tag:dl}
  961. Definition lists are meant to type a set of terms together with their
  962. explanation. It's usage is identical to the one in HTML, with the exception
  963. that it cannot occur inside ordinary text: surrounding text should always be
  964. enclosed in paragraph tags.
  965. Example:
  966. \begin{verbatim}
  967. <dl>
  968. <dt>meOne</dt><dd>First element of the enumeration type.</dd>
  969. <dt>meTwo</dt><dd>Second element of the enumeration type.</dd>
  970. <dt>meThree</dt><dd>Thir element of the enumeration type.</dd>
  971. </dl>
  972. \end{verbatim}
  973. Will be typeset as
  974. \begin{description}
  975. \item[meOne] First element of the enumeration type.
  976. \item[meTwo] Second element of the enumeration type.
  977. \item[meThree] Third element of the enumeration type.
  978. \end{description}
  979. See also: \seetag{dt}, \seetag{dd}, \seetag{ol}, \seetag{ul}
  980. % Tag dt
  981. \subsection{\tag{dt} : definition term.}
  982. \label{tag:dt}
  983. The \tag{dt} tag is used in definition lists to enclose the term for which a
  984. definition is presented. It's usage is identical to the usage in HTML.
  985. Example:
  986. \begin{verbatim}
  987. <dl>
  988. <dt>FPC</dt><dd>stands for Free Pascal Compiler.</dd>
  989. </dl>
  990. \end{verbatim}
  991. Will be typeset as
  992. \begin{description}
  993. \item[FPC] stands for Free Pascal Compiler.
  994. \end{description}
  995. See also: \seetag{dl}, \seetag{dd}, \seetag{ol}, \seetag{ul}
  996. % Tag element
  997. \subsection{\tag{element} : Identifier documentation}
  998. \label{tag:element}
  999. The \tag{element} contains the documentation for an identifier in a unit. It
  1000. should occur inside a \var{module} tag. It can contain 4 tags:
  1001. \begin{description}
  1002. \item[short] For a one-line description of the identifier. Is used as a
  1003. header or is used in overviews of constants, types, variables or classes.
  1004. \item[descr] Contains the actual description of the identifier.
  1005. \item[errors] For functions an procedures this can be used to describe error
  1006. conditions. It will be put in a separate section below the description
  1007. section.
  1008. \item[seealso] Used to refer to other nodes. will be typeset in a separate
  1009. section.
  1010. \end{description}
  1011. The \tag{element} tag should have at least the \attr{name} attribute, it
  1012. is used to link the element node to the actual identifier in the Pascal unit.
  1013. Other attributes may be added in future.
  1014. Example:
  1015. \begin{verbatim}
  1016. <element name="MyEnym">
  1017. <descr>Myenum is a simple enumeration type</descr>
  1018. </element>
  1019. \end{verbatim}
  1020. See also: \seetag{descr}, \seetag{short}, \seetag{errors}, \seetag{seealso}
  1021. % Tag errors
  1022. \subsection{\tag{errors} : Error section.}
  1023. \label{tag:errors}
  1024. The \tag{errors} tag is used to document any errors that can occur when
  1025. calling a function or procedure. it is placed in a different section in the
  1026. generated documentation. It occurs inside a \tag{element} tag, at the same
  1027. level as a \tag{descr} or \tag{short} tag. It's contents can be any
  1028. text or formatting tag.
  1029. Example:
  1030. \begin{verbatim}
  1031. <element name="MyDangerousFunction">
  1032. <descr>MyDangerousFunction is a dangerous function</descr>
  1033. <errors>When MyDangerousFunction fails, all is lost</errors>
  1034. </element>
  1035. \end{verbatim}
  1036. See also: \seetag{descr}, \seetag{short}, \seetag{element}, \seetag{seealso}
  1037. % Tag fpdoc-description
  1038. \subsection{\tag{fpdoc-description} : Global tag}
  1039. \label{tag:fpdocdescription}
  1040. The \tag{fpdoc-description} tag is the topmost tag in a description file. It
  1041. contains a series of \tag{package} tags, one for each package that is
  1042. described in the file.
  1043. See also: \seetag{package}
  1044. % Tag i
  1045. \subsection{\tag{i} : Format italics}
  1046. \label{tag:i}
  1047. The \tag{i} tag will cause its contents to be typeset in italics. It can
  1048. occur mixed with any text.
  1049. Example:
  1050. \begin{verbatim}
  1051. Normal text <i>italic text</i> normal text.
  1052. \end{verbatim}
  1053. will be formatted as:\\
  1054. Normal text \textit{italic text} normal text.
  1055. See also: \seetag{b}, \seetag{u}
  1056. % Tag li
  1057. \subsection{\tag{li} : list element}
  1058. \label{tag:li}
  1059. The tag \tag{li} denotes an element in a \tag{ol} or \tag{ul} list.
  1060. The usage is the same as for it's HTML counterpart: It can occur
  1061. only inside one of the \tag{ol} or \tag{ul} list tags.
  1062. It's contents may be arbitrary text and formatting tags, contrary to HTML
  1063. tags, the \tag{li} tag always must have a closing tag. Note that it cannot be used in a
  1064. definition list (\seetag{dl}).
  1065. Example:
  1066. \begin{verbatim}
  1067. <ul>
  1068. <li>First item in the list</li>
  1069. <li>Second item in the list</li>
  1070. </ul>
  1071. \end{verbatim}
  1072. Will be typeset as
  1073. \begin{itemize}
  1074. \item First item in the list.
  1075. \item Second item in the list.
  1076. \end{itemize}
  1077. See also: \seetag{ol}, \seetag{ul}.
  1078. % Tag link
  1079. \subsection{\tag{link} : Cross-reference}
  1080. \label{tag:link}
  1081. The \tag{link} tag is used to insert a reference to an element inside some
  1082. piece of text or inside the \tag{seealso} section. It is similar in
  1083. functionality to the
  1084. \begin{verbatim}
  1085. <A HREF="SomeAnchor">some linked text</A>
  1086. \end{verbatim}
  1087. construct in HTML.
  1088. The mandatory \attr{id} attribute of the \tag{link} tag should have the
  1089. name of an element tag in it. This name is not case sensitive. \fpdoc
  1090. will issue a warning if it cannot find a matching name. It will look for
  1091. matching names in the current file, and in all content files that have been
  1092. specified with the \var{import} command-line option.
  1093. The link tag can exist in 2 forms: one with separate closing tag,
  1094. surrounding a piece of text, one without separate closing tag. If a piece of
  1095. text is surrounded by the link tag, then the text will be converted to a
  1096. hyperlink in the HTML documentation. If there is no surrounded text, then
  1097. the value of the \attr{id} attribute will be used as the text. This means
  1098. that
  1099. \begin{verbatim}
  1100. <link id="TStream">TStream</link>
  1101. \end{verbatim}
  1102. and
  1103. \begin{verbatim}
  1104. <link id="TStream"/>
  1105. \end{verbatim}
  1106. are completely equivalent.
  1107. Example:
  1108. \begin{verbatim}
  1109. The <link id="TStringlist">stringlist</link> class is a descendent of the
  1110. <link id="TStrings"/> class.
  1111. \end{verbatim}
  1112. See also: \seetag{element}, the \var{import} option (\seesu{import}).
  1113. % Tag module
  1114. \subsection{\tag{module} : Unit reference}
  1115. \label{tag:module}
  1116. The \tag{module} tag encloses all \tag{element} tags for a unit. It can
  1117. contain only \tag{element} tags for all identifiers in the unit and
  1118. a \tag{descr} tag describing the unit itself. The \tag{module} tag should
  1119. occur inside a \tag{package} tag.
  1120. The \attr{name} attribute should have as a value the name of the unit which
  1121. is described by the module. This name is not case sensitive.
  1122. Example:
  1123. \begin{verbatim}
  1124. <module name="classes">
  1125. <descr>
  1126. The classes unit contains basic class definitions for the FCL.
  1127. </descr>
  1128. </module>
  1129. \end{verbatim}
  1130. See also: \seetag{package}, \seetag{descr}, \seetag{element}
  1131. % Tag ol
  1132. \subsection{\tag{ol} : Numbered list.}
  1133. \label{tag:ol}
  1134. The \tag{ol} tag starts a numbered list. It can contain only \seetag{li}
  1135. tags, which denote the various elements in the list. Each item will be
  1136. preceded by a number. The \tag{ol} tag can
  1137. occur inside a text, but surrounding text should always be enclosed in a
  1138. \seetag{p} paragraph tag, i.e. an \tag{ol} tag should occur always at the
  1139. same level as a \tag{p} tag.
  1140. Example:
  1141. \begin{verbatim}
  1142. <p> some text before</p>
  1143. <ol>
  1144. <li>First item in the list</li>
  1145. <li>Second item in the list</li>
  1146. </ol>
  1147. \end{verbatim}
  1148. Will be typeset as:
  1149. some text before
  1150. \begin{enumerate}
  1151. \item First item in the list.
  1152. \item Second item in the list.
  1153. \end{enumerate}
  1154. See also: \seetag{li}, \seetag{ul}.
  1155. % Tag paragraph
  1156. \subsection{\tag{p} : Paragraph}
  1157. \label{tag:p}
  1158. The \tag{p} tag is the paragraph tag. Every description text should be
  1159. enclosed in a \tag{p} tag. Only when there is only one paragraph (and no
  1160. lists or tables or remarks) in a description node, then the \tag{p} tag may
  1161. be skipped.
  1162. Note that if a description node contains a \tag{table}, \tag{pre}, \tag{code}
  1163. or any list tag, then the text surrounding these tags {\em must} be put
  1164. inside a \tag{p} paragraph tag. This is different from the behaviour in HTML.
  1165. The paragraph tag must always have an opening tag and a closing tag, unlike
  1166. html where only the opening tag may be present.
  1167. Example:
  1168. \begin{verbatim}
  1169. <descr>
  1170. This is a paragraph which need not be surrounded by paragraph tags.
  1171. </descr>
  1172. \end{verbatim}
  1173. \begin{verbatim}
  1174. <descr>
  1175. <p>
  1176. This is the first paragraph.
  1177. </p>
  1178. <p>
  1179. This is the second paragraph.
  1180. </p>
  1181. </descr>
  1182. \end{verbatim}
  1183. See also: \seetag{table}, \seetag{dl}, \seetag{remark},\seetag{code},
  1184. \seetag{ol},\seetag{ul},\seetag{ol}
  1185. % Tag package
  1186. \subsection{\tag{package} : Package reference}
  1187. \label{tag:package}
  1188. The \tag{package} tag indicates the package for which the description file
  1189. contains documentation. A package is a collection of units which are
  1190. logically grouped together (for a library, program, component suites). The
  1191. \attr{name} attribute of the \tag{package} tag will be used to select the
  1192. package node in the description file: Only the \tag{package} node with name as
  1193. specified by the \var{package} command-line option will be used when
  1194. generating documentation. All other package nodes will be ignored.
  1195. The \tag{package} node must always reside in a \tag{fpdoc-description} node.
  1196. It can contain a \tag{descr} node, and various \tag{module} nodes, one node
  1197. per unit in the package.
  1198. See also: \seetag{fpdocdescription}, \seetag{module}, \seetag{descr}
  1199. % Tag pre
  1200. \subsection{\tag{pre} : Insert text as-is}
  1201. \label{tag:pre}
  1202. The \tag{pre} tag can be used to insert arbitrary text in the documentation.
  1203. The text will not be formatted in any way, and will be displayed as it is
  1204. encountered in the description node. It is functionally equivalent to the
  1205. \tag{pre} tag in HTML.
  1206. Note that if there is text surrounding the \tag{pre} tag, it should be placed
  1207. inside a \tag{p} paragraph tag.
  1208. Example:
  1209. \begin{verbatim}
  1210. <pre>
  1211. This is some text.
  1212. This is some more text
  1213. And yet more text...
  1214. </pre>
  1215. \end{verbatim}
  1216. This will be typeset as:
  1217. \begin{verbatim}
  1218. This is some text.
  1219. This is some more text
  1220. And yet more text...
  1221. \end{verbatim}
  1222. See also: \seetag{code}, \seetag{p}
  1223. % Tag remark
  1224. \subsection{\tag{remark} : format as remark}
  1225. \label{tag:remark}
  1226. A \tag{remark} tag can be used to make a paragraph stand out. The
  1227. \tag{remark} is equivalent to the \tag{p} tag, but it's contents is
  1228. formatted in a way that makes it stand out from the rest of the text.
  1229. Note that any text before or after the \tag{remark} tag must be enclosed in
  1230. paragraph (\tag{p}) tags.
  1231. Example:
  1232. \begin{verbatim}
  1233. <p>Normal text.</p>
  1234. <remark>
  1235. This text will stand out.
  1236. <example>
  1237. <p>Again normal text.</p>
  1238. \end{verbatim}
  1239. Will be formatted as
  1240. Normal text.
  1241. \begin{remark}
  1242. This text will stand out.
  1243. \end{remark}
  1244. Again normal text.
  1245. See also: \seetag{p}, \seetag{code}, \seetag{pre}
  1246. % Tag seealso
  1247. \subsection{\tag{seealso} : Cross-reference section}
  1248. \label{tag:seealso}
  1249. The \tag{seealso} section can occur inside any \tag{element} tag, and will
  1250. be used to create a list of cross-references. The contents of the
  1251. \tag{seealso} tag is a list of \tag{link} tags. No other text is allowed
  1252. inside this tag. Note that both the long and short form if the link tag may
  1253. be used.
  1254. Example:
  1255. \begin{verbatim}
  1256. <seealso>
  1257. <link id="TStrings"/>
  1258. <link id="TStringList.Create">Create</link>
  1259. </seealso>
  1260. \end{verbatim}
  1261. See also: \seetag{link}, \seetag{element}
  1262. % Tag short
  1263. \subsection{\tag{short} : Short description}
  1264. \label{tag:short}
  1265. The \var{short} description is used to give a short description of an
  1266. identifier. If possible, the description should fit on a single line of
  1267. text. The contents of this tag will be used for the following purposes:
  1268. \begin{itemize}
  1269. \item Used as the synopsis on a page that describes an identifier.
  1270. \item Used in overviews of constants, types, variables, record fields,
  1271. functions and procedures, classes, and for method and property listings of classes.
  1272. \item Replaces the \tag{descr} tag in an \tag{element} if no \tag{descr} tag is present.
  1273. \item In the description of an enumerated type, the enumeration values are
  1274. typeset in a table, each row containing the name of the value and the short
  1275. description.
  1276. \item In the description of a function or procedure that accepts arguments,
  1277. the arguments are followed by their short description.
  1278. \item In the declaration of a class or record, each method, field or property
  1279. is followed by the short description.
  1280. \end{itemize}
  1281. Example:
  1282. \begin{verbatim}
  1283. <element name="MyEnum.meOne">
  1284. <short>First element of MyEnum</short>
  1285. </element>
  1286. \end{verbatim}
  1287. See also: \seetag{element}, \seetag{descr}
  1288. % Tag table
  1289. \subsection{\tag{table} : Table start}
  1290. \label{tag:table}
  1291. The \var{table} tag starts a table, as in HTML. A table can contain
  1292. \tag{tr} (table row), \tag{th} (table header row) or \tag{caption} tags.
  1293. Any text surrounding the table must be enclosed in paragraph tags (\tag{p}).
  1294. Example:
  1295. \begin{verbatim}
  1296. <table>
  1297. <caption>
  1298. <var>TALignment</var> values and their meanings.
  1299. </caption>
  1300. <th><td>Value</td><td>Meaning</td></th>
  1301. <tr>
  1302. <td><var>taLeftJustify</var></td>
  1303. <td>Text is displayed aligned to the left.</td>
  1304. </tr>
  1305. <tr>
  1306. <td><var>taRightJustify</var></td>
  1307. <td>Text is displayed aligned to the right</td>
  1308. </tr>
  1309. <tr>
  1310. <td><var>taCenter</var></td>
  1311. <td>Text is displayed centred.</td>
  1312. </tr>
  1313. </table>
  1314. \end{verbatim}
  1315. Will be formatted approximately as follows:
  1316. \begin{tabularx}{\textwidth}{lX}
  1317. Value & Meaning \\ \hline
  1318. \var{taLeftJustify} & Text is displayed aligned to the left. \\
  1319. \var{taRightJustify} & Text is displayed aligned to the right \\
  1320. \var{taCenter} & Text is displayed centred.
  1321. \end{tabularx}
  1322. See also: \seetag{th}, \seetag{caption}, \seetag{tr}, \seetag{p}
  1323. % Tag td
  1324. \subsection{\tag{td} : Table cell}
  1325. \label{tag:td}
  1326. The \tag{td} tag is used to denote one cell in a table. It occurs
  1327. inside a \tag{tr} or \tag{th} tag, and can contain any text and formatting
  1328. tags.
  1329. Example:
  1330. \begin{verbatim}
  1331. <table>
  1332. <tr><td>Cell (1,1)</td><td>Cell (2,1)</td></tr>
  1333. <tr><td>Cell (1,2)</td><td>Cell (2,2)</td></tr>
  1334. </table>
  1335. \end{verbatim}
  1336. Will be formatted approximately as
  1337. \begin{tabular}{ll}
  1338. Cell (1,1) & Cell (2,1) \\
  1339. Cell (1,2) & Cell (2,2)
  1340. \end{tabular}
  1341. See also: \seetag{table}, \seetag{th}, \seetag{tr}
  1342. % Tag th
  1343. \subsection{\tag{th} : Table header}
  1344. \label{tag:th}
  1345. The \var{th} table header tag is used to denote the first row(s) of a table:
  1346. It (they) will be made up differently from the other rows in the table.
  1347. Exactly how it is made up depends on the format. In printed documentation
  1348. (latex) a line will be drawn under the row. In HTML, the font and background
  1349. may be formatted differently.
  1350. The \tag{th} tag can only occur inside a \tag{table} tag, and can contain
  1351. only \tag{td} tags.
  1352. Example:
  1353. \begin{verbatim}
  1354. <table>
  1355. <th><td>Cell (1,1)</td><td>Cell (2,1)</td></th>
  1356. <tr><td>Cell (1,2)</td><td>Cell (2,2)</td></tr>
  1357. </table>
  1358. \end{verbatim}
  1359. Will be formatted approximately as
  1360. \begin{tabular}{ll}
  1361. Cell (1,1) & Cell (2,1) \\ \hline
  1362. Cell (1,2) & Cell (2,2)
  1363. \end{tabular}
  1364. See also: \seetag{tr}, \seetag{table}
  1365. %\subsection{\tag{topic} : Topic section}
  1366. \label{tag:topic}
  1367. The topic tag starts a topic page or section. A topic page or section is
  1368. not linked to an identifier in some unit: it exists by itself. It must be
  1369. inside a \tag{package} or \tag{module} tag. It must have a \attr{name}
  1370. attribute (for cross-referencing). If it appears inside a \tag{package},
  1371. it can be nested: a \tag{topic} may be inside another \tag{topic} tag.
  1372. \begin{verbatim}
  1373. <module name="CRT">
  1374. <topic name="UsingKeyboard">
  1375. <short>Using the keyboard functions</short>
  1376. <descr>
  1377. To use the keyboard functions of the CRT unit, one...
  1378. </descr>
  1379. </topic>
  1380. \end{verbatim}
  1381. % Tag tr
  1382. \subsection{\tag{tr} : table row}
  1383. \label{tag:tr}
  1384. The \tag{tr} tag denotes a row in a table. It works the same as in HTML.
  1385. It can occur only in a \tag{table} tag, and should contain only \tag{td}
  1386. table data tags.
  1387. Example:
  1388. \begin{verbatim}
  1389. <table>
  1390. <tr><td>Cell (1,1)</td><td>Cell (2,1)</td></tr>
  1391. <tr><td>Cell (1,2)</td><td>Cell (2,2)</td></tr>
  1392. </table>
  1393. \end{verbatim}
  1394. Will be formatted approximately as
  1395. \begin{tabular}{ll}
  1396. Cell (1,1) & Cell (2,1) \\
  1397. Cell (1,2) & Cell (2,2)
  1398. \end{tabular}
  1399. See also: \seetag{table}, \seetag{th}, \seetag{td}
  1400. % Tag u
  1401. \subsection{\tag{u} : Format underlined}
  1402. \label{tag:u}
  1403. Example:
  1404. \begin{verbatim}
  1405. Normal text <u>underlined text</u> normal text.
  1406. \end{verbatim}
  1407. will be formatted as:\\
  1408. Normal text \underline{underlined text} normal text.
  1409. See also: \seetag{i}, \seetag{b}.
  1410. % Tag ul
  1411. \subsection{\tag{ul} : bulleted list}
  1412. \label{tag:ul}
  1413. The \var{ul} tag starts a bulleted list. This works as under HTML, with the
  1414. exception that any text surrounding the list must be enclosed in paragraph
  1415. tags (\tag{p}). The list elements should be enclosed in \tag{li} tags.
  1416. Example:
  1417. \begin{verbatim}
  1418. <p> some text before</p>
  1419. <ol>
  1420. <li>First item in the list</li>
  1421. <li>Second item in the list</li>
  1422. </ol>
  1423. \end{verbatim}
  1424. Will be typeset as:
  1425. some text before
  1426. \begin{itemize}
  1427. \item First item in the list.
  1428. \item Second item in the list.
  1429. \end{itemize}
  1430. See also: \seetag{li}, \seetag{ol}.
  1431. % Tag var
  1432. \subsection{\tag{var} : variable}
  1433. \label{tag:var}
  1434. The \tag{var} tag is used to mark a piece of text as a variable (or, more
  1435. general, as an identifier). It will be typeset differently from the
  1436. surrounding text. Exactly how this is done depends on the output format.
  1437. Example:
  1438. \begin{verbatim}
  1439. The <var>Items</var> property gives indexed access to...
  1440. \end{verbatim}
  1441. Will be typeset as
  1442. The \var{Items} property gives indexed access to...
  1443. See also: \seetag{b}, \seetag{u}, \seetag{i}, \seetag{code}
  1444. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1445. % Generated output files.
  1446. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1447. \chapter{Generated output files.}
  1448. \label{ch:outputfiles}
  1449. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1450. % HTML output
  1451. \section{HTML output}
  1452. The HTML output consists of the following files, per unit:
  1453. \begin{enumerate}
  1454. \item A general unit description with the contents of the module's
  1455. \tag{descr} tag. The \var{uses} clause is documented here as well.
  1456. All units in the \var{uses} clause together with their \tag{short}
  1457. description tags are typeset in a table.
  1458. \item A listing of all constants in the unit.
  1459. \item A listing of all types in the unit (except classes).
  1460. \item A listing of all variables in the unit.
  1461. \item A listing of all functions/procedures in the unit.
  1462. \item A listing of all classes in the unit.
  1463. \end{enumerate}
  1464. All these overviews are hyperlinked to pages which contain the documentation
  1465. of each identifier. Each page starts with the name of the identifier,
  1466. plus a synopsis (made from the \tag{short} tag's contents). After that
  1467. follows the declaration, and the description. The description is filled with
  1468. the \tag{descr} node of the identifiers \tag{element} tag.
  1469. If an \var{errors} tag was present, an 'Errors' section follows the
  1470. description. Similarly, if there is a \tag{seealso} tag, a 'See also'
  1471. section with cross-reference links is made.
  1472. For classes, the declaration contains hyperlinks to separate pages which
  1473. document all the members of the class. Each member in the declaration is
  1474. followed by the \tag{short} tag of the member's \tag{element} tag, if one
  1475. exists. As an extra, the class hierarchy is given, plus links to pop-up pages
  1476. (if JavaScript is available, otherwise they are normal links) which contain
  1477. alphabetical or hierarchical listings of the methods, fields or properties
  1478. of the class.
  1479. For functions and procedures, the declaration will be typeset in such a way
  1480. that all function arguments (if they are present) are in tabular format,
  1481. followed by the short description of the argument. If it concerns a
  1482. function, and a result element exists, the result description will be
  1483. provided in a separate section, before the actual description.
  1484. The declaration of an enumerated type will be laid out in a table, with the
  1485. enumeration value at the left, and the short description node of the value's
  1486. element.
  1487. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1488. % Latex output
  1489. \section{Latex output}
  1490. The latex output is in one big file with the name of the package as
  1491. specified on the command line. in this file, one chapter is made per
  1492. unit.
  1493. Per unit the following sections are made:
  1494. \begin{enumerate}
  1495. \item A section with all constants.
  1496. \item A section with all types.
  1497. \item A section with all variables.
  1498. \item A section with all functions and procedures.
  1499. \item A section per declared class.
  1500. \end{enumerate}
  1501. For the constants, types and variables, the declaration is given, followed
  1502. by the \tag{descr} node of the element corresponding to the identifier.
  1503. All other nodes are ignored.
  1504. For functions and procedures, a subsection is made per procedure or
  1505. function. This subsection consists of a list with the following entries:
  1506. \begin{description}
  1507. \item[Synopsis] filled with the contents of the \tag{short} tag.
  1508. \item[Declaration] Filled with the declaration of the function.
  1509. \item[Arguments] A tabular description of all arguments, if \tag{short} tags
  1510. are found for them.
  1511. \item[Description] Description of the function. Filled with the contents of
  1512. the \tag{descr} tag.
  1513. \item[Errors] Description of any error conditions. Filled with the contents
  1514. of the \tag{errors} tag.
  1515. \item[See Also] Cross-references to other functions. Filled with the
  1516. contents of the \tag{seealso} tag.
  1517. \end{description}
  1518. For classes, a subsection is made with an overview of implemented methods.
  1519. Then a subsection is presented with available properties.
  1520. Then follows a subsection per method. These are formatted as a function, with an
  1521. additional \textbf{Visibility} list element, giving the visibility of the
  1522. function.
  1523. After the methods, a list of properties is given , formatted as a method,
  1524. with an additional \var{Access} list element, specifying whether the
  1525. property is read/write or not.
  1526. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1527. % End of file
  1528. \end{document}