My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
LatexDocVisitor Class Reference

Concrete visitor implementation for LaTeX output. More...

#include <latexdocvisitor.h>

Inheritance diagram for LatexDocVisitor:
DocVisitor

Classes

struct  ActiveRowSpan
 
struct  TableState
 

Public Member Functions

 LatexDocVisitor (FTextStream &t, CodeOutputInterface &ci, const char *langExt, bool insideTabbing)
 
void visit (DocWord *)
 
void visit (DocLinkedWord *)
 
void visit (DocWhiteSpace *)
 
void visit (DocSymbol *)
 
void visit (DocURL *)
 
void visit (DocLineBreak *)
 
void visit (DocHorRuler *)
 
void visit (DocStyleChange *)
 
void visit (DocVerbatim *)
 
void visit (DocAnchor *)
 
void visit (DocInclude *)
 
void visit (DocIncOperator *)
 
void visit (DocFormula *)
 
void visit (DocIndexEntry *)
 
void visit (DocSimpleSectSep *)
 
void visit (DocCite *)
 
void visitPre (DocAutoList *)
 
void visitPost (DocAutoList *)
 
void visitPre (DocAutoListItem *)
 
void visitPost (DocAutoListItem *)
 
void visitPre (DocPara *)
 
void visitPost (DocPara *)
 
void visitPre (DocRoot *)
 
void visitPost (DocRoot *)
 
void visitPre (DocSimpleSect *)
 
void visitPost (DocSimpleSect *)
 
void visitPre (DocTitle *)
 
void visitPost (DocTitle *)
 
void visitPre (DocSimpleList *)
 
void visitPost (DocSimpleList *)
 
void visitPre (DocSimpleListItem *)
 
void visitPost (DocSimpleListItem *)
 
void visitPre (DocSection *s)
 
void visitPost (DocSection *)
 
void visitPre (DocHtmlList *s)
 
void visitPost (DocHtmlList *s)
 
void visitPre (DocHtmlListItem *)
 
void visitPost (DocHtmlListItem *)
 
void visitPre (DocHtmlDescList *)
 
void visitPost (DocHtmlDescList *)
 
void visitPre (DocHtmlDescTitle *)
 
void visitPost (DocHtmlDescTitle *)
 
void visitPre (DocHtmlDescData *)
 
void visitPost (DocHtmlDescData *)
 
void visitPre (DocHtmlTable *t)
 
void visitPost (DocHtmlTable *t)
 
void visitPre (DocHtmlCaption *)
 
void visitPost (DocHtmlCaption *)
 
void visitPre (DocHtmlRow *)
 
void visitPost (DocHtmlRow *)
 
void visitPre (DocHtmlCell *)
 
void visitPost (DocHtmlCell *)
 
void visitPre (DocInternal *)
 
void visitPost (DocInternal *)
 
void visitPre (DocHRef *)
 
void visitPost (DocHRef *)
 
void visitPre (DocHtmlHeader *)
 
void visitPost (DocHtmlHeader *)
 
void visitPre (DocImage *)
 
void visitPost (DocImage *)
 
void visitPre (DocDotFile *)
 
void visitPost (DocDotFile *)
 
void visitPre (DocMscFile *)
 
void visitPost (DocMscFile *)
 
void visitPre (DocDiaFile *)
 
void visitPost (DocDiaFile *)
 
void visitPre (DocLink *lnk)
 
void visitPost (DocLink *)
 
void visitPre (DocRef *ref)
 
void visitPost (DocRef *)
 
void visitPre (DocSecRefItem *)
 
void visitPost (DocSecRefItem *)
 
void visitPre (DocSecRefList *)
 
void visitPost (DocSecRefList *)
 
void visitPre (DocParamSect *)
 
void visitPost (DocParamSect *)
 
void visitPre (DocParamList *)
 
void visitPost (DocParamList *)
 
void visitPre (DocXRefItem *)
 
void visitPost (DocXRefItem *)
 
void visitPre (DocInternalRef *)
 
void visitPost (DocInternalRef *)
 
void visitPre (DocCopy *)
 
void visitPost (DocCopy *)
 
void visitPre (DocText *)
 
void visitPost (DocText *)
 
void visitPre (DocHtmlBlockQuote *)
 
void visitPost (DocHtmlBlockQuote *)
 
void visitPre (DocVhdlFlow *)
 
void visitPost (DocVhdlFlow *)
 
void visitPre (DocParBlock *)
 
void visitPost (DocParBlock *)
 
- Public Member Functions inherited from DocVisitor
 DocVisitor (int id)
 
virtual ~DocVisitor ()
 
int id () const
 

Private Types

typedef QList< ActiveRowSpanRowSpanList
 

Private Member Functions

void filter (const char *str)
 
void startLink (const QCString &ref, const QCString &file, const QCString &anchor, bool refToTable=FALSE)
 
void endLink (const QCString &ref, const QCString &file, const QCString &anchor)
 
QCString escapeMakeIndexChars (const char *s)
 
void startDotFile (const QCString &fileName, const QCString &width, const QCString &height, bool hasCaption)
 
void endDotFile (bool hasCaption)
 
void startMscFile (const QCString &fileName, const QCString &width, const QCString &height, bool hasCaption)
 
void endMscFile (bool hasCaption)
 
void writeMscFile (const QCString &fileName, DocVerbatim *s)
 
void startDiaFile (const QCString &fileName, const QCString &width, const QCString &height, bool hasCaption)
 
void endDiaFile (bool hasCaption)
 
void writeDiaFile (const QCString &fileName, DocVerbatim *s)
 
void writePlantUMLFile (const QCString &fileName, DocVerbatim *s)
 
void pushEnabled ()
 
void popEnabled ()
 
void pushTableState ()
 
void popTableState ()
 
int currentColumn () const
 
void setCurrentColumn (int col)
 
int numCols () const
 
void setNumCols (int num)
 
bool inRowSpan () const
 
void setInRowSpan (bool b)
 
bool inColSpan () const
 
void setInColSpan (bool b)
 
bool firstRow () const
 
void setFirstRow (bool b)
 
const RowSpanListrowSpans ()
 
void addRowSpan (ActiveRowSpan *span)
 
bool insideTable () const
 

Private Attributes

FTextStreamm_t
 
CodeOutputInterfacem_ci
 
bool m_insidePre
 
bool m_insideItem
 
bool m_hide
 
bool m_hideCaption
 
bool m_insideTabbing
 
QStack< bool > m_enabled
 
QCString m_langExt
 
QStack< TableStatem_tableStateStack
 
RowSpanList m_emptyRowSpanList
 

Detailed Description

Concrete visitor implementation for LaTeX output.

Definition at line 32 of file latexdocvisitor.h.

Member Typedef Documentation

Definition at line 154 of file latexdocvisitor.h.

Constructor & Destructor Documentation

LatexDocVisitor::LatexDocVisitor ( FTextStream t,
CodeOutputInterface ci,
const char *  langExt,
bool  insideTabbing 
)

Definition at line 171 of file latexdocvisitor.cpp.

References m_tableStateStack.

m_insideItem(FALSE), m_hide(FALSE), m_hideCaption(FALSE), m_insideTabbing(insideTabbing),
m_langExt(langExt)
{
m_tableStateStack.setAutoDelete(TRUE);
}

Member Function Documentation

void LatexDocVisitor::addRowSpan ( ActiveRowSpan span)
inlineprivate

Definition at line 265 of file latexdocvisitor.h.

References m_tableStateStack.

Referenced by visitPre().

{
if (!m_tableStateStack.isEmpty()) m_tableStateStack.top()->rowSpans.append(span);
}
int LatexDocVisitor::currentColumn ( ) const
inlineprivate

Definition at line 221 of file latexdocvisitor.h.

References m_tableStateStack.

Referenced by visitPost(), and visitPre().

{
return !m_tableStateStack.isEmpty() ? m_tableStateStack.top()->currentColumn : 0;
}
void LatexDocVisitor::endDiaFile ( bool  hasCaption)
private

Definition at line 1806 of file latexdocvisitor.cpp.

References m_hide, m_t, and visitPostEnd().

Referenced by visitPost().

{
if (m_hide) return;
visitPostEnd(m_t,hasCaption);
}
void LatexDocVisitor::endDotFile ( bool  hasCaption)
private

Definition at line 1731 of file latexdocvisitor.cpp.

References m_hide, m_t, and visitPostEnd().

Referenced by visit(), and visitPost().

{
if (m_hide) return;
visitPostEnd(m_t,hasCaption);
}
void LatexDocVisitor::endLink ( const QCString &  ref,
const QCString &  file,
const QCString &  anchor 
)
private

Definition at line 1681 of file latexdocvisitor.cpp.

References Config_getBool, filter(), m_t, theTranslator, and Translator::trPageAbbreviation().

Referenced by visit(), and visitPost().

{
m_t << "}";
static bool pdfHyperLinks = Config_getBool(PDF_HYPERLINKS);
if (ref.isEmpty() && !pdfHyperLinks)
{
m_t << "{";
m_t << "}{" << file;
if (!file.isEmpty() && !anchor.isEmpty()) m_t << "_";
m_t << anchor << "}";
}
}
void LatexDocVisitor::endMscFile ( bool  hasCaption)
private

Definition at line 1760 of file latexdocvisitor.cpp.

References m_hide, m_t, and visitPostEnd().

Referenced by visitPost().

{
if (m_hide) return;
visitPostEnd(m_t,hasCaption);
}
QCString LatexDocVisitor::escapeMakeIndexChars ( const char *  s)
private

