InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
DVToolControlEventHandler.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Frits Habermann
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 // DVToolControlEventHandler is an event handler for tool items, and is the base class
23 // for ToolEventHandler. DVToolControlEventHandler helps in customizing the event handling
24 // specific to tool items, over DVHostedWidgetEH event handler.
25 //
26 //========================================================================================
27 
28 #ifndef __DVToolControlEventHandler__
29 #define __DVToolControlEventHandler__
30 
31 #include "DVHostedWidgetEH.h"
32 
33 class IControlView;
34 class IWindow;
35 
36 #ifdef WIDGET_BUILD
37 #endif
38 
40 {
42 public:
44  virtual ~DVToolControlEventHandler();
45 
46  virtual bool16 LButtonDn(IEvent* e) ; //Override
47  virtual bool16 LButtonUp(IEvent* e) ; //Override
48 
49  virtual bool16 KeyDown(IEvent* e) ;
50  virtual bool16 KeyCmd(IEvent* e) ;
51  virtual bool16 KeyUp(IEvent* e) ;
52 
53 protected:
54  virtual bool16 CleanupMouseUp();
55  virtual void TriggerControlData();
56 
57 protected:
58  IControlView* fMyView;
59  bool16 fMouseOverControl;
60  bool16 fLButtonPressed;
61  bool16 fIsToolboxSubtoolsPopoutOpen;
62 };
63 
64 
65 #endif