summaryrefslogtreecommitdiffstats
path: root/src/pagedef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pagedef.cpp')
-rw-r--r--src/pagedef.cpp29
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;
+}
+