Definition at line 143 of file latexdocvisitor.cpp.

References filter(), and m_t.

Referenced by visit().

{
QCString result;
const char *p=s;
char str[2]; str[1]=0;
char c;
if (p)
{
while ((c=*p++))
{
switch (c)
{
case '!': m_t << "\"!"; break;
case '"': m_t << "\"\""; break;
case '@': m_t << "\"@"; break;
case '|': m_t << "\\texttt{\"|}"; break;
case '[': m_t << "["; break;
case ']': m_t << "]"; break;
case '{': m_t << "\\lcurly{}"; break;
case '}': m_t << "\\rcurly{}"; break;
default: str[0]=c; filter(str); break;
}
}
}
return result;
}
void LatexDocVisitor::filter ( const char *  str)
private
bool LatexDocVisitor::firstRow ( ) const
inlineprivate

Definition at line 253 of file latexdocvisitor.h.

References m_tableStateStack.

Referenced by visitPost(), and visitPre().

{
return !m_tableStateStack.isEmpty() ? m_tableStateStack.top()->firstRow : FALSE;
}
bool LatexDocVisitor::inColSpan ( ) const
inlineprivate

Definition at line 245 of file latexdocvisitor.h.

References m_tableStateStack.

Referenced by visitPost().

{
return !m_tableStateStack.isEmpty() ? m_tableStateStack.top()->inColSpan : FALSE;
}
bool LatexDocVisitor::inRowSpan ( ) const
inlineprivate

Definition at line 237 of file latexdocvisitor.h.

References m_tableStateStack.

Referenced by visitPost().

{
return !m_tableStateStack.isEmpty() ? m_tableStateStack.top()->inRowSpan : FALSE;
}
bool LatexDocVisitor::insideTable ( ) const
inlineprivate

Definition at line 269 of file latexdocvisitor.h.

References m_tableStateStack.

{
return !m_tableStateStack.isEmpty();
}
int LatexDocVisitor::numCols ( ) const
inlineprivate

Definition at line 229 of file latexdocvisitor.h.

References m_tableStateStack.

Referenced by visitPost(), and visitPre().

{
return !m_tableStateStack.isEmpty() ? m_tableStateStack.top()->numCols : 0;
}
void LatexDocVisitor::popEnabled ( )
private

Definition at line 1700 of file latexdocvisitor.cpp.

References m_enabled, and m_hide.

Referenced by visit(), and visitPost().

{
bool *v=m_enabled.pop();
ASSERT(v!=0);
m_hide = *v;
delete v;
}
void LatexDocVisitor::popTableState ( )
inlineprivate

Definition at line 217 of file latexdocvisitor.h.

References m_tableStateStack.

Referenced by visitPost().

{
delete m_tableStateStack.pop();
}
void LatexDocVisitor::pushEnabled ( )
private

Definition at line 1695 of file latexdocvisitor.cpp.

References m_enabled, and m_hide.

Referenced by visit(), and visitPre().

{
m_enabled.push(new bool(m_hide));
}
void LatexDocVisitor::pushTableState ( )
inlineprivate

Definition at line 213 of file latexdocvisitor.h.

References m_tableStateStack.

Referenced by visitPre().

{
m_tableStateStack.push(new TableState);
}
const RowSpanList& LatexDocVisitor::rowSpans ( )
inlineprivate

Definition at line 261 of file latexdocvisitor.h.

References m_emptyRowSpanList, and m_tableStateStack.

Referenced by visitPost(), and visitPre().

{
return !m_tableStateStack.isEmpty() ? m_tableStateStack.top()->rowSpans : m_emptyRowSpanList;
}
void LatexDocVisitor::setCurrentColumn ( int  col)
inlineprivate

Definition at line 225 of file latexdocvisitor.h.

References m_tableStateStack.

Referenced by visitPre().

{
if (!m_tableStateStack.isEmpty()) m_tableStateStack.top()->currentColumn = col;
}
void LatexDocVisitor::setFirstRow ( bool  b)
inlineprivate

Definition at line 257 of file latexdocvisitor.h.

References m_tableStateStack.

Referenced by visitPre().

{
if (!m_tableStateStack.isEmpty()) m_tableStateStack.top()->firstRow = b;
}
void LatexDocVisitor::setInColSpan ( bool  b)
inlineprivate

Definition at line 249 of file latexdocvisitor.h.

References m_tableStateStack.

Referenced by visitPost(), and visitPre().

{
if (!m_tableStateStack.isEmpty()) m_tableStateStack.top()->inColSpan = b;
}
void LatexDocVisitor::setInRowSpan ( bool  b)
inlineprivate

Definition at line 241 of file latexdocvisitor.h.

References m_tableStateStack.

Referenced by visitPost(), and visitPre().

{
if (!m_tableStateStack.isEmpty()) m_tableStateStack.top()->inRowSpan = b;
}
void LatexDocVisitor::setNumCols ( int  num)
inlineprivate

Definition at line 233 of file latexdocvisitor.h.

References m_tableStateStack.

Referenced by visitPre().

{
if (!m_tableStateStack.isEmpty()) m_tableStateStack.top()->numCols = num;
}
void LatexDocVisitor::startDiaFile ( const QCString &  fileName,
const QCString &  width,
const QCString &  height,
bool  hasCaption 
)
private

Definition at line 1783 of file latexdocvisitor.cpp.

References Config_getString, DIA_EPS, m_t, visitPreStart(), and writeDiaGraphFromFile().

Referenced by visitPre().

{
QCString baseName=fileName;
int i;
if ((i=baseName.findRev('/'))!=-1)
{
baseName=baseName.right(baseName.length()-i-1);
}
if ((i=baseName.find('.'))!=-1)
{
baseName=baseName.left(i);
}
baseName.prepend("dia_");
QCString outDir = Config_getString(LATEX_OUTPUT);
writeDiaGraphFromFile(fileName,outDir,baseName,DIA_EPS);
visitPreStart(m_t,hasCaption, baseName, width, height);
}
void LatexDocVisitor::startDotFile ( const QCString &  fileName,
const QCString &  width,
const QCString &  height,
bool  hasCaption 
)
private

Definition at line 1708 of file latexdocvisitor.cpp.

References Config_getString, GOF_EPS, m_t, visitPreStart(), and writeDotGraphFromFile().

Referenced by visit(), and visitPre().

{
QCString baseName=fileName;
int i;
if ((i=baseName.findRev('/'))!=-1)
{
baseName=baseName.right(baseName.length()-i-1);
}
if ((i=baseName.find('.'))!=-1)
{
baseName=baseName.left(i);
}
baseName.prepend("dot_");
QCString outDir = Config_getString(LATEX_OUTPUT);
QCString name = fileName;
writeDotGraphFromFile(name,outDir,baseName,GOF_EPS);
visitPreStart(m_t,hasCaption, baseName, width, height);
}
void LatexDocVisitor::startLink ( const QCString &  ref,
const QCString &  file,
const QCString &  anchor,
bool  refToTable = FALSE 
)
private

Definition at line 1649 of file latexdocvisitor.cpp.

References Config_getBool, m_t, and stripPath().

Referenced by visit(), and visitPre().

{
static bool pdfHyperLinks = Config_getBool(PDF_HYPERLINKS);
if (ref.isEmpty() && pdfHyperLinks) // internal PDF link
{
if (refToTable)
{
m_t << "\\doxytablelink{";
}
else
{
m_t << "\\hyperlink{";
}
if (!file.isEmpty()) m_t << stripPath(file);
if (!file.isEmpty() && !anchor.isEmpty()) m_t << "_";
if (!anchor.isEmpty()) m_t << anchor;
m_t << "}{";
}
else if (ref.isEmpty() && refToTable)
{
m_t << "\\doxytableref{";
}
else if (ref.isEmpty()) // internal non-PDF link
{
m_t << "\\doxyref{";
}
else // external link
{
m_t << "{\\bf ";
}
}
void LatexDocVisitor::startMscFile ( const QCString &  fileName,
const QCString &  width,
const QCString &  height,
bool  hasCaption 
)
private

Definition at line 1737 of file latexdocvisitor.cpp.

References Config_getString, m_t, MSC_EPS, visitPreStart(), and writeMscGraphFromFile().

Referenced by visitPre().

{
QCString baseName=fileName;
int i;
if ((i=baseName.findRev('/'))!=-1)
{
baseName=baseName.right(baseName.length()-i-1);
}
if ((i=baseName.find('.'))!=-1)
{
baseName=baseName.left(i);
}
baseName.prepend("msc_");
QCString outDir = Config_getString(LATEX_OUTPUT);
writeMscGraphFromFile(fileName,outDir,baseName,MSC_EPS);
visitPreStart(m_t,hasCaption, baseName, width, height);
}
void LatexDocVisitor::visit ( DocWord w)
virtual

Implements DocVisitor.

Definition at line 184 of file latexdocvisitor.cpp.

References filter(), m_hide, and DocWord::word().

Referenced by visitPre().

{
if (m_hide) return;
filter(w->word());
}
void LatexDocVisitor::visit ( DocLinkedWord w)
virtual

Implements DocVisitor.

Definition at line 190 of file latexdocvisitor.cpp.

References DocLinkedWord::anchor(), endLink(), DocLinkedWord::file(), filter(), m_hide, DocLinkedWord::ref(), startLink(), and DocLinkedWord::word().

{
if (m_hide) return;
startLink(w->ref(),w->file(),w->anchor());
filter(w->word());
endLink(w->ref(),w->file(),w->anchor());
}
void LatexDocVisitor::visit ( DocWhiteSpace w)
virtual

