diff options
author | albert-github <albert.tests@gmail.com> | 2018-05-21 09:37:42 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-05-21 09:37:42 (GMT) |
commit | ba30b13cfd4910a5913f080a039fc429ec8a7e3f (patch) | |
tree | 21a3f69741314fdb29dc076c11b83d9e1e27788d /src/pagedef.cpp | |
parent | df0d9c3df44dbce633c38e99d33be4de06706f7b (diff) | |
download | Doxygen-ba30b13cfd4910a5913f080a039fc429ec8a7e3f.zip Doxygen-ba30b13cfd4910a5913f080a039fc429ec8a7e3f.tar.gz Doxygen-ba30b13cfd4910a5913f080a039fc429ec8a7e3f.tar.bz2 |
Enable in page table of contents for LaTeX
currently the \tableofcontents command is only supported for HTML.
In this patch:
- enable in page table of contents for LaTeX: \tableofcontents['{'[option][,option]*'}']
where option can be 'HTML, and 'LaTeX'
(side effect: possibility to have options with, nearly, all commands.)
Diffstat (limited to 'src/pagedef.cpp')
-rw-r--r-- | src/pagedef.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pagedef.cpp b/src/pagedef.cpp index b2b7dc8..c351a3f 100644 --- a/src/pagedef.cpp +++ b/src/pagedef.cpp @@ -35,7 +35,7 @@ PageDef::PageDef(const char *f,int l,const char *n, m_pageScope = 0; m_nestingLevel = 0; m_fileName = ::convertNameToFile(n,FALSE,TRUE); - m_showToc = FALSE; + m_showToc = Definition::None; } PageDef::~PageDef() @@ -209,7 +209,7 @@ void PageDef::writeDocumentation(OutputList &ol) if (m_showToc && hasSections()) { - writeToc(ol); + writeToc(ol, m_showToc); } writePageDocumentation(ol); @@ -326,7 +326,7 @@ void PageDef::setNestingLevel(int l) m_nestingLevel = l; } -void PageDef::setShowToc(bool b) +void PageDef::setShowToc(int b) { m_showToc |= b; } |