| 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_COMBOBOX_H_ | 7 #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_COMBOBOX_H_ |
| 8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_COMBOBOX_H_ | 8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_COMBOBOX_H_ |
| 9 | 9 |
| 10 #include "../../../core/include/fxcrt/fx_string.h" | 10 #include "../../../core/include/fxcrt/fx_string.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 class CFFL_ComboBox : public CFFL_FormFiller, public IPWL_FocusHandler, public I
PWL_Edit_Notify | 24 class CFFL_ComboBox : public CFFL_FormFiller, public IPWL_FocusHandler, public I
PWL_Edit_Notify |
| 25 { | 25 { |
| 26 public: | 26 public: |
| 27 CFFL_ComboBox(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pWidget); | 27 CFFL_ComboBox(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pWidget); |
| 28 virtual ~CFFL_ComboBox(); | 28 virtual ~CFFL_ComboBox(); |
| 29 | 29 |
| 30 virtual PWL_CREATEPARAM GetCreateParam(); | 30 virtual PWL_CREATEPARAM GetCreateParam(); |
| 31 virtual CPWL_Wnd* NewPDFWindow(const PWL_CREATEPAR
AM& cp, CPDFSDK_PageView* pPageView); | 31 virtual CPWL_Wnd* NewPDFWindow(const PWL_CREATEPAR
AM& cp, CPDFSDK_PageView* pPageView); |
| 32 | 32 |
| 33 | 33 |
| 34 » virtual FX_BOOL»» » » OnChar(CPDFSDK_Annot* pAnnot, FX
_UINT nChar, FX_UINT nFlags); | 34 » virtual bool» » » » OnChar(CPDFSDK_Annot* pAnnot, FX
_UINT nChar, FX_UINT nFlags); |
| 35 | 35 |
| 36 » virtual FX_BOOL»» » » IsDataChanged(CPDFSDK_PageView*
pPageView); | 36 » virtual bool» » » » IsDataChanged(CPDFSDK_PageView*
pPageView); |
| 37 virtual void SaveData(CPDFSDK_PageView* pPage
View); | 37 virtual void SaveData(CPDFSDK_PageView* pPage
View); |
| 38 | 38 |
| 39 virtual void GetActionData(CPDFSDK_PageView*
pPageView, CPDF_AAction::AActionType type, PDFSDK_FieldAction& fa); | 39 virtual void GetActionData(CPDFSDK_PageView*
pPageView, CPDF_AAction::AActionType type, PDFSDK_FieldAction& fa); |
| 40 virtual void SetActionData(CPDFSDK_PageView*
pPageView, CPDF_AAction::AActionType type, const PDFSDK_FieldAction& fa); | 40 virtual void SetActionData(CPDFSDK_PageView*
pPageView, CPDF_AAction::AActionType type, const PDFSDK_FieldAction& fa); |
| 41 » virtual FX_BOOL»» » » IsActionDataChanged(CPDF_AAction
::AActionType type, const PDFSDK_FieldAction& faOld, const PDFSDK_FieldAction& f
aNew); | 41 » virtual bool» » » » IsActionDataChanged(CPDF_AAction
::AActionType type, const PDFSDK_FieldAction& faOld, const PDFSDK_FieldAction& f
aNew); |
| 42 virtual void SaveState(CPDFSDK_PageView* pPag
eView); | 42 virtual void SaveState(CPDFSDK_PageView* pPag
eView); |
| 43 virtual void RestoreState(CPDFSDK_PageView* p
PageView); | 43 virtual void RestoreState(CPDFSDK_PageView* p
PageView); |
| 44 | 44 |
| 45 » virtual CPWL_Wnd*» » » ResetPDFWindow(CPDFSDK_PageView*
pPageView, FX_BOOL bRestoreValue); | 45 » virtual CPWL_Wnd*» » » ResetPDFWindow(CPDFSDK_PageView*
pPageView, bool bRestoreValue); |
| 46 » virtual void» » » » OnKeyStroke(FX_BOOL bKeyDown, FX
_UINT nFlag); | 46 » virtual void» » » » OnKeyStroke(bool bKeyDown, FX_UI
NT nFlag); |
| 47 | 47 |
| 48 public: | 48 public: |
| 49 virtual void OnSetFocus(CPWL_Wnd* pWnd); | 49 virtual void OnSetFocus(CPWL_Wnd* pWnd); |
| 50 virtual void OnKillFocus(CPWL_Wnd* pWnd); | 50 virtual void OnKillFocus(CPWL_Wnd* pWnd); |
| 51 | 51 |
| 52 public: | 52 public: |
| 53 virtual void OnAddUndo(CPWL_Edit* pEdit); | 53 virtual void OnAddUndo(CPWL_Edit* pEdit); |
| 54 | 54 |
| 55 public: | 55 public: |
| 56 » virtual FX_BOOL»» » » CanCopy(CPDFSDK_Document* pDocum
ent); | 56 » virtual bool» » » » CanCopy(CPDFSDK_Document* pDocum
ent); |
| 57 » virtual FX_BOOL»» » » CanCut(CPDFSDK_Document* pDocume
nt); | 57 » virtual bool» » » » CanCut(CPDFSDK_Document* pDocume
nt); |
| 58 » virtual FX_BOOL»» » » CanPaste(CPDFSDK_Document* pDocu
ment); | 58 » virtual bool» » » » CanPaste(CPDFSDK_Document* pDocu
ment); |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 CFX_WideString GetSelectExportText(); | 61 CFX_WideString GetSelectExportText(); |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 CBA_FontMap* m_pFontMap; | 64 CBA_FontMap* m_pFontMap; |
| 65 FFL_ComboBoxState m_State; | 65 FFL_ComboBoxState m_State; |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_COMBOBOX_H_ | 68 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_COMBOBOX_H_ |
| OLD | NEW |