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

Public Types | |
| enum | { kDefaultIID = IID_ISCRIPTEVENT } |
| enum | EventPhase { kNotDispatching = 0, kAtTarget = 2, kBubblingPhase = 3, kDoneDispatching = -1 } |
Public Member Functions | |
| virtual void | InitEvent (const PMString &eventType, bool16 bubbles, bool16 cancelable)=0 |
| virtual int32 | GetID () const =0 |
| virtual PMString | GetEventType () const =0 |
| virtual IScript * | QueryTarget () const =0 |
| virtual IScript * | QueryCurrentTarget () const =0 |
| virtual EventPhase | GetEventPhase () const =0 |
| virtual bool16 | GetBubbles () const =0 |
| virtual bool16 | GetCancelable () const =0 |
| virtual IDTime | GetTimeStamp () const =0 |
| virtual void | StopPropagation ()=0 |
| virtual bool16 | GetPropagationStopped () const =0 |
| virtual void | PreventDefault ()=0 |
| virtual bool16 | GetDefaultPrevented () const =0 |
| virtual void | SetTarget (IScript *target)=0 |
| virtual void | SetCurrentTarget (IScript *target)=0 |
| virtual void | SetEventPhase (EventPhase phase)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
An attachable event for scripting.
| pure virtual |
Returns whether this event supports the bubbling phase
| pure virtual |
Returns whether this event may be canceled
| pure virtual |
Returns whether this event's default action has been canceled
| pure virtual |
Returns the current event propagation phase
| pure virtual |
The name of this event
| pure virtual |
The unique id of this event
| pure virtual |
Returns whether propagation has been stopped
| pure virtual |
Returns when this event was initiated
| pure virtual |
Initialize this ScriptEvent.
| eventType | the event name |
| bubbles | if kTrue the event is triggered in ancestors of the target object during the bubbling phase |
| cancelable | if kTrue the event can be canceled |
| pure virtual |
Cancels the default action of this event, if this event is cancelable
| pure virtual |
The target object where the currently executing handler is registered. This could be an ancestor of the target object if the handler is invoked during the bubbling phase.
| pure virtual |
The target object where this event occurred
| pure virtual |
Set the target object where the currently executing handler is registered
| target | is the current target |
| pure virtual |
Set the current event propagation phase
| phase | is the current phase |
| pure virtual |
Set the target of this event
| target | is the target |
| pure virtual |
Stops event propagation after executing the current handler