|
Doxygen
|
Generator for RTF code fragments. More...
#include <src/rtfgen.h>
Public Member Functions | |
| RTFCodeGenerator (TextStream *t) | |
| void | setTextStream (TextStream *t) |
| OutputType | type () const override |
| void | codify (const DString &text) override |
| void | stripCodeComments (bool b) override |
| void | startSpecialComment () override |
| void | endSpecialComment () override |
| void | setStripIndentAmount (size_t amount) override |
| std::unique_ptr< OutputCodeIntf > | clone () 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 &, const DocLinkInfo &, const DString &, const DString &, const SourceLinkInfo &, const SourceLinkInfo &) override |
| void | writeLineNumber (const DString &, const DString &, const DString &, int l, bool) override |
| void | startCodeLine (int) override |
| void | endCodeLine () override |
| void | startFontClass (const DString &) override |
| void | endFontClass () override |
| void | writeCodeAnchor (const DString &) override |
| void | startCodeFragment (const DString &style) override |
| void | endCodeFragment (const DString &) override |
| void | startFold (int, const DString &, const DString &) override |
| void | endFold () override |
| Public Member Functions inherited from OutputCodeIntf | |
| OutputCodeIntf ()=default | |
Private Member Functions | |
| void | setSourceFileName (const DString &name) |
| void | setIndentLevel (int level) |
| DString | rtf_Code_DepthStyle () |
Private Attributes | |
| size_t | m_col = 0 |
| TextStream * | m_t |
| bool | m_doxyCodeLineOpen = false |
| DString | m_sourceFileName |
| int | m_indentLevel = 0 |
| bool | m_stripCodeComments = false |
| bool | m_hide = false |
| size_t | m_stripIndentAmount = 0 |
Friends | |
| class | RTFGenerator |
| RTFCodeGenerator::RTFCodeGenerator | ( | TextStream * | t | ) |
Definition at line 114 of file rtfgen.cpp.
References m_t.
|
inlineoverridevirtual |
Implements OutputCodeIntf.
Definition at line 39 of file rtfgen.h.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 153 of file rtfgen.cpp.
References Config_getInt, DString::data(), DString::empty(), m_col, m_hide, m_stripIndentAmount, m_t, updateColumnCount(), and writeUTF8Char().
Referenced by writeCodeLink().
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 225 of file rtfgen.cpp.
References DBG_RTF, endCodeLine(), m_hide, and m_t.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 288 of file rtfgen.cpp.
References m_doxyCodeLineOpen, m_hide, and m_t.
Referenced by endCodeFragment().
|
inlineoverridevirtual |
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 320 of file rtfgen.cpp.
|
overridevirtual |
|
private |
Definition at line 326 of file rtfgen.cpp.
References m_indentLevel, makeIndexName(), rtf_Style, and DString::str().
Referenced by startCodeFragment().
|
inlineprivate |
Definition at line 65 of file rtfgen.h.
References m_indentLevel.
Referenced by RTFGenerator::decIndentLevel(), and RTFGenerator::incIndentLevel().
|
private |
Definition at line 332 of file rtfgen.cpp.
References m_sourceFileName.
Referenced by RTFGenerator, and RTFGenerator::setSourceFileName().
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 212 of file rtfgen.cpp.
References m_stripIndentAmount.
|
inline |
Definition at line 31 of file rtfgen.h.
References m_t.
Referenced by RTFGenerator::operator=(), and RTFGenerator::RTFGenerator().
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 217 of file rtfgen.cpp.
References DBG_RTF, m_t, rtf_Code_DepthStyle(), and rtf_Style_Reset.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 281 of file rtfgen.cpp.
References m_col, m_doxyCodeLineOpen, and m_hide.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 295 of file rtfgen.cpp.
References m_hide, m_t, and DString::str().
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 202 of file rtfgen.cpp.
References m_hide, and m_stripCodeComments.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 197 of file rtfgen.cpp.
References m_stripCodeComments.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 118 of file rtfgen.cpp.
References codify(), Config_getBool, DString::empty(), DString::length(), m_col, m_hide, m_t, rtfFormatBmkStr(), and stripPath().
Referenced by writeLineNumber().
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 237 of file rtfgen.cpp.
References Config_getBool, Default, DString::DString(), DString::empty(), m_col, m_doxyCodeLineOpen, m_hide, m_sourceFileName, m_t, DString::prepend(), rtfFormatBmkStr(), DString::sprintf(), stripExtensionGeneral(), stripPath(), and writeCodeLink().
|
inlineoverridevirtual |
|
friend |
Definition at line 63 of file rtfgen.h.
References RTFGenerator, and setSourceFileName().
Referenced by RTFGenerator.
|
private |
Definition at line 67 of file rtfgen.h.
Referenced by codify(), startCodeLine(), writeCodeLink(), and writeLineNumber().
|
private |
Definition at line 69 of file rtfgen.h.
Referenced by endCodeLine(), startCodeLine(), and writeLineNumber().
|
private |
Definition at line 73 of file rtfgen.h.
Referenced by codify(), endCodeFragment(), endCodeLine(), endFontClass(), endSpecialComment(), startCodeLine(), startFontClass(), startSpecialComment(), writeCodeLink(), and writeLineNumber().
|
private |
Definition at line 71 of file rtfgen.h.
Referenced by rtf_Code_DepthStyle(), and setIndentLevel().
|
private |
Definition at line 70 of file rtfgen.h.
Referenced by setSourceFileName(), and writeLineNumber().
|
private |
Definition at line 72 of file rtfgen.h.
Referenced by startSpecialComment(), and stripCodeComments().
|
private |
Definition at line 74 of file rtfgen.h.
Referenced by codify(), and setStripIndentAmount().
|
private |
Definition at line 68 of file rtfgen.h.
Referenced by codify(), endCodeFragment(), endCodeLine(), endFontClass(), RTFCodeGenerator(), setTextStream(), startCodeFragment(), startFontClass(), writeCodeLink(), and writeLineNumber().