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