OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef _PWL_EDITCTRL_H_ | 7 #ifndef _PWL_EDITCTRL_H_ |
8 #define _PWL_EDITCTRL_H_ | 8 #define _PWL_EDITCTRL_H_ |
9 | 9 |
10 enum PWL_EDIT_ALIGNFORMAT_H | 10 enum PWL_EDIT_ALIGNFORMAT_H |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 class IPWL_Edit_Notify; | 24 class IPWL_Edit_Notify; |
25 class CPWL_EditCtrl; | 25 class CPWL_EditCtrl; |
26 class CPWL_Caret; | 26 class CPWL_Caret; |
27 class IFX_Edit; | 27 class IFX_Edit; |
28 class CPWL_Edit; | 28 class CPWL_Edit; |
29 | 29 |
30 class IPWL_Edit_Notify | 30 class IPWL_Edit_Notify |
31 { | 31 { |
32 public: | 32 public: |
| 33 virtual ~IPWL_Edit_Notify() { } |
33 //when the position of caret is changed in edit | 34 //when the position of caret is changed in edit |
34 virtual void OnCaretMove(FX_INT32 x1,
FX_INT32 y1, FX_INT32 x2, FX_INT32 y2) {} | 35 virtual void OnCaretMove(FX_INT32 x1,
FX_INT32 y1, FX_INT32 x2, FX_INT32 y2) {} |
35 virtual void OnContentChange(const CP
DF_Rect& rcContent){} | 36 virtual void OnContentChange(const CP
DF_Rect& rcContent){} |
36 //OprType: 0 InsertWord | 37 //OprType: 0 InsertWord |
37 //1 InsertReturn | 38 //1 InsertReturn |
38 //2 BackSpace | 39 //2 BackSpace |
39 //3 Delete | 40 //3 Delete |
40 //4 Clear | 41 //4 Clear |
41 //5 InsertText | 42 //5 InsertText |
42 //6 SetText | 43 //6 SetText |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 FX_BOOL m_bMouseDown; | 163 FX_BOOL m_bMouseDown; |
163 IPWL_Edit_Notify* m_pEditNotify; | 164 IPWL_Edit_Notify* m_pEditNotify; |
164 | 165 |
165 private: | 166 private: |
166 FX_INT32 m_nCharSet; | 167 FX_INT32 m_nCharSet; |
167 FX_INT32 m_nCodePage; | 168 FX_INT32 m_nCodePage; |
168 }; | 169 }; |
169 | 170 |
170 #endif | 171 #endif |
171 | 172 |
OLD | NEW |