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

Public Member Functions | |
| virtual const IIndexOptions::Scope | GetScope () const =0 |
| virtual void | SetScope (const IIndexOptions::Scope scope)=0 |
| virtual const UIDRef & | GetActiveTopicList (bool16 buildIfNeeded=kTrue, bool16 *pIsBuiltByActiveContext=NULL)=0 |
| virtual UIDRef | GetDefaultTopicList (const UIDRef &docRef) const =0 |
| virtual void | GetActiveBookName (PMString &bookName)=0 |
| virtual UIDRef | GetActiveDocument () const =0 |
| virtual UIDRef | GetActiveBook () const =0 |
| virtual void | GetOpenedDocListFromActiveBook (K2Vector< UIDRef > &docList) const =0 |
| virtual UIDRef | GetActiveTopicListFromActiveDocument () const =0 |
| virtual const bool16 | IsBookAble ()=0 |
| virtual int32 | GetNumActiveComponents () const =0 |
| virtual UIDRef | GetNthActiveComponent (int32 nth) const =0 |
| virtual void | UpdateContext (IActiveTopicListContext::UpdateReason reason, const UIDRef &updaterRef, bool16 doNotify=kTrue)=0 |
| virtual void | OnTopicListModification (const ClassID &theChange, ISubject *theSubject, const PMIID &protocol, void *changedBy, UIDRef *topicListRef=NULL, bool16 doNotify=kTrue)=0 |
| virtual void | InvalidateActiveTopicList ()=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Interface implemented by the active topic list context. The active topic list context is a singleton that sits on the session boss and keeps track of the current topic list. In case of books, there are multiple topic lists (one in each document) and the active context builds\ a composed topic list from all the docs in the book when the scope is "book" (
| pure virtual |
Retrieves the currently active book.
| pure virtual |
Retrieves the name of the current active book.
| bookName | [OUT] - name of the currently active book. |
| pure virtual |
Retrieves the currently active document.
| pure virtual |
Retrieves the UIRef of the current topic list for the active context. If the context is 'document' than the current topic list will be the topic list of the current active document.
| buildIfNeeded | [IN, OPTIONAL] - usually used when the context is book, specifies if the active context should built the topic list if needed. |
| pIsBuiltByActiveContext | [IN, OPTIONAL] - if not nill, it will be set on return if the active context had to build the active topic list. |
| pure virtual |
Gets the default topic list of the active document. Similar to calling GetDefaultTopicList(GetActiveDocument()).
| pure virtual |
Gets the default topic list for the specified document. NOTE: this function will be moved out as a separate utility function in a future version.
| docRef | [IN] - UIDRef of the document for which we want to retrieve the topic list. |
| pure virtual |
Returns the UIDRef of the component (topic list) at the specified index.
| pure virtual |
Returns the number of components (topic lists) from the current active topic list.
| pure virtual |
Retrieves the list of the open documents from the currently active book.
| docList | [IN] - array of UIDRefs of the open documents that belong to the active book. |
| pure virtual |
Gets the current scope for the context.
| pure virtual |
Invalidates the active topic list. Used by the inval handler to refresh the active topic list when undo/redo happens.
| pure virtual |
Checks if the active document belongs to the active book.
| pure virtual |
Notifies the active context that a topic list has changed. Called by the document observers to update the active context.
| theChange | [IN] - ClassID of the notification. |
| theSubject | [IN] - the subject. |
| protocol | [IN] - PMIID of the protocol. |
| changedBy | [IN] - generic pointer to the object that caused the change, usually a pointer to a command object. |
| topicListRef | [IN, OPTIONAL] - UIDRef of the affected topic list. |
| doNotify | [IN, OPTIONAL] - if the context should broadcast the changes for the other observers. |
| pure virtual |
Sets the current scope for the context.
| scope | [IN] - the current scope for the active context. |
| pure virtual |
Updates the state of the active context. Called by the document and book observers to update the state of the active context.
| reason | [IN] - reason for update. |
| updaterRef | [IN] - the subject who notifies the context (usually the document). |
| doNotify | [IN, OPTIONAL] - if the context should broadcast the changes for the other observers. |