![]() | InDesign SDK 20.5 |
#include <IIndexTopicList.h>

Public Types | |
| enum | { kDefaultIID = IID_IINDEXTOPICLIST } |
Public Member Functions | |
| virtual bool16 | IsModifiedWithoutAvailableHSHandler () const =0 |
| virtual void | SetModifiedWithoutAvailableHSHandler (bool16 modified)=0 |
| virtual const int32 | GetNumTopicSections () const =0 |
| virtual const int32 | GetNumTopics () const =0 |
| virtual void | AddTopicSection (UID indexUID)=0 |
| virtual void | RemoveTopicSection (UID indexUID)=0 |
| virtual void | ClearTopicSectionList ()=0 |
| virtual const UID | GetNthTopicSectionUID (int32 id) const =0 |
| virtual const int32 | GetTopicSectionId (UID sectionUID) const =0 |
| virtual const IndexSectionHeader & | GetNthTopicSectionHeader (int32 id) const =0 |
| virtual void | AddIndexInstance (const UID indexUID)=0 |
| virtual void | RemoveIndexInstance (const UID indexUID)=0 |
| virtual const int32 | GetNumOfIndexInstances () const =0 |
| virtual const UID | GetNthIndexInstance (int32 id) const =0 |
| virtual const UID | FindIndexInstanceByName (const PMString &name) const =0 |
| virtual const int32 | GetParentNodeId (int32 sectionId, int32 childNodeId) const =0 |
| virtual const int32 | GetNumChildrenOfNode (int32 sectionId, int32 parentNodeId, bool16 excludeUnused=kFalse) const =0 |
| virtual const int32 | GetNthChildNodeId (int32 sectionId, int32 parentNodeId, int32 nth, bool16 excludeUnused=kFalse) const =0 |
| virtual const int32 | GetChildRank (int32 sectionId, int32 parentNodeId, int32 childNodeId, bool16 excludeUnused=kFalse) const =0 |
| virtual void | GetDisplayString (int32 sectionId, int32 nodeId, WideString &string) const =0 |
| virtual const int32 | GetNumPageEntriesOfNode (int32 sectionId, int32 nodeId) const =0 |
| virtual const int32 | GetPageEntryRankInNode (int32 sectionId, int32 nodeId, UIDRef entryUIDRef) const =0 |
| virtual void | GetNthPageEntryUIDRef (int32 sectionId, int32 nodeId, int32 nth, UIDRef &entryUIDRef) const =0 |
| virtual const int32 | GetNumXRefEntriesOfNode (int32 sectionId, int32 nodeId) const =0 |
| virtual const UID | GetNthXRefEntryUID (int32 sectionId, int32 nodeId, int32 nth) const =0 |
| virtual const UID | GetXRefLinksUID (int32 sectionId, int32 nodeId) const =0 |
| virtual void | GetRefedTopicNodeId (const UID xRefLinksUID, UID §ionUID, int32 &nodeId) const =0 |
| virtual void | GetTopicEntry (int32 sectionId, int32 nodeId, IndexTopicEntry &topicEntry) const =0 |
| virtual bool16 | TopicEntryIsUsed (int32 sectionId, int32 nodeId, bool16 includeChildren=kTrue) const =0 |
| virtual bool16 | FindTopicEntryByDisplay (IndexTopicEntry &topicEntry, int32 startSectionId=0, int32 startNodeId=0, int32 *foundSectionId=NULL, int32 *foundNodeId=NULL, bool16 caseSensitive=kTrue, bool16 wholeWord=kTrue, bool16 searchDir=kTrue) const =0 |
| virtual bool16 | FindStringByDisplay (const WideString &str, int32 startSectionId=0, int32 startNodeId=0, int32 startXRefId=0, int32 *foundSectionId=NULL, int32 *foundNodeId=NULL, int32 *foundXRefId=NULL, bool16 caseSensitive=kTrue, bool16 wholeWord=kTrue, bool16 searchDir=kTrue, int32 *currentSearchNum=NULL) const =0 |
| virtual bool16 | FindPageEntrySectionUIDandNodeId (const UIDRef &pageEntryUIDRef, UID §ionUID, int32 &nodeId) const =0 |
| virtual bool16 | FindTopicEntry (const IndexTopicEntry &topicEntry, UID *sectionUID, int32 *nodeId) const =0 |
| virtual void | GetIndexPageRangeDataMap (IDXPageRangeDataMap &dataMap) const =0 |
| virtual void | UpdateIndexPageRangeDataMap (const IDXPageRangeKey &pageRangeKey, const IDXPageRangeData &pageRangeData)=0 |
| virtual void | SetIndexPageRangeData (const IDXPageRangeKey &pageRangeKey, const IDXPageRangeData &pageRangeData)=0 |
| virtual void | ClearIndexPageRangeData ()=0 |
| virtual int32 | FindNumberOfStringMatchesByDisplay (const WideString &str, int32 startSectionId=0, int32 startNodeId=0, int32 startXRefId=0, int32 *foundSectionId=NULL, int32 *foundNodeId=NULL, int32 *foundXRefId=NULL, bool16 caseSensitive=kTrue, bool16 wholeWord=kTrue, bool16 searchDir=kTrue) const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Data interface that models a list of index topics. This list is aggregated by the session/document workspace and contains the topic section UIDs. Each section contains a list of topics.
| pure virtual |
Adds an index instance. This method was initially intended to be used for the case when we have multiple instances of an index of the same topic list. This method is not currently used.
| pure virtual |
Adds a topic section to the list.
| indexUID | [IN] - the UID of the topic section to be added to the list. |
| pure virtual |
Clear the cached map.
| pure virtual |
Removes all topic sections from the list.
| pure virtual |
Finds an index instance by name. This method was initially intended to be used for the case when we have multiple instances of an index of the same topic list. This method is not currently used.
| pure virtual |
Finds total number of topics that matches the specified string.
| startSectionId | [IN] - section where the search should start. |
| startNodeId | [IN]- the topic node id with which the search should start. |
| startXRefId | [IN] - the start index for the search. |
| foundSectionId | [OUT] - on return will contain the section id where the topic is located. |
| foundNodeId | [OUT] - on return will contain the node id of the located topic. |
| foundXRefId | [OUT] - the result index of the found entry. |
| caseSensitive | [IN] - flag that specifies if the match is case sensitive |
| wholeWord | [IN] - flag that specifies if the match is partial or whole word. |
| searchDir | [IN] - flag that specifies the search direction. kTrue means forward/down. |
| pure virtual |
Finds the section UID and node id of the topic referenced by the specified page entry.
| pageEntryUIDRef | [IN] - UIDRef of the page entry. |
| sectionUID | [OUT] - the section UID of the topic |
| nodeId | [OUT] - the node id of the topic. |
| pure virtual |
Finds a topic that matches the specified string.
| startSectionId | [IN] - section where the search should start. |
| startNodeId | [IN]- the topic node id with which the search should start. |
| startXRefId | [IN] - the start index for the search. |
| foundSectionId | [OUT] - on return will contain the section id where the topic is located. |
| foundNodeId | [OUT] - on return will contain the node id of the located topic. |
| foundXRefId | [OUT] - the result index of the found entry. |
| caseSensitive | [IN] - flag that specifies if the match is case sensitive |
| wholeWord | [IN] - flag that specifies if the match is partial or whole word. |
| searchDir | [IN] - flag that specifies the search direction. kTrue means forward/down. |
| pure virtual |
Finds the topic referenced by the last node in the topic entry. This function is the reverse of GetTopicEntry.
| topicEntry | [IN] - topic entry that contains the topic node we are looking for. |
| sectionUID | [OUT] - on return will contain the section UID of the topic. |
| nodeId | [OUT] - on return will contain the node id of the topic. |
| pure virtual |
Finds a topic entry by matching the display name.
| topicEntry | [IN/OUT] - topic entry used as a reference entry to find out the entry above or below topicEntry. |
| startSectionId | [IN] - section where the search should start. |
| startNodeId | [IN]- the topic node id with which the search should start. |
| foundSectionId | [OUT] - on return will contain the section id where the topic is located. |
| foundNodeId | [OUT] - on return will contain the node id of the located topic. |
| caseSensitive | [IN] - flag that specifies if the match is case sensitive |
| wholeWord | [IN] - flag that specifies if the match is partial or whole word. |
| searchDir | [IN] - flag that specifies the search direction. kTrue means forward/down. |
| pure virtual |
Retrieves the index of the specified child node within it's parent node. This method is mostly used by the UI.
| sectionId | [IN] - the section id where the specified topic resides. |
| parentNodeId | [IN] - id of the topic whithin the section. |
| childNodeId | [IN] - the node id of the specified child |
| excludeUnused | [IN] - flag that specifies is the unused topics should be excluded. |
| pure virtual |
Retrieves the display string for the specified topic. This method is mostly used by the UI. The display string can be different from the sort string.
| sectionId | [IN] - the section id where the specified topic resides. |
| nodeId | [IN] - id of the topic whithin the section. |
| string | [OUT] - on return will contain the display string of the specified topic. |
| pure virtual |
Get the cached map related to page range entries data.
| dataMap | [OUT] — on return will contain the cached map. |
| pure virtual |
Retrieves the specified child node id. This method is mostly used by the UI.
| sectionId | [IN] - the section id where the specified topic resides. |
| parentNodeId | [IN] - id of the topic whithin the section. |
| nth | [IN] - index of the child node within it's parent node. |
| excludeUnused | [IN] - flag that specifies is the unused topics should be excluded. |
| pure virtual |
Retrieves the index instance at the specified index. This method was initially intended to be used for the case when we have multiple instances of an index of the same topic list. This method is not currently used.
| pure virtual |
Retrieves the UIDRef of the specified page entry. This method is mostly used by the UI.
| sectionId | [IN] - the section id where the specified topic resides. |
| nodeId | [IN] - id of the topic whithin the section. |
| nth | [IN] - index of the page entry within the topic (see GetPageEntryRankInNode) |
| entryUIDRef | [OUT] - the UIDRef of the specified page entry. |
| pure virtual |
Retrieves the topic section header at the specified index.
| id | [IN] - index of the section header in the list. |
| pure virtual |
Retrieves the UID of the topic section at the specified index.
| id | [IN] - index of the desired topic section. |
| pure virtual |
Retrieves the specified cross-reference. This method is mostly used by the UI.
| sectionId | [IN] - the section id where the specified topic resides. |
| nodeId | [IN] - id of the topic whithin the section. |
| nth | [IN] - index (0-based) of the cross-reference. |
| pure virtual |
Retrieves the number of children nodes of the specified topic node. This method is mostly used by the UI.
| sectionId | [IN] - the section id where the specified topic resides. |
| parentNodeId | [IN] - id of the topic within the section. |
| excludeUnused | [IN] - flag that specifies is the unused topics should be excluded. |
| pure virtual |
Retrieves the number of index instances. This method was initially intended to be used for the case when we have multiple instances of an index of the same topic list. This method is not currently used.
| pure virtual |
Retrieves the number of page entries associated with the specified topic. This method is mostly used by the UI.
| sectionId | [IN] - the section id where the specified topic resides. |
| nodeId | [IN] - id of the topic whithin the section. |
| pure virtual |
Retrieves the total number of topics contained in this list.
| pure virtual |
Retrieves the total number of topic sections within this list.
| pure virtual |
Retrieves the number of cross-references that refer to the specified node. This method is mostly used by the UI.
| sectionId | [IN] - the section id where the specified topic resides. |
| nodeId | [IN] - id of the topic whithin the section. |
| pure virtual |
Retrieves the index of the specified page entry within that topic. This method is mostly used by the UI.
| sectionId | [IN] - the section id where the specified topic resides. |
| nodeId | [IN] - id of the topic whithin the section. |
| entryUIDRef | [IN] - UID of the page entry we are looking for. |
| pure virtual |
Gets the parent node id of the specified topic node. This method is mostly used by the UI.
| sectionId | [IN] - section id where the topic resides. |
| childNodeId | [IN] - id of the topic node within the section. |
| pure virtual |
Retrieves the section and node id of the topic referenced by the specified cross-reference. This method is mostly used by the UI.
| xRefLinksUID | [IN] - the UID of the cross-reference. |
| sectionUID | [OUT] - on return will contain the section UID of the referenced topic or kInvalidUID if the function fails. |
| nodeId | [OUT] - on return will contain the node id of the referenced topic or -1 if the function fails. |
| pure virtual |
Retrieves the complete topic entry that contains the topic specified by the section and node id. If there are any parent topic nodes, they will be filled in the result topic entry. Example: if we have a topic hierarchy like [Fruit | Apple | Jonathan], and we call this method passing the section and node id of topic "Jonathan", we will get back a topic entry that contains [Fruit | Apple | Jonathan] - all three topics. If we call it with the section and node id of the topic "Apple" we will get back [Fruit | Apple].
| sectionId | [IN] - the section id where the specified topic resides. |
| nodeId | [IN] - id of the topic whithin the section. |
| topicEntry | [OUT] - complete topic entry that will contain the specified topic node and it's parents. |
| pure virtual |
Retrieves the index of the specified topic section UID.
| sectionUID | [IN] - the UID of the topic section. |
| pure virtual |
Retrieves the UID of the kIndexXRefLinksBoss that manages the cross-references for the specified topic. This method is mostly used by the UI.
| sectionId | [IN] - the section id where the specified topic resides. |
| nodeId | [IN] - id of the topic whithin the section. |
| pure virtual |
This method is not used and it will be deprecated
| pure virtual |
Removes an index instance. This method was initially intended to be used for the case when we have multiple instances of an index of the same topic list. This method is not currently used.
| pure virtual |
Removes a topic section from the list.
| indexUID | [IN] - the UID of the topic section to be removed. |
| pure virtual |
Set the entry in the cached map with the given key and value. The key might be changed when the entry is added into the map.
| pageRangeKey | [IN] - the key of the single entry to be inserted in the map. |
| pageRangeData | [IN] - the value of the single entry to be inserted in the map. |
| pure virtual |
This method is not used and it will be deprecated
| pure virtual |
Checks if the specified topic has at least one index reference (page reference, cross-reference or pointed by a cross-reference).
| sectionId | [IN] - the section id where the specified topic resides. |
| nodeId | [IN] - id of the topic whithin the section. |
| includeChildren | [IN] - flag that specifies if the children of the specified topic should be included in the search. |
| pure virtual |
Update the single entry in the cached map with the given key and value.
| pageRangeKey | [IN] - the key of the single entry to look for in the map. |
| pageRangeData | [IN] - the value of the single entry to update. |