summaryrefslogtreecommitdiffstats
path: root/src/index.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2012-06-10 09:28:22 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2012-06-10 09:28:22 (GMT)
commit0ce3aea886f4e95da56d164b3944fd54d3d68f89 (patch)
tree6709ddc7b1764dc3b20bbac7eb36c05edcc91e03 /src/index.h
parent1983c30b71bf92b3fa6bfedbb98451c3b7f74498 (diff)
downloadDoxygen-0ce3aea886f4e95da56d164b3944fd54d3d68f89.zip
Doxygen-0ce3aea886f4e95da56d164b3944fd54d3d68f89.tar.gz
Doxygen-0ce3aea886f4e95da56d164b3944fd54d3d68f89.tar.bz2
Release-1.8.1.1
Diffstat (limited to 'src/index.h')
-rw-r--r--src/index.h24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/index.h b/src/index.h
index 9bb98b6..050350f 100644
--- a/src/index.h
+++ b/src/index.h
@@ -107,10 +107,16 @@ class IndexList : public IndexIntf
public:
/** Creates a list of indexes */
- IndexList() { m_intfs.setAutoDelete(TRUE); }
+ IndexList() { m_intfs.setAutoDelete(TRUE); m_enabled=TRUE; }
/** Add an index generator to the list */
void addIndex(IndexIntf *intf)
{ m_intfs.append(intf); }
+ void disable()
+ { m_enabled = FALSE; }
+ void enable()
+ { m_enabled = TRUE; }
+ bool isEnabled() const
+ { return m_enabled; }
// IndexIntf implementation
void initialize()
@@ -118,24 +124,26 @@ class IndexList : public IndexIntf
void finalize()
{ foreach(&IndexIntf::finalize); }
void incContentsDepth()
- { foreach(&IndexIntf::incContentsDepth); }
+ { if (m_enabled) foreach(&IndexIntf::incContentsDepth); }
void decContentsDepth()
- { foreach(&IndexIntf::decContentsDepth); }
+ { if (m_enabled) foreach(&IndexIntf::decContentsDepth); }
void addContentsItem(bool isDir, const char *name, const char *ref,
const char *file, const char *anchor,bool separateIndex=FALSE,bool addToNavIndex=FALSE,
Definition *def=0)
- { foreach<bool,const char *,const char *,const char *,const char*,bool,bool,Definition *>
+ { if (m_enabled) foreach<bool,const char *,const char *,const char *,const char*,bool,bool,Definition *>
(&IndexIntf::addContentsItem,isDir,name,ref,file,anchor,separateIndex,addToNavIndex,def); }
void addIndexItem(Definition *context,MemberDef *md,const char *title=0)
- { foreach<Definition *,MemberDef *>
+ { if (m_enabled) foreach<Definition *,MemberDef *>
(&IndexIntf::addIndexItem,context,md,title); }
void addIndexFile(const char *name)
- { foreach<const char *>(&IndexIntf::addIndexFile,name); }
+ { if (m_enabled) foreach<const char *>(&IndexIntf::addIndexFile,name); }
void addImageFile(const char *name)
- { foreach<const char *>(&IndexIntf::addImageFile,name); }
+ { if (m_enabled) foreach<const char *>(&IndexIntf::addImageFile,name); }
void addStyleSheetFile(const char *name)
- { foreach<const char *>(&IndexIntf::addStyleSheetFile,name); }
+ { if (m_enabled) foreach<const char *>(&IndexIntf::addStyleSheetFile,name); }
+ private:
+ bool m_enabled;
};