InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CEventHandler.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: ?
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 
24 #ifndef __CEVENTHANDLER__
25 #define __CEVENTHANDLER__
26 
27 #include "IEventHandler.h"
28 #include "HelperInterface.h"
29 
30 
31 class IControlView;
32 
33 
38 {
39  public:
40 
45 
47  virtual ~CEventHandler();
48 
49  // --- IEventHandler Methods --
50 
56  virtual bool16 Activate(IEvent* e);
57 
63  virtual bool16 Deactivate(IEvent* e);
64 
70  virtual bool16 Suspend(IEvent* e);
71 
77  virtual bool16 Resume(IEvent* e);
78 
83  virtual bool16 MouseMove(IEvent* e);
84 
89  virtual bool16 MouseExit(IEvent* e);
94  virtual bool16 MouseDrag(IEvent* e);
95 
100  virtual bool16 LButtonDn(IEvent* e);
101 
106  virtual bool16 RButtonDn(IEvent* e);
107 
112  virtual bool16 MButtonDn(IEvent* e);
113 
118  virtual bool16 LButtonUp(IEvent* e);
119 
124  virtual bool16 RButtonUp(IEvent* e);
125 
130  virtual bool16 MButtonUp(IEvent* e);
131 
136  virtual bool16 ButtonDblClk(IEvent* e);
137 
142  virtual bool16 ButtonTrplClk(IEvent* e);
143 
148  virtual bool16 ButtonQuadClk(IEvent* e);
149 
154  virtual bool16 ButtonQuintClk(IEvent* e);
155 
160  virtual bool16 MouseWheel(IEvent* e);
161 
167  virtual bool16 TabletEvent(IEvent* e);
168  virtual bool16 GestureEvent(IEvent* e);
169 
170  virtual bool16 MultiTouchEvent(IEvent* e);
171 
176  virtual bool16 ControlCmd(IEvent* e);
177 
178 
179  // Keyboard Related Events
180 
185  virtual bool16 KeyDown(IEvent* e);
186 
191  virtual bool16 KeyCmd(IEvent* e);
192 
197  virtual bool16 KeyUp(IEvent* e);
198 
199 
200  // Keyboard Focus Related Functions
201 
206  virtual void PreGetKeyFocus() { }
207 
212  virtual void PostGetKeyFocus() { }
213 
218  virtual void PreGiveUpKeyFocus() { }
219 
224  virtual void PostGiveUpKeyFocus() { }
225 
229  virtual bool16 WillingToGiveUpKeyFocus();
230 
237  virtual bool16 SuspendKeyFocus();
238 
244  virtual bool16 ResumeKeyFocus();
245 
250  virtual bool16 CanHaveKeyFocus() const;
251 
256  virtual bool16 WantsTabKeyFocus() const;
257 
262  virtual bool16 Update(IEvent* e);
263 
268  virtual bool16 PlatformEvent(IEvent* e);
269 
274  virtual bool16 CallSysEventHandler(IEvent* e);
275 
278  virtual void SetView(IControlView* view);
279 
280 
281 protected:
282  IControlView* fView;
283 
284 
285 };
286 
287 
288 #endif // __CEVENTHANDLER__