![]() | InDesign SDK 20.5 |

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) | |
| IChangeManager * | GetChangeManager () 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 |
| virtual |
If the observer knows which subject(s) to attach itself to, it'll do so with this call
Reimplemented from CObserver.
| 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 WidgetID & | widgetID, | ||
| const PMIID & | interfaceID | ||
| ) |
Detach this observer from the given widget.
| panelControlData | refers to the panel that contains the widget |
| widgetID | gives the subject being observed |
| interfaceID | gives the protocol being observed |
| virtual |
Update is called for all registered observers, and is the method through which changes are broadcast.
| theChange | this 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 | this provides a reference to the object which has changed; in this case, the widget boss objects that are being observed. |
| protocol | the protocol along which the change occurred. |
| changedBy | this can be used to provide additional information about the change or a reference to the boss object that caused the change. |
Implements IObserver.