Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: fpdfsdk/include/formfiller/FFL_TextField.h

Issue 1252613002: FX_BOOL considered harmful. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Manual edits. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/include/formfiller/FFL_RadioButton.h ('k') | fpdfsdk/include/formfiller/FFL_Utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_TEXTFIELD_H_ 7 #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_TEXTFIELD_H_
8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_TEXTFIELD_H_ 8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_TEXTFIELD_H_
9 9
10 #include "FFL_FormFiller.h" 10 #include "FFL_FormFiller.h"
(...skipping 14 matching lines...) Expand all
25 class CFFL_TextField : public CFFL_FormFiller, public IPWL_FocusHandler, public IPWL_Edit_Notify 25 class CFFL_TextField : public CFFL_FormFiller, public IPWL_FocusHandler, public IPWL_Edit_Notify
26 { 26 {
27 public: 27 public:
28 CFFL_TextField(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pAnnot); 28 CFFL_TextField(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pAnnot);
29 virtual ~CFFL_TextField(); 29 virtual ~CFFL_TextField();
30 30
31 virtual PWL_CREATEPARAM GetCreateParam(); 31 virtual PWL_CREATEPARAM GetCreateParam();
32 virtual CPWL_Wnd* NewPDFWindow(const PWL_CREATEPAR AM& cp, CPDFSDK_PageView* pPageView); 32 virtual CPWL_Wnd* NewPDFWindow(const PWL_CREATEPAR AM& cp, CPDFSDK_PageView* pPageView);
33 33
34 34
35 » virtual FX_BOOL»» » » OnChar(CPDFSDK_Annot* pAnnot, FX _UINT nChar, FX_UINT nFlags); 35 » virtual bool» » » » OnChar(CPDFSDK_Annot* pAnnot, FX _UINT nChar, FX_UINT nFlags);
36 36
37 » virtual FX_BOOL»» » » IsDataChanged(CPDFSDK_PageView* pPageView); 37 » virtual bool» » » » IsDataChanged(CPDFSDK_PageView* pPageView);
38 virtual void SaveData(CPDFSDK_PageView* pPage View); 38 virtual void SaveData(CPDFSDK_PageView* pPage View);
39 39
40 virtual void GetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type, 40 virtual void GetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type,
41 PDFSDK_FieldAction& fa); 41 PDFSDK_FieldAction& fa);
42 virtual void SetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type, 42 virtual void SetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type,
43 const PD FSDK_FieldAction& fa); 43 const PD FSDK_FieldAction& fa);
44 » virtual FX_BOOL»» » » IsActionDataChanged(CPDF_AAction ::AActionType type, const PDFSDK_FieldAction& faOld, 44 » virtual bool» » » » IsActionDataChanged(CPDF_AAction ::AActionType type, const PDFSDK_FieldAction& faOld,
45 const PDFSDK_FieldAction& faNew); 45 const PDFSDK_FieldAction& faNew);
46 virtual void SaveState(CPDFSDK_PageView* pPag eView); 46 virtual void SaveState(CPDFSDK_PageView* pPag eView);
47 virtual void RestoreState(CPDFSDK_PageView* p PageView); 47 virtual void RestoreState(CPDFSDK_PageView* p PageView);
48 48
49 » virtual CPWL_Wnd*» » » ResetPDFWindow(CPDFSDK_PageView* pPageView, FX_BOOL bRestoreValue); 49 » virtual CPWL_Wnd*» » » ResetPDFWindow(CPDFSDK_PageView* pPageView, bool bRestoreValue);
50 50
51 public: 51 public:
52 virtual void OnSetFocus(CPWL_Wnd* pWnd); 52 virtual void OnSetFocus(CPWL_Wnd* pWnd);
53 virtual void OnKillFocus(CPWL_Wnd* pWnd); 53 virtual void OnKillFocus(CPWL_Wnd* pWnd);
54 54
55 public: 55 public:
56 virtual void OnAddUndo(CPWL_Edit* pEdit); 56 virtual void OnAddUndo(CPWL_Edit* pEdit);
57 57
58 public: 58 public:
59 » virtual FX_BOOL»» » » CanCopy(CPDFSDK_Document* pDocum ent); 59 » virtual bool» » » » CanCopy(CPDFSDK_Document* pDocum ent);
60 » virtual FX_BOOL»» » » CanCut(CPDFSDK_Document* pDocume nt); 60 » virtual bool» » » » CanCut(CPDFSDK_Document* pDocume nt);
61 » virtual FX_BOOL»» » » CanPaste(CPDFSDK_Document* pDocu ment); 61 » virtual bool» » » » CanPaste(CPDFSDK_Document* pDocu ment);
62 62
63 private: 63 private:
64 CBA_FontMap* m_pFontMap; 64 CBA_FontMap* m_pFontMap;
65 FFL_TextFieldState m_State; 65 FFL_TextFieldState m_State;
66 66
67 }; 67 };
68 68
69 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_TEXTFIELD_H_ 69 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_TEXTFIELD_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/formfiller/FFL_RadioButton.h ('k') | fpdfsdk/include/formfiller/FFL_Utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698