summaryrefslogtreecommitdiffstats
path: root/src/classdef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/classdef.cpp')
-rw-r--r--src/classdef.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp
index f82cbf0..1231e09 100644
--- a/src/classdef.cpp
+++ b/src/classdef.cpp
@@ -1189,6 +1189,9 @@ void ClassDef::writeDocumentation(OutputList &ol)
ol.docify(stripFromPath(path));
}
+ // for HTML
+ ol.pushGeneratorState();
+ ol.disableAllBut(OutputGenerator::Html);
if (fd->generateSourceFile())
{
ol.writeObjectLink(0,fd->getSourceFileBase(),0,fd->name());
@@ -1202,6 +1205,24 @@ void ClassDef::writeDocumentation(OutputList &ol)
{
ol.docify(fd->name());
}
+ ol.popGeneratorState();
+
+ // for other output formats
+ ol.pushGeneratorState();
+ ol.disable(OutputGenerator::Html);
+ if (fd->isLinkable())
+ {
+ ol.writeObjectLink(fd->getReference(),fd->getOutputFileBase(),0,
+ fd->name());
+ }
+ else
+ {
+ ol.docify(fd->name());
+ }
+
+ ol.popGeneratorState();
+
+
}
file=m_files.next();
}