| 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_LISTBOX_H_ | 7 #ifndef FPDFSDK_FORMFILLER_CFFL_LISTBOX_H_ | 
| 8 #define FPDFSDK_FORMFILLER_CFFL_LISTBOX_H_ | 8 #define FPDFSDK_FORMFILLER_CFFL_LISTBOX_H_ | 
| 9 | 9 | 
| 10 #include <memory> | 10 #include <memory> | 
| 11 #include <set> | 11 #include <set> | 
| 12 | 12 | 
| 13 #include "fpdfsdk/formfiller/cffl_formfiller.h" | 13 #include "fpdfsdk/formfiller/cffl_formfiller.h" | 
| 14 | 14 | 
| 15 class CBA_FontMap; | 15 class CBA_FontMap; | 
| 16 | 16 | 
| 17 class CFFL_ListBox : public CFFL_FormFiller { | 17 class CFFL_ListBox : public CFFL_FormFiller { | 
| 18  public: | 18  public: | 
| 19   CFFL_ListBox(CPDFSDK_Environment* pApp, CPDFSDK_Annot* pWidget); | 19   CFFL_ListBox(CPDFSDK_Environment* pApp, CPDFSDK_Annot* pWidget); | 
| 20   ~CFFL_ListBox() override; | 20   ~CFFL_ListBox() override; | 
| 21 | 21 | 
| 22   // CFFL_FormFiller | 22   // CFFL_FormFiller | 
| 23   PWL_CREATEPARAM GetCreateParam() override; | 23   PWL_CREATEPARAM GetCreateParam() override; | 
| 24   CPWL_Wnd* NewPDFWindow(const PWL_CREATEPARAM& cp, | 24   CPWL_Wnd* NewPDFWindow(const PWL_CREATEPARAM& cp, | 
| 25                          CPDFSDK_PageView* pPageView) override; | 25                          CPDFSDK_PageView* pPageView) override; | 
| 26   FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, FX_UINT nChar, FX_UINT nFlags) override; | 26   FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, | 
|  | 27                  uint32_t nChar, | 
|  | 28                  uint32_t nFlags) override; | 
| 27   FX_BOOL IsDataChanged(CPDFSDK_PageView* pPageView) override; | 29   FX_BOOL IsDataChanged(CPDFSDK_PageView* pPageView) override; | 
| 28   void SaveData(CPDFSDK_PageView* pPageView) override; | 30   void SaveData(CPDFSDK_PageView* pPageView) override; | 
| 29   void GetActionData(CPDFSDK_PageView* pPageView, | 31   void GetActionData(CPDFSDK_PageView* pPageView, | 
| 30                      CPDF_AAction::AActionType type, | 32                      CPDF_AAction::AActionType type, | 
| 31                      PDFSDK_FieldAction& fa) override; | 33                      PDFSDK_FieldAction& fa) override; | 
| 32   void SetActionData(CPDFSDK_PageView* pPageView, | 34   void SetActionData(CPDFSDK_PageView* pPageView, | 
| 33                      CPDF_AAction::AActionType type, | 35                      CPDF_AAction::AActionType type, | 
| 34                      const PDFSDK_FieldAction& fa) override; | 36                      const PDFSDK_FieldAction& fa) override; | 
| 35   void SaveState(CPDFSDK_PageView* pPageView) override; | 37   void SaveState(CPDFSDK_PageView* pPageView) override; | 
| 36   void RestoreState(CPDFSDK_PageView* pPageView) override; | 38   void RestoreState(CPDFSDK_PageView* pPageView) override; | 
| 37   CPWL_Wnd* ResetPDFWindow(CPDFSDK_PageView* pPageView, | 39   CPWL_Wnd* ResetPDFWindow(CPDFSDK_PageView* pPageView, | 
| 38                            FX_BOOL bRestoreValue) override; | 40                            FX_BOOL bRestoreValue) override; | 
| 39 | 41 | 
| 40  private: | 42  private: | 
| 41   std::unique_ptr<CBA_FontMap> m_pFontMap; | 43   std::unique_ptr<CBA_FontMap> m_pFontMap; | 
| 42   std::set<int> m_OriginSelections; | 44   std::set<int> m_OriginSelections; | 
| 43   CFX_ArrayTemplate<int> m_State; | 45   CFX_ArrayTemplate<int> m_State; | 
| 44 }; | 46 }; | 
| 45 | 47 | 
| 46 #endif  // FPDFSDK_FORMFILLER_CFFL_LISTBOX_H_ | 48 #endif  // FPDFSDK_FORMFILLER_CFFL_LISTBOX_H_ | 
| OLD | NEW | 
|---|