My Project
|
Public Member Functions | |
DocbookCodeGenerator (FTextStream &t) | |
virtual | ~DocbookCodeGenerator () |
void | codify (const char *text) |
void | writeCodeLink (const char *ref, const char *file, const char *anchor, const char *name, const char *tooltip) |
void | writeTooltip (const char *, const DocLinkInfo &, const char *, const char *, const SourceLinkInfo &, const SourceLinkInfo &) |
void | startCodeLine (bool) |
void | endCodeLine () |
void | startFontClass (const char *colorClass) |
void | endFontClass () |
void | writeCodeAnchor (const char *) |
void | writeLineNumber (const char *extRef, const char *compId, const char *anchorId, int l) |
void | setCurrentDoc (Definition *, const char *, bool) |
void | addWord (const char *, bool) |
void | finish () |
Public Member Functions inherited from CodeOutputInterface | |
virtual | ~CodeOutputInterface () |
Private Attributes | |
FTextStream & | m_t |
QCString | m_refId |
QCString | m_external |
int | m_lineNumber |
int | m_col |
bool | m_insideCodeLine |
bool | m_insideSpecialHL |
Definition at line 178 of file docbookgen.cpp.
|
inline |
Definition at line 181 of file docbookgen.cpp.
|
inlinevirtual |
Definition at line 183 of file docbookgen.cpp.
|
inlinevirtual |
|
inlinevirtual |
Writes an code fragment to the output. This function should keep spaces visible, should break lines at a newline and should convert tabs to the right number of spaces.
Implements CodeOutputInterface.
Definition at line 185 of file docbookgen.cpp.
References Docbook_DB, m_col, m_t, and writeDocbookCodeString().
|
inlinevirtual |
Ends a line of code started with startCodeLine()
Implements CodeOutputInterface.
Definition at line 222 of file docbookgen.cpp.
References Docbook_DB, endl(), m_external, m_insideCodeLine, m_lineNumber, m_refId, and m_t.
Referenced by finish().
|
inlinevirtual |
Ends a block started with startFontClass()
Implements CodeOutputInterface.
Definition at line 237 of file docbookgen.cpp.
References Docbook_DB, m_insideSpecialHL, and m_t.
|
inline |
Definition at line 267 of file docbookgen.cpp.
References endCodeLine(), and m_insideCodeLine.
Referenced by writeDocbookCodeBlock().
|
inlinevirtual |
|
inlinevirtual |
Implements CodeOutputInterface.
Definition at line 204 of file docbookgen.cpp.
References Docbook_DB, m_col, m_insideCodeLine, m_lineNumber, m_refId, and m_t.
|
inlinevirtual |
Starts a block with a certain meaning. Used for syntax highlighting, which elements of the same type are rendered using the same 'font class'.
clsName | The category name. |
Implements CodeOutputInterface.
Definition at line 231 of file docbookgen.cpp.
References Docbook_DB, m_insideSpecialHL, and m_t.
|
inlinevirtual |
Write an anchor to a source listing.
name | The name of the anchor. |
Implements CodeOutputInterface.
Definition at line 243 of file docbookgen.cpp.
References Docbook_DB.
|
inlinevirtual |
Writes a link to an object in a code fragment.
ref | If this is non-zero, the object is to be found in an external documentation file. |
file | The file in which the object is located. |
anchor | The anchor uniquely identifying the object within the file. |
name | The text to display as a placeholder for the link. |
tooltip | The tooltip to display when the mouse is on the link. |
Implements CodeOutputInterface.
Definition at line 190 of file docbookgen.cpp.
References Docbook_DB, m_col, m_t, and writeDocbookLink().
|
inlinevirtual |
Writes the line number of a source listing
ref | External reference (when imported from a tag file) |
file | The file part of the URL pointing to the docs. |
anchor | The anchor part of the URL pointing to the docs. |
lineNumber | The line number to write |
Implements CodeOutputInterface.
Definition at line 247 of file docbookgen.cpp.
References Docbook_DB, m_external, m_lineNumber, and m_refId.
|
inlinevirtual |
Writes a tool tip definition
id | unique identifier for the tooltip |
docInfo | Info about the symbol's documentation. |
decl | full declaration of the symbol (for functions) |
desc | brief description for the symbol |
defInfo | Info about the symbol's definition in the source code |
declInfo | Info about the symbol's declaration in the source code |
Implements CodeOutputInterface.
Definition at line 198 of file docbookgen.cpp.
References Docbook_DB.
|
private |
Definition at line 277 of file docbookgen.cpp.
Referenced by codify(), startCodeLine(), and writeCodeLink().
|
private |
Definition at line 275 of file docbookgen.cpp.
Referenced by endCodeLine(), and writeLineNumber().
|
private |
Definition at line 278 of file docbookgen.cpp.
Referenced by endCodeLine(), finish(), and startCodeLine().
|
private |
Definition at line 279 of file docbookgen.cpp.
Referenced by endFontClass(), and startFontClass().
|
private |
Definition at line 276 of file docbookgen.cpp.
Referenced by endCodeLine(), startCodeLine(), and writeLineNumber().
|
private |
Definition at line 274 of file docbookgen.cpp.
Referenced by endCodeLine(), startCodeLine(), and writeLineNumber().
|
private |
Definition at line 273 of file docbookgen.cpp.
Referenced by codify(), endCodeLine(), endFontClass(), startCodeLine(), startFontClass(), and writeCodeLink().