InDesign SDK
20.5
InDesign SDK
Documentation
Bosses
Sample plug-ins
Class Index
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
IScriptEvent.h
1
//========================================================================================
2
//
3
// $File$
4
//
5
// Owner: Jonathan W. Brown
6
//
7
// $Author$
8
//
9
// $DateTime$
10
//
11
// $Revision$
12
//
13
// $Change$
14
//
15
// ADOBE CONFIDENTIAL
16
//
17
// Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
18
//
19
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
20
// with the terms of the Adobe license agreement accompanying it. If you have received
21
// this file from a source other than Adobe, then your use, modification, or
22
// distribution of it requires the prior written permission of Adobe.
23
//
24
//========================================================================================
25
26
#ifndef __IScriptEvent__
27
#define __IScriptEvent__
28
29
#include "IDTime.h"
30
#include "ScriptingID.h"
31
32
class
IScript
;
33
class
IScriptEventTarget
;
34
38
class
IScriptEvent
:
public
IPMUnknown
39
{
40
public
:
41
enum
{ kDefaultIID = IID_ISCRIPTEVENT } ;
42
46
enum
EventPhase
47
{
49
kNotDispatching
= 0 ,
51
kAtTarget
= 2 ,
53
kBubblingPhase
= 3,
55
kDoneDispatching
= -1
56
} ;
57
64
virtual
void
InitEvent
(
const
PMString
& eventType, bool16 bubbles, bool16 cancelable ) = 0 ;
65
67
virtual
int32
GetID
()
const
= 0 ;
68
70
virtual
PMString
GetEventType
()
const
= 0 ;
71
73
virtual
IScript
*
QueryTarget
()
const
= 0 ;
74
78
virtual
IScript
*
QueryCurrentTarget
()
const
= 0 ;
79
81
virtual
EventPhase
GetEventPhase
()
const
= 0 ;
82
84
virtual
bool16
GetBubbles
()
const
= 0 ;
85
87
virtual
bool16
GetCancelable
()
const
= 0 ;
88
90
virtual
IDTime
GetTimeStamp
()
const
= 0 ;
91
93
virtual
void
StopPropagation
() = 0 ;
94
96
virtual
bool16
GetPropagationStopped
()
const
= 0 ;
97
99
virtual
void
PreventDefault
() = 0 ;
100
102
virtual
bool16
GetDefaultPrevented
()
const
= 0 ;
103
104
// ----- FOR INTERNAL USE ONLY -----
109
virtual
void
SetTarget
(
IScript
* target ) = 0 ;
110
115
virtual
void
SetCurrentTarget
(
IScript
* target ) = 0 ;
116
121
virtual
void
SetEventPhase
(
EventPhase
phase ) = 0 ;
122
} ;
123
124
typedef
K2Vector< InterfacePtr<IScriptEvent>
>
ScriptEventList
;
125
126
#endif
tmpdoxygeninput
IScriptEvent.h
Generated on Sat Jul 19 2025 02:54:15 for InDesign SDK by
1.8.3.1