InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
DVEditBoxEventHandler.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Sanyam Jain
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 __DVEditboxEventHandler__
32 #define __DVEditboxEventHandler__
33 
34 #ifdef DV_WIDGET_BUILD
35 #endif
36 
37 /*
38  Drover world's version of EditBoxEventHandler
39 */
40 
41 #include "DVControlEventHandler.h"
42 
44 {
46 public:
49 
50  // Key Events:
51  virtual bool16 KeyDown(IEvent* e);
52 
53  virtual bool16 LButtonDn(IEvent* e);
54 
55  virtual void PostGetKeyFocus();
56  virtual void PostGiveUpKeyFocus();
57  virtual bool16 CanHaveKeyFocus() const;
58  virtual bool16 WillingToGiveUpKeyFocus();
59 
60  virtual bool16 AttemptApplyEntry();
61  virtual bool16 ValidateContents();
62 
63 protected:
64  void NotifyObserver(IPMUnknown *pUnknown);
65  IControlView* FindNudgeControl();
66 
67  virtual bool16 RememberFocusIfInPalette();
68 
69  void ReplaceSelection(const PMString& replaceWithStr); // convenience method for subclasses
70 
71  virtual bool16 IsChanged();
72 
73 public:
74  virtual bool16 WantsTabKeyFocus() const;
75  virtual bool16 IsBackSpaceKeyStroke() const;
76 
77 protected:
78  bool16 fIsDisplayingAlert;
79  bool16 fIMEStatus;
80  bool16 fSettingIMEStatus;
81  bool16 fIsBackSpaceKeyStroke;
82 };
83 
84 #endif