InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
DVHostedWidgetEH.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Dave Burnard
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // ADOBE CONFIDENTIAL
16 //
17 // Copyright 1997-2008 Adobe Systems Incorporated. All rights reserved.
18 //
19 // NOTICE: All information contained herein is, and remains
20 // the property of Adobe Systems Incorporated and its suppliers,
21 // if any. The intellectual and technical concepts contained
22 // herein are proprietary to Adobe Systems Incorporated and its
23 // suppliers and may be covered by U.S. and Foreign Patents,
24 // patents in process, and are protected by trade secret or copyright law.
25 // Dissemination of this information or reproduction of this material
26 // is strictly forbidden unless prior written permission is obtained
27 // from Adobe Systems Incorporated.
28 //
29 //========================================================================================
30 
31 #ifndef __DVHostedWidgetEH__
32 #define __DVHostedWidgetEH__
33 
34 #include "IEventHandler.h"
35 
36 #include "DVAForwardDeclarations.h"
37 
38 #ifdef WIDGET_BUILD
39 #endif
40 
49 class DV_ DVHostedWidgetEH : public IEventHandler
50 {
51 public:
52  // ----- Initialization -----
53 
55  virtual ~DVHostedWidgetEH();
56 
57  // App Related Events
58  virtual bool16 Activate(IEvent* ) {TRACEFLOW("Drover:Windows", "%s::Activate\n", class_name()); return kFalse;}
59  virtual bool16 Deactivate(IEvent* ) {TRACEFLOW("Drover:Windows", "%s::Deactivate\n", class_name()); return kFalse;}
60  virtual bool16 Suspend(IEvent* ) {TRACEFLOW("Drover:Windows", "%s::Suspend\n", class_name()); return kFalse;}
61  virtual bool16 Resume(IEvent* ) {TRACEFLOW("Drover:Windows", "%s::Resume\n", class_name()); return kFalse;}
62 
63  // Mouse Related Events
64  virtual bool16 MouseMove(IEvent* );
65  virtual bool16 MouseExit(IEvent* );
66  virtual bool16 MouseDrag(IEvent* );
67  virtual bool16 LButtonDn(IEvent* );
68  virtual bool16 RButtonDn(IEvent* );
69  virtual bool16 MButtonDn(IEvent* );
70  virtual bool16 LButtonUp(IEvent* );
71  virtual bool16 RButtonUp(IEvent* );
72  virtual bool16 MButtonUp(IEvent* );
73  virtual bool16 ButtonDblClk(IEvent* );
74  virtual bool16 ButtonTrplClk(IEvent* );
75  virtual bool16 ButtonQuadClk(IEvent* );
76  virtual bool16 ButtonQuintClk(IEvent* );
77  virtual bool16 MouseWheel(IEvent* );
78  virtual bool16 TabletEvent(IEvent* );
79  virtual bool16 GestureEvent(IEvent* );
80  virtual bool16 MultiTouchEvent(IEvent* );
81 
82  virtual bool16 BaseHandlePointerEvent(IEvent* );
83 
84  // Keyboard Related Events
85  virtual bool16 KeyDown(IEvent* );
86  virtual bool16 KeyCmd(IEvent* );
87  virtual bool16 KeyUp(IEvent* );
88 
89  virtual bool16 BaseHandleKeyboardEvent(IEvent* );
90 
91  // Keyboard Focus Related Functions
92  // Keyboard Focus Related Functions
93  virtual void PreGetKeyFocus() { }
94  virtual void PostGetKeyFocus() { }
95  virtual void PreGiveUpKeyFocus() { }
96  virtual void PostGiveUpKeyFocus() { }
97  virtual bool16 WillingToGiveUpKeyFocus();
98  virtual bool16 SuspendKeyFocus();
99  virtual bool16 ResumeKeyFocus();
100  virtual bool16 CanHaveKeyFocus() const;
101  virtual bool16 WantsTabKeyFocus() const;
102 
103  virtual bool16 ControlCmd(IEvent* ) {TRACEFLOW("Drover:Windows", "%s::ControlCmd\n", class_name()); return kFalse;}
104  virtual bool16 Update(IEvent* ) {TRACEFLOW("Drover:Windows", "%s::Update\n", class_name()); return kFalse;}
105  virtual bool16 PlatformEvent(IEvent* ) {TRACEFLOW("Drover:Windows", "%s::PlatformEvent\n", class_name()); return kFalse;}
106  virtual bool16 CallSysEventHandler(IEvent* ) {TRACEFLOW("Drover:Windows", "%s::CallSysEventHandler\n", class_name()); return kFalse;}
107 
108 
109  virtual void SetView(IControlView* ) {TRACEFLOW("Drover:Windows", "%s::SetView\n", class_name()); return;}
110 
111  virtual const char* class_name() {static const char* name = "DVHostedWidgetEH"; return name;}
112 protected:
113  dvaui::ui::UI_Node* Get_UI_Node() const;
114 
115 private:
116 
117 
118 };
119 
120 
121 #endif
122