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

Public Member Functions

 PstLstUISelectionObserver (IPMUnknown *boss)
 
virtual ~PstLstUISelectionObserver ()
 
- 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)
 
void UpdatePanel ()
 
IPanelControlDataQueryPanelControlData ()
 
- 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

Observes both the active selection and the drop-down list.

Constructor & Destructor Documentation

Binds the C implementation class onto its ImplementationID making the C code callable by the application * PstLstUISelectionObserver::PstLstUISelectionObserver (IPMUnknownboss)

Constructor.

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

Destructor.

Member Function Documentation

void PstLstUISelectionObserver::HandleSelectionAttributeChanged (const ISelectionMessagemessage)
protectedvirtual

If the selection's data changes, we want to update the panel accordingly. We get this notification when the user use New, Modify, Delete command to change the IPstLstData of the selection. Because we have registered with the selection sub-system in the CreateObserverProtocolCollection() of the suite on the layout CSB that we are interested in IID_IPSTLSTDATA, the SelectionAttributeChanged() of the suite will get called when that protocol is broadcasted, and the suite will in turns relate the message to us, the client code.

Parameters
messagecontains the info on which suite was affected.

Reimplemented from ActiveSelectionObserver.

void PstLstUISelectionObserver::HandleSelectionChanged (const ISelectionMessagemessage)
protectedvirtual

Update the panel to reflect new page items selected. This happens when a selection changed through the selection tool, or page item deletion,

Reimplemented from ActiveSelectionObserver.

IPanelControlData * PstLstUISelectionObserver::QueryPanelControlData ()
protected

Get hold of our panel data so we can access our widgets.

void PstLstUISelectionObserver::UpdatePanel ()
protected

UpdatePanel is called when the panel's content needs to be updated.