diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-03-09 14:34:17 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-03-09 14:34:17 (GMT) |
commit | 0c8bc0e1bae616cab770884864d72d66db953235 (patch) | |
tree | 2780521957182f56829861ac3105317002d41f1a /src/latexdocvisitor.cpp | |
parent | 169a67186780c191749b958de0f71a17fa090248 (diff) | |
parent | 8d13a1a9d0e6a5e4f50563b6d1b6840176e4a5cc (diff) | |
download | Doxygen-0c8bc0e1bae616cab770884864d72d66db953235.zip Doxygen-0c8bc0e1bae616cab770884864d72d66db953235.tar.gz Doxygen-0c8bc0e1bae616cab770884864d72d66db953235.tar.bz2 |
Merge branch 'feature/bug_lineno_split_examples' of https://github.com/albert-github/doxygen into albert-github-feature/bug_lineno_split_examples
Diffstat (limited to 'src/latexdocvisitor.cpp')
-rw-r--r-- | src/latexdocvisitor.cpp | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp index 008d638..2e979bd 100644 --- a/src/latexdocvisitor.cpp +++ b/src/latexdocvisitor.cpp @@ -494,9 +494,9 @@ void LatexDocVisitor::visit(DocInclude *inc) LatexCodeGenerator::setDoxyCodeOpen(FALSE); m_t << "\\end{DoxyCodeInclude}\n"; break; - case DocInclude::DontInclude: - break; - case DocInclude::HtmlInclude: + case DocInclude::DontInclude: + case DocInclude::DontIncWithLines: + case DocInclude::HtmlInclude: break; case DocInclude::LatexInclude: m_t << inc->text(); @@ -572,9 +572,24 @@ void LatexDocVisitor::visit(DocIncOperator *op) popEnabled(); if (!m_hide) { + FileDef *fd; + if (!op->includeFileName().isEmpty()) + { + QFileInfo cfi( op->includeFileName() ); + fd = createFileDef( cfi.dirPath().utf8(), cfi.fileName().utf8() ); + } + Doxygen::parserManager->getParser(m_langExt) ->parseCode(m_ci,op->context(),op->text(),langExt, - op->isExample(),op->exampleFile()); + op->isExample(),op->exampleFile(), + fd, // fileDef + op->line(), // startLine + -1, // endLine + FALSE, // inline fragment + 0, // memberDef + op->showLineNo() // show line numbers + ); + if (fd) delete fd; } pushEnabled(); m_hide=TRUE; |