#include <src/docbookgen.h>
|
| DocbookCodeGenerator (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 | startCodeLine (int) override |
|
void | endCodeLine () override |
|
void | startFontClass (const QCString &colorClass) override |
|
void | endFontClass () override |
|
void | writeCodeAnchor (const QCString &) override |
|
void | writeLineNumber (const QCString &extRef, const QCString &compId, const QCString &anchorId, int l, bool writeLineAnchor) 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 | setRelativePath (const QCString &path) |
|
void | setSourceFileName (const QCString &sourceFileName) |
|
QCString | sourceFileName () |
|
void | finish () |
|
| OutputCodeIntf ()=default |
|
Definition at line 47 of file docbookgen.h.
◆ DocbookCodeGenerator()
DocbookCodeGenerator::DocbookCodeGenerator |
( |
TextStream * | t | ) |
|
◆ clone()
◆ codify()
void DocbookCodeGenerator::codify |
( |
const QCString & | text | ) |
|
|
overridevirtual |
◆ endCodeFragment()
void DocbookCodeGenerator::endCodeFragment |
( |
const QCString & | style | ) |
|
|
overridevirtual |
◆ endCodeLine()
void DocbookCodeGenerator::endCodeLine |
( |
| ) |
|
|
overridevirtual |
◆ endFold()
void DocbookCodeGenerator::endFold |
( |
| ) |
|
|
inlineoverridevirtual |
◆ endFontClass()
void DocbookCodeGenerator::endFontClass |
( |
| ) |
|
|
overridevirtual |
◆ endSpecialComment()
void DocbookCodeGenerator::endSpecialComment |
( |
| ) |
|
|
overridevirtual |
◆ finish()
void DocbookCodeGenerator::finish |
( |
| ) |
|
◆ setRelativePath()
void DocbookCodeGenerator::setRelativePath |
( |
const QCString & | path | ) |
|
|
inline |
◆ setSourceFileName()
void DocbookCodeGenerator::setSourceFileName |
( |
const QCString & | sourceFileName | ) |
|
|
inline |
◆ setStripIndentAmount()
void DocbookCodeGenerator::setStripIndentAmount |
( |
size_t | amount | ) |
|
|
overridevirtual |
◆ setTextStream()
void DocbookCodeGenerator::setTextStream |
( |
TextStream * | t | ) |
|
|
inline |
◆ sourceFileName()
QCString DocbookCodeGenerator::sourceFileName |
( |
| ) |
|
|
inline |
◆ startCodeFragment()
void DocbookCodeGenerator::startCodeFragment |
( |
const QCString & | style | ) |
|
|
overridevirtual |
◆ startCodeLine()
void DocbookCodeGenerator::startCodeLine |
( |
int | | ) |
|
|
overridevirtual |
◆ startFold()
void DocbookCodeGenerator::startFold |
( |
int | , |
|
|
const QCString & | , |
|
|
const QCString & | ) |
|
inlineoverridevirtual |
◆ startFontClass()
void DocbookCodeGenerator::startFontClass |
( |
const QCString & | colorClass | ) |
|
|
overridevirtual |
◆ startSpecialComment()
void DocbookCodeGenerator::startSpecialComment |
( |
| ) |
|
|
overridevirtual |
◆ stripCodeComments()
void DocbookCodeGenerator::stripCodeComments |
( |
bool | b | ) |
|
|
overridevirtual |
◆ type()
◆ writeCodeAnchor()
void DocbookCodeGenerator::writeCodeAnchor |
( |
const QCString & | | ) |
|
|
overridevirtual |
◆ writeCodeLink()
Implements OutputCodeIntf.
Definition at line 192 of file docbookgen.cpp.
196{
201}
size_t length() const
Returns the length of the string, not counting the 0-terminator.
void writeDocbookLink(TextStream &t, const QCString &, const QCString &compoundId, const QCString &anchorId, const QCString &text, const QCString &)
References Docbook_DB, QCString::length(), m_col, m_hide, m_t, and writeDocbookLink().
Referenced by writeLineNumber().
◆ writeCodeLinkLine()
◆ writeLineNumber()
void DocbookCodeGenerator::writeLineNumber |
( |
const QCString & | extRef, |
|
|
const QCString & | compId, |
|
|
const QCString & | anchorId, |
|
|
int | l, |
|
|
bool | writeLineAnchor ) |
|
overridevirtual |
Implements OutputCodeIntf.
Definition at line 265 of file docbookgen.cpp.
267{
272 {
273 QCString lineNumber;
275
277 {
279 }
280 if (!fileName.isEmpty())
281 {
283 }
284 else
285 {
287 }
289 }
290 else
291 {
293 }
295}
void writeCodeLink(CodeSymbolType type, const QCString &ref, const QCString &file, const QCString &anchor, const QCString &name, const QCString &tooltip) override
void codify(const QCString &text) override
void writeCodeLinkLine(CodeSymbolType type, const QCString &ref, const QCString &file, const QCString &anchor, const QCString &name, const QCString &tooltip, bool)
QCString & sprintf(const char *format,...)
#define Config_getBool(name)
References codify(), Config_getBool, Default, Docbook_DB, QCString::isEmpty(), m_col, m_hide, m_insideCodeLine, m_sourceFileName, m_t, QCString::sprintf(), TRUE, writeCodeLink(), and writeCodeLinkLine().
◆ writeTooltip()
◆ m_col
size_t DocbookCodeGenerator::m_col = 0 |
|
private |
◆ m_external
QCString DocbookCodeGenerator::m_external |
|
private |
◆ m_hide
bool DocbookCodeGenerator::m_hide = false |
|
private |
◆ m_insideCodeLine
bool DocbookCodeGenerator::m_insideCodeLine = false |
|
private |
◆ m_insideSpecialHL
bool DocbookCodeGenerator::m_insideSpecialHL = false |
|
private |
◆ m_lineNumber
int DocbookCodeGenerator::m_lineNumber = -1 |
|
private |
◆ m_refId
◆ m_relPath
QCString DocbookCodeGenerator::m_relPath |
|
private |
◆ m_sourceFileName
QCString DocbookCodeGenerator::m_sourceFileName |
|
private |
◆ m_stripCodeComments
bool DocbookCodeGenerator::m_stripCodeComments = false |
|
private |
◆ m_stripIndentAmount
size_t DocbookCodeGenerator::m_stripIndentAmount = 0 |
|
private |
◆ m_t
Definition at line 89 of file docbookgen.h.
Referenced by clone(), codify(), DocbookCodeGenerator(), endCodeFragment(), endCodeLine(), endFontClass(), setTextStream(), startCodeFragment(), startFontClass(), writeCodeLink(), writeCodeLinkLine(), and writeLineNumber().
The documentation for this class was generated from the following files: