diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2018-09-15 17:32:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-15 17:32:30 (GMT) |
commit | b604de30d948b02d6f931d9411ed626a4d2b43d7 (patch) | |
tree | 7d609b39c6b8f8289f6542b82782ef80e111767d /src/filedef.cpp | |
parent | 6c1c88f41aa68e6999bfa4b72e37c5a8034588a5 (diff) | |
parent | d198c549fb88769912761d75277680438d88d69b (diff) | |
download | Doxygen-b604de30d948b02d6f931d9411ed626a4d2b43d7.zip Doxygen-b604de30d948b02d6f931d9411ed626a4d2b43d7.tar.gz Doxygen-b604de30d948b02d6f931d9411ed626a4d2b43d7.tar.bz2 |
Merge pull request #6487 from albert-github/feature/bug_docbook
Implementation of standard generator for docbook output
Diffstat (limited to 'src/filedef.cpp')
-rw-r--r-- | src/filedef.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/filedef.cpp b/src/filedef.cpp index e2df9be..d9eaa4b 100644 --- a/src/filedef.cpp +++ b/src/filedef.cpp @@ -348,6 +348,10 @@ void FileDef::writeDetailedDescription(OutputList &ol,const QCString &title) { ol.disable(OutputGenerator::Latex); } + if (ol.isEnabled(OutputGenerator::Docbook) && !Config_getBool(DOCBOOK_PROGRAMLISTING)) + { + ol.disable(OutputGenerator::Docbook); + } if (ol.isEnabled(OutputGenerator::RTF) && !Config_getBool(RTF_SOURCE_CODE)) { ol.disable(OutputGenerator::RTF); @@ -937,6 +941,7 @@ void FileDef::writeSource(OutputList &ol,bool sameTu,QStrList &filesInSameTu) static bool generateTreeView = Config_getBool(GENERATE_TREEVIEW); static bool filterSourceFiles = Config_getBool(FILTER_SOURCE_FILES); static bool latexSourceCode = Config_getBool(LATEX_SOURCE_CODE); + static bool docbookSourceCode = Config_getBool(DOCBOOK_PROGRAMLISTING); static bool rtfSourceCode = Config_getBool(RTF_SOURCE_CODE); DevNullCodeDocInterface devNullIntf; QCString title = m_docname; @@ -947,6 +952,7 @@ void FileDef::writeSource(OutputList &ol,bool sameTu,QStrList &filesInSameTu) QCString pageTitle = theTranslator->trSourceFile(title); ol.disable(OutputGenerator::Man); if (!latexSourceCode) ol.disable(OutputGenerator::Latex); + if (!docbookSourceCode) ol.disable(OutputGenerator::Docbook); if (!rtfSourceCode) ol.disable(OutputGenerator::RTF); bool isDocFile = isDocumentationFile(); @@ -978,13 +984,14 @@ void FileDef::writeSource(OutputList &ol,bool sameTu,QStrList &filesInSameTu) if (isLinkable()) { + ol.pushGeneratorState(); if (latexSourceCode) ol.disable(OutputGenerator::Latex); if (rtfSourceCode) ol.disable(OutputGenerator::RTF); + if (docbookSourceCode) ol.disable(OutputGenerator::Docbook); ol.startTextLink(getOutputFileBase(),0); ol.parseText(theTranslator->trGotoDocumentation()); ol.endTextLink(); - if (latexSourceCode) ol.enable(OutputGenerator::Latex); - if (rtfSourceCode) ol.enable(OutputGenerator::RTF); + ol.popGeneratorState(); } (void)sameTu; |