diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2005-05-08 21:32:24 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2005-05-08 21:32:24 (GMT) |
commit | 5bd970b12ec39636593453d12e5b64bd935bbf38 (patch) | |
tree | c4bbe961812e7008b9e85fd820596290c043c0f6 /src/pagedef.cpp | |
parent | 4a8c2f5c896a1883a0611d972952a68498002ae5 (diff) | |
download | Doxygen-5bd970b12ec39636593453d12e5b64bd935bbf38.zip Doxygen-5bd970b12ec39636593453d12e5b64bd935bbf38.tar.gz Doxygen-5bd970b12ec39636593453d12e5b64bd935bbf38.tar.bz2 |
Release-1.4.2-20050508
Diffstat (limited to 'src/pagedef.cpp')
-rw-r--r-- | src/pagedef.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/pagedef.cpp b/src/pagedef.cpp index ec16276..e820273 100644 --- a/src/pagedef.cpp +++ b/src/pagedef.cpp @@ -5,6 +5,7 @@ #include "util.h" #include "outputlist.h" #include "doxygen.h" +#include "language.h" PageDef::PageDef(const char *f,int l,const char *n, @@ -77,6 +78,9 @@ void PageDef::writeDocumentation(OutputList &ol) { ol.startSection(si->label,si->title,si->type); ol.docify(si->title); + stringToSearchIndex(getOutputFileBase(), + theTranslator->trPage(TRUE,TRUE)+" "+si->title, + si->title); ol.endSection(si->label,si->type); } ol.startTextBlock(); @@ -117,4 +121,29 @@ void PageDef::writeDocumentation(OutputList &ol) } } +bool PageDef::visibleInIndex() const +{ + return // not part of a group + !getGroupDef() && + // not an externally defined page + (!isReference() || Config_getBool("ALLEXTERNALS")) && + // not a subpage + (getOuterScope()==0 || + getOuterScope()->definitionType()!=Definition::TypePage + ); +} + +bool PageDef::documentedPage() const +{ + return // not part of a group + !getGroupDef() && + // not an externally defined page + !isReference(); +} + +bool PageDef::hasSubPages() const +{ + return subPageDict->count()>0; +} + |