Implements DocVisitor.

Definition at line 198 of file latexdocvisitor.cpp.

References DocWhiteSpace::chars(), m_hide, m_insidePre, and m_t.

{
if (m_hide) return;
{
m_t << w->chars();
}
else
{
m_t << " ";
}
}
void LatexDocVisitor::visit ( DocSymbol s)
virtual

Implements DocVisitor.

Definition at line 211 of file latexdocvisitor.cpp.

References err(), HtmlEntityMapper::instance(), HtmlEntityMapper::latex(), m_hide, m_insidePre, m_t, DocSymbol::Sym_Greater, DocSymbol::Sym_gt, DocSymbol::Sym_Less, DocSymbol::Sym_lt, and DocSymbol::symbol().

{
if (m_hide) return;
const char *res = HtmlEntityMapper::instance()->latex(s->symbol());
if (res)
{
if (((s->symbol() == DocSymbol::Sym_lt) || (s->symbol() == DocSymbol::Sym_Less))&& (!m_insidePre))
{
m_t << "$<$";
}
else if (((s->symbol() == DocSymbol::Sym_gt) || (s->symbol() == DocSymbol::Sym_Greater)) && (!m_insidePre))
{
m_t << "$>$";
}
else
{
m_t << res;
}
}
else
{
err("LaTeX: non supported HTML-entity found: %s\n",HtmlEntityMapper::instance()->html(s->symbol(),TRUE));
}
}
void LatexDocVisitor::visit ( DocURL u)
virtual

Implements DocVisitor.

Definition at line 236 of file latexdocvisitor.cpp.

References Config_getBool, filter(), DocURL::isEmail(), m_hide, m_t, and DocURL::url().

{
if (m_hide) return;
if (Config_getBool(PDF_HYPERLINKS))
{
m_t << "\\href{";
if (u->isEmail()) m_t << "mailto:";
m_t << u->url() << "}";
}
m_t << "{\\tt ";
filter(u->url());
m_t << "}";
}
void LatexDocVisitor::visit ( DocLineBreak )
virtual

Implements DocVisitor.

Definition at line 250 of file latexdocvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "~\\newline\n";
}
void LatexDocVisitor::visit ( DocHorRuler )
virtual

Implements DocVisitor.

Definition at line 256 of file latexdocvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "\n\n";
}
void LatexDocVisitor::visit ( DocStyleChange s)
virtual

Implements DocVisitor.

Definition at line 262 of file latexdocvisitor.cpp.

References DocStyleChange::Bold, DocStyleChange::Center, DocStyleChange::Code, DocStyleChange::Div, DocStyleChange::enable(), DocStyleChange::Italic, m_hide, m_insidePre, m_t, DocStyleChange::Preformatted, DocStyleChange::Small, DocStyleChange::Span, DocStyleChange::style(), DocStyleChange::Subscript, and DocStyleChange::Superscript.

{
if (m_hide) return;
switch (s->style())
{
if (s->enable()) m_t << "{\\bfseries "; else m_t << "}";
break;
if (s->enable()) m_t << "{\\itshape "; else m_t << "}";
break;
if (s->enable()) m_t << "{\\ttfamily "; else m_t << "}";
break;
if (s->enable()) m_t << "\\textsubscript{"; else m_t << "}";
break;
if (s->enable()) m_t << "\\textsuperscript{"; else m_t << "}";
break;
if (s->enable()) m_t << "\\begin{center}"; else m_t << "\\end{center} ";
break;
if (s->enable()) m_t << "\n\\footnotesize "; else m_t << "\n\\normalsize ";
break;
if (s->enable())
{
m_t << "\n\\begin{DoxyPre}";
}
else
{
m_insidePre=FALSE;
m_t << "\\end{DoxyPre}\n";
}
break;
case DocStyleChange::Div: /* HTML only */ break;
case DocStyleChange::Span: /* HTML only */ break;
}
}
void LatexDocVisitor::visit ( DocVerbatim s)
virtual

Implements DocVisitor.

Definition at line 305 of file latexdocvisitor.cpp.

References DocVerbatim::children(), DocVerbatim::Code, Config_getBool, Config_getString, DocVerbatim::context(), DocVerbatim::DocbookOnly, DocVerbatim::Dot, endDotFile(), err(), DocVerbatim::exampleFile(), getLanguageFromFileName(), ParserManager::getParser(), DocVerbatim::hasCaption(), DocVerbatim::height(), DocVerbatim::HtmlOnly, DocVerbatim::isExample(), DocVerbatim::language(), DocVerbatim::LatexOnly, m_ci, m_hide, m_langExt, m_t, DocVerbatim::ManOnly, DocVerbatim::Msc, ParserInterface::parseCode(), Doxygen::parserManager, DocVerbatim::PlantUML, DocVerbatim::RtfOnly, startDotFile(), DocVerbatim::text(), DocVerbatim::type(), DocVerbatim::Verbatim, visitCaption(), DocVerbatim::width(), writeMscFile(), writePlantUMLFile(), writePlantUMLSource(), and DocVerbatim::XmlOnly.

{
if (m_hide) return;
QCString lang = m_langExt;
if (!s->language().isEmpty()) // explicit language setting
{
lang = s->language();
}
switch(s->type())
{
{
m_t << "\n\\begin{DoxyCode}\n";
->parseCode(m_ci,s->context(),s->text(),langExt,
s->isExample(),s->exampleFile());
m_t << "\\end{DoxyCode}\n";
}
break;
m_t << "\\begin{DoxyVerb}";
m_t << s->text();
m_t << "\\end{DoxyVerb}\n";
break;
/* nothing */
break;
m_t << s->text();
break;
{
static int dotindex = 1;
QCString fileName(4096);
fileName.sprintf("%s%d%s",
(Config_getString(LATEX_OUTPUT)+"/inline_dotgraph_").data(),
dotindex++,
".dot"
);
QFile file(fileName);
if (!file.open(IO_WriteOnly))
{
err("Could not open file %s for writing\n",fileName.data());
}
else
{
file.writeBlock( s->text(), s->text().length() );
file.close();
startDotFile(fileName,s->width(),s->height(),s->hasCaption());
visitCaption(this, s->children());
if (Config_getBool(DOT_CLEANUP)) file.remove();
}
}
break;
{
static int mscindex = 1;
QCString baseName(4096);
baseName.sprintf("%s%d",
(Config_getString(LATEX_OUTPUT)+"/inline_mscgraph_").data(),
mscindex++
);
QFile file(baseName+".msc");
if (!file.open(IO_WriteOnly))
{
err("Could not open file %s.msc for writing\n",baseName.data());
}
else
{
QCString text = "msc {";
text+=s->text();
text+="}";
file.writeBlock( text, text.length() );
file.close();
writeMscFile(baseName, s);
if (Config_getBool(DOT_CLEANUP)) file.remove();
}
}
break;
{
QCString latexOutput = Config_getString(LATEX_OUTPUT);
QCString baseName = writePlantUMLSource(latexOutput,s->exampleFile(),s->text());
writePlantUMLFile(baseName, s);
}
break;
}
}
void LatexDocVisitor::visit ( DocAnchor anc)
virtual

Implements DocVisitor.

Definition at line 407 of file latexdocvisitor.cpp.

References DocAnchor::anchor(), Config_getBool, endl(), DocAnchor::file(), m_hide, m_t, and stripPath().

{
if (m_hide) return;
m_t << "\\label{" << stripPath(anc->file()) << "_" << anc->anchor() << "}%" << endl;
if (!anc->file().isEmpty() && Config_getBool(PDF_HYPERLINKS))
{
m_t << "\\hypertarget{" << stripPath(anc->file()) << "_" << anc->anchor()
<< "}{}%" << endl;
}
}
void LatexDocVisitor::visit ( DocInclude inc)
virtual

Implements DocVisitor.

Definition at line 418 of file latexdocvisitor.cpp.

References DocInclude::blockId(), DocInclude::context(), DocInclude::DontInclude, endl(), err(), DocInclude::exampleFile(), DocInclude::extension(), extractBlock(), DocInclude::file(), getLanguageFromFileName(), ParserManager::getParser(), DocInclude::HtmlInclude, DocInclude::Include, DocInclude::IncludeDoc, DocInclude::IncWithLines, DocInclude::isExample(), DocInclude::LatexInclude, m_ci, m_hide, m_t, parseCode(), Doxygen::parserManager, DocInclude::Snippet, DocInclude::SnippetDoc, DocInclude::text(), DocInclude::type(), and DocInclude::VerbInclude.

{
if (m_hide) return;
switch(inc->type())
{
{
m_t << "\n\\begin{DoxyCodeInclude}\n";
QFileInfo cfi( inc->file() );
FileDef fd( cfi.dirPath().utf8(), cfi.fileName().utf8() );
inc->text(),
langExt,
inc->isExample(),
inc->exampleFile(),
&fd, // fileDef,
-1, // start line
-1, // end line
FALSE, // inline fragment
0, // memberDef
TRUE // show line numbers
);
m_t << "\\end{DoxyCodeInclude}" << endl;
}
break;
m_t << "\n\\begin{DoxyCodeInclude}\n";
inc->text(),langExt,inc->isExample(),
inc->exampleFile(),
0, // fileDef
-1, // startLine
-1, // endLine
TRUE, // inlineFragment
0, // memberDef
FALSE
);
m_t << "\\end{DoxyCodeInclude}\n";
break;
break;
break;
m_t << inc->text();
break;
m_t << "\n\\begin{DoxyVerbInclude}\n";
m_t << inc->text();
m_t << "\\end{DoxyVerbInclude}\n";
break;
{
m_t << "\n\\begin{DoxyCodeInclude}\n";
inc->context(),
extractBlock(inc->text(),inc->blockId()),
langExt,
inc->isExample(),
inc->exampleFile()
);
m_t << "\\end{DoxyCodeInclude}" << endl;
}
break;
err("Internal inconsistency: found switch SnippetDoc / IncludeDoc in file: %s"
"Please create a bug report\n",__FILE__);
break;
}
}
void LatexDocVisitor::visit ( DocIncOperator op)
virtual

