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

Public Member Functions

 TxtExpDialogObserver (IPMUnknown *boss)
 
virtual ~TxtExpDialogObserver (void)
 
virtual void AutoAttach (void)
 
virtual void AutoDetach (void)
 
virtual void Update (const ClassID &theChange, ISubject *theSubject, const PMIID &protocol, void *changedBy)
 
- Public Member Functions inherited from CDialogObserver
 CDialogObserver (IPMUnknown *boss)
 
- Public Member Functions inherited from AbstractDialogObserver
 AbstractDialogObserver (IPMUnknown *boss)
 
- 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 Member Functions inherited from CDialogObserver
virtual void CloseDialog (bool16 windowAlreadyClosed=kFalse)
 
virtual void FireOffEndDialogCmd (bool16 hitOK)
 
void SetDialogValidationStatusFailed (bool16 bStatus=kTrue)
 
void SetCloseOnCancel (bool16 shouldCloseOnCancel=kTrue)
 
- Protected Attributes inherited from CObserver
bool16 fDetachSubjectsOnDelete
 
PMIID fAttachIID
 
const UIDRef fThisRef
 
bool16 fEnabled
 

Detailed Description

TxtExpDialogObserver Allows dynamic processing of dialog widget changes, in this case the dialog's info button.

Implements IObserver based on the partial implementation CDialogObserver.

Constructor & Destructor Documentation

TxtExpDialogObserver::TxtExpDialogObserver (IPMUnknownboss)
inline

Constructor.

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

Destructor.

Member Function Documentation

Binds the C implementation class onto its ImplementationID making the C code callable by the application *void TxtExpDialogObserver::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 CDialogObserver.

void TxtExpDialogObserver::AutoDetach (void )
virtual

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

Reimplemented from CDialogObserver.

void TxtExpDialogObserver::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
theChangespecifies the class ID of the change to the subject. Frequently this is a command ID.
theSubjectpoints to the ISubject interface for the subject that has changed.
protocolspecifies the ID of the changed interface on the subject boss.
changedBypoints to additional data about the change. Often this pointer indicates the class ID of the command that has caused the change.

Reimplemented from CDialogObserver.