| 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_FORMFILLER_CFFL_TEXTFIELD_H_ | 7 #ifndef FPDFSDK_FORMFILLER_CFFL_TEXTFIELD_H_ |
| 8 #define FPDFSDK_FORMFILLER_CFFL_TEXTFIELD_H_ | 8 #define FPDFSDK_FORMFILLER_CFFL_TEXTFIELD_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 class CFFL_TextField : public CFFL_FormFiller, public IPWL_FocusHandler { | 28 class CFFL_TextField : public CFFL_FormFiller, public IPWL_FocusHandler { |
| 29 public: | 29 public: |
| 30 CFFL_TextField(CPDFSDK_FormFillEnvironment* pApp, CPDFSDK_Annot* pAnnot); | 30 CFFL_TextField(CPDFSDK_FormFillEnvironment* pApp, CPDFSDK_Annot* pAnnot); |
| 31 ~CFFL_TextField() override; | 31 ~CFFL_TextField() override; |
| 32 | 32 |
| 33 // CFFL_FormFiller: | 33 // CFFL_FormFiller: |
| 34 PWL_CREATEPARAM GetCreateParam() override; | 34 PWL_CREATEPARAM GetCreateParam() override; |
| 35 CPWL_Wnd* NewPDFWindow(const PWL_CREATEPARAM& cp, | 35 CPWL_Wnd* NewPDFWindow(const PWL_CREATEPARAM& cp, |
| 36 CPDFSDK_PageView* pPageView) override; | 36 CPDFSDK_PageView* pPageView) override; |
| 37 FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, | 37 bool OnChar(CPDFSDK_Annot* pAnnot, uint32_t nChar, uint32_t nFlags) override; |
| 38 uint32_t nChar, | 38 bool IsDataChanged(CPDFSDK_PageView* pPageView) override; |
| 39 uint32_t nFlags) override; | |
| 40 FX_BOOL IsDataChanged(CPDFSDK_PageView* pPageView) override; | |
| 41 void SaveData(CPDFSDK_PageView* pPageView) override; | 39 void SaveData(CPDFSDK_PageView* pPageView) override; |
| 42 void GetActionData(CPDFSDK_PageView* pPageView, | 40 void GetActionData(CPDFSDK_PageView* pPageView, |
| 43 CPDF_AAction::AActionType type, | 41 CPDF_AAction::AActionType type, |
| 44 PDFSDK_FieldAction& fa) override; | 42 PDFSDK_FieldAction& fa) override; |
| 45 void SetActionData(CPDFSDK_PageView* pPageView, | 43 void SetActionData(CPDFSDK_PageView* pPageView, |
| 46 CPDF_AAction::AActionType type, | 44 CPDF_AAction::AActionType type, |
| 47 const PDFSDK_FieldAction& fa) override; | 45 const PDFSDK_FieldAction& fa) override; |
| 48 FX_BOOL IsActionDataChanged(CPDF_AAction::AActionType type, | 46 bool IsActionDataChanged(CPDF_AAction::AActionType type, |
| 49 const PDFSDK_FieldAction& faOld, | 47 const PDFSDK_FieldAction& faOld, |
| 50 const PDFSDK_FieldAction& faNew) override; | 48 const PDFSDK_FieldAction& faNew) override; |
| 51 void SaveState(CPDFSDK_PageView* pPageView) override; | 49 void SaveState(CPDFSDK_PageView* pPageView) override; |
| 52 void RestoreState(CPDFSDK_PageView* pPageView) override; | 50 void RestoreState(CPDFSDK_PageView* pPageView) override; |
| 53 CPWL_Wnd* ResetPDFWindow(CPDFSDK_PageView* pPageView, | 51 CPWL_Wnd* ResetPDFWindow(CPDFSDK_PageView* pPageView, |
| 54 FX_BOOL bRestoreValue) override; | 52 bool bRestoreValue) override; |
| 55 | 53 |
| 56 // IPWL_FocusHandler: | 54 // IPWL_FocusHandler: |
| 57 void OnSetFocus(CPWL_Wnd* pWnd) override; | 55 void OnSetFocus(CPWL_Wnd* pWnd) override; |
| 58 | 56 |
| 59 #ifdef PDF_ENABLE_XFA | 57 #ifdef PDF_ENABLE_XFA |
| 60 // CFFL_FormFiller: | 58 // CFFL_FormFiller: |
| 61 FX_BOOL IsFieldFull(CPDFSDK_PageView* pPageView) override; | 59 bool IsFieldFull(CPDFSDK_PageView* pPageView) override; |
| 62 #endif // PDF_ENABLE_XFA | 60 #endif // PDF_ENABLE_XFA |
| 63 | 61 |
| 64 private: | 62 private: |
| 65 std::unique_ptr<CBA_FontMap> m_pFontMap; | 63 std::unique_ptr<CBA_FontMap> m_pFontMap; |
| 66 FFL_TextFieldState m_State; | 64 FFL_TextFieldState m_State; |
| 67 }; | 65 }; |
| 68 | 66 |
| 69 #endif // FPDFSDK_FORMFILLER_CFFL_TEXTFIELD_H_ | 67 #endif // FPDFSDK_FORMFILLER_CFFL_TEXTFIELD_H_ |
| OLD | NEW |