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