InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
LnkWtchActiveContextObserver Class Reference
Inheritance diagram for LnkWtchActiveContextObserver:
CObserverIObserverIPMUnknown

Public Member Functions

 LnkWtchActiveContextObserver (IPMUnknown *boss)
 
 ~LnkWtchActiveContextObserver ()
 
virtual void AutoAttach ()
 
virtual void AutoDetach ()
 
virtual void Update (const ClassID &theChange, ISubject *theSubject, const PMIID &protocol, void *changedBy)
 
void LazyUpdate (ISubject *theSubject, const PMIID &protocol, const LazyNotificationData *data)
 
- Public Member Functions inherited from CObserver
 CObserver (IPMUnknown *boss, PMIID interfaceID=IID_IOBSERVER)
 
IChangeManagerGetChangeManager () const
 
virtual void SetAttachIID (PMIID iid)
 
virtual PMIID GetAttachIID () const
 
virtual void SetEnabled (bool16 state)
 
virtual bool16 IsEnabled () const
 

Additional Inherited Members

- Public Types inherited from IObserver
enum  { kDefaultIID = IID_IOBSERVER }
 
- Protected Attributes inherited from CObserver
bool16 fDetachSubjectsOnDelete
 
PMIID fAttachIID
 
const UIDRef fThisRef
 
bool16 fEnabled
 

Detailed Description

Updates a list box user interface to display the contents of this plug-in's cache, ILnkWtchCache. The cache lists the links added to a document since it was opened. There is one cache per document. The user interface onlys display the content of one cache, the cache associated with the document the user is actively working with.

Observes the active context and displays the cache associated with the active document. Observes ILnkWtchCache updates the list box when the cache is changed.

See Also
ILnkWtchCache

Constructor & Destructor Documentation

LnkWtchActiveContextObserver::LnkWtchActiveContextObserver (IPMUnknownboss)

Constructor.

Parameters
bossobject on which this interface is aggregated.
LnkWtchActiveContextObserver::~LnkWtchActiveContextObserver ()

Destructor.

Member Function Documentation

void LnkWtchActiveContextObserver::AutoAttach (void )
virtual

Attaches to the active context and to this plug-in's cache (ILnkWtchCache) if a document is active.

Reimplemented from CObserver.

void LnkWtchActiveContextObserver::AutoDetach (void )
virtual

Detaches from the active context and from this plug-in's cache (ILnkWtchCache) if it is attached.

Reimplemented from CObserver.

void LnkWtchActiveContextObserver::LazyUpdate (ISubjecttheSubject,
const PMIIDprotocol,
const LazyNotificationDatadata 
)
virtual

Handles update when ILnkWtchCache changes.

Parameters
theSubject
protocol
data

Reimplemented from CObserver.

void LnkWtchActiveContextObserver::Update (const ClassIDtheChange,
ISubjecttheSubject,
const PMIIDprotocol,
void * changedBy 
)
virtual

Reacts to change in the active context.

Parameters
theChangethis is specified by the agent of change; it can be the class ID of the agent, or it may be some specialised message ID.
theSubjectthis provides a reference to the object which has changed; in this case, the button widget boss object that is being observed.
protocolthe protocol along which the change occurred.
changedBythis can be used to provide additional information about the change or a reference to the boss object that caused the change.

Implements IObserver.