Implements DocVisitor.

Definition at line 494 of file latexdocvisitor.cpp.

References DocIncOperator::context(), endl(), DocIncOperator::exampleFile(), getLanguageFromFileName(), ParserManager::getParser(), DocIncOperator::isExample(), DocIncOperator::isFirst(), DocIncOperator::isLast(), m_ci, m_hide, m_langExt, m_t, ParserInterface::parseCode(), Doxygen::parserManager, popEnabled(), pushEnabled(), DocIncOperator::Skip, DocIncOperator::text(), and DocIncOperator::type().

{
//printf("DocIncOperator: type=%d first=%d, last=%d text=`%s'\n",
// op->type(),op->isFirst(),op->isLast(),op->text().data());
if (op->isFirst())
{
if (!m_hide) m_t << "\n\\begin{DoxyCodeInclude}\n";
m_hide = TRUE;
}
{
if (!m_hide)
{
->parseCode(m_ci,op->context(),op->text(),langExt,
op->isExample(),op->exampleFile());
}
m_hide=TRUE;
}
if (op->isLast())
{
if (!m_hide) m_t << "\n\\end{DoxyCodeInclude}\n";
}
else
{
if (!m_hide) m_t << endl;
}
}
void LatexDocVisitor::visit ( DocFormula f)
virtual

Implements DocVisitor.

Definition at line 528 of file latexdocvisitor.cpp.

References m_hide, m_t, and DocFormula::text().

{
if (m_hide) return;
m_t << f->text();
}
void LatexDocVisitor::visit ( DocIndexEntry i)
virtual

Implements DocVisitor.

Definition at line 534 of file latexdocvisitor.cpp.

References DocIndexEntry::entry(), escapeLabelName(), escapeMakeIndexChars(), m_hide, and m_t.

{
if (m_hide) return;
m_t << "\\index{" << escapeLabelName(i->entry()) << "@{";
m_t << "}}";
}
void LatexDocVisitor::visit ( DocSimpleSectSep )
virtual

Implements DocVisitor.

Definition at line 542 of file latexdocvisitor.cpp.

{
}
void LatexDocVisitor::visit ( DocCite cite)
virtual

Implements DocVisitor.

Definition at line 546 of file latexdocvisitor.cpp.

References DocCite::anchor(), CiteConsts::anchorPrefix, DocCite::file(), filter(), m_hide, m_t, and DocCite::text().

{
if (m_hide) return;
if (!cite->file().isEmpty())
{
//startLink(cite->ref(),cite->file(),cite->anchor());
QCString anchor = cite->anchor();
anchor = anchor.mid(CiteConsts::anchorPrefix.length()); // strip prefix
m_t << "\\cite{" << anchor << "}";
}
else
{
m_t << "{\\bfseries [";
filter(cite->text());
m_t << "]}";
}
}
void LatexDocVisitor::visitPost ( DocAutoList l)
virtual

Implements DocVisitor.

Definition at line 581 of file latexdocvisitor.cpp.

References DocAutoList::isEnumList(), m_hide, and m_t.

{
if (m_hide) return;
if (l->isEnumList())
{
m_t << "\n\\end{DoxyEnumerate}";
}
else
{
m_t << "\n\\end{DoxyItemize}";
}
}
void LatexDocVisitor::visitPost ( DocAutoListItem )
virtual

Implements DocVisitor.

Definition at line 600 of file latexdocvisitor.cpp.

{
}
void LatexDocVisitor::visitPost ( DocPara p)
virtual

Implements DocVisitor.

Definition at line 608 of file latexdocvisitor.cpp.

References endl(), DocPara::isLast(), DocNode::kind(), DocNode::Kind_ParamSect, m_hide, m_t, and DocNode::parent().

{
if (m_hide) return;
if (!p->isLast() && // omit <p> for last paragraph
!(p->parent() && // and for parameter sections
)
) m_t << endl << endl;
}
void LatexDocVisitor::visitPost ( DocRoot )
virtual

Implements DocVisitor.

Definition at line 622 of file latexdocvisitor.cpp.

{
}
void LatexDocVisitor::visitPost ( DocSimpleSect s)
virtual

Implements DocVisitor.

Definition at line 711 of file latexdocvisitor.cpp.

References DocSimpleSect::Attention, DocSimpleSect::Author, DocSimpleSect::Authors, DocSimpleSect::Copyright, DocSimpleSect::Date, DocSimpleSect::Invar, m_hide, m_t, DocSimpleSect::Note, DocSimpleSect::Post, DocSimpleSect::Pre, DocSimpleSect::Rcs, DocSimpleSect::Remark, DocSimpleSect::Return, DocSimpleSect::See, DocSimpleSect::Since, DocSimpleSect::type(), DocSimpleSect::User, DocSimpleSect::Version, and DocSimpleSect::Warning.

{
if (m_hide) return;
switch(s->type())
{
m_t << "\n\\end{DoxySeeAlso}\n";
break;
m_t << "\n\\end{DoxyReturn}\n";
break;
m_t << "\n\\end{DoxyAuthor}\n";
break;
m_t << "\n\\end{DoxyAuthor}\n";
break;
m_t << "\n\\end{DoxyVersion}\n";
break;
m_t << "\n\\end{DoxySince}\n";
break;
m_t << "\n\\end{DoxyDate}\n";
break;
m_t << "\n\\end{DoxyNote}\n";
break;
m_t << "\n\\end{DoxyWarning}\n";
break;
m_t << "\n\\end{DoxyPrecond}\n";
break;
m_t << "\n\\end{DoxyPostcond}\n";
break;
m_t << "\n\\end{DoxyCopyright}\n";
break;
m_t << "\n\\end{DoxyInvariant}\n";
break;
m_t << "\n\\end{DoxyRemark}\n";
break;
m_t << "\n\\end{DoxyAttention}\n";
break;
m_t << "\n\\end{DoxyParagraph}\n";
break;
m_t << "\n\\end{DoxyParagraph}\n";
break;
default:
break;
}
}
void LatexDocVisitor::visitPost ( DocTitle )
virtual

Implements DocVisitor.

Definition at line 776 of file latexdocvisitor.cpp.

References m_hide, m_insideItem, and m_t.

{
if (m_hide) return;
m_insideItem=FALSE;
m_t << "}\n";
}
void LatexDocVisitor::visitPost ( DocSimpleList )
virtual

Implements DocVisitor.

Definition at line 789 of file latexdocvisitor.cpp.

References endl(), m_hide, and m_t.

{
if (m_hide) return;
m_t << "\\end{DoxyItemize}" << endl;
}
void LatexDocVisitor::visitPost ( DocSimpleListItem )
virtual

Implements DocVisitor.

Definition at line 801 of file latexdocvisitor.cpp.

{
}
void LatexDocVisitor::visitPost ( DocSection )
virtual

Implements DocVisitor.

Definition at line 817 of file latexdocvisitor.cpp.

{
}
void LatexDocVisitor::visitPost ( DocHtmlList s)
virtual

Implements DocVisitor.

Definition at line 830 of file latexdocvisitor.cpp.

References m_hide, m_t, DocHtmlList::Ordered, and DocHtmlList::type().

{
if (m_hide) return;
m_t << "\n\\end{DoxyEnumerate}";
else
m_t << "\n\\end{DoxyItemize}";
}
void LatexDocVisitor::visitPost ( DocHtmlListItem )
virtual

Implements DocVisitor.

Definition at line 845 of file latexdocvisitor.cpp.

{
}
void LatexDocVisitor::visitPost ( DocHtmlDescList dl)
virtual

Implements DocVisitor.

Definition at line 875 of file latexdocvisitor.cpp.

References DocHtmlDescList::attribs(), HtmlAttribList::find(), m_hide, and m_t.

{
if (m_hide) return;
QCString val = dl->attribs().find("class");
if (val=="reflist")
{
m_t << "\n\\end{DoxyRefList}";
}
else
{
m_t << "\n\\end{DoxyDescription}";
}
}
void LatexDocVisitor::visitPost ( DocHtmlDescTitle )
virtual

Implements DocVisitor.

Definition at line 896 of file latexdocvisitor.cpp.

References m_hide, m_insideItem, and m_t.

{
if (m_hide) return;
m_insideItem=FALSE;
m_t << "]";
}
void LatexDocVisitor::visitPost ( DocHtmlDescData )
virtual

Implements DocVisitor.

Definition at line 907 of file latexdocvisitor.cpp.

{
}
void LatexDocVisitor::visitPost ( DocHtmlTable t)
virtual

Implements DocVisitor.

Definition at line 991 of file latexdocvisitor.cpp.

References m_hide, m_t, DocNode::parent(), popTableState(), and writeEndTableCommand().

{
if (m_hide) return;
}
void LatexDocVisitor::visitPost ( DocHtmlCaption c)
virtual

Implements DocVisitor.

