Doxygen
|
Generator for LaTeX code fragments. More...
#include <src/latexgen.h>
Public Member Functions | |
LatexCodeGenerator (TextStream *t, const QCString &relPath, const QCString &sourceFile) | |
LatexCodeGenerator (TextStream *t) | |
void | setTextStream (TextStream *t) |
OutputType | type () const override |
std::unique_ptr< OutputCodeIntf > | clone () override |
void | codify (const QCString &text) override |
void | stripCodeComments (bool b) override |
void | startSpecialComment () override |
void | endSpecialComment () override |
void | setStripIndentAmount (size_t amount) 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, 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 &style) override |
void | startFold (int, const QCString &, const QCString &) override |
void | endFold () override |
void | incUsedTableLevel () |
void | decUsedTableLevel () |
int | usedTableLevel () const |
void | setRelativePath (const QCString &path) |
void | setSourceFileName (const QCString &sourceFileName) |
void | setInsideTabbing (bool b) |
bool | insideTabbing () const |
Public Member Functions inherited from OutputCodeIntf | |
OutputCodeIntf ()=default | |
Private Member Functions | |
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 Attributes | |
bool | m_streamSet = false |
TextStream * | m_t |
QCString | m_relPath |
QCString | m_sourceFileName |
size_t | m_col = 0 |
bool | m_doxyCodeLineOpen = false |
int | m_usedTableLevel = 0 |
bool | m_insideTabbing = false |
bool | m_stripCodeComments = false |
bool | m_hide = false |
size_t | m_stripIndentAmount = 0 |
Generator for LaTeX code fragments.
Definition at line 27 of file latexgen.h.
LatexCodeGenerator::LatexCodeGenerator | ( | TextStream * | t, |
const QCString & | relPath, | ||
const QCString & | sourceFile ) |
Definition at line 59 of file latexgen.cpp.
References m_relPath, m_sourceFileName, and m_t.
LatexCodeGenerator::LatexCodeGenerator | ( | TextStream * | t | ) |
|
private |
|
inlineoverridevirtual |
Implements OutputCodeIntf.
Definition at line 35 of file latexgen.h.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 78 of file latexgen.cpp.
References Config_getInt, COPYCHAR, QCString::data(), filterLatexString(), QCString::isEmpty(), m_col, m_doxyCodeLineOpen, m_hide, m_insideTabbing, m_stripIndentAmount, m_t, m_usedTableLevel, THREAD_LOCAL, and updateColumnCount().
Referenced by endCodeLine(), writeCodeLink(), and writeLineNumber().
|
inline |
|
private |
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 308 of file latexgen.cpp.
References endCodeLine(), and m_t.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 280 of file latexgen.cpp.
References codify(), FALSE, m_doxyCodeLineOpen, m_hide, and m_t.
Referenced by endCodeFragment().
|
inlineoverridevirtual |
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 297 of file latexgen.cpp.
|
overridevirtual |
|
inline |
|
inline |
|
inline |
void LatexCodeGenerator::setRelativePath | ( | const QCString & | path | ) |
void LatexCodeGenerator::setSourceFileName | ( | const QCString & | sourceFileName | ) |
Definition at line 73 of file latexgen.cpp.
References m_sourceFileName.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 191 of file latexgen.cpp.
References m_stripIndentAmount.
|
inline |
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 303 of file latexgen.cpp.
References m_t, and m_usedTableLevel.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 269 of file latexgen.cpp.
References m_col, m_doxyCodeLineOpen, m_hide, m_t, and TRUE.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 291 of file latexgen.cpp.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 181 of file latexgen.cpp.
References m_hide, and m_stripCodeComments.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 176 of file latexgen.cpp.
References m_stripCodeComments.
|
inlineoverridevirtual |
|
inline |
|
inlineoverridevirtual |
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 196 of file latexgen.cpp.
References codify(), Config_getBool, QCString::isEmpty(), QCString::length(), m_col, m_hide, m_t, and stripPath().
Referenced by writeLineNumber().
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 222 of file latexgen.cpp.
References codify(), Config_getBool, Default, QCString::isEmpty(), m_col, m_doxyCodeLineOpen, m_hide, m_sourceFileName, m_t, QCString::prepend(), QCString::sprintf(), stripExtensionGeneral(), stripPath(), TRUE, and writeCodeLink().
|
inlineoverridevirtual |
|
private |
Definition at line 83 of file latexgen.h.
Referenced by codify(), startCodeLine(), writeCodeLink(), and writeLineNumber().
|
private |
Definition at line 84 of file latexgen.h.
Referenced by codify(), endCodeLine(), startCodeLine(), and writeLineNumber().
|
private |
Definition at line 88 of file latexgen.h.
Referenced by codify(), endCodeLine(), endFontClass(), endSpecialComment(), startCodeLine(), startFontClass(), startSpecialComment(), writeCodeLink(), and writeLineNumber().
|
private |
Definition at line 86 of file latexgen.h.
Referenced by codify(), insideTabbing(), and setInsideTabbing().
|
private |
Definition at line 81 of file latexgen.h.
Referenced by LatexCodeGenerator(), and setRelativePath().
|
private |
Definition at line 82 of file latexgen.h.
Referenced by LatexCodeGenerator(), setSourceFileName(), and writeLineNumber().
|
private |
Definition at line 79 of file latexgen.h.
|
private |
Definition at line 87 of file latexgen.h.
Referenced by startSpecialComment(), and stripCodeComments().
|
private |
Definition at line 89 of file latexgen.h.
Referenced by codify(), and setStripIndentAmount().
|
private |
Definition at line 80 of file latexgen.h.
Referenced by codify(), endCodeFragment(), endCodeLine(), endFontClass(), LatexCodeGenerator(), LatexCodeGenerator(), setTextStream(), startCodeFragment(), startCodeLine(), startFontClass(), writeCodeLink(), and writeLineNumber().
|
private |
Definition at line 85 of file latexgen.h.
Referenced by codify(), decUsedTableLevel(), incUsedTableLevel(), startCodeFragment(), and usedTableLevel().