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

Public Member Functions

 XDocBkUIDialogObserver (IPMUnknown *boss)
 
virtual ~XDocBkUIDialogObserver ()
 
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 based on the partial implementation CDialogObserver; allows dynamic processing of dialog widget changes, in this case the dialog's info button.

Constructor & Destructor Documentation

XDocBkUIDialogObserver::XDocBkUIDialogObserver (IPMUnknownboss)
inline

Constructor.

Parameters
bossinterface ptr from boss object on which this interface is aggregated.
virtual XDocBkUIDialogObserver::~XDocBkUIDialogObserver ()
inlinevirtual

Destructor.

Member Function Documentation

Binds the C implementation class onto its ImplementationID making the C code callable by the application *void XDocBkUIDialogObserver::AutoAttach (void )
virtual

Called by the application to allow the observer to attach to the subjects to be observed, in this case the dialog's info button widget. If you want to observe other widgets on the dialog you could add them here.

Reimplemented from CObserver.

void XDocBkUIDialogObserver::AutoDetach (void )
virtual

Called by the application to allow the observer to detach from the subjects being observed.

Reimplemented from CObserver.

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

Called by the host when the observed object changes, in this case when the dialog's info button is clicked.

Parameters
theChangeIN specifies the class ID of the change to the subject. Frequently this is a command ID.
theSubjectIN points to the ISubject interface for the subject that has changed.
protocolIN specifies the ID of the changed interface on the subject boss.
changedByIN points to additional data about the change. Often this pointer indicates the class ID of the command that has caused the change.

Implements IObserver.