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

Public Member Functions

 HidTxtEdSelectionObserver (IPMUnknown *boss)
 
virtual ~HidTxtEdSelectionObserver ()
 
- Public Member Functions inherited from ActiveSelectionObserver
 ActiveSelectionObserver (IPMUnknown *boss, PMIID observerIID=IID_IOBSERVER)
 
virtual void AutoAttach ()
 
virtual void AutoDetach ()
 
virtual void Update (const ClassID &c, ISubject *, const PMIID &p, void *v)
 
- 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)
 

Protected Member Functions

virtual void HandleSelectionChanged (const ISelectionMessage *message)
 
virtual void HandleSelectionAttributeChanged (const ISelectionMessage *message)
 
- Protected Member Functions inherited from ActiveSelectionObserver
virtual void HandleFrequentSelectionChanged ()
 
virtual void AttachToSelectionSubject (ISubject *selectionSubject)
 
virtual void DetachFromSelectionSubject (ISubject *selectionSubject)
 
virtual void HandleActiveSelectionChanged ()
 
virtual void HandleSelectionUpdate (const ClassID &c, ISubject *s, const PMIID &p, void *v)
 
virtual IPMUnknownQueryAbstractSelection (const PMIID &p)
 
virtual void AttachToActiveSelection ()
 
virtual void DetachFromActiveSelection ()
 

Additional Inherited Members

- Public Types inherited from IObserver
enum  { kDefaultIID = IID_IOBSERVER }
 
- Protected Attributes inherited from ActiveSelectionObserver
PMIID fObserverIID
 
ISelectionManagerfCurrentSelection
 

Detailed Description

Implements an ActiveSelectionObserver that updates widgets that display hidden text associated with the selection.

Constructor & Destructor Documentation

HidTxtEdSelectionObserver::HidTxtEdSelectionObserver (IPMUnknownboss)

Constructor

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

Destructor.

Member Function Documentation

void HidTxtEdSelectionObserver::HandleSelectionAttributeChanged (const ISelectionMessagemessage)
protectedvirtual

If the selection's data changes this method gets called. We check that data we are interested in is affected before taking any action by calling ISelectionMessage::WasSuiteAffected and checking that a message from IHidTxtSuite is present. If so we update the data in the panel's widgets.

Parameters
messagefrom selection indicating the attribute(s) affected

Reimplemented from ActiveSelectionObserver.

void HidTxtEdSelectionObserver::HandleSelectionChanged (const ISelectionMessagemessage)
protectedvirtual

When an object is added or removed from the selection or if the kind of selection changes (e.g. from a a layout selection to a text selection) this method is called to synchronise the data displayed with the data associated with the selection.

Parameters
messagefrom selection describing change or nil if the active selection changed.

Reimplemented from ActiveSelectionObserver.