My Project
|
#include <latexgen.h>
Public Member Functions | |
LatexCodeGenerator (FTextStream &t, const QCString &relPath, const QCString &sourceFile) | |
LatexCodeGenerator () | |
void | setTextStream (FTextStream &t) |
void | setRelativePath (const QCString &path) |
void | setSourceFileName (const QCString &sourceFileName) |
void | codify (const char *text) |
void | writeCodeLink (const char *ref, const char *file, const char *anchor, const char *name, const char *tooltip) |
void | writeTooltip (const char *, const DocLinkInfo &, const char *, const char *, const SourceLinkInfo &, const SourceLinkInfo &) |
void | writeLineNumber (const char *, const char *, const char *, int) |
void | startCodeLine (bool) |
void | endCodeLine () |
void | startFontClass (const char *) |
void | endFontClass () |
void | writeCodeAnchor (const char *) |
void | setCurrentDoc (Definition *, const char *, bool) |
void | addWord (const char *, bool) |
Public Member Functions inherited from CodeOutputInterface | |
virtual | ~CodeOutputInterface () |
Private Member Functions | |
void | _writeCodeLink (const char *className, const char *ref, const char *file, const char *anchor, const char *name, const char *tooltip) |
void | docify (const char *str) |
Private Attributes | |
bool | m_streamSet |
FTextStream | m_t |
QCString | m_relPath |
QCString | m_sourceFileName |
int | m_col |
bool | m_prettyCode |
Definition at line 27 of file latexgen.h.
LatexCodeGenerator::LatexCodeGenerator | ( | FTextStream & | t, |
const QCString & | relPath, | ||
const QCString & | sourceFile | ||
) |
Definition at line 43 of file latexgen.cpp.
References Config_getBool, m_prettyCode, and setTextStream().
LatexCodeGenerator::LatexCodeGenerator | ( | ) |
Definition at line 50 of file latexgen.cpp.
References Config_getBool, and m_prettyCode.
|
private |
|
inlinevirtual |
|
virtual |
Writes an code fragment to the output. This function should keep spaces visible, should break lines at a newline and should convert tabs to the right number of spaces.
Implements CodeOutputInterface.
Definition at line 71 of file latexgen.cpp.
References Config_getInt, COPYCHAR, filterLatexString(), m_col, m_t, and Doxygen::spaces.
Referenced by LatexGenerator::codify(), endCodeLine(), writeCodeLink(), and writeLineNumber().
|
private |
|
virtual |
Ends a line of code started with startCodeLine()
Implements CodeOutputInterface.
Definition at line 228 of file latexgen.cpp.
References codify().
Referenced by LatexGenerator::endCodeLine().
|
virtual |
Ends a block started with startFontClass()
Implements CodeOutputInterface.
Definition at line 238 of file latexgen.cpp.
References m_t.
Referenced by LatexGenerator::endFontClass().
|
inlinevirtual |
void LatexCodeGenerator::setRelativePath | ( | const QCString & | path | ) |
Definition at line 61 of file latexgen.cpp.
References m_relPath.
Referenced by LatexGenerator::startFile().
void LatexCodeGenerator::setSourceFileName | ( | const QCString & | sourceFileName | ) |
Definition at line 66 of file latexgen.cpp.
References m_sourceFileName.
Referenced by LatexGenerator::endFile(), and LatexGenerator::startFile().
void LatexCodeGenerator::setTextStream | ( | FTextStream & | t | ) |
Definition at line 55 of file latexgen.cpp.
References FTextStream::device(), m_streamSet, m_t, and FTextStream::setDevice().
Referenced by LatexCodeGenerator(), and LatexGenerator::startFile().
|
virtual |
Implements CodeOutputInterface.
Definition at line 223 of file latexgen.cpp.
References m_col.
Referenced by LatexGenerator::startCodeLine().
|
virtual |
Starts a block with a certain meaning. Used for syntax highlighting, which elements of the same type are rendered using the same 'font class'.
clsName | The category name. |
Implements CodeOutputInterface.
Definition at line 233 of file latexgen.cpp.
References m_t.
Referenced by LatexGenerator::startFontClass().
|
inlinevirtual |
Write an anchor to a source listing.
name | The name of the anchor. |
Implements CodeOutputInterface.
Definition at line 51 of file latexgen.h.
Referenced by LatexGenerator::writeCodeAnchor().
|
virtual |
Writes a link to an object in a code fragment.
ref | If this is non-zero, the object is to be found in an external documentation file. |
file | The file in which the object is located. |
anchor | The anchor uniquely identifying the object within the file. |
name | The text to display as a placeholder for the link. |
tooltip | The tooltip to display when the mouse is on the link. |
Implements CodeOutputInterface.
Definition at line 160 of file latexgen.cpp.
References codify(), Config_getBool, m_col, m_t, and stripPath().
Referenced by LatexGenerator::writeCodeLink(), and writeLineNumber().
|
virtual |
Writes the line number of a source listing
ref | External reference (when imported from a tag file) |
file | The file part of the URL pointing to the docs. |
anchor | The anchor part of the URL pointing to the docs. |
lineNumber | The line number to write |
Implements CodeOutputInterface.
Definition at line 189 of file latexgen.cpp.
References codify(), Config_getBool, m_prettyCode, m_sourceFileName, m_t, stripExtensionGeneral(), stripPath(), and writeCodeLink().
Referenced by LatexGenerator::writeLineNumber().
|
inlinevirtual |
Writes a tool tip definition
id | unique identifier for the tooltip |
docInfo | Info about the symbol's documentation. |
decl | full declaration of the symbol (for functions) |
desc | brief description for the symbol |
defInfo | Info about the symbol's definition in the source code |
declInfo | Info about the symbol's declaration in the source code |
Implements CodeOutputInterface.
Definition at line 39 of file latexgen.h.
Referenced by LatexGenerator::writeTooltip().
|
private |
Definition at line 65 of file latexgen.h.
Referenced by codify(), startCodeLine(), and writeCodeLink().
|
private |
Definition at line 66 of file latexgen.h.
Referenced by LatexCodeGenerator(), and writeLineNumber().
|
private |
Definition at line 63 of file latexgen.h.
Referenced by setRelativePath().
|
private |
Definition at line 64 of file latexgen.h.
Referenced by setSourceFileName(), and writeLineNumber().
|
private |
Definition at line 61 of file latexgen.h.
Referenced by setTextStream().
|
private |
Definition at line 62 of file latexgen.h.
Referenced by codify(), endFontClass(), setTextStream(), startFontClass(), writeCodeLink(), and writeLineNumber().