Definition at line 1004 of file latexdocvisitor.cpp.

References m_hide, and m_hideCaption.

void LatexDocVisitor::visitPost ( DocHtmlRow row)
virtual

Implements DocVisitor.

Definition at line 1015 of file latexdocvisitor.cpp.

References LatexDocVisitor::ActiveRowSpan::cell, LatexDocVisitor::ActiveRowSpan::colSpan, LatexDocVisitor::ActiveRowSpan::column, currentColumn(), endl(), firstRow(), DocHtmlRow::isHeading(), m_hide, m_t, numCols(), DocHtmlCell::rowIndex(), DocHtmlRow::rowIndex(), LatexDocVisitor::ActiveRowSpan::rowSpan, rowSpans(), and DocHtmlRow::visibleCells().

{
if (m_hide) return;
int c=currentColumn();
while (c<=numCols()) // end of row while inside a row span?
{
uint i;
for (i=0;i<rowSpans().count();i++)
{
ActiveRowSpan *span = rowSpans().at(i);
//printf(" found row span: column=%d rs=%d cs=%d rowIdx=%d cell->rowIdx=%d i=%d c=%d\n",
// span->column, span->rowSpan,span->colSpan,row->rowIndex(),span->cell->rowIndex(),i,c);
if (span->rowSpan>0 && span->column==c && // we are at a cell in a row span
row->rowIndex()>span->cell->rowIndex() // but not the row that started the span
)
{
m_t << "&";
if (span->colSpan>1) // row span is also part of a column span
{
m_t << "\\multicolumn{" << span->colSpan << "}{";
m_t << "p{(\\linewidth-\\tabcolsep*"
<< numCols() << "-\\arrayrulewidth*"
<< row->visibleCells() << ")*"
<< span->colSpan <<"/"<< numCols() << "}|}{}";
}
else // solitary row span
{
m_t << "\\multicolumn{1}{c|}{}";
}
}
}
c++;
}
m_t << "\\\\";
int col = 1;
uint i;
for (i=0;i<rowSpans().count();i++)
{
ActiveRowSpan *span = rowSpans().at(i);
if (span->rowSpan>0) span->rowSpan--;
if (span->rowSpan<=0)
{
// inactive span
}
else if (span->column>col)
{
m_t << "\\cline{" << col << "-" << (span->column-1) << "}";
col = span->column+span->colSpan;
}
else
{
col = span->column+span->colSpan;
}
}
if (col <= numCols())
{
m_t << "\\cline{" << col << "-" << numCols() << "}";
}
m_t << "\n";
if (row->isHeading() && row->rowIndex()==1)
{
if (firstRow())
{
m_t << "\\endfirsthead" << endl;
m_t << "\\hline" << endl;
m_t << "\\endfoot" << endl;
m_t << "\\hline" << endl;
}
else
{
m_t << "\\endhead" << endl;
}
}
}
void LatexDocVisitor::visitPost ( DocHtmlCell c)
virtual

Implements DocVisitor.

Definition at line 1180 of file latexdocvisitor.cpp.

References inColSpan(), inRowSpan(), DocHtmlCell::isHeading(), DocHtmlCell::isLast(), m_hide, m_t, setInColSpan(), and setInRowSpan().

{
if (m_hide) return;
if (c->isHeading())
{
m_t << "}";
}
if (inRowSpan())
{
setInRowSpan(FALSE);
m_t << "}";
}
if (inColSpan())
{
setInColSpan(FALSE);
m_t << "}";
}
if (!c->isLast()) m_t << "&";
}
void LatexDocVisitor::visitPost ( DocInternal )
virtual

Implements DocVisitor.

Definition at line 1208 of file latexdocvisitor.cpp.

References m_hide.

{
if (m_hide) return;
//m_t << "\\end{DoxyInternal}" << endl;
}
void LatexDocVisitor::visitPost ( DocHRef )
virtual

Implements DocVisitor.

Definition at line 1226 of file latexdocvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "}";
}
void LatexDocVisitor::visitPost ( DocHtmlHeader )
virtual

Implements DocVisitor.

Definition at line 1238 of file latexdocvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "}";
}
void LatexDocVisitor::visitPost ( DocImage img)
virtual

Implements DocVisitor.

Definition at line 1263 of file latexdocvisitor.cpp.

References DocImage::hasCaption(), DocImage::Latex, m_hide, m_t, popEnabled(), DocImage::type(), and visitPostEnd().

{
if (img->type()==DocImage::Latex)
{
if (m_hide) return;
}
else // other format
{
}
}
void LatexDocVisitor::visitPost ( DocDotFile df)
virtual

Implements DocVisitor.

Definition at line 1282 of file latexdocvisitor.cpp.

References endDotFile(), DocDotFile::hasCaption(), and m_hide.

{
if (m_hide) return;
}
void LatexDocVisitor::visitPost ( DocMscFile df)
virtual

Implements DocVisitor.

Definition at line 1293 of file latexdocvisitor.cpp.

References endMscFile(), DocMscFile::hasCaption(), and m_hide.

{
if (m_hide) return;
}
void LatexDocVisitor::visitPost ( DocDiaFile df)
virtual

Implements DocVisitor.

Definition at line 1305 of file latexdocvisitor.cpp.

References endDiaFile(), DocDiaFile::hasCaption(), and m_hide.

{
if (m_hide) return;
}
void LatexDocVisitor::visitPost ( DocLink lnk)
virtual

Implements DocVisitor.

Definition at line 1316 of file latexdocvisitor.cpp.

References DocLink::anchor(), endLink(), DocLink::file(), m_hide, and DocLink::ref().

{
if (m_hide) return;
endLink(lnk->ref(),lnk->file(),lnk->anchor());
}
void LatexDocVisitor::visitPost ( DocRef ref)
virtual

Implements DocVisitor.

Definition at line 1338 of file latexdocvisitor.cpp.

References DocRef::anchor(), endLink(), DocRef::file(), DocRef::isSubPage(), m_hide, and DocRef::ref().

{
if (m_hide) return;
if (ref->isSubPage())
{
endLink(ref->ref(),0,ref->anchor());
}
else
{
if (!ref->file().isEmpty()) endLink(ref->ref(),ref->file(),ref->anchor());
}
}
void LatexDocVisitor::visitPost ( DocSecRefItem ref)
virtual

Implements DocVisitor.

Definition at line 1362 of file latexdocvisitor.cpp.

References DocSecRefItem::anchor(), Config_getBool, endl(), DocSecRefItem::file(), m_hide, and m_t.

{
if (m_hide) return;
static bool pdfHyperlinks = Config_getBool(PDF_HYPERLINKS);
if (pdfHyperlinks)
{
m_t << "}";
}
m_t << "}{\\ref{" << ref->file() << "_" << ref->anchor() << "}}{}" << endl;
}
void LatexDocVisitor::visitPost ( DocSecRefList )
virtual

Implements DocVisitor.

Definition at line 1381 of file latexdocvisitor.cpp.

References endl(), m_hide, and m_t.

{
if (m_hide) return;
m_t << "\\end{DoxyCompactList}" << endl;
m_t << "\\end{multicols}" << endl;
m_t << "\\normalsize" << endl;
}
void LatexDocVisitor::visitPost ( DocParamSect s)
virtual

Implements DocVisitor.

Definition at line 1424 of file latexdocvisitor.cpp.

References DocParamSect::Exception, m_hide, m_t, DocParamSect::Param, DocParamSect::RetVal, DocParamSect::TemplateParam, and DocParamSect::type().

{
if (m_hide) return;
switch(s->type())
{
m_t << "\\end{DoxyParams}\n";
break;
m_t << "\\end{DoxyRetVals}\n";
break;
m_t << "\\end{DoxyExceptions}\n";
break;
m_t << "\\end{DoxyTemplParams}\n";
break;
default:
ASSERT(0);
}
}
void LatexDocVisitor::visitPost ( DocParamList pl)
virtual

Implements DocVisitor.

Definition at line 1535 of file latexdocvisitor.cpp.

References endl(), DocParamSect::Exception, DocNode::kind(), DocNode::Kind_ParamSect, m_hide, m_t, DocParamSect::Param, DocNode::parent(), DocParamSect::RetVal, DocParamSect::TemplateParam, and DocParamSect::Unknown.

{
if (m_hide) return;
if (pl->parent() && pl->parent()->kind()==DocNode::Kind_ParamSect)
{
parentType = ((DocParamSect*)pl->parent())->type();
}
bool useTable = parentType==DocParamSect::Param ||
parentType==DocParamSect::RetVal ||
parentType==DocParamSect::Exception ||
if (useTable)
{
m_t << "\\\\" << endl
<< "\\hline" << endl;
}
}
void LatexDocVisitor::visitPost ( DocXRefItem x)
virtual

Implements DocVisitor.

Definition at line 1577 of file latexdocvisitor.cpp.

References endl(), m_hide, m_t, and DocXRefItem::title().

{
if (m_hide) return;
if (x->title().isEmpty()) return;
m_t << "\\end{DoxyRefDesc}" << endl;
}
void LatexDocVisitor::visitPost ( DocInternalRef ref)
virtual

Implements DocVisitor.

Definition at line 1590 of file latexdocvisitor.cpp.

References DocInternalRef::anchor(), endLink(), DocInternalRef::file(), and m_hide.

{
if (m_hide) return;
endLink(0,ref->file(),ref->anchor());
}
void LatexDocVisitor::visitPost ( DocCopy )
virtual

Implements DocVisitor.

Definition at line 1600 of file latexdocvisitor.cpp.

