Doxygen
|
#include <docbookgen.h>
Public 成员函数 | |
DocbookCodeGenerator (TextStream &t) | |
virtual | ~DocbookCodeGenerator () |
void | setRelativePath (const QCString &path) |
void | setSourceFileName (const QCString &sourceFileName) |
QCString | sourceFileName () |
void | codify (const QCString &text) |
void | writeCodeLink (CodeSymbolType type, const QCString &ref, const QCString &file, const QCString &anchor, const QCString &name, const QCString &tooltip) |
void | writeCodeLinkLine (CodeSymbolType type, const QCString &ref, const QCString &file, const QCString &anchor, const QCString &name, const QCString &tooltip, bool) |
void | writeTooltip (const QCString &, const DocLinkInfo &, const QCString &, const QCString &, const SourceLinkInfo &, const SourceLinkInfo &) |
void | startCodeLine (bool) |
void | endCodeLine () |
void | startFontClass (const QCString &colorClass) |
void | endFontClass () |
void | writeCodeAnchor (const QCString &) |
void | writeLineNumber (const QCString &extRef, const QCString &compId, const QCString &anchorId, int l, bool writeLineAnchor) |
void | setCurrentDoc (const Definition *, const QCString &, bool) |
void | addWord (const QCString &, bool) |
void | finish () |
void | startCodeFragment (const QCString &style) |
void | endCodeFragment (const QCString &style) |
Public 成员函数 继承自 CodeOutputInterface | |
virtual | ~CodeOutputInterface () |
CodeOutputInterface () | |
CodeOutputInterface (const CodeOutputInterface &)=delete | |
CodeOutputInterface & | operator= (const CodeOutputInterface &)=delete |
virtual int | id () const |
Identifier for the output file 更多... | |
Private 属性 | |
TextStream & | m_t |
QCString | m_refId |
QCString | m_external |
int | m_lineNumber = -1 |
int | m_col = 0 |
bool | m_insideCodeLine = false |
bool | m_insideSpecialHL = false |
QCString | m_relPath |
QCString | m_sourceFileName |
在文件 docbookgen.h 第 23 行定义.
DocbookCodeGenerator::DocbookCodeGenerator | ( | TextStream & | t | ) |
在文件 docbookgen.cpp 第 146 行定义.
|
virtual |
在文件 docbookgen.cpp 第 150 行定义.
|
virtual |
|
virtual |
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.
实现了 CodeOutputInterface.
在文件 docbookgen.cpp 第 152 行定义.
引用了 Docbook_DB, m_col, m_t , 以及 writeDocbookCodeString().
被这些函数引用 DocbookGenerator::codify() , 以及 writeLineNumber().
|
virtual |
Ends a block of code
实现了 CodeOutputInterface.
在文件 docbookgen.cpp 第 275 行定义.
引用了 DB_GEN_C1, endCodeLine() , 以及 m_t.
被这些函数引用 DocbookGenerator::endCodeFragment().
|
virtual |
Ends a line of code started with startCodeLine()
实现了 CodeOutputInterface.
在文件 docbookgen.cpp 第 196 行定义.
引用了 Docbook_DB, FALSE, m_external, m_insideCodeLine, m_lineNumber, m_refId, m_t , 以及 QCString::resize().
被这些函数引用 endCodeFragment(), DocbookGenerator::endCodeLine() , 以及 finish().
|
virtual |
Ends a block started with startFontClass()
实现了 CodeOutputInterface.
在文件 docbookgen.cpp 第 213 行定义.
引用了 Docbook_DB, FALSE, m_insideSpecialHL , 以及 m_t.
被这些函数引用 DocbookGenerator::endFontClass().
void DocbookCodeGenerator::finish | ( | ) |
|
virtual |
|
inline |
|
inline |
|
inline |
|
virtual |
Starts a source code fragment. The fragment will be fed to the code parser (see code.h) for syntax highlighting and cross-referencing. The fragment ends by a call to endCodeFragment()
style | The kind of code fragment. |
实现了 CodeOutputInterface.
在文件 docbookgen.cpp 第 269 行定义.
|
virtual |
实现了 CodeOutputInterface.
在文件 docbookgen.cpp 第 189 行定义.
引用了 Docbook_DB, m_col, m_insideCodeLine , 以及 TRUE.
被这些函数引用 DocbookGenerator::startCodeLine().
|
virtual |
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. |
实现了 CodeOutputInterface.
在文件 docbookgen.cpp 第 206 行定义.
引用了 Docbook_DB, m_insideSpecialHL, m_t , 以及 TRUE.
被这些函数引用 DocbookGenerator::startFontClass().
|
virtual |
Write an anchor to a source listing.
name | The name of the anchor. |
实现了 CodeOutputInterface.
在文件 docbookgen.cpp 第 220 行定义.
引用了 Docbook_DB.
被这些函数引用 DocbookGenerator::writeCodeAnchor().
|
virtual |
Writes a link to an object in a code fragment.
type | The type of symbol, used for semantic syntax highlighting, may be Default is no info is available. |
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. |
实现了 CodeOutputInterface.
在文件 docbookgen.cpp 第 158 行定义.
引用了 Docbook_DB, QCString::length(), m_col, m_t , 以及 writeDocbookLink().
被这些函数引用 DocbookGenerator::writeCodeLink() , 以及 writeLineNumber().
void DocbookCodeGenerator::writeCodeLinkLine | ( | CodeSymbolType | type, |
const QCString & | ref, | ||
const QCString & | file, | ||
const QCString & | anchor, | ||
const QCString & | name, | ||
const QCString & | tooltip, | ||
bool | writeLineAnchor | ||
) |
在文件 docbookgen.cpp 第 168 行定义.
引用了 Docbook_DB, QCString::length(), m_col, m_t, stripExtensionGeneral(), stripPath() , 以及 writeDocbookString().
被这些函数引用 writeLineNumber().
|
virtual |
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 |
writeLineAnchor | Indicates if an anchor for the line number needs to be written |
实现了 CodeOutputInterface.
在文件 docbookgen.cpp 第 225 行定义.
引用了 codify(), Config_getBool, Default, Docbook_DB, QCString::isEmpty(), m_col, m_insideCodeLine, m_sourceFileName, m_t, QCString::sprintf(), TRUE, writeCodeLink() , 以及 writeCodeLinkLine().
被这些函数引用 DocbookGenerator::writeLineNumber().
|
virtual |
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 |
实现了 CodeOutputInterface.
在文件 docbookgen.cpp 第 182 行定义.
引用了 Docbook_DB.
被这些函数引用 DocbookGenerator::writeTooltip().
|
private |
在文件 docbookgen.h 第 74 行定义.
被这些函数引用 codify(), startCodeLine(), writeCodeLink(), writeCodeLinkLine() , 以及 writeLineNumber().
|
private |
在文件 docbookgen.h 第 72 行定义.
被这些函数引用 endCodeLine().
|
private |
在文件 docbookgen.h 第 75 行定义.
被这些函数引用 endCodeLine(), startCodeLine() , 以及 writeLineNumber().
|
private |
在文件 docbookgen.h 第 76 行定义.
被这些函数引用 endFontClass() , 以及 startFontClass().
|
private |
在文件 docbookgen.h 第 73 行定义.
被这些函数引用 endCodeLine().
|
private |
在文件 docbookgen.h 第 71 行定义.
被这些函数引用 endCodeLine().
|
private |
在文件 docbookgen.h 第 77 行定义.
|
private |
在文件 docbookgen.h 第 78 行定义.
被这些函数引用 writeLineNumber().
|
private |
在文件 docbookgen.h 第 70 行定义.
被这些函数引用 codify(), endCodeFragment(), endCodeLine(), endFontClass(), startCodeFragment(), startFontClass(), writeCodeLink(), writeCodeLinkLine() , 以及 writeLineNumber().