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

Public Member Functions

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

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

Implements IObserver; this is observing changes in the expand/collapse state of the node widgets that have dependents. When there is a change in this state, it's displayed in a static text widget.

The class is derived from CObserver, and overrides the AutoAttach(), AutoDetach(), and Update() methods. This class implements the IObserver interface using the CObserver helper class, and is listening along the IID_ITREEVIEWMGR protocol for changes in the tree-data model.

Constructor & Destructor Documentation

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

Constructor

Parameters
interfaceptr from boss object on which this interface is aggregated.
CusDtLnkUITreeNodeObserver::~CusDtLnkUITreeNodeObserver ()

Destructor

Member Function Documentation

void CusDtLnkUITreeNodeObserver::AutoAttach (void )
virtual

AutoAttach is only called for registered observers of widgets. This method is called by the application core when the widget is shown.

Reimplemented from CObserver.

void CusDtLnkUITreeNodeObserver::AutoDetach (void )
virtual

AutoDetach is only called for registered observers of widgets. Called when widget hidden.

Reimplemented from CObserver.

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

Update is called for all registered observers, and is the method through which changes are broadcast.

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

Implements IObserver.