{
}
void LatexDocVisitor::visitPost ( DocText )
virtual

Implements DocVisitor.

Definition at line 1608 of file latexdocvisitor.cpp.

{
}
void LatexDocVisitor::visitPost ( DocHtmlBlockQuote )
virtual

Implements DocVisitor.

Definition at line 1618 of file latexdocvisitor.cpp.

References endl(), m_hide, and m_t.

{
if (m_hide) return;
m_t << "\\end{quote}" << endl;
}
void LatexDocVisitor::visitPost ( DocVhdlFlow )
virtual

Implements DocVisitor.

Definition at line 1629 of file latexdocvisitor.cpp.

References m_hide.

{
if (m_hide) return;
}
void LatexDocVisitor::visitPost ( DocParBlock )
virtual

Implements DocVisitor.

Definition at line 1639 of file latexdocvisitor.cpp.

References m_hide.

{
if (m_hide) return;
}
void LatexDocVisitor::visitPre ( DocAutoList l)
virtual

Implements DocVisitor.

Definition at line 568 of file latexdocvisitor.cpp.

References DocAutoList::isEnumList(), m_hide, and m_t.

{
if (m_hide) return;
if (l->isEnumList())
{
m_t << "\n\\begin{DoxyEnumerate}";
}
else
{
m_t << "\n\\begin{DoxyItemize}";
}
}
void LatexDocVisitor::visitPre ( DocAutoListItem )
virtual

Implements DocVisitor.

Definition at line 594 of file latexdocvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "\n\\item ";
}
void LatexDocVisitor::visitPre ( DocPara )
virtual

Implements DocVisitor.

Definition at line 604 of file latexdocvisitor.cpp.

{
}
void LatexDocVisitor::visitPre ( DocRoot )
virtual

Implements DocVisitor.

Definition at line 618 of file latexdocvisitor.cpp.

{
}
void LatexDocVisitor::visitPre ( DocSimpleSect s)
virtual

Implements DocVisitor.

Definition at line 626 of file latexdocvisitor.cpp.

References DocSimpleSect::Attention, DocSimpleSect::Author, DocSimpleSect::Authors, DocSimpleSect::Copyright, DocSimpleSect::Date, filter(), DocSimpleSect::Invar, m_hide, m_insideItem, m_t, DocSimpleSect::Note, DocSimpleSect::Post, DocSimpleSect::Pre, DocSimpleSect::Rcs, DocSimpleSect::Remark, DocSimpleSect::Return, DocSimpleSect::See, DocSimpleSect::Since, theTranslator, Translator::trAttention(), Translator::trAuthor(), Translator::trCopyright(), Translator::trDate(), Translator::trInvariant(), Translator::trNote(), Translator::trPostcondition(), Translator::trPrecondition(), Translator::trRemarks(), Translator::trReturns(), Translator::trSeeAlso(), Translator::trSince(), Translator::trVersion(), Translator::trWarning(), DocSimpleSect::type(), DocSimpleSect::Unknown, DocSimpleSect::User, DocSimpleSect::Version, and DocSimpleSect::Warning.

{
if (m_hide) return;
switch(s->type())
{
m_t << "\\begin{DoxySeeAlso}{";
break;
m_t << "\\begin{DoxyReturn}{";
break;
m_t << "\\begin{DoxyAuthor}{";
break;
m_t << "\\begin{DoxyAuthor}{";
filter(theTranslator->trAuthor(TRUE,FALSE));
break;
m_t << "\\begin{DoxyVersion}{";
break;
m_t << "\\begin{DoxySince}{";
break;
m_t << "\\begin{DoxyDate}{";
break;
m_t << "\\begin{DoxyNote}{";
break;
m_t << "\\begin{DoxyWarning}{";
break;
m_t << "\\begin{DoxyPrecond}{";
break;
m_t << "\\begin{DoxyPostcond}{";
break;
m_t << "\\begin{DoxyCopyright}{";
break;
m_t << "\\begin{DoxyInvariant}{";
break;
m_t << "\\begin{DoxyRemark}{";
break;
m_t << "\\begin{DoxyAttention}{";
break;
m_t << "\\begin{DoxyParagraph}{";
break;
m_t << "\\begin{DoxyParagraph}{";
break;
}
// special case 1: user defined title
{
m_t << "}\n";
}
else
{
}
}
void LatexDocVisitor::visitPre ( DocTitle )
virtual

Implements DocVisitor.

Definition at line 772 of file latexdocvisitor.cpp.

{
}
void LatexDocVisitor::visitPre ( DocSimpleList )
virtual

Implements DocVisitor.

Definition at line 783 of file latexdocvisitor.cpp.

References endl(), m_hide, and m_t.

{
if (m_hide) return;
m_t << "\\begin{DoxyItemize}" << endl;
}
void LatexDocVisitor::visitPre ( DocSimpleListItem )
virtual

Implements DocVisitor.

Definition at line 795 of file latexdocvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "\\item ";
}
void LatexDocVisitor::visitPre ( DocSection s)
virtual

Implements DocVisitor.

Definition at line 805 of file latexdocvisitor.cpp.

References DocSection::anchor(), Config_getBool, convertCharEntitiesToUTF8(), endl(), DocSection::file(), filter(), getSectionName(), DocSection::level(), m_hide, m_t, stripPath(), and DocSection::title().

{
if (m_hide) return;
if (Config_getBool(PDF_HYPERLINKS))
{
m_t << "\\hypertarget{" << stripPath(s->file()) << "_" << s->anchor() << "}{}";
}
m_t << "\\" << getSectionName(s->level()) << "{";
m_t << "}\\label{" << stripPath(s->file()) << "_" << s->anchor() << "}" << endl;
}
void LatexDocVisitor::visitPre ( DocHtmlList s)
virtual

Implements DocVisitor.

Definition at line 821 of file latexdocvisitor.cpp.

References m_hide, m_t, DocHtmlList::Ordered, and DocHtmlList::type().

{
if (m_hide) return;
m_t << "\n\\begin{DoxyEnumerate}";
else
m_t << "\n\\begin{DoxyItemize}";
}
void LatexDocVisitor::visitPre ( DocHtmlListItem )
virtual

Implements DocVisitor.

Definition at line 839 of file latexdocvisitor.cpp.

References m_hide, and m_t.

{
if (m_hide) return;
m_t << "\n\\item ";
}
void LatexDocVisitor::visitPre ( DocHtmlDescList dl)
virtual

Implements DocVisitor.

Definition at line 861 of file latexdocvisitor.cpp.

References DocHtmlDescList::attribs(), HtmlAttribList::find(), m_hide, and m_t.

{
if (m_hide) return;
QCString val = dl->attribs().find("class");
if (val=="reflist")
{
m_t << "\n\\begin{DoxyRefList}";
}
else
{
m_t << "\n\\begin{DoxyDescription}";
}
}
void LatexDocVisitor::visitPre ( DocHtmlDescTitle )
virtual

Implements DocVisitor.

Definition at line 889 of file latexdocvisitor.cpp.

References m_hide, m_insideItem, and m_t.

{
if (m_hide) return;
m_t << "\n\\item[";
}
void LatexDocVisitor::visitPre ( DocHtmlDescData )
virtual

Implements DocVisitor.

Definition at line 903 of file latexdocvisitor.cpp.

{
}
void LatexDocVisitor::visitPre ( DocHtmlTable t)
virtual

Implements DocVisitor.

Definition at line 948 of file latexdocvisitor.cpp.

References DocHtmlRow::accept(), DocHtmlCaption::anchor(), DocHtmlTable::caption(), CompAccept< T >::children(), Config_getBool, endl(), DocHtmlCaption::file(), firstRow(), DocHtmlTable::firstRow(), DocHtmlTable::hasCaption(), DocHtmlRow::isHeading(), m_hide, m_t, DocHtmlTable::numColumns(), DocNode::parent(), pushTableState(), setFirstRow(), setNumCols(), stripPath(), visitCaption(), and writeStartTableCommand().

{
if (m_hide) return;
if (t->hasCaption())
{
static bool pdfHyperLinks = Config_getBool(PDF_HYPERLINKS);
if (!c->file().isEmpty() && pdfHyperLinks)
{
m_t << "\\hypertarget{" << stripPath(c->file()) << "_" << c->anchor()
<< "}{}";
}
m_t << endl;
}
if (t->hasCaption())
{
m_t << "\\caption{";
visitCaption(this, c->children());
m_t << "}";
m_t << "\\label{" << stripPath(c->file()) << "_" << c->anchor() << "}";
m_t << "\\\\\n";
}
m_t << "\\hline\n";
// check if first row is a heading and then render the row already here
// and end it with \endfirsthead (triggered via m_firstRow==TRUE)
// then repeat the row as normal and end it with \endhead (m_firstRow==FALSE)
if (firstRow && firstRow->isHeading())
{
setFirstRow(TRUE);
firstRow->accept(this);
setFirstRow(FALSE);
}
}
void LatexDocVisitor::visitPre ( DocHtmlCaption c)
virtual

Implements DocVisitor.

Definition at line 998 of file latexdocvisitor.cpp.

References m_hide, and m_hideCaption.

{
m_hide = TRUE;
}
void LatexDocVisitor::visitPre ( DocHtmlRow r)
virtual

Implements DocVisitor.

Definition at line 1009 of file latexdocvisitor.cpp.

References DocHtmlRow::isHeading(), m_t, and setCurrentColumn().

