The RTFCodeGenerator
Class Reference
Generator for RTF code fragments. More...
Declaration
Included Headers
Base class
class | OutputCodeIntf |
Base class for code generators. More... | |
Friends Index
class | RTFGenerator |
Public Constructors Index
RTFCodeGenerator (TextStream *t) | |
Public Member Functions Index
void | setTextStream (TextStream *t) |
OutputType | type () const override |
void | codify (const QCString &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 QCString &ref, const QCString &file, const QCString &anchor, const QCString &name, const QCString &tooltip) override |
void | writeTooltip (const QCString &, const DocLinkInfo &, const QCString &, const QCString &, const SourceLinkInfo &, const SourceLinkInfo &) override |
void | writeLineNumber (const QCString &, const QCString &, const QCString &, int l, bool) override |
void | startCodeLine (int) override |
void | endCodeLine () override |
void | startFontClass (const QCString &) override |
void | endFontClass () override |
void | writeCodeAnchor (const QCString &) override |
void | startCodeFragment (const QCString &style) override |
void | endCodeFragment (const QCString &) override |
void | startFold (int, const QCString &, const QCString &) override |
void | endFold () override |
Private Member Functions Index
void | setSourceFileName (const QCString &name) |
void | setIndentLevel (int level) |
QCString | rtf_Code_DepthStyle () |
Private Member Attributes Index
size_t | m_col = 0 |
TextStream * | m_t |
bool | m_doxyCodeLineOpen = false |
QCString | m_sourceFileName |
int | m_indentLevel = 0 |
bool | m_stripCodeComments = false |
bool | m_hide = false |
size_t | m_stripIndentAmount = 0 |
Description
Generator for RTF code fragments.
Definition at line 27 of file rtfgen.h.
Friends
RTFGenerator
|
Definition at line 63 of file rtfgen.h.
Reference RTFGenerator.
Referenced by RTFGenerator.
Public Constructors
RTFCodeGenerator()
|
Declaration at line 30 of file rtfgen.h, definition at line 114 of file rtfgen.cpp.
Reference m_t.
Public Member Functions
clone()
| inline virtual |
codify()
| virtual |
Declaration at line 34 of file rtfgen.h, definition at line 153 of file rtfgen.cpp.
References Config_getInt, QCString::data, QCString::isEmpty, m_col, m_hide, m_stripIndentAmount, m_t, updateColumnCount and writeUTF8Char.
Referenced by writeCodeLink.
endCodeFragment()
| virtual |
Declaration at line 58 of file rtfgen.h, definition at line 225 of file rtfgen.cpp.
References DBG_RTF, endCodeLine and m_t.
endCodeLine()
| virtual |
Declaration at line 53 of file rtfgen.h, definition at line 285 of file rtfgen.cpp.
References m_doxyCodeLineOpen, m_hide and m_t.
Referenced by endCodeFragment.
endFold()
| inline virtual |
endFontClass()
| virtual |
Declaration at line 55 of file rtfgen.h, definition at line 317 of file rtfgen.cpp.
endSpecialComment()
| virtual |
Declaration at line 37 of file rtfgen.h, definition at line 207 of file rtfgen.cpp.
Reference m_hide.
setStripIndentAmount()
| virtual |
Declaration at line 38 of file rtfgen.h, definition at line 212 of file rtfgen.cpp.
Reference m_stripIndentAmount.
setTextStream()
| inline |
Definition at line 31 of file rtfgen.h.
Reference m_t.
startCodeFragment()
| virtual |
Declaration at line 57 of file rtfgen.h, definition at line 217 of file rtfgen.cpp.
References DBG_RTF, m_t, rtf_Code_DepthStyle and rtf_Style_Reset.
startCodeLine()
| virtual |
Declaration at line 52 of file rtfgen.h, definition at line 278 of file rtfgen.cpp.
References m_col, m_doxyCodeLineOpen and m_hide.
startFold()
startFontClass()
| virtual |
Declaration at line 54 of file rtfgen.h, definition at line 292 of file rtfgen.cpp.
References m_hide, m_t and QCString::str.
startSpecialComment()
| virtual |
Declaration at line 36 of file rtfgen.h, definition at line 202 of file rtfgen.cpp.
References m_hide and m_stripCodeComments.
stripCodeComments()
| virtual |
Declaration at line 35 of file rtfgen.h, definition at line 197 of file rtfgen.cpp.
Reference m_stripCodeComments.
type()
| inline virtual |
Definition at line 33 of file rtfgen.h.
Reference RTF.
writeCodeAnchor()
| inline virtual |
Definition at line 56 of file rtfgen.h.
writeCodeLink()
| virtual |
Declaration at line 40 of file rtfgen.h, definition at line 118 of file rtfgen.cpp.
References codify, Config_getBool, QCString::isEmpty, QCString::length, m_col, m_hide, m_t, rtfFormatBmkStr and stripPath.
Referenced by writeLineNumber.
writeLineNumber()
| virtual |
Declaration at line 51 of file rtfgen.h, definition at line 234 of file rtfgen.cpp.
References Config_getBool, Default, QCString::isEmpty, m_col, m_doxyCodeLineOpen, m_hide, m_sourceFileName, m_t, QCString::prepend, rtfFormatBmkStr, QCString::sprintf, stripExtensionGeneral, stripPath and writeCodeLink.
writeTooltip()
| inline virtual |
Definition at line 44 of file rtfgen.h.
Private Member Functions
rtf_Code_DepthStyle()
|
Declaration at line 66 of file rtfgen.h, definition at line 323 of file rtfgen.cpp.
References m_indentLevel, makeIndexName, rtf_Style and QCString::str.
Referenced by startCodeFragment.
setIndentLevel()
| inline |
Definition at line 65 of file rtfgen.h.
Reference m_indentLevel.
setSourceFileName()
|
Declaration at line 64 of file rtfgen.h, definition at line 329 of file rtfgen.cpp.
Reference m_sourceFileName.
Private Member Attributes
m_col
|
Definition at line 67 of file rtfgen.h.
Referenced by codify, startCodeLine, writeCodeLink and writeLineNumber.
m_doxyCodeLineOpen
|
Definition at line 69 of file rtfgen.h.
Referenced by endCodeLine, startCodeLine and writeLineNumber.
m_hide
|
Definition at line 73 of file rtfgen.h.
Referenced by codify, endCodeLine, endFontClass, endSpecialComment, startCodeLine, startFontClass, startSpecialComment, writeCodeLink and writeLineNumber.
m_indentLevel
|
Definition at line 71 of file rtfgen.h.
Referenced by rtf_Code_DepthStyle and setIndentLevel.
m_sourceFileName
|
Definition at line 70 of file rtfgen.h.
Referenced by setSourceFileName and writeLineNumber.
m_stripCodeComments
|
Definition at line 72 of file rtfgen.h.
Referenced by startSpecialComment and stripCodeComments.
m_stripIndentAmount
|
Definition at line 74 of file rtfgen.h.
Referenced by codify and setStripIndentAmount.
m_t
|
Definition at line 68 of file rtfgen.h.
Referenced by codify, endCodeFragment, endCodeLine, endFontClass, RTFCodeGenerator, setTextStream, startCodeFragment, startFontClass, writeCodeLink and writeLineNumber.
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus by Doxygen 1.14.0.