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 "../../../core/include/fxcrt/fx_basic.h" | 10 #include "../../../core/include/fxcrt/fx_basic.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 virtual ~IPWL_Filler_Notify() { } | 21 virtual ~IPWL_Filler_Notify() { } |
22 virtual void QueryWherePopup(void* pP
rivateData, FX_FLOAT fPopupMin,FX_FLOAT fPopupMax, | 22 virtual void QueryWherePopup(void* pP
rivateData, FX_FLOAT fPopupMin,FX_FLOAT fPopupMax, |
23
int32_t & nRet, FX_FLOAT & fPopupRet) = 0; //nRet: (0:bottom 1:top) | 23
int32_t & nRet, FX_FLOAT & fPopupRet) = 0; //nRet: (0:bottom 1:top) |
24 virtual void OnBeforeKeyStroke(FX_BOO
L bEditOrList, void* pPrivateData, int32_t nKeyCode, | 24 virtual void OnBeforeKeyStroke(FX_BOO
L bEditOrList, void* pPrivateData, int32_t nKeyCode, |
25
CFX_WideString & strChange, const CFX_WideString& strChangeEx, | 25
CFX_WideString & strChange, const CFX_WideString& strChangeEx, |
26
int nSelStart, int nSelEnd, | 26
int nSelStart, int nSelEnd, |
27
FX_BOOL bKeyDown, FX_BOOL & bRC, FX_BOOL & bExit, FX_DWORD nFlag) = 0; | 27
FX_BOOL bKeyDown, FX_BOOL & bRC, FX_BOOL & bExit, FX_DWORD nFlag) = 0; |
28 virtual void OnAfterKeyStroke(FX_BOOL
bEditOrList, void* pPrivateData, FX_BOOL & bExit, FX_DWORD nFlag) = 0; | 28 virtual void OnAfterKeyStroke(FX_BOOL
bEditOrList, void* pPrivateData, FX_BOOL & bExit, FX_DWORD nFlag) = 0; |
29 }; | 29 }; |
30 | 30 |
31 class PWL_CLASS CPWL_Edit : public CPWL_EditCtrl, public IFX_Edit_OprNotify | 31 class CPWL_Edit : public CPWL_EditCtrl, public IFX_Edit_OprNotify |
32 { | 32 { |
33 public: | 33 public: |
34 CPWL_Edit(); | 34 CPWL_Edit(); |
35 virtual ~CPWL_Edit(); | 35 virtual ~CPWL_Edit(); |
36 | 36 |
37 public: | 37 public: |
38 virtual CFX_ByteString GetClassName() const; | 38 virtual CFX_ByteString GetClassName() const; |
39 virtual void OnDestroy(); | 39 virtual void OnDestroy(); |
40 virtual void OnCreated(); | 40 virtual void OnCreated(); |
41 virtual void RePosChildWnd(); | 41 virtual void RePosChildWnd(); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 IPWL_SpellCheck* m_pSpellCheck; | 133 IPWL_SpellCheck* m_pSpellCheck; |
134 FX_BOOL m_bFocus; | 134 FX_BOOL m_bFocus; |
135 CPDF_Rect m_rcOldWindow; | 135 CPDF_Rect m_rcOldWindow; |
136 public: | 136 public: |
137 void AttachFFLData(vo
id* pData) {m_pFormFiller = pData;} | 137 void AttachFFLData(vo
id* pData) {m_pFormFiller = pData;} |
138 private: | 138 private: |
139 void* m_pFormFiller; | 139 void* m_pFormFiller; |
140 }; | 140 }; |
141 | 141 |
142 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_ | 142 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_ |
OLD | NEW |