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

Public Member Functions

 SnipRunGoSelectionObserver (IPMUnknown *boss)
 
virtual ~SnipRunGoSelectionObserver ()
 
- 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)
 
- Protected Member Functions inherited from ActiveSelectionObserver
virtual void HandleFrequentSelectionChanged ()
 
virtual void HandleSelectionAttributeChanged (const ISelectionMessage *)
 
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

Enables or disables the button when the selection changes dependent on whether ISnipRunSuite::CanRun indicates the snippet can or cannot be run.

The name of the snippet this implementation works with is given by the IStringData interface aggregated onto this control's boss class using IID_ISNIPRUNSNIPPETNAMESTRINGDATA.

This observer subclasses ActiveSelectionObserver so when there is a selection change SnipRunGoSelectionObserver will get notified.

Constructor & Destructor Documentation

SnipRunGoSelectionObserver::SnipRunGoSelectionObserver (IPMUnknownboss)

Constructor.

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

Destructor.

Member Function Documentation

void SnipRunGoSelectionObserver::HandleSelectionChanged (const ISelectionMessagemessage)
protectedvirtual

Called when the selection changes.

Reimplemented from ActiveSelectionObserver.