![]() | InDesign SDK 20.5 |

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) | |
| IChangeManager * | GetChangeManager () 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 IPMUnknown * | QueryAbstractSelection (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 |
| ISelectionManager * | fCurrentSelection |
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.
| SnipRunGoSelectionObserver::SnipRunGoSelectionObserver | ( | IPMUnknown * | boss | ) |
Constructor.
| boss | interface ptr from boss object on which this interface is aggregated. |
| virtual |
Destructor.
| protectedvirtual |
Called when the selection changes.
Reimplemented from ActiveSelectionObserver.