diff options
Diffstat (limited to 'src/pagedef.h')
-rw-r--r-- | src/pagedef.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/pagedef.h b/src/pagedef.h index 136a997..b4eded5 100644 --- a/src/pagedef.h +++ b/src/pagedef.h @@ -2,7 +2,7 @@ * * * - * Copyright (C) 1997-2011 by Dimitri van Heesch. + * Copyright (C) 1997-2012 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby @@ -26,6 +26,12 @@ class PageDef : public Definition public: PageDef(const char *f,int l,const char *n,const char *d,const char *t); ~PageDef(); + + // setters + void setFileName(const char *name) { m_fileName = name; } + void setShowToc(bool b); + + // getters DefType definitionType() const { return TypePage; } bool isLinkableInProject() const { @@ -35,7 +41,6 @@ class PageDef : public Definition { return isLinkableInProject() || isReference(); } - void writeDocumentation(OutputList &ol); // functions to get a uniform interface with Definitions QCString getOutputFileBase() const; @@ -44,7 +49,6 @@ class PageDef : public Definition QCString title() const { return m_title; } GroupDef * getGroupDef() const; PageSDict * getSubPages() const { return m_subPageDict; } - void setFileName(const char *name) { m_fileName = name; } void addInnerCompound(Definition *d); bool visibleInIndex() const; bool documentedPage() const; @@ -54,6 +58,8 @@ class PageDef : public Definition Definition *getPageScope() const { return m_pageScope; } QCString displayName() const { return !m_title.isEmpty() ? m_title : Definition::name(); } + void writeDocumentation(OutputList &ol); + private: void setNestingLevel(int l); void writePageDocumentation(OutputList &ol); @@ -63,6 +69,7 @@ class PageDef : public Definition PageSDict *m_subPageDict; // list of pages in the group Definition *m_pageScope; int m_nestingLevel; + bool m_showToc; }; class PageSDict : public SDict<PageDef> |