![]() | InDesign SDK 20.5 |
#include <SdkObjModel.h>

Supports the Go button which gets enabled and disabled
dependent on whether the snippet can run or not. When the button is enabled a click on it will cause the selected snippet to be run via ISnipRunSuite. The name of the snippet this control works with is given by the IStringData interface aggregated using IID_ISNIPRUNSNIPPETNAMESTRINGDATA. To get this observer to recognise a change to this data client code should call this button's ISubject as shown below: ISubject::Change(kTextChangeStateMessage, IID_ISNIPRUNSNIPPETNAMESTRINGDATA);
| IControlViewObservers kSnipRunGoButtonBoss::IID_ICONTROLVIEWOBSERVERS |
IControlViewObservers attaches the button's observers,
implementation provided by the API.
Implementation: kCControlViewObserversImpl.
| IPMUnknown kSnipRunGoButtonBoss::IID_ISNIPRUNGOBUTTONOBSERVER |
IObserver implementation provided by SnipRunGoButtonObserver.
Implementation: kSnipRunGoButtonObserverImpl.
| IPMUnknown kSnipRunGoButtonBoss::IID_ISNIPRUNGOSELECTIONOBSERVER |
IObserver implementation provided by SnipRunGoSelectionObserver.
Implementation: kSnipRunGoSelectionObserverImpl.
| IPMUnknown kSnipRunGoButtonBoss::IID_ISNIPRUNSNIPPETNAMESTRINGDATA |
IStringData stores the name snippet the button operates on. This
is the name that is used passed to ISnipRunSuite. If the snippet cannot run the button is disabled by this control's observers.
Implementation: kStringDataImpl.