| 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" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 FX_FLOAT& fPopupRet) = 0; // nRet: (0:bottom 1:top) | 26 FX_FLOAT& fPopupRet) = 0; // nRet: (0:bottom 1:top) |
| 27 virtual void OnBeforeKeyStroke(void* pPrivateData, | 27 virtual void OnBeforeKeyStroke(void* pPrivateData, |
| 28 CFX_WideString& strChange, | 28 CFX_WideString& strChange, |
| 29 const CFX_WideString& strChangeEx, | 29 const CFX_WideString& strChangeEx, |
| 30 int nSelStart, | 30 int nSelStart, |
| 31 int nSelEnd, | 31 int nSelEnd, |
| 32 FX_BOOL bKeyDown, | 32 FX_BOOL bKeyDown, |
| 33 FX_BOOL& bRC, | 33 FX_BOOL& bRC, |
| 34 FX_BOOL& bExit, | 34 FX_BOOL& bExit, |
| 35 FX_DWORD nFlag) = 0; | 35 FX_DWORD nFlag) = 0; |
| 36 #ifdef PDF_ENABLE_XFA |
| 37 |
| 38 virtual void OnPopupPreOpen(void* pPrivateData, |
| 39 FX_BOOL& bExit, |
| 40 FX_DWORD nFlag) = 0; |
| 41 virtual void OnPopupPostOpen(void* pPrivateData, |
| 42 FX_BOOL& bExit, |
| 43 FX_DWORD nFlag) = 0; |
| 44 #endif |
| 36 }; | 45 }; |
| 37 | 46 |
| 38 class CPWL_Edit : public CPWL_EditCtrl, public IFX_Edit_OprNotify { | 47 class CPWL_Edit : public CPWL_EditCtrl, public IFX_Edit_OprNotify { |
| 39 public: | 48 public: |
| 40 CPWL_Edit(); | 49 CPWL_Edit(); |
| 41 ~CPWL_Edit() override; | 50 ~CPWL_Edit() override; |
| 42 | 51 |
| 43 // CPWL_EditCtrl | 52 // CPWL_EditCtrl |
| 44 CFX_ByteString GetClassName() const override; | 53 CFX_ByteString GetClassName() const override; |
| 45 void OnDestroy() override; | 54 void OnDestroy() override; |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 CPDF_Rect m_rcOldWindow; | 164 CPDF_Rect m_rcOldWindow; |
| 156 | 165 |
| 157 public: | 166 public: |
| 158 void AttachFFLData(void* pData) { m_pFormFiller = pData; } | 167 void AttachFFLData(void* pData) { m_pFormFiller = pData; } |
| 159 | 168 |
| 160 private: | 169 private: |
| 161 void* m_pFormFiller; | 170 void* m_pFormFiller; |
| 162 }; | 171 }; |
| 163 | 172 |
| 164 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_ | 173 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_ |
| OLD | NEW |