![]() | InDesign SDK 20.5 |
#include <CObserver.h>

Public Member Functions | |
| CObserver (IPMUnknown *boss, PMIID interfaceID=IID_IOBSERVER) | |
| IChangeManager * | GetChangeManager () const |
| virtual void | AutoAttach () |
| virtual void | AutoDetach () |
| 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) |
Public Member Functions inherited from IObserver | |
| virtual void | Update (const ClassID &theChange, ISubject *theSubject, const PMIID &protocol, void *changedBy)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Protected Attributes | |
| bool16 | fDetachSubjectsOnDelete |
| PMIID | fAttachIID |
| const UIDRef | fThisRef |
| bool16 | fEnabled |
Additional Inherited Members | |
Public Types inherited from IObserver | |
| enum | { kDefaultIID = IID_IOBSERVER } |
Base class for implementing IObserver. If you are defining a new observer, please inherit from CObserver instead of directly from IObserver.
See IObserver for information about what the methods do.
| virtual |
If the observer knows which subject(s) to attach itself to, it'll do so with this call
Implements IObserver.
Reimplemented in SelectionHighlightObserver, TranFxUIDialogObserver, StrMutSelectionObserver, CusDtLnkUITreeObserver, IDHAObserver, BscSlDlgTabDialogObserver, CustSEObserver, PnlTrvTreeObserver, PreviewableColorListObserver, CustomHttpLinkUIPlaceButtonObserver, GTTxtEdtStoryObserver, LnkWtchCacheManager, SnipRunGoButtonObserver, PDFVTUIDialogObserver, LnkWtchActiveContextObserver, PnlTrvNodeObserver, PstLstDocObserver, SnipRunPanelWidgetObserver, WatermarkUIDialogObserver, CusDtLnkUITreeNodeObserver, DCLSizListBoxObserver, CustomHttpLinkUIObserver, TableCellObserver, CelPnlEditBoxObserver, WLBCmpListBoxObserver, BscSlDlgDialogObserver, GTTxtEdtNewDeleteStoryObserver, XDocBkUIDialogObserver, GTTxtEdtGoToTextButtonObserver, CusDtLnkDocObserver, WLBCmpEyeballObserver, WLBCmpPenObserver, SwatchesObserver, BscL10NDialogObserver, TxtExpDialogObserver, BscDlgDialogObserver, CusDtLnkUIBrowsDialogObserver, TblAttWidgetObserver, TblBscDialogObserver, CDialogObserver, CdlChtUIWidgetObserver, PreflightCheckBoxObserver, TKIPanelWidgetObserver, PicIcoRollOverButtonObserver, WFPDialogObserver, CSelectableDialogObserver, CusCondTxtTreeViewObserver, GraphicStateDefnObserver, ActiveSelectionObserver, and TKITreeWidgetObserver.
| virtual |
If the observer knows which subject(s) to detach itself from, it'll do so with this call
Implements IObserver.
Reimplemented in SelectionHighlightObserver, TranFxUIDialogObserver, StrMutSelectionObserver, CusDtLnkUITreeObserver, BscSlDlgTabDialogObserver, IDHAObserver, PnlTrvTreeObserver, CustomHttpLinkUIPlaceButtonObserver, CustSEObserver, PreviewableColorListObserver, GTTxtEdtStoryObserver, LnkWtchCacheManager, SnipRunGoButtonObserver, LnkWtchActiveContextObserver, PDFVTUIDialogObserver, PnlTrvNodeObserver, CusDtLnkUITreeNodeObserver, DCLSizListBoxObserver, PstLstDocObserver, SnipRunPanelWidgetObserver, TableCellObserver, CustomHttpLinkUIObserver, WatermarkUIDialogObserver, CelPnlEditBoxObserver, WLBCmpListBoxObserver, BscSlDlgDialogObserver, GTTxtEdtNewDeleteStoryObserver, GTTxtEdtGoToTextButtonObserver, WLBCmpEyeballObserver, WLBCmpPenObserver, XDocBkUIDialogObserver, CusDtLnkDocObserver, SwatchesObserver, BscL10NDialogObserver, TxtExpDialogObserver, BscDlgDialogObserver, PreflightCheckBoxObserver, TblAttWidgetObserver, TblBscDialogObserver, CdlChtUIWidgetObserver, PicIcoRollOverButtonObserver, CusDtLnkUIBrowsDialogObserver, CSelectableDialogObserver, ActiveSelectionObserver, WFPDialogObserver, CDialogObserver, TKIPanelWidgetObserver, CusCondTxtTreeViewObserver, GraphicStateDefnObserver, and TKITreeWidgetObserver.
| virtual |
Get the interface ID of this observer.
Implements IObserver.
| virtual |
Returns kTrue if this observer is enabled, kFalse otherwise
Implements IObserver.
| 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.
| theSubject | is the subject that changed |
| protocol | is the interface of the subject's boss that changed |
| data | lazy 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. |
Implements IObserver.
Reimplemented in LnkWtchActiveContextObserver, CusDtLnkUITreeObserver, PnlTrvTreeObserver, IDHAObserver, LnkWtchCacheManager, CustSEObserver, CusDtLnkDocObserver, and CusCondTxtTreeViewObserver.
| virtual |
Set the interface ID of this observer; normally this is IID_IOBSERVER but if there are several observers on a boss they each need to have a different interface ID.
| iid | is the interface ID of this observer |
Implements IObserver.
| virtual |
Enable or disable the observer; a disabled observer will not receive an update for a change.
| state | kTrue to enable, kFalse to disable |
Implements IObserver.