|
Doxygen
|
Generator for HTML code fragments. More...
#include <src/htmlgen.h>
Classes | |
| struct | LineInfo |
Public Member Functions | |
| HtmlCodeGenerator (TextStream *t, const DString &relPath) | |
| HtmlCodeGenerator (TextStream *t) | |
| void | setTextStream (TextStream *t) |
| void | setFileName (const DString fileName) |
| DString | fileName () |
| OutputType | type () const override |
| std::unique_ptr< OutputCodeIntf > | clone () override |
| void | codify (const DString &text) override |
| void | stripCodeComments (bool b) override |
| void | startSpecialComment () override |
| void | endSpecialComment () override |
| void | setStripIndentAmount (size_t amount) override |
| void | writeCodeLink (CodeSymbolType type, const DString &ref, const DString &file, const DString &anchor, const DString &name, const DString &tooltip) override |
| void | writeTooltip (const DString &id, const DocLinkInfo &docInfo, const DString &decl, const DString &desc, const SourceLinkInfo &defInfo, const SourceLinkInfo &declInfo) override |
| void | writeLineNumber (const DString &, const DString &, const DString &, int, bool) override |
| void | startCodeLine (int) override |
| void | endCodeLine () override |
| void | startFontClass (const DString &s) override |
| void | endFontClass () override |
| void | writeCodeAnchor (const DString &anchor) override |
| void | startCodeFragment (const DString &style) override |
| void | endCodeFragment (const DString &) override |
| void | startFold (int, const DString &, const DString &) override |
| void | endFold () override |
| void | setRelativePath (const DString &path) |
| Public Member Functions inherited from OutputCodeIntf | |
| OutputCodeIntf ()=default | |
Private Member Functions | |
| void | _writeCodeLink (const DString &className, const DString &ref, const DString &file, const DString &anchor, const DString &name, const DString &tooltip) |
| void | _startOpenLine () |
Private Attributes | |
| TextStream * | m_t |
| size_t | m_col = 0 |
| DString | m_relPath |
| DString | m_fileName |
| bool | m_lineOpen = false |
| bool | m_stripCodeComments = false |
| bool | m_hide = false |
| LineInfo | m_lastLineInfo |
| size_t | m_stripIndentAmount = 0 |
| HtmlCodeGenerator::HtmlCodeGenerator | ( | TextStream * | t, |
| const DString & | relPath ) |
Definition at line 838 of file htmlgen.cpp.
| HtmlCodeGenerator::HtmlCodeGenerator | ( | TextStream * | t | ) |
Definition at line 833 of file htmlgen.cpp.
References m_t.
|
private |
Definition at line 1196 of file htmlgen.cpp.
References HtmlCodeGenerator::LineInfo::anchor, HtmlCodeGenerator::LineInfo::fileName, HtmlCodeGenerator::LineInfo::line, m_hide, m_lastLineInfo, m_lineOpen, m_t, HtmlCodeGenerator::LineInfo::ref, HtmlCodeGenerator::LineInfo::writeAnchor, and writeLineNumber().
Referenced by endFold().
|
private |
Definition at line 1004 of file htmlgen.cpp.
References addHtmlExtensionIfMissing(), codify(), convertToHtml(), createHtmlUrl(), DString::empty(), externalLinkTarget(), fileName(), DString::length(), m_col, m_hide, m_relPath, and m_t.
Referenced by writeCodeLink(), and writeLineNumber().
|
inlineoverridevirtual |
Implements OutputCodeIntf.
Definition at line 33 of file htmlgen.h.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 849 of file htmlgen.cpp.
References Config_getInt, DString::data(), DString::empty(), hex, m_col, m_hide, m_stripIndentAmount, m_t, updateColumnCount(), and writeUTF8Char().
Referenced by _writeCodeLink(), writeLineNumber(), and writeTooltip().
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 1163 of file htmlgen.cpp.
References endCodeLine(), m_hide, and m_t.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 1124 of file htmlgen.cpp.
References m_col, m_hide, m_lineOpen, and m_t.
Referenced by endCodeFragment().
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 1211 of file htmlgen.cpp.
References _startOpenLine(), m_lineOpen, and m_t.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 1146 of file htmlgen.cpp.
|
overridevirtual |
|
inline |
Definition at line 30 of file htmlgen.h.
References m_fileName.
Referenced by _writeCodeLink(), setFileName(), and writeTooltip().
|
inline |
Definition at line 29 of file htmlgen.h.
References fileName(), and m_fileName.
Referenced by HtmlGenerator::startFile().
| void HtmlCodeGenerator::setRelativePath | ( | const DString & | path | ) |
Definition at line 844 of file htmlgen.cpp.
References m_relPath.
Referenced by HtmlGenerator::startFile().
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 951 of file htmlgen.cpp.
References m_stripIndentAmount.
|
inline |
Definition at line 28 of file htmlgen.h.
References m_t.
Referenced by HtmlGenerator::HtmlGenerator(), and HtmlGenerator::operator=().
|
overridevirtual |
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 1112 of file htmlgen.cpp.
References m_col, m_hide, m_lineOpen, and m_t.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 1175 of file htmlgen.cpp.
References m_hide, m_lineOpen, and m_t.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 1140 of file htmlgen.cpp.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 939 of file htmlgen.cpp.
References m_hide, and m_stripCodeComments.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 934 of file htmlgen.cpp.
References m_stripCodeComments.
|
inlineoverridevirtual |
Implements OutputCodeIntf.
Definition at line 32 of file htmlgen.h.
References Html.
Referenced by writeCodeLink().
|
overridevirtual |
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 988 of file htmlgen.cpp.
References _writeCodeLink(), codeSymbolType2Str(), m_hide, and type().
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 956 of file htmlgen.cpp.
References _writeCodeLink(), codify(), DString::empty(), m_col, m_hide, m_lastLineInfo, m_lineOpen, and m_t.
Referenced by _startOpenLine().
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 1032 of file htmlgen.cpp.
References addHtmlExtensionIfMissing(), DocLinkInfo::anchor, SourceLinkInfo::anchor, codify(), createHtmlUrl(), DString::empty(), SourceLinkInfo::file, fileName(), SourceLinkInfo::line, m_hide, m_relPath, m_t, DocLinkInfo::name, DocLinkInfo::ref, SourceLinkInfo::ref, theTranslator, Translator::trDeclaration(), Translator::trDefinition(), DocLinkInfo::url, and SourceLinkInfo::url.
|
private |
Definition at line 70 of file htmlgen.h.
Referenced by _writeCodeLink(), codify(), endCodeLine(), startCodeLine(), and writeLineNumber().
|
private |
Definition at line 72 of file htmlgen.h.
Referenced by fileName(), and setFileName().
|
private |
Definition at line 75 of file htmlgen.h.
Referenced by _startOpenLine(), _writeCodeLink(), codify(), endCodeFragment(), endCodeLine(), endFontClass(), endSpecialComment(), startCodeLine(), startFold(), startFontClass(), startSpecialComment(), writeCodeAnchor(), writeCodeLink(), writeLineNumber(), and writeTooltip().
|
private |
Definition at line 87 of file htmlgen.h.
Referenced by _startOpenLine(), and writeLineNumber().
|
private |
Definition at line 73 of file htmlgen.h.
Referenced by _startOpenLine(), endCodeLine(), endFold(), startCodeLine(), startFold(), and writeLineNumber().
|
private |
Definition at line 71 of file htmlgen.h.
Referenced by _writeCodeLink(), HtmlCodeGenerator(), setRelativePath(), and writeTooltip().
|
private |
Definition at line 74 of file htmlgen.h.
Referenced by startSpecialComment(), and stripCodeComments().
|
private |
Definition at line 88 of file htmlgen.h.
Referenced by codify(), and setStripIndentAmount().
|
private |
Definition at line 69 of file htmlgen.h.
Referenced by _startOpenLine(), _writeCodeLink(), codify(), endCodeFragment(), endCodeLine(), endFold(), endFontClass(), HtmlCodeGenerator(), HtmlCodeGenerator(), setTextStream(), startCodeFragment(), startCodeLine(), startFold(), startFontClass(), writeCodeAnchor(), writeLineNumber(), and writeTooltip().