diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2005-05-08 21:32:24 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2005-05-08 21:32:24 (GMT) |
commit | 23885c2f2db71f003578f0d1b44555c067bfd7a5 (patch) | |
tree | c4bbe961812e7008b9e85fd820596290c043c0f6 /src/pagedef.cpp | |
parent | 5d31b7ab211586100301d6838be82f066f8f9af4 (diff) | |
download | Doxygen-23885c2f2db71f003578f0d1b44555c067bfd7a5.zip Doxygen-23885c2f2db71f003578f0d1b44555c067bfd7a5.tar.gz Doxygen-23885c2f2db71f003578f0d1b44555c067bfd7a5.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; +} + |