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

Public Member Functions

 CusDtLnkDocObserver (IPMUnknown *boss)
 
virtual ~CusDtLnkDocObserver ()
 
void AutoAttach ()
 
void AutoDetach ()
 
virtual void Update (const ClassID &theChange, ISubject *theSubject, const PMIID &protocol, void *changedBy)
 
virtual 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
 

Protected Member Functions

void AttachDocument (IDocument *document)
 
void DetachDocument (IDocument *document)
 
void HandleAddRemoveAdornment (const UIDList &itemList)
 

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

Implementation of IObserver to respond to notification about changes to the document (kDocBoss) subject

Constructor & Destructor Documentation

Binds the C implementation class onto its ImplementationID making the C code callable by the application * CusDtLnkDocObserver::CusDtLnkDocObserver (IPMUnknownboss)

Constructor.

Parameters
bossIN interface ptr from boss object on which this interface is aggregated.
CusDtLnkDocObserver::~CusDtLnkDocObserver ()
virtual

Destructor.

Member Function Documentation

void CusDtLnkDocObserver::AttachDocument (IDocumentdocument)
protected

Attaches this observer to a document.

Parameters
documentIN The document to which we want to attach.
void CusDtLnkDocObserver::AutoAttach (void )
virtual
See Also
IObserver::AutoAttach

Reimplemented from CObserver.

void CusDtLnkDocObserver::AutoDetach (void )
virtual
See Also
IObserver::AutoDetach

Reimplemented from CObserver.

void CusDtLnkDocObserver::DetachDocument (IDocumentdocument)
protected

Detaches this observer from a document.

Parameters
documentIN The document from which we want to detach.
void CusDtLnkDocObserver::HandleAddRemoveAdornment (const UIDListitemList)
protected

Respond to a list of page items being added to document hierarchy

Parameters
itemListthe items that just got added
void CusDtLnkDocObserver::LazyUpdate (ISubjecttheSubject,
const PMIIDprotocol,
const LazyNotificationDatadata 
)
virtual

Updates this plug-in's panel when the plug-in's model changes. Widgets that react to changes in the plug-in's model are updated by lazy notifications handled by this method.

Parameters
theSubject[IN] provides a reference to the object which has changed.
protocol[IN] the protocol along which the change occurred.
data[IN]

Reimplemented from CObserver.

void CusDtLnkDocObserver::Update (const ClassIDtheChange,
ISubjecttheSubject,
const PMIIDprotocol,
void * changedBy 
)
virtual
See Also
IObserver::Update

Implements IObserver.