summaryrefslogtreecommitdiffstats
path: root/src/filedef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2009-03-04 21:11:18 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2009-03-04 21:11:18 (GMT)
commit2ae3ed6594f3e4814b3b351eecc63b5e0be1bd37 (patch)
treeade91348b3d7d8806a09659790655b697c1f4eea /src/filedef.cpp
parent5f3d8499c05e9eb512b72d296073041ac4da6f4d (diff)
downloadDoxygen-2ae3ed6594f3e4814b3b351eecc63b5e0be1bd37.zip
Doxygen-2ae3ed6594f3e4814b3b351eecc63b5e0be1bd37.tar.gz
Doxygen-2ae3ed6594f3e4814b3b351eecc63b5e0be1bd37.tar.bz2
Release-1.5.8-20090304
Diffstat (limited to 'src/filedef.cpp')
-rw-r--r--src/filedef.cpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/filedef.cpp b/src/filedef.cpp
index 515dce8..d25d51d 100644
--- a/src/filedef.cpp
+++ b/src/filedef.cpp
@@ -168,7 +168,7 @@ void FileDef::writeDetailedDescription(OutputList &ol,const QCString &title)
{
ol.writeRuler();
ol.pushGeneratorState();
- ol.disableAllBut(OutputGenerator::Html);
+ ol.disable(OutputGenerator::Html);
ol.writeAnchor(0,"_details");
ol.popGeneratorState();
ol.startGroupHeader();
@@ -707,13 +707,16 @@ void FileDef::writeQuickMemberLinks(OutputList &ol,MemberDef *currentMd) const
void FileDef::writeSource(OutputList &ol)
{
static bool filterSourceFiles = Config_getBool("FILTER_SOURCE_FILES");
+ static bool latexSourceCode = Config_getBool("LATEX_SOURCE_CODE");
QCString title = docname;
if (!fileVersion.isEmpty())
{
title+=(" ("+fileVersion+")");
}
QCString pageTitle = theTranslator->trSourceFile(title);
- ol.disableAllBut(OutputGenerator::Html);
+ ol.disable(OutputGenerator::Man);
+ ol.disable(OutputGenerator::RTF);
+ if (!latexSourceCode) ol.disable(OutputGenerator::Latex);
if (Config_getBool("SHOW_DIRECTORIES") && getDirDef())
{
@@ -728,16 +731,18 @@ void FileDef::writeSource(OutputList &ol)
else
{
startFile(ol,getSourceFileBase(),0,pageTitle,HLI_FileVisible,TRUE);
- startTitle(ol,0);
+ startTitle(ol,getSourceFileBase());
ol.parseText(title);
- endTitle(ol,0,0);
+ endTitle(ol,getSourceFileBase(),0);
}
if (isLinkable())
{
+ if (latexSourceCode) ol.disable(OutputGenerator::Latex);
ol.startTextLink(getOutputFileBase(),0);
ol.parseText(theTranslator->trGotoDocumentation());
ol.endTextLink();
+ if (latexSourceCode) ol.enable(OutputGenerator::Latex);
}
ParserInterface *pIntf = Doxygen::parserManager->getParser(getDefFileExtension());
@@ -1444,7 +1449,7 @@ QCString FileDef::getSourceFileBase() const
}
else
{
- return convertNameToFile(diskname+"-source");
+ return convertNameToFile(diskname)+"_source";
}
}
@@ -1457,7 +1462,7 @@ QCString FileDef::includeName() const
}
else
{
- return convertNameToFile(diskname+"-source");
+ return convertNameToFile(diskname)+"_source";
}
}