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

Public Member Functions

 TKITreeWidgetObserver (IPMUnknown *boss)
 
void AutoAttach ()
 
void AutoDetach ()
 
void Update (const ClassID &theChange, ISubject *theSubject, const PMIID &protocol, void *changedBy)
 
ErrorCode SelectText (InDesign::TextRange textRange)
 
- 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
 

Member Function Documentation

void TKITreeWidgetObserver::AutoAttach ()
virtual

If the observer knows which subject(s) to attach itself to, it'll do so with this call

Reimplemented from CObserver.

void TKITreeWidgetObserver::AutoDetach ()
virtual

If the observer knows which subject(s) to detach itself from, it'll do so with this call

Reimplemented from CObserver.

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

Responds to tree widget node selection by getting the selected node, getting the text range data out of it, and then selecting the text range in the document.

Implements IObserver.