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 FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_ | 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_ |
8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_ | 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_ |
9 | 9 |
10 #include "PWL_EditCtrl.h" | 10 #include "PWL_EditCtrl.h" |
Tom Sepez
2016/01/04 20:23:12
nit: full path.
Lei Zhang
2016/01/05 02:27:09
Done.
| |
11 #include "PWL_Wnd.h" | 11 #include "PWL_Wnd.h" |
12 #include "core/include/fxcrt/fx_basic.h" | 12 #include "core/include/fxcrt/fx_basic.h" |
13 | 13 |
14 class CPWL_Edit; | |
15 class IPWL_Filler_Notify; | |
16 class IPWL_SpellCheck; | 14 class IPWL_SpellCheck; |
17 | 15 |
18 class IPWL_Filler_Notify { | 16 class IPWL_Filler_Notify { |
19 public: | 17 public: |
20 virtual ~IPWL_Filler_Notify() {} | 18 virtual ~IPWL_Filler_Notify() {} |
21 virtual void QueryWherePopup( | 19 virtual void QueryWherePopup( |
22 void* pPrivateData, | 20 void* pPrivateData, |
23 FX_FLOAT fPopupMin, | 21 FX_FLOAT fPopupMin, |
24 FX_FLOAT fPopupMax, | 22 FX_FLOAT fPopupMax, |
25 int32_t& nRet, | 23 int32_t& nRet, |
26 FX_FLOAT& fPopupRet) = 0; // nRet: (0:bottom 1:top) | 24 FX_FLOAT& fPopupRet) = 0; // nRet: (0:bottom 1:top) |
27 virtual void OnBeforeKeyStroke(void* pPrivateData, | 25 virtual void OnBeforeKeyStroke(void* pPrivateData, |
28 CFX_WideString& strChange, | 26 CFX_WideString& strChange, |
29 const CFX_WideString& strChangeEx, | 27 const CFX_WideString& strChangeEx, |
30 int nSelStart, | 28 int nSelStart, |
31 int nSelEnd, | 29 int nSelEnd, |
32 FX_BOOL bKeyDown, | 30 FX_BOOL bKeyDown, |
33 FX_BOOL& bRC, | 31 FX_BOOL& bRC, |
34 FX_BOOL& bExit, | 32 FX_BOOL& bExit, |
35 FX_DWORD nFlag) = 0; | 33 FX_DWORD nFlag) = 0; |
36 }; | 34 }; |
37 | 35 |
38 class CPWL_Edit : public CPWL_EditCtrl, public IFX_Edit_OprNotify { | 36 class CPWL_Edit : public CPWL_EditCtrl, public IFX_Edit_OprNotify { |
Tom Sepez
2016/01/04 20:23:12
IWYU for IFX_Edit_OprNotify?
Lei Zhang
2016/01/05 02:27:09
Done.
| |
39 public: | 37 public: |
40 CPWL_Edit(); | 38 CPWL_Edit(); |
41 ~CPWL_Edit() override; | 39 ~CPWL_Edit() override; |
42 | 40 |
43 // CPWL_EditCtrl | 41 // CPWL_EditCtrl |
44 CFX_ByteString GetClassName() const override; | 42 CFX_ByteString GetClassName() const override; |
45 void OnDestroy() override; | 43 void OnDestroy() override; |
46 void OnCreated() override; | 44 void OnCreated() override; |
47 void RePosChildWnd() override; | 45 void RePosChildWnd() override; |
48 CPDF_Rect GetClientRect() const override; | 46 CPDF_Rect GetClientRect() const override; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
155 CPDF_Rect m_rcOldWindow; | 153 CPDF_Rect m_rcOldWindow; |
156 | 154 |
157 public: | 155 public: |
158 void AttachFFLData(void* pData) { m_pFormFiller = pData; } | 156 void AttachFFLData(void* pData) { m_pFormFiller = pData; } |
159 | 157 |
160 private: | 158 private: |
161 void* m_pFormFiller; | 159 void* m_pFormFiller; |
162 }; | 160 }; |
163 | 161 |
164 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_ | 162 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_ |
OLD | NEW |