File 'lib/genericFormatter.cls' (part of 'AutoDOC')
Home | Packages | Files | Procedures | Classes | Namespaces | Keywords | External packages
Class 'genericFormatter'
- -css
- Boolean option to control support for cascading style sheets (CSS). Support is enabled by default.
default value: 1
- -outputdir
- Path to the directory to store the generated files into.
- -replyaddr
- Address of person to reply to in case of problems with the documented distribution.
- -adlocation
- Location of the Autodoc documentation. Required for generation of backreferences for any generated page.
- -ip
- Requests the formatter to use the specified interpreter for script evaluation instead of uplevel. Only if not empty.
MakeError (category output error)
|
|
Argument: category
|
Category of the problem, either desc or crossref
|
Argument: output
|
The text to print at the place of the problem.
|
Argument: error
|
The text to use in the problem report to describe it.
|
Returns: a string containing the output formatted as problem and having an anchor the report can link to.
|
blockClass (script)
|
|
Argument: script
|
Script to execute to create the output to enclose in the markers.
|
caption (args)
|
|
Argument: args
|
A list of 'name=value' parameters and a script to evaluate in the calling context (last element).
|
chapter (title)
|
|
Argument: title
|
The text of the title.
|
commaList (textList)
|
|
Argument: textList
|
List of strings.
|
Returns: a string separating the incoming texts by commas.
|
crError (outputText errorText)
|
|
Argument: outputText
|
The text to print at the place of the problem.
|
Argument: errorText
|
The text to use in the problem report to describe it.
|
definitionList (script)
|
|
Argument: script
|
The tcl code to execute in the calling context.
|
defterm (term text)
|
|
Argument: term
|
The name of the thing to explain.
|
Argument: text
|
The text explaining the term.
|
defterm2 (term)
|
|
Argument: term
|
The name of the thing to explain. But without explanation.
|
emph (text)
|
|
Argument: text
|
The string to mark as sample.
|
Returns: The emphasized text.
|
enumerate (script)
|
|
Argument: script
|
The tcl code to execute in the calling context.
|
example (term text)
|
|
Argument: term
|
The name of the thing to explain.
|
Argument: text
|
The text used to explain the term.
|
exampleRow (term text)
|
|
Argument: term
|
The name of the thing to explain.
|
Argument: text
|
The text used to explain the term.
|
formattedRow (term text)
|
|
Argument: term
|
The name of the thing to explain.
|
Argument: text
|
The text explaining the term.
|
formattedRowVar (term var)
|
|
Argument: term
|
The name of the thing to explain.
|
Argument: var
|
The name of the variable containing the epxlanatory text.
|
formattedTerm (term text)
|
|
Argument: term
|
The name of the thing to explain.
|
Argument: text
|
The text explaining the term.
|
formattedTermVar (term var)
|
|
Argument: term
|
The name of the thing to explain.
|
Argument: var
|
The name of the variable containing the epxlanatory text.
|
getAnchor (name)
|
|
Argument: name
|
The name of the generated anchor.
|
Returns: the HTML string defining the named anchor.
|
getClass ()
|
Returns: Returns the currently active output class.
|
getString (script)
|
|
Argument: script
|
The tcl code to execute in the calling context.
|
Returns: a string containing all output produced by the script
|
imgDef (code text geometry imgfile)
|
|
Argument: code
|
The identifier for storage and retrieval of the image link.
|
Argument: text
|
Alternative text describing the contents of the picture.
|
Argument: geometry
|
A list containing the width and height of the image, in this order. Can be empty. Used to insert geometry information into the link, for better display even if the image is not loaded.
|
Argument: imgfile
|
The location to point at, i.e. the image file.
|
imgRef (code)
|
Argument: code
|
The identifier for storage and retrieval of the image link.
|
Returns: the image link generated by imgDef and then stored under code.
|
item (text)
|
|
Argument: text
|
The paragraph to format as item in the list.
|
itemize (script)
|
|
Argument: script
|
The tcl code to execute in the calling context.
|
link (text url)
|
|
Argument: text
|
The string to use as textual part of the hyperlink.
|
Argument: url
|
The location to point at.
|
Returns: the formatted hyperlink.
|
linkCommaList (objList)
|
|
Argument: objList
|
List of object handles. The objects in it have to understand the link method.
|
Returns: a string containing several hyperlinks.
|
linkDef (code text url)
|
|
Argument: code
|
The identifier for storage and retrieval of the hyperlink.
|
Argument: text
|
The string to use as textual part of the hyperlink.
|
Argument: url
|
The location to point at.
|
linkList (objList)
|
|
Argument: objList
|
List of object handles. The objects in it have to understand the link method.
|
Returns: a string containing several hyperlinks.
|
linkMail (prefix nameVar addrVar)
|
|
Argument: prefix
|
String to write before the actual hyperlink
|
Argument: nameVar
|
Name of the variable containing the name to write.
|
Argument: addrVar
|
Name of the variable containing the address.
|
Returns: A string containing a hyperlink to the given mail address.
|
linkRef (code)
|
Argument: code
|
The identifier for storage and retrieval of the hyperlink.
|
Returns: the hyperlink generated by linkDef and then stored under code.
|
mailToDefterm (prefix nameVar addrVar)
|
|
Argument: prefix
|
String to write before the actual hyperlink
|
Argument: nameVar
|
Name of the variable containing the name to write.
|
Argument: addrVar
|
Name of the variable containing the address.
|
markAppendClass (class text)
|
|
Argument: class
|
The refinement to add to the current class to get the marker.
|
Argument: text
|
The text to mark with an output class.
|
Returns: the marked text.
|
markError (text)
|
|
Argument: text
|
The text to reformat.
|
Returns: a string containing the given text formatted as error.
|
markVisibility (text)
|
|
Argument: text
|
The text to reformat.
|
Returns: a string containing the reformatted text.
|
markWithClass (class text)
|
|
Argument: class
|
The class to use as marker.
|
Argument: text
|
The text to mark with an output class.
|
Returns: Default implementation, returns the text unchanged.
|
missingDescError (errorText)
|
|
Argument: errorText
|
The text to use in the problem report to describe it.
|
newPage (file title firstheading)
|
|
Argument: file
|
name of file to contain the generated page
|
Argument: title
|
string to be used as title of the page
|
Argument: firstheading (= {})
|
string to use in toplevel heading. Defaults to title. Required to allow hyperlinks in toplevel headings without violating HTML syntax in the title.
|
pageFile (pageName)
|
|
Argument: pageName
|
Guess what :-)
|
Returns: the name of the file containing the specified page.
|
par (args)
|
|
Argument: args
|
The text to format and write as paragraph. Actually a list of arguments put together into one string
|
preformatted (text)
|
|
Argument: text
|
The string to mark as preformatted text.
|
Returns: The emphasized text.
|
pushAppendClass (name)
|
|
Argument: name
|
The name of the specialization to activate.
|
pushClass (name)
|
|
Argument: name
|
The name of the output class to activate.
|
quote (string)
|
|
Argument: string
|
The string to protect against interpretation by the formatter.
|
Returns: a string containing no unprotected special character (sequences).
|
sample (text)
|
|
Argument: text
|
The string to mark as sample.
|
Returns: The emphasized text.
|
section (title)
|
|
Argument: title
|
The text of the title.
|
setAnchor (name)
|
|
Argument: name
|
The name of the generated anchor.
|
sortByName (objList)
|
|
Argument: objList
|
List of object handles. The objects in it have to understand the name method.
|
Returns: the sorted list.
|
sortedObjectList (objlist)
|
|
Argument: objlist
|
List of object handles. The objects in it have to understand the methods link and short.
|
strong (text)
|
|
Argument: text
|
The string to mark as strong.
|
Returns: The emphasized text.
|
table (args)
|
|
Argument: args
|
A list of 'name=value' parameters and a script to evaluate in the calling context (last element).
|
table_data (args)
|
|
Argument: args
|
A list of 'name=value' parameters and a script to evaluate in the calling context (last element).
|
table_head (args)
|
|
Argument: args
|
A list of 'name=value' parameters and a script to evaluate in the calling context (last element).
|
table_row (args)
|
|
Argument: args
|
A list of 'name=value' parameters and a script to evaluate in the calling context (last element).
|
termVar (term var)
|
|
Argument: term
|
The name of the thing to explain.
|
Argument: var
|
The name of the variable containing the epxlanatory text.
|
termclasses (tc dc)
|
|
Argument: tc
|
Value for termclass.
|
Argument: dc
|
Value for defclass.
|
write (text)
|
|
Argument: text
|
The string to place into the current page.
|
- extension
- The extension to add to a page name to convert it into the name of the associated file (if there is any). Has to contain the separating dot or whatever is used on the particular platform to separate file names adn their extensions.
initial value: .
- currentPage
- A token allowing the high level formatting routines to use the current page as target of hyperlinks.
- termclass
- Output class to use for a term.
- defclass
- Output class to use for a term definition
- cstack
- Stack of currently active output classes. Only the top of the stack is used in the current output. The TOS is at the first position of the list.
Home | Packages | Files | Procedures | Classes | Namespaces | Keywords | External packages
Generated by AutoDoc 2.4 at 09/28/2001, invoked by Andreas Kupries,,,