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

Public Member Functions

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

Member Function Documentation

void CusCondTxtTreeViewObserver::AutoAttach ()
virtual

If the observer knows which subject(s) to attach itself to, it'll do so with this call

Reimplemented from CObserver.

void CusCondTxtTreeViewObserver::AutoDetach ()
virtual

If the observer knows which subject(s) to detach itself from, it'll do so with this call

Reimplemented from CObserver.

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

Lazy notification of a change in an observed subject; this method is called after the transaction in which the change was performed completes and after undo or redo.

Parameters
theSubjectis the subject that changed
protocolis the interface of the subject's boss that changed
datalazy notification data or nil. Observers must be able to handle a call that has nil data. In certain low memory conditions the lazy notification data passed to ISubject::ModelChange may not be passed on to observers. The observer must be able to work without data in which case the observer would usually refresh its entire state by re-examining all objects of interest. See LazyNotificationData for documentation.
See Also
ISubject::AttachObserver(IObserver*, const PMIID&, AttachmentType) to receive lazy notification attach to the subject by calling this method specifying an attachment type of lazy, or, both if you also want regular notification.
IObserver::Update for regular notification

Reimplemented from CObserver.

void CusCondTxtTreeViewObserver::Update (const ClassIDtheChange,
ISubjecttheSubject,
const PMIIDprotocol,
void * changedBy 
)
virtual
        Regular notification of a change in an observed subject; this method is called immediately after the

        change is made, it is not called on undo or redo.

Parameters
theChangerepresents the change to an object, often this is the ClassID of the command that made the change
theSubjectis the subject that changed
protocolis the interface of the subject's boss that changed
changedByis used to pass additional data about the change, often this is a pointer to the command that caused the change
See Also
ISubject::AttachObserver(IObserver*, const PMIID&, AttachmentType) to receive regular notification attach to the subject by calling this method specifying an attachment type of regular, or, both if you also want lazy notification. You can also receive regular notification by attaching to the subject using ISubject::AttachObserver(IObserver*,const PMIID&,const PMIID&).
IObserver::LazyUpdate for lazy notification

Implements IObserver.