InDesign SDK
20.5
InDesign SDK
Documentation
Bosses
Sample plug-ins
Class Index
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
IDrwEvtHandler.h
1
//========================================================================================
2
//
3
// $File$
4
//
5
// Owner: David Berggren
6
//
7
// $Author$
8
//
9
// $DateTime$
10
//
11
// $Revision$
12
//
13
// $Change$
14
//
15
// Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16
//
17
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18
// with the terms of the Adobe license agreement accompanying it. If you have received
19
// this file from a source other than Adobe, then your use, modification, or
20
// distribution of it requires the prior written permission of Adobe.
21
//
22
//
23
// Purpose:
24
// If someone wants to process draw events, they must provide an implemenation
25
// of this interface. The Register()/UnRegister will allow them to install/uninstall
26
// themselves into the draw event dispatcher. The HandleEvent() method gets called
27
// when the event they've register for happens. This header file also defines the
28
// event data which is passed to HandleEvent().
29
//
30
//========================================================================================
31
32
#ifndef __IDrwEvtHandler__
33
#define __IDrwEvtHandler__
34
35
class
IPMUnknown
;
36
class
IDrwEvtDispatcher
;
37
class
GraphicsData
;
38
class
PMRect
;
39
class
UIDRef
;
40
class
PMMatrix
;
41
class
ICallback
;
42
class
IVisitorHelper
;
43
class
IBaseVisitor
;
44
54
class
IDrwEvtHandler
:
public
IPMUnknown
55
{
56
public
:
60
virtual
void
Register
(
IDrwEvtDispatcher
* eventDispatcher) = 0;
61
65
virtual
void
UnRegister
(
IDrwEvtDispatcher
* eventDispatcher) = 0;
66
74
virtual
bool16
HandleDrawEvent
(
ClassID
eventID,
void
*eventData) = 0;
75
};
76
80
class
CDrawEventData
{
81
public
:
84
IPMUnknown
*
changedBy
;
87
int32
flags
;
88
93
CDrawEventData
(
IPMUnknown
*c, int32 f) :
94
changedBy
(c),
95
flags
(f)
96
{}
97
};
98
101
class
DrawEventData
:
public
CDrawEventData
{
102
public
:
105
GraphicsData
*
gd
;
106
112
DrawEventData
(
IPMUnknown
*c,
GraphicsData
* g, int32 f) :
113
CDrawEventData
(c, f),
114
gd
(g)
115
{}
116
};
117
120
class
HitTestEventData
:
public
CDrawEventData
{
121
public
:
124
GraphicsData
*
hitTestEventGraphicsData
;
125
128
const
PMRect
&
hitTestEventTestRect
;
129
132
UIDRef
*
hitTestEventItemHit
;
133
136
bool16 *
hitTestEventIsHit
;
137
140
IVisitorHelper
*
pVisitable
;
141
144
IBaseVisitor
*
theVisitor
;
145
156
HitTestEventData
(
IPMUnknown
*c,
GraphicsData
* g,
const
PMRect
&x,
UIDRef
* t, int32 f, bool16 *b,
157
IVisitorHelper
* h,
IBaseVisitor
* v) :
158
CDrawEventData
(c, f),
159
hitTestEventGraphicsData
(g),
160
hitTestEventTestRect
(x),
161
hitTestEventItemHit
(t),
162
hitTestEventIsHit
(b),
163
pVisitable
(h),
164
theVisitor
(v)
165
{}
166
};
167
170
class
InvalEventData
:
public
CDrawEventData
{
171
public
:
174
GraphicsData
*
gd
;
177
ClassID
reasonForInval
;
178
185
InvalEventData
(
IPMUnknown
*c,
GraphicsData
*g,
ClassID
r, int32 f) :
186
CDrawEventData
(c, f),
187
gd
(g),
188
reasonForInval
(r)
189
{}
190
};
191
194
class
IterateEventData
:
public
CDrawEventData
{
195
public
:
198
// const PMMatrix* xform_ied;
199
200
203
ICallback
*
callbackInfo
;
204
205
206
213
IterateEventData
(
IPMUnknown
*c,
/*const PMMatrix *m,*/
ICallback
*cbInfo, int32 f) :
214
CDrawEventData
(c, f),
215
// xform_ied(m),
216
callbackInfo
(cbInfo)
217
{}
218
};
219
222
class
GetBBoxEventData
:
public
CDrawEventData
{
223
public
:
226
GraphicsData
*
gd
;
229
PMRect
*
bBox
;
230
236
GetBBoxEventData
(
IPMUnknown
*c,
GraphicsData
* g,
PMRect
*b) :
237
CDrawEventData
(c, 0),
238
gd
(g),
239
bBox
(b)
240
{}
241
};
242
243
#endif
244
tmpdoxygeninput
IDrwEvtHandler.h
Generated on Sat Jul 19 2025 02:54:13 for InDesign SDK by
1.8.3.1