{
if (r->isHeading()) m_t << "\\rowcolor{\\tableheadbgcolor}";
}
void LatexDocVisitor::visitPre ( DocHtmlCell c)
virtual

Implements DocVisitor.

Definition at line 1096 of file latexdocvisitor.cpp.

References addRowSpan(), DocHtmlCell::alignment(), DocHtmlCell::Center, LatexDocVisitor::ActiveRowSpan::colSpan, DocHtmlCell::colSpan(), LatexDocVisitor::ActiveRowSpan::column, DocHtmlCell::columnIndex(), currentColumn(), DocHtmlCell::isHeading(), DocNode::kind(), DocNode::Kind_HtmlRow, m_hide, m_t, numCols(), DocNode::parent(), DocHtmlCell::Right, LatexDocVisitor::ActiveRowSpan::rowSpan, DocHtmlCell::rowSpan(), rowSpans(), setCurrentColumn(), setInColSpan(), setInRowSpan(), and DocHtmlRow::visibleCells().

{
if (m_hide) return;
DocHtmlRow *row = 0;
if (c->parent() && c->parent()->kind()==DocNode::Kind_HtmlRow)
{
row = (DocHtmlRow*)c->parent();
}
//Skip columns that span from above.
uint i;
for (i=0;i<rowSpans().count();i++)
{
ActiveRowSpan *span = rowSpans().at(i);
if (span->rowSpan>0 && span->column==currentColumn())
{
if (row && span->colSpan>1)
{
m_t << "\\multicolumn{" << span->colSpan << "}{";
if (currentColumn() /*c->columnIndex()*/==1) // add extra | for first column
{
m_t << "|";
}
m_t << "p{(\\linewidth-\\tabcolsep*"
<< numCols() << "-\\arrayrulewidth*"
<< row->visibleCells() << ")*"
<< span->colSpan <<"/"<< numCols() << "}|}{}";
setCurrentColumn(currentColumn()+span->colSpan);
}
else
{
}
m_t << "&";
}
}
int cs = c->colSpan();
if (cs>1 && row)
{
setInColSpan(TRUE);
m_t << "\\multicolumn{" << cs << "}{";
if (c->columnIndex()==1) // add extra | for first column
{
m_t << "|";
}
m_t << "p{(\\linewidth-\\tabcolsep*"
<< numCols() << "-\\arrayrulewidth*"
<< row->visibleCells() << ")*"
<< cs <<"/"<< numCols() << "}|}{";
if (c->isHeading()) m_t << "\\cellcolor{\\tableheadbgcolor}";
}
int rs = c->rowSpan();
if (rs>0)
{
setInRowSpan(TRUE);
//printf("adding row span: cell={r=%d c=%d rs=%d cs=%d} curCol=%d\n",
// c->rowIndex(),c->columnIndex(),c->rowSpan(),c->colSpan(),
// currentColumn());
m_t << "\\multirow{" << rs << "}{\\linewidth}{";
}
int a = c->alignment();
{
m_t << "\\PBS\\centering ";
}
else if (a==DocHtmlCell::Right)
{
m_t << "\\PBS\\raggedleft ";
}
if (c->isHeading())
{
m_t << "{\\bf ";
}
if (cs>1)
{
}
}
void LatexDocVisitor::visitPre ( DocInternal )
virtual

Implements DocVisitor.

Definition at line 1200 of file latexdocvisitor.cpp.

References m_hide.

{
if (m_hide) return;
//m_t << "\\begin{DoxyInternal}{";
//filter(theTranslator->trForInternalUseOnly());
//m_t << "}\n";
}
void LatexDocVisitor::visitPre ( DocHRef href)
virtual

Implements DocVisitor.

Definition at line 1214 of file latexdocvisitor.cpp.

References Config_getBool, m_hide, m_t, and DocHRef::url().

{
if (m_hide) return;
if (Config_getBool(PDF_HYPERLINKS))
{
m_t << "\\href{";
m_t << href->url();
m_t << "}";
}
m_t << "{\\tt ";
}
void LatexDocVisitor::visitPre ( DocHtmlHeader header)
virtual

Implements DocVisitor.

Definition at line 1232 of file latexdocvisitor.cpp.

References getSectionName(), DocHtmlHeader::level(), m_hide, and m_t.

{
if (m_hide) return;
m_t << "\\" << getSectionName(header->level()) << "*{";
}
void LatexDocVisitor::visitPre ( DocImage img)
virtual

Implements DocVisitor.

Definition at line 1243 of file latexdocvisitor.cpp.

References DocImage::hasCaption(), DocImage::height(), DocImage::Latex, m_hide, m_t, DocImage::name(), pushEnabled(), DocImage::type(), visitPreStart(), and DocImage::width().

{
if (img->type()==DocImage::Latex)
{
if (m_hide) return;
QCString gfxName = img->name();
if (gfxName.right(4)==".eps" || gfxName.right(4)==".pdf")
{
gfxName=gfxName.left(gfxName.length()-4);
}
visitPreStart(m_t,img->hasCaption(), gfxName, img->width(), img->height());
}
else // other format -> skip
{
m_hide=TRUE;
}
}
void LatexDocVisitor::visitPre ( DocDotFile df)
virtual

Implements DocVisitor.

Definition at line 1276 of file latexdocvisitor.cpp.

References DocDotFile::file(), DocDotFile::hasCaption(), DocDotFile::height(), m_hide, startDotFile(), and DocDotFile::width().

{
if (m_hide) return;
startDotFile(df->file(),df->width(),df->height(),df->hasCaption());
}
void LatexDocVisitor::visitPre ( DocMscFile df)
virtual

Implements DocVisitor.

Definition at line 1287 of file latexdocvisitor.cpp.

References DocMscFile::file(), DocMscFile::hasCaption(), DocMscFile::height(), m_hide, startMscFile(), and DocMscFile::width().

{
if (m_hide) return;
startMscFile(df->file(),df->width(),df->height(),df->hasCaption());
}
void LatexDocVisitor::visitPre ( DocDiaFile df)
virtual

Implements DocVisitor.

Definition at line 1299 of file latexdocvisitor.cpp.

References DocDiaFile::file(), DocDiaFile::hasCaption(), DocDiaFile::height(), m_hide, startDiaFile(), and DocDiaFile::width().

{
if (m_hide) return;
startDiaFile(df->file(),df->width(),df->height(),df->hasCaption());
}
void LatexDocVisitor::visitPre ( DocLink lnk)
virtual

Implements DocVisitor.

Definition at line 1310 of file latexdocvisitor.cpp.

References DocLink::anchor(), DocLink::file(), m_hide, DocLink::ref(), and startLink().

{
if (m_hide) return;
startLink(lnk->ref(),lnk->file(),lnk->anchor());
}
void LatexDocVisitor::visitPre ( DocRef ref)
virtual

Implements DocVisitor.

Definition at line 1322 of file latexdocvisitor.cpp.

References DocRef::anchor(), DocRef::file(), filter(), DocRef::hasLinkText(), DocRef::isSubPage(), m_hide, DocRef::ref(), DocRef::refToTable(), startLink(), and DocRef::targetTitle().

{
if (m_hide) return;
// when ref->isSubPage()==TRUE we use ref->file() for HTML and
// ref->anchor() for LaTeX/RTF
if (ref->isSubPage())
{
startLink(ref->ref(),0,ref->anchor());
}
else
{
if (!ref->file().isEmpty()) startLink(ref->ref(),ref->file(),ref->anchor(),ref->refToTable());
}
if (!ref->hasLinkText()) filter(ref->targetTitle());
}
void LatexDocVisitor::visitPre ( DocSecRefItem ref)
virtual

Implements DocVisitor.

Definition at line 1351 of file latexdocvisitor.cpp.

References DocSecRefItem::anchor(), Config_getBool, DocSecRefItem::file(), m_hide, and m_t.

{
if (m_hide) return;
m_t << "\\item \\contentsline{section}{";
static bool pdfHyperlinks = Config_getBool(PDF_HYPERLINKS);
if (pdfHyperlinks)
{
m_t << "\\hyperlink{" << ref->file() << "_" << ref->anchor() << "}{" ;
}
}
void LatexDocVisitor::visitPre ( DocSecRefList )
virtual

Implements DocVisitor.

Definition at line 1373 of file latexdocvisitor.cpp.

References endl(), m_hide, and m_t.

{
if (m_hide) return;
m_t << "\\footnotesize" << endl;
m_t << "\\begin{multicols}{2}" << endl;
m_t << "\\begin{DoxyCompactList}" << endl;
}
void LatexDocVisitor::visitPre ( DocParamSect s)
virtual

Implements DocVisitor.

Definition at line 1389 of file latexdocvisitor.cpp.

References DocParamSect::Exception, filter(), DocParamSect::hasInOutSpecifier(), DocParamSect::hasTypeSpecifier(), m_hide, m_t, DocParamSect::Param, DocParamSect::RetVal, DocParamSect::TemplateParam, theTranslator, Translator::trExceptions(), Translator::trParameters(), Translator::trReturnValues(), and DocParamSect::type().

{
if (m_hide) return;
bool hasInOutSpecs = s->hasInOutSpecifier();
bool hasTypeSpecs = s->hasTypeSpecifier();
switch(s->type())
{
m_t << "\n\\begin{DoxyParams}";
if (hasInOutSpecs && hasTypeSpecs) m_t << "[2]"; // 2 extra cols
else if (hasInOutSpecs || hasTypeSpecs) m_t << "[1]"; // 1 extra col
m_t << "{";
break;
m_t << "\n\\begin{DoxyRetVals}{";
break;
m_t << "\n\\begin{DoxyExceptions}{";
break;
/* TODO: add this
filter(theTranslator->trTemplateParam()); break;
*/
m_t << "\n\\begin{DoxyTemplParams}{";
filter("Template Parameters");
break;
default:
ASSERT(0);
}
m_t << "}\n";
}
void LatexDocVisitor::visitPre ( DocParamList pl)
virtual

