|
Doxygen
|
Generator for LaTeX code fragments. More...
#include <src/latexgen.h>
Public Member Functions | |
| LatexCodeGenerator (TextStream *t, const DString &relPath, const DString &sourceFile) | |
| LatexCodeGenerator (TextStream *t) | |
| void | setTextStream (TextStream *t) |
| 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 &, const DocLinkInfo &, const DString &, const DString &, const SourceLinkInfo &, const SourceLinkInfo &) override |
| void | writeLineNumber (const DString &, const DString &, const DString &, int, 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 &style) override |
| void | startFold (int, const DString &, const DString &) override |
| void | endFold () override |
| void | incUsedTableLevel () |
| void | decUsedTableLevel () |
| int | usedTableLevel () const |
| void | setRelativePath (const DString &path) |
| void | setSourceFileName (const DString &sourceFileName) |
| void | setInsideTabbing (bool b) |
| bool | insideTabbing () const |
| 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 | docify (const DString &str) |
Private Attributes | |
| bool | m_streamSet = false |
| TextStream * | m_t |
| DString | m_relPath |
| DString | 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 DString & | relPath, | ||
| const DString & | sourceFile ) |
Definition at line 58 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 77 of file latexgen.cpp.
References Config_getInt, COPYCHAR, DString::data(), DString::empty(), filterLatexString(), 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 |
Definition at line 65 of file latexgen.h.
References m_usedTableLevel.
Referenced by LatexGenerator::endDescTable(), LatexGenerator::endMemberDocSimple(), and LatexDocVisitor::operator()().
|
private |
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 307 of file latexgen.cpp.
References endCodeLine(), m_hide, and m_t.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 279 of file latexgen.cpp.
References codify(), m_doxyCodeLineOpen, m_hide, and m_t.
Referenced by endCodeFragment().
|
inlineoverridevirtual |
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 296 of file latexgen.cpp.
|
overridevirtual |
|
inline |
Definition at line 64 of file latexgen.h.
References m_usedTableLevel.
Referenced by LatexDocVisitor::operator()(), LatexGenerator::startDescTable(), and LatexGenerator::startMemberDocSimple().
|
inline |
Definition at line 71 of file latexgen.h.
References m_insideTabbing.
Referenced by LatexGenerator::docify(), LatexGenerator::endIndexSection(), LatexGenerator::endMemberDescription(), LatexGenerator::endMemberItem(), LatexGenerator::endMemberList(), LatexDocVisitor::filter(), LatexGenerator::lineBreak(), LatexGenerator::startIndexSection(), LatexGenerator::startMemberDescription(), LatexGenerator::startMemberItem(), LatexGenerator::startMemberList(), LatexGenerator::writeInheritedSectionTitle(), LatexGenerator::writeNonBreakableSpace(), and LatexGenerator::writeObjectLink().
|
inline |
Definition at line 70 of file latexgen.h.
References m_insideTabbing.
Referenced by LatexGenerator::endAnonTypeScope(), LatexGenerator::endInlineMemberName(), LatexGenerator::endInlineMemberType(), LatexGenerator::startAnonTypeScope(), LatexGenerator::startInlineMemberName(), and LatexGenerator::startInlineMemberType().
| void LatexCodeGenerator::setRelativePath | ( | const DString & | path | ) |
Definition at line 67 of file latexgen.cpp.
References m_relPath.
Referenced by LatexGenerator::startFile().
| void LatexCodeGenerator::setSourceFileName | ( | const DString & | sourceFileName | ) |
Definition at line 72 of file latexgen.cpp.
References m_sourceFileName.
Referenced by LatexGenerator::endFile(), and LatexGenerator::startFile().
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 190 of file latexgen.cpp.
References m_stripIndentAmount.
|
inline |
Definition at line 32 of file latexgen.h.
References m_t.
Referenced by LatexGenerator::LatexGenerator(), and LatexGenerator::operator=().
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 302 of file latexgen.cpp.
References m_t, and m_usedTableLevel.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 268 of file latexgen.cpp.
References m_col, m_doxyCodeLineOpen, m_hide, and m_t.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 290 of file latexgen.cpp.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 180 of file latexgen.cpp.
References m_hide, and m_stripCodeComments.
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 175 of file latexgen.cpp.
References m_stripCodeComments.
|
inlineoverridevirtual |
|
inline |
Definition at line 66 of file latexgen.h.
References m_usedTableLevel.
Referenced by LatexGenerator::docify(), LatexDocVisitor::filter(), and LatexDocVisitor::isTableNested().
|
inlineoverridevirtual |
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 195 of file latexgen.cpp.
References codify(), Config_getBool, DString::empty(), DString::length(), m_col, m_hide, m_t, and stripPath().
Referenced by writeLineNumber().
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 221 of file latexgen.cpp.
References codify(), Config_getBool, Default, DString::DString(), DString::empty(), m_col, m_doxyCodeLineOpen, m_hide, m_sourceFileName, m_t, DString::prepend(), DString::sprintf(), stripExtensionGeneral(), stripPath(), 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(), endCodeFragment(), 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().