| 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" |
| 11 #include "fpdfsdk/formfiller/cffl_formfiller.h" | 11 #include "fpdfsdk/formfiller/cffl_formfiller.h" |
| 12 | 12 |
| 13 class CBA_FontMap; | 13 class CBA_FontMap; |
| 14 | 14 |
| 15 struct FFL_ComboBoxState { | 15 struct FFL_ComboBoxState { |
| 16 int nIndex; | 16 int nIndex; |
| 17 int nStart; | 17 int nStart; |
| 18 int nEnd; | 18 int nEnd; |
| 19 CFX_WideString sValue; | 19 CFX_WideString sValue; |
| 20 }; | 20 }; |
| 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_Environment* 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 FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, |
| 32 uint32_t nChar, | 32 uint32_t nChar, |
| 33 uint32_t nFlags) override; | 33 uint32_t nFlags) override; |
| 34 FX_BOOL IsDataChanged(CPDFSDK_PageView* pPageView) override; | 34 FX_BOOL IsDataChanged(CPDFSDK_PageView* pPageView) override; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 56 #endif // PDF_ENABLE_XFA | 56 #endif // PDF_ENABLE_XFA |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 CFX_WideString GetSelectExportText(); | 59 CFX_WideString GetSelectExportText(); |
| 60 | 60 |
| 61 CBA_FontMap* m_pFontMap; | 61 CBA_FontMap* m_pFontMap; |
| 62 FFL_ComboBoxState m_State; | 62 FFL_ComboBoxState m_State; |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 #endif // FPDFSDK_FORMFILLER_CFFL_COMBOBOX_H_ | 65 #endif // FPDFSDK_FORMFILLER_CFFL_COMBOBOX_H_ |
| OLD | NEW |