summaryrefslogtreecommitdiffstats
path: root/src/pagedef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pagedef.cpp')
-rw-r--r--src/pagedef.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/pagedef.cpp b/src/pagedef.cpp
index 63b24d8..f280c81 100644
--- a/src/pagedef.cpp
+++ b/src/pagedef.cpp
@@ -17,6 +17,7 @@ PageDef::PageDef(const char *f,int l,const char *n,
m_subPageDict = new PageSDict(7);
m_pageScope = 0;
m_nestingLevel = 0;
+ m_showToc = FALSE;
}
PageDef::~PageDef()
@@ -139,6 +140,11 @@ void PageDef::writeDocumentation(OutputList &ol)
ol.popGeneratorState();
//2.}
+ if (m_showToc && hasSections())
+ {
+ writeToc(ol);
+ }
+
writePageDocumentation(ol);
ol.popGeneratorState();
@@ -270,3 +276,8 @@ void PageDef::setNestingLevel(int l)
m_nestingLevel = l;
}
+void PageDef::setShowToc(bool b)
+{
+ m_showToc = b;
+}
+