Difference between revisions of "Documentation/DevGuide/AppendixB/Special Markups"
OOoWikiBot (talk | contribs) m (Robot: Changing Category:Appendix) |
OOoWikiBot (talk | contribs) m (Robot: Changing Category:Documentation/Developers Guide/Appendix) |
||
Line 85: | Line 85: | ||
{{PDL1}} | {{PDL1}} | ||
− | [[Category:Documentation/ | + | [[Category:Documentation/Developer's Guide/Appendix]] |
Revision as of 07:20, 5 June 2008
These markup tags are evaluated by the XSL processor that generates a layout version of the documentation, that is, into HTML or XHTML. These tags have to be well formed and in pairs with exactly the same upper and lowercase, as well.
To accentuate identifiers in the generated documentation and generate hyperlinks automatically when building the cross-reference table and checking consistency, all identifiers have to be marked up. Additionally, it is important for proofreading, because a single-word method name cannot be distinguished by a verb. Identifiers have to be excluded from re-editing by the proofreading editor.
The following markups are used:
<atom>
This markup is used for identifiers of atomar types, such as long, short, and string. If a sequence or array of the type is referred to, add the attribute dim with the number of bracket-pairs representing the number of dimensions.
Example:
<atom>long</atom>
For an example of sequences, see <type>.
<type>
This markup is used for identifiers of interfaces, services, typedefs, structs, exceptions, enums and constants-groups. If a sequence or array of the type is referred to, add the attribute dim with the number of bracket-pairs representing the number of dimensions.
Example:
<type scope="com::sun::star::uno">XInterface</type> <type dim="[][]">PropertyValue</type>
<member>
This markup substitutes the deprecated method, field and property markups, and is used for fields of structs and exceptions, properties in service specifications and methods of interfaces.
Example:
<member scope="com::sun::star::uno">XInterface::queryInterface()</member>
<const>
This markup is used for symbolic constant identifiers of constant groups and enums.
Example:
<const scope="...">ParagraphAdjust::LEFT</const>
<TRUE/>, <FALSE/>
These markups represent the atomic constant for the boolean values TRUE and FALSE.
Example:
@returns <TRUE/> if the number is valid, otherwise <FALSE/>.
<NULL/>
This markup represents the atomic constant for a NULL value.
<void/>
This markup represents the atomic type void. This is identical to <atom>void</atom>.
<code>
This markup is used for inline code.
Example:
Use <code>queryInterface( NULL )</code> for:
<listing> This markup is used for multiple line code examples. Example: @example StarBASIC <listing> aCmp = StarDesktop.loadComponentFromURL( ... ) if ( isnull(aCmp) ) .... endif </listing>
Content on this page is licensed under the Public Documentation License (PDL). |