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 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 |
Public Member Functions inherited from OutputCodeIntf | |
OutputCodeIntf ()=default | |
Private Member Functions | |
void | setSourceFileName (const QCString &name) |
void | setIndentLevel (int level) |
QCString | rtf_Code_DepthStyle () |
Private Attributes | |
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 |
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, QCString::data(), QCString::isEmpty(), 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(), and m_t.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 285 of file rtfgen.cpp.
References m_doxyCodeLineOpen, m_hide, and m_t.
Referenced by endCodeFragment().
|
inlineoverridevirtual |
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 317 of file rtfgen.cpp.
|
overridevirtual |
|
private |
Definition at line 323 of file rtfgen.cpp.
References m_indentLevel, makeIndexName(), rtf_Style, and QCString::str().
Referenced by startCodeFragment().
|
inlineprivate |
|
private |
Definition at line 329 of file rtfgen.cpp.
References m_sourceFileName.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 212 of file rtfgen.cpp.
References m_stripIndentAmount.
|
inline |
|
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 278 of file rtfgen.cpp.
References m_col, m_doxyCodeLineOpen, and m_hide.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 292 of file rtfgen.cpp.
References m_hide, m_t, and QCString::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, QCString::isEmpty(), QCString::length(), m_col, m_hide, m_t, rtfFormatBmkStr(), and stripPath().
Referenced by writeLineNumber().
|
overridevirtual |
Implements OutputCodeIntf.
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().
|
inlineoverridevirtual |
|
friend |
|
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(), 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().