Implements DocVisitor.

Definition at line 1446 of file latexdocvisitor.cpp.

References DocParamList::direction(), DocParamSect::Exception, DocParamSect::hasInOutSpecifier(), DocParamSect::hasTypeSpecifier(), DocParamSect::In, DocParamSect::InOut, DocNode::kind(), DocNode::Kind_LinkedWord, DocNode::Kind_ParamSect, DocNode::Kind_Word, m_hide, m_insideItem, m_t, DocParamSect::Out, DocParamSect::Param, DocParamList::parameters(), DocParamList::paramTypes(), DocNode::parent(), DocParamSect::RetVal, DocParamSect::TemplateParam, DocParamSect::Unknown, DocParamSect::Unspecified, and visit().

{
if (m_hide) return;
DocParamSect *sect = 0;
if (pl->parent() && pl->parent()->kind()==DocNode::Kind_ParamSect)
{
parentType = ((DocParamSect*)pl->parent())->type();
sect=(DocParamSect*)pl->parent();
}
bool useTable = parentType==DocParamSect::Param ||
parentType==DocParamSect::RetVal ||
parentType==DocParamSect::Exception ||
if (!useTable)
{
m_t << "\\item[";
}
if (sect && sect->hasInOutSpecifier())
{
{
m_t << "\\mbox{\\tt ";
{
m_t << "in";
}
else if (pl->direction()==DocParamSect::Out)
{
m_t << "out";
}
else if (pl->direction()==DocParamSect::InOut)
{
m_t << "in,out";
}
m_t << "} ";
}
if (useTable) m_t << " & ";
}
if (sect && sect->hasTypeSpecifier())
{
QListIterator<DocNode> li(pl->paramTypes());
DocNode *type;
bool first=TRUE;
for (li.toFirst();(type=li.current());++li)
{
if (!first) m_t << " | "; else first=FALSE;
if (type->kind()==DocNode::Kind_Word)
{
visit((DocWord*)type);
}
else if (type->kind()==DocNode::Kind_LinkedWord)
{
visit((DocLinkedWord*)type);
}
}
if (useTable) m_t << " & ";
}
m_t << "{\\em ";
//QStrListIterator li(pl->parameters());
//const char *s;
QListIterator<DocNode> li(pl->parameters());
DocNode *param;
bool first=TRUE;
for (li.toFirst();(param=li.current());++li)
{
if (!first) m_t << ","; else first=FALSE;
if (param->kind()==DocNode::Kind_Word)
{
visit((DocWord*)param);
}
else if (param->kind()==DocNode::Kind_LinkedWord)
{
visit((DocLinkedWord*)param);
}
m_insideItem=FALSE;
}
m_t << "}";
if (useTable)
{
m_t << " & ";
}
else
{
m_t << "]";
}
}
void LatexDocVisitor::visitPre ( DocXRefItem x)
virtual

Implements DocVisitor.

Definition at line 1554 of file latexdocvisitor.cpp.

References DocXRefItem::anchor(), Config_getBool, endl(), DocXRefItem::file(), filter(), m_hide, m_insideItem, m_t, stripPath(), and DocXRefItem::title().

{
if (m_hide) return;
if (x->title().isEmpty()) return;
m_t << "\\begin{DoxyRefDesc}{";
filter(x->title());
m_t << "}" << endl;
bool anonymousEnum = x->file()=="@";
m_t << "\\item[";
if (Config_getBool(PDF_HYPERLINKS) && !anonymousEnum)
{
m_t << "\\hyperlink{" << stripPath(x->file()) << "_" << x->anchor() << "}{";
}
else
{
m_t << "{\\bf ";
}
filter(x->title());
m_insideItem=FALSE;
m_t << "}]";
}
void LatexDocVisitor::visitPre ( DocInternalRef ref)
virtual

Implements DocVisitor.

Definition at line 1584 of file latexdocvisitor.cpp.

References DocInternalRef::anchor(), DocInternalRef::file(), m_hide, and startLink().

{
if (m_hide) return;
startLink(0,ref->file(),ref->anchor());
}
void LatexDocVisitor::visitPre ( DocCopy )
virtual

Implements DocVisitor.

Definition at line 1596 of file latexdocvisitor.cpp.

{
}
void LatexDocVisitor::visitPre ( DocText )
virtual

Implements DocVisitor.

Definition at line 1604 of file latexdocvisitor.cpp.

{
}
void LatexDocVisitor::visitPre ( DocHtmlBlockQuote )
virtual

Implements DocVisitor.

Definition at line 1612 of file latexdocvisitor.cpp.

References endl(), m_hide, and m_t.

{
if (m_hide) return;
m_t << "\\begin{quote}" << endl;
}
void LatexDocVisitor::visitPre ( DocVhdlFlow )
virtual

Implements DocVisitor.

Definition at line 1624 of file latexdocvisitor.cpp.

References m_hide.

{
if (m_hide) return;
}
void LatexDocVisitor::visitPre ( DocParBlock )
virtual

Implements DocVisitor.

Definition at line 1634 of file latexdocvisitor.cpp.

References m_hide.

{
if (m_hide) return;
}
void LatexDocVisitor::writeDiaFile ( const QCString &  fileName,
DocVerbatim s 
)
private

Definition at line 1813 of file latexdocvisitor.cpp.

References DocVerbatim::children(), Config_getString, DIA_EPS, DocVerbatim::hasCaption(), DocVerbatim::height(), m_t, visitCaption(), visitPostEnd(), visitPreStart(), DocVerbatim::width(), and writeDiaGraphFromFile().

{
QCString shortName = baseName;
int i;
if ((i=shortName.findRev('/'))!=-1)
{
shortName=shortName.right(shortName.length()-i-1);
}
QCString outDir = Config_getString(LATEX_OUTPUT);
writeDiaGraphFromFile(baseName+".dia",outDir,shortName,DIA_EPS);
visitPreStart(m_t, s->hasCaption(), shortName, s->width(), s->height());
visitCaption(this, s->children());
}
void LatexDocVisitor::writeMscFile ( const QCString &  fileName,
DocVerbatim s 
)
private

Definition at line 1767 of file latexdocvisitor.cpp.

References DocVerbatim::children(), Config_getString, DocVerbatim::hasCaption(), DocVerbatim::height(), m_t, MSC_EPS, visitCaption(), visitPostEnd(), visitPreStart(), DocVerbatim::width(), and writeMscGraphFromFile().

Referenced by visit().

{
QCString shortName = baseName;
int i;
if ((i=shortName.findRev('/'))!=-1)
{
shortName=shortName.right(shortName.length()-i-1);
}
QCString outDir = Config_getString(LATEX_OUTPUT);
writeMscGraphFromFile(baseName+".msc",outDir,shortName,MSC_EPS);
visitPreStart(m_t, s->hasCaption(), shortName, s->width(),s->height());
visitCaption(this, s->children());
}
void LatexDocVisitor::writePlantUMLFile ( const QCString &  fileName,
DocVerbatim s 
)
private

Definition at line 1828 of file latexdocvisitor.cpp.

References DocVerbatim::children(), Config_getString, generatePlantUMLOutput(), DocVerbatim::hasCaption(), DocVerbatim::height(), m_t, PUML_EPS, visitCaption(), visitPostEnd(), visitPreStart(), and DocVerbatim::width().

Referenced by visit().

{
QCString shortName = baseName;
int i;
if ((i=shortName.findRev('/'))!=-1)
{
shortName=shortName.right(shortName.length()-i-1);
}
QCString outDir = Config_getString(LATEX_OUTPUT);
generatePlantUMLOutput(baseName,outDir,PUML_EPS);
visitPreStart(m_t, s->hasCaption(), shortName, s->width(), s->height());
visitCaption(this, s->children());
}

Member Data Documentation

CodeOutputInterface& LatexDocVisitor::m_ci
private

Definition at line 189 of file latexdocvisitor.h.

Referenced by visit().

RowSpanList LatexDocVisitor::m_emptyRowSpanList
private

Definition at line 211 of file latexdocvisitor.h.

Referenced by rowSpans().

QStack<bool> LatexDocVisitor::m_enabled
private

Definition at line 195 of file latexdocvisitor.h.

Referenced by popEnabled(), and pushEnabled().

bool LatexDocVisitor::m_hide
private
bool LatexDocVisitor::m_hideCaption
private

Definition at line 193 of file latexdocvisitor.h.

Referenced by visitPost(), and visitPre().

bool LatexDocVisitor::m_insideItem
private

Definition at line 191 of file latexdocvisitor.h.

Referenced by filter(), visitPost(), and visitPre().

bool LatexDocVisitor::m_insidePre
private

Definition at line 190 of file latexdocvisitor.h.

Referenced by filter(), and visit().

bool LatexDocVisitor::m_insideTabbing
private

Definition at line 194 of file latexdocvisitor.h.

Referenced by filter().

QCString LatexDocVisitor::m_langExt
private

Definition at line 196 of file latexdocvisitor.h.

Referenced by visit().

FTextStream& LatexDocVisitor::m_t
private
QStack<TableState> LatexDocVisitor::m_tableStateStack
private

The documentation for this class was generated from the following files: