InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AbstractDialogObserver Class Reference

#include <AbstractDialogObserver.h>

Inheritance diagram for AbstractDialogObserver:
CObserverIObserverIPMUnknownCDialogObserverBscDlgDialogObserverBscL10NDialogObserverCSelectableDialogObserverCusDtLnkUIBrowsDialogObserverPDFVTUIDialogObserverTblBscDialogObserverTranFxUIDialogObserverTxtExpDialogObserverWatermarkUIDialogObserverWFPDialogObserver

Public Member Functions

 AbstractDialogObserver (IPMUnknown *boss)
 
- Public Member Functions inherited from CObserver
 CObserver (IPMUnknown *boss, PMIID interfaceID=IID_IOBSERVER)
 
IChangeManagerGetChangeManager () 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 IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Protected Member Functions

void AttachToWidget (const WidgetID &widgetId, const PMIID &iidOfDataToObserve, IPanelControlData *panel)
 
void DetachFromWidget (const WidgetID &widgetId, const PMIID &iidOfDataToUnobserve, IPanelControlData *panel)
 

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

InDesign selectable dialogs(e.g. the prefs dialog) are made up of multiple independent 'dialogs', each with their own dialog observer. However, CDialogObserver provides some functionality that we don't want in the case of a selectable dialog, so each individual selectable dialog panel should inherit their observer from AbstractDialogObserver rather than CDialogObserver.

See Also
CObserver.h
CDialogObserver.h

Member Function Documentation

void AbstractDialogObserver::AttachToWidget (const WidgetIDwidgetId,
const PMIIDiidOfDataToObserve,
IPanelControlDatapanel 
)
protected

Helper method to make it easy to attach to widget in the dialog.

void AbstractDialogObserver::DetachFromWidget (const WidgetIDwidgetId,
const PMIIDiidOfDataToUnobserve,
IPanelControlDatapanel 
)
protected

Helper method to make it easy to detach from widget in the dialog.