diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2002-10-13 21:02:01 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2002-10-13 21:02:01 (GMT) |
commit | ee5cb6bc3023f2606ee0ff96c83fd10586b658ba (patch) | |
tree | 16de40b02cf412339672d65638606a3004608f7c /src/latexdocvisitor.cpp | |
parent | 4596b79abbfea0953c6cd7c6b294dc1727807960 (diff) | |
download | Doxygen-ee5cb6bc3023f2606ee0ff96c83fd10586b658ba.zip Doxygen-ee5cb6bc3023f2606ee0ff96c83fd10586b658ba.tar.gz Doxygen-ee5cb6bc3023f2606ee0ff96c83fd10586b658ba.tar.bz2 |
Release-1.2.18-20021013
Diffstat (limited to 'src/latexdocvisitor.cpp')
-rw-r--r-- | src/latexdocvisitor.cpp | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp index 57f21ef..a6c2c9c 100644 --- a/src/latexdocvisitor.cpp +++ b/src/latexdocvisitor.cpp @@ -68,7 +68,7 @@ QString LatexDocVisitor::escapeMakeIndexChars(const char *s) LatexDocVisitor::LatexDocVisitor(QTextStream &t,BaseCodeDocInterface &ci) - : m_t(t), m_ci(ci), m_insidePre(FALSE), m_hide(FALSE) + : m_t(t), m_ci(ci), m_insidePre(FALSE), m_insideItem(FALSE), m_hide(FALSE) { } @@ -160,7 +160,9 @@ void LatexDocVisitor::visit(DocURL *u) { m_t << "\\href{" << u->url() << "}"; } - m_t << "{\\tt " << u->url() << "}"; + m_t << "{\\tt "; + filter(u->url()); + m_t << "}"; } void LatexDocVisitor::visit(DocLineBreak *) @@ -398,6 +400,10 @@ void LatexDocVisitor::visitPre(DocSimpleSect *s) { m_t << ":]"; } + else + { + m_insideItem=TRUE; + } } void LatexDocVisitor::visitPost(DocSimpleSect *) @@ -411,6 +417,7 @@ void LatexDocVisitor::visitPre(DocTitle *) void LatexDocVisitor::visitPost(DocTitle *) { + m_insideItem=FALSE; m_t << "]"; } @@ -517,10 +524,12 @@ void LatexDocVisitor::visitPost(DocHtmlDescList *) void LatexDocVisitor::visitPre(DocHtmlDescTitle *) { m_t << "\\item["; + m_insideItem=TRUE; } void LatexDocVisitor::visitPost(DocHtmlDescTitle *) { + m_insideItem=FALSE; m_t << "]"; } @@ -829,7 +838,9 @@ void LatexDocVisitor::visitPre(DocParamList *pl) for (li.toFirst();(s=li.current());++li) { if (!first) m_t << ","; else first=FALSE; - m_t << s; + m_insideItem=TRUE; + filter(s); + m_insideItem=FALSE; } m_t << "}]"; } @@ -850,7 +861,9 @@ void LatexDocVisitor::visitPre(DocXRefItem *x) { m_t << "{\\bf "; } + m_insideItem=TRUE; filter(x->title()); + m_insideItem=FALSE; m_t << "}]"; } @@ -888,7 +901,7 @@ void LatexDocVisitor::visitPost(DocText *) void LatexDocVisitor::filter(const char *str) { - filterLatexString(m_t,str,FALSE,m_insidePre); + filterLatexString(m_t,str,FALSE,m_insidePre,m_insideItem); } void LatexDocVisitor::startLink(const QString &ref,const QString &file,const QString &anchor) |