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

Public Member Functions

 TKIPanelWidgetObserver (IPMUnknown *boss)
 
void AutoAttach ()
 
void AutoDetach ()
 
void Update (const ClassID &theChange, ISubject *theSubject, const PMIID &protocol, void *changedBy)
 
void DetachWidget (const InterfacePtr< IPanelControlData > &panelControlData, const WidgetID &widgetID, const PMIID &interfaceID)
 
- 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
 

Member Function Documentation

void TKIPanelWidgetObserver::AutoAttach ()
virtual

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

Reimplemented from CObserver.

void TKIPanelWidgetObserver::AutoDetach ()
virtual

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

Reimplemented from CObserver.

void TKIPanelWidgetObserver::DetachWidget (const InterfacePtr< IPanelControlData > & panelControlData,
const WidgetIDwidgetID,
const PMIIDinterfaceID 
)

Detach this observer from the given widget.

Parameters
panelControlDatarefers to the panel that contains the widget
widgetIDgives the subject being observed
interfaceIDgives the protocol being observed
void TKIPanelWidgetObserver::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
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 widget boss objects that are 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.