summaryrefslogtreecommitdiffstats
path: root/src/latexdocvisitor.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2013-05-31 20:12:30 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2013-06-15 08:47:58 (GMT)
commitbd76ec600742936e6373ccbcdfc19966b44cb3ec (patch)
tree54abe9cfcb619e333e71cc2e9571eea244908150 /src/latexdocvisitor.cpp
parent438375840da2b1ea19126f8d4b53f0bc71c62a68 (diff)
downloadDoxygen-bd76ec600742936e6373ccbcdfc19966b44cb3ec.zip
Doxygen-bd76ec600742936e6373ccbcdfc19966b44cb3ec.tar.gz
Doxygen-bd76ec600742936e6373ccbcdfc19966b44cb3ec.tar.bz2
Bug 701314 - URLs are not created on C# classes in some cases
Diffstat (limited to 'src/latexdocvisitor.cpp')
-rw-r--r--src/latexdocvisitor.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp
index 25f8c46..cdcf8b4 100644
--- a/src/latexdocvisitor.cpp
+++ b/src/latexdocvisitor.cpp
@@ -339,13 +339,14 @@ void LatexDocVisitor::visit(DocVerbatim *s)
{
lang = s->language();
}
+ SrcLangExt langExt = getLanguageFromFileName(lang);
switch(s->type())
{
case DocVerbatim::Code:
{
m_t << "\n\\begin{DoxyCode}\n";
Doxygen::parserManager->getParser(lang)
- ->parseCode(m_ci,s->context(),s->text(),
+ ->parseCode(m_ci,s->context(),s->text(),langExt,
s->isExample(),s->exampleFile());
m_t << "\\end{DoxyCode}\n";
}
@@ -435,6 +436,7 @@ void LatexDocVisitor::visit(DocAnchor *anc)
void LatexDocVisitor::visit(DocInclude *inc)
{
if (m_hide) return;
+ SrcLangExt langExt = getLanguageFromFileName(inc->extension());
switch(inc->type())
{
case DocInclude::IncWithLines:
@@ -445,6 +447,7 @@ void LatexDocVisitor::visit(DocInclude *inc)
Doxygen::parserManager->getParser(inc->extension())
->parseCode(m_ci,inc->context(),
inc->text(),
+ langExt,
inc->isExample(),
inc->exampleFile(), &fd);
m_t << "\\end{DoxyCodeInclude}" << endl;
@@ -454,7 +457,7 @@ void LatexDocVisitor::visit(DocInclude *inc)
m_t << "\n\\begin{DoxyCodeInclude}\n";
Doxygen::parserManager->getParser(inc->extension())
->parseCode(m_ci,inc->context(),
- inc->text(),inc->isExample(),
+ inc->text(),langExt,inc->isExample(),
inc->exampleFile());
m_t << "\\end{DoxyCodeInclude}\n";
break;
@@ -474,6 +477,7 @@ void LatexDocVisitor::visit(DocInclude *inc)
->parseCode(m_ci,
inc->context(),
extractBlock(inc->text(),inc->blockId()),
+ langExt,
inc->isExample(),
inc->exampleFile()
);
@@ -493,13 +497,14 @@ void LatexDocVisitor::visit(DocIncOperator *op)
pushEnabled();
m_hide = TRUE;
}
+ SrcLangExt langExt = getLanguageFromFileName(m_langExt);
if (op->type()!=DocIncOperator::Skip)
{
popEnabled();
if (!m_hide)
{
Doxygen::parserManager->getParser(m_langExt)
- ->parseCode(m_ci,op->context(),op->text(),
+ ->parseCode(m_ci,op->context(),op->text(),langExt,
op->isExample(),op->exampleFile());
}
pushEnabled();