Doxygen
|
#include <htmlgen.h>
Public 成员函数 | |
HtmlCodeGenerator (TextStream &t, const QCString &relPath) | |
HtmlCodeGenerator (TextStream &t) | |
int | id () const |
Identifier for the output file 更多... | |
void | setId (int id) |
void | setRelativePath (const QCString &path) |
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 | writeTooltip (const QCString &id, const DocLinkInfo &docInfo, const QCString &decl, const QCString &desc, const SourceLinkInfo &defInfo, const SourceLinkInfo &declInfo) |
void | writeLineNumber (const QCString &, const QCString &, const QCString &, int, bool) |
void | startCodeLine (bool) |
void | endCodeLine () |
void | startFontClass (const QCString &s) |
void | endFontClass () |
void | writeCodeAnchor (const QCString &anchor) |
void | setCurrentDoc (const Definition *, const QCString &, bool) |
void | addWord (const QCString &, bool) |
void | startCodeFragment (const QCString &style) |
void | endCodeFragment (const QCString &) |
Public 成员函数 继承自 CodeOutputInterface | |
virtual | ~CodeOutputInterface () |
CodeOutputInterface () | |
CodeOutputInterface (const CodeOutputInterface &)=delete | |
CodeOutputInterface & | operator= (const CodeOutputInterface &)=delete |
Private 成员函数 | |
void | _writeCodeLink (const QCString &className, const QCString &ref, const QCString &file, const QCString &anchor, const QCString &name, const QCString &tooltip) |
void | docify (const QCString &str) |
Private 属性 | |
TextStream & | m_t |
int | m_col = 0 |
QCString | m_relPath |
bool | m_lineOpen = false |
int | m_id = 0 |
HtmlCodeGenerator::HtmlCodeGenerator | ( | TextStream & | t, |
const QCString & | relPath | ||
) |
在文件 htmlgen.cpp 第 577 行定义.
HtmlCodeGenerator::HtmlCodeGenerator | ( | TextStream & | t | ) |
在文件 htmlgen.cpp 第 573 行定义.
|
private |
在文件 htmlgen.cpp 第 742 行定义.
引用了 addHtmlExtensionIfMissing(), convertToHtml(), docify(), externalLinkTarget(), externalRef(), QCString::isEmpty(), QCString::length(), m_col, m_relPath, m_t , 以及 TRUE.
被这些函数引用 writeCodeLink() , 以及 writeLineNumber().
|
inlinevirtual |
|
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.
在文件 htmlgen.cpp 第 587 行定义.
引用了 Config_getInt, QCString::data(), hex, QCString::isEmpty(), QCString::left(), m_col, m_t, Doxygen::spaces , 以及 writeUTF8Char().
被这些函数引用 HtmlGenerator::codify() , 以及 writeLineNumber().
|
private |
在文件 htmlgen.cpp 第 651 行定义.
引用了 QCString::data(), hex, QCString::isEmpty(), reg::isspace() , 以及 m_t.
被这些函数引用 _writeCodeLink() , 以及 writeTooltip().
|
virtual |
Ends a block of code
实现了 CodeOutputInterface.
在文件 htmlgen.cpp 第 894 行定义.
引用了 endCodeLine() , 以及 m_t.
被这些函数引用 HtmlGenerator::endCodeFragment().
|
virtual |
Ends a line of code started with startCodeLine()
实现了 CodeOutputInterface.
在文件 htmlgen.cpp 第 860 行定义.
引用了 FALSE, m_col, m_lineOpen , 以及 m_t.
被这些函数引用 endCodeFragment() , 以及 HtmlGenerator::endCodeLine().
|
virtual |
Ends a block started with startFontClass()
实现了 CodeOutputInterface.
在文件 htmlgen.cpp 第 879 行定义.
引用了 m_t.
被这些函数引用 HtmlGenerator::endFontClass().
|
inlinevirtual |
|
inlinevirtual |
|
inline |
void HtmlCodeGenerator::setRelativePath | ( | const QCString & | path | ) |
|
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.
在文件 htmlgen.cpp 第 889 行定义.
引用了 m_t.
被这些函数引用 HtmlGenerator::startCodeFragment().
|
virtual |
实现了 CodeOutputInterface.
在文件 htmlgen.cpp 第 850 行定义.
引用了 m_col, m_lineOpen, m_t , 以及 TRUE.
被这些函数引用 HtmlGenerator::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.
在文件 htmlgen.cpp 第 874 行定义.
引用了 m_t.
被这些函数引用 HtmlGenerator::startFontClass().
|
virtual |
Write an anchor to a source listing.
name | The name of the anchor. |
实现了 CodeOutputInterface.
在文件 htmlgen.cpp 第 884 行定义.
引用了 m_t.
被这些函数引用 HtmlGenerator::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.
在文件 htmlgen.cpp 第 727 行定义.
引用了 _writeCodeLink() , 以及 codeSymbolType2Str().
被这些函数引用 HtmlGenerator::writeCodeLink().
|
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.
在文件 htmlgen.cpp 第 698 行定义.
引用了 _writeCodeLink(), codify(), QCString::isEmpty(), m_col, m_lineOpen, m_t, qsnprintf , 以及 TRUE.
被这些函数引用 HtmlGenerator::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.
在文件 htmlgen.cpp 第 768 行定义.
引用了 addHtmlExtensionIfMissing(), DocLinkInfo::anchor, SourceLinkInfo::anchor, docify(), externalRef(), SourceLinkInfo::file, QCString::isEmpty(), SourceLinkInfo::line, m_relPath, m_t, DocLinkInfo::name, DocLinkInfo::ref, SourceLinkInfo::ref, TRUE, DocLinkInfo::url , 以及 SourceLinkInfo::url.
被这些函数引用 HtmlGenerator::writeTooltip().
|
private |
被这些函数引用 _writeCodeLink(), codify(), endCodeLine(), startCodeLine() , 以及 writeLineNumber().
|
private |
被这些函数引用 endCodeLine(), startCodeLine() , 以及 writeLineNumber().
|
private |
被这些函数引用 _writeCodeLink(), setRelativePath() , 以及 writeTooltip().
|
private |