diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-05-11 14:53:47 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-08-02 12:36:44 (GMT) |
commit | 2e837e0be05636923ef593c29299ff76c4590a09 (patch) | |
tree | a766d6d1abd6e6005a4d63a1e10fcceb2d407e45 /src/context.h | |
parent | 963e0adfd76e6a59ace5e7318f948632322b1e51 (diff) | |
download | Doxygen-2e837e0be05636923ef593c29299ff76c4590a09.zip Doxygen-2e837e0be05636923ef593c29299ff76c4590a09.tar.gz Doxygen-2e837e0be05636923ef593c29299ff76c4590a09.tar.bz2 |
Added mainpage to context and improved page tree
Diffstat (limited to 'src/context.h')
-rw-r--r-- | src/context.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/context.h b/src/context.h index 18fa519..cc42527 100644 --- a/src/context.h +++ b/src/context.h @@ -309,7 +309,7 @@ class DirContext : public RefCountedContext, public TemplateStructIntf class PageContext : public RefCountedContext, public TemplateStructIntf { public: - static PageContext *alloc(PageDef *pd) { return new PageContext(pd); } + static PageContext *alloc(PageDef *pd,bool isMainPage=FALSE) { return new PageContext(pd,isMainPage); } // TemplateStructIntf methods virtual TemplateVariant get(const char *name) const; @@ -317,7 +317,7 @@ class PageContext : public RefCountedContext, public TemplateStructIntf virtual int release() { return RefCountedContext::release(); } private: - PageContext(PageDef *); + PageContext(PageDef *,bool isMainPage); ~PageContext(); class Private; Private *p; @@ -536,6 +536,7 @@ class NestingContext : public RefCountedContext, public TemplateListIntf void addDirs(const DirList &); void addFiles(const FileNameList &); void addFiles(const FileList &); + void addPages(const PageSDict &pages,bool rootOnly); private: NestingContext(const NestingNodeContext *parent,int level); |