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

Public Types | |
| enum | { kDefaultIID = IID_ISCRIPTEVENTLISTENER } |
| enum | State { kNew, kAlive, kDead } |
Public Member Functions | |
| virtual void | Init (const PMString &eventType, const ScriptData &handler)=0 |
| virtual int32 | GetID () const =0 |
| virtual const PMString & | GetEventType () const =0 |
| virtual const ScriptData & | GetHandler () const =0 |
| virtual State | GetState () const =0 |
| virtual void | SetState (State state)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Represents an event handler for scripting events.
| pure virtual |
The name of the event to handle
| pure virtual |
The handler for the event
| pure virtual |
The unique id of this event listener
| pure virtual |
The current state of the listener
| pure virtual |
Initialize this ScriptEventListener.
| eventType | the event name |
| handler | is the script to execute in response to an event |
| pure virtual |
Set the state of the listener