summaryrefslogtreecommitdiffstats
path: root/src/pagedef.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2018-07-22 13:34:57 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2018-07-22 13:34:57 (GMT)
commit982fce9e021e5359ec2572cbbb815a47bc822e70 (patch)
tree24d8fc538734f725ebb718ff720b4e8b61d9720d /src/pagedef.h
parent5c4ee43f13433a0c1de63805cc139b61e9a4d872 (diff)
parent956342ae0b2e09f5e398778c255006f9d26e7b52 (diff)
downloadDoxygen-982fce9e021e5359ec2572cbbb815a47bc822e70.zip
Doxygen-982fce9e021e5359ec2572cbbb815a47bc822e70.tar.gz
Doxygen-982fce9e021e5359ec2572cbbb815a47bc822e70.tar.bz2
Merge branch 'feature/bug_tableofcontents_latex' of https://github.com/albert-github/doxygen into albert-github-feature/bug_tableofcontents_latex
Diffstat (limited to 'src/pagedef.h')
-rw-r--r--src/pagedef.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/pagedef.h b/src/pagedef.h
index 41b84cb..7016049 100644
--- a/src/pagedef.h
+++ b/src/pagedef.h
@@ -34,7 +34,7 @@ class PageDef : public Definition
// setters
void setFileName(const char *name);
- void setShowToc(bool b);
+ void setShowToc(int localToc, int *localTocLevel);
// getters
DefType definitionType() const { return TypePage; }
@@ -59,7 +59,9 @@ class PageDef : public Definition
bool documentedPage() const;
bool hasSubPages() const;
bool hasParentPage() const;
- bool showToc() const { return m_showToc; }
+ int showToc() const { return m_showToc; }
+ int *showTocLevel() { return m_localTocLevel; }
+ static bool isLocalToc(int localToc, int tocType) { return(localToc & (1 << tocType)); }
void setPageScope(Definition *d){ m_pageScope = d; }
Definition *getPageScope() const { return m_pageScope; }
QCString displayName(bool=TRUE) const { return !m_title.isEmpty() ? m_title : Definition::name(); }
@@ -75,7 +77,8 @@ class PageDef : public Definition
PageSDict *m_subPageDict; // list of pages in the group
Definition *m_pageScope;
int m_nestingLevel;
- bool m_showToc;
+ int m_showToc;
+ int m_localTocLevel[numOutputLocalTocType];
};
class PageSDict : public SDict<PageDef>