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

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

Issue 1250433003: Merge to XFA: Remove dead code found by Scythe. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@xfa
Patch Set: 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 | « core/src/fxge/ge/fx_ge_text.cpp ('k') | fpdfsdk/include/javascript/JS_Define.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_FORMFILLER_H_ 7 #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_FORMFILLER_H_
8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_FORMFILLER_H_ 8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_FORMFILLER_H_
9 9
10 #include "FFL_IFormFiller.h" 10 #include "FFL_IFormFiller.h"
11 #include "FFL_CBA_Fontmap.h" 11 #include "FFL_CBA_Fontmap.h"
12 12
13 class CPDFSDK_Annot; 13 class CPDFSDK_Annot;
14 class CFFL_FormFiller; 14 class CFFL_FormFiller;
15 class CFFL_Notify; 15 class CFFL_Notify;
16 class CPDFDoc_Environment; 16 class CPDFDoc_Environment;
17 class CPDFSDK_PageView; 17 class CPDFSDK_PageView;
18 class CPDFSDK_Document; 18 class CPDFSDK_Document;
19 class CPDFSDK_Widget; 19 class CPDFSDK_Widget;
20 20
21 struct FFL_KeyStrokeData
22 {
23 CFX_WideString swValue;
24 FX_BOOL bFull;
25 int nSelStart;
26 int nSelEnd;
27 };
28
29 class CFFL_FormFiller : public IPWL_Provider, public CPWL_TimerHandler 21 class CFFL_FormFiller : public IPWL_Provider, public CPWL_TimerHandler
30 { 22 {
31 public: 23 public:
32 CFFL_FormFiller(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pAnnot); 24 CFFL_FormFiller(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pAnnot);
33 virtual ~CFFL_FormFiller(); 25 virtual ~CFFL_FormFiller();
34 26
35 virtual FX_RECT GetViewBBox(CPDFSDK_PageView *pP ageView, CPDFSDK_Annot* pAnnot); 27 virtual FX_RECT GetViewBBox(CPDFSDK_PageView *pP ageView, CPDFSDK_Annot* pAnnot);
36 virtual void OnDraw(CPDFSDK_PageView *pPageVi ew, CPDFSDK_Annot* pAnnot, 28 virtual void OnDraw(CPDFSDK_PageView *pPageVi ew, CPDFSDK_Annot* pAnnot,
37 CFX_Rend erDevice* pDevice, CPDF_Matrix* pUser2Device, 29 CFX_Rend erDevice* pDevice, CPDF_Matrix* pUser2Device,
38 FX_DWORD dwFlags); 30 FX_DWORD dwFlags);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 CPDF_Point WndtoPWL(CPDFSDK_PageVie w* pPageView, const CPDF_Point& pt); 96 CPDF_Point WndtoPWL(CPDFSDK_PageVie w* pPageView, const CPDF_Point& pt);
105 CPDF_Rect FFLtoWnd(CPDFSDK_PageVie w* pPageView, const CPDF_Rect& rect); 97 CPDF_Rect FFLtoWnd(CPDFSDK_PageVie w* pPageView, const CPDF_Rect& rect);
106 98
107 void SetWindowRect(CPDFSDK_Pa geView* pPageView, const CPDF_Rect& rcWindow); 99 void SetWindowRect(CPDFSDK_Pa geView* pPageView, const CPDF_Rect& rcWindow);
108 CPDF_Rect GetWindowRect(CPDFSDK_Pa geView* pPageView); 100 CPDF_Rect GetWindowRect(CPDFSDK_Pa geView* pPageView);
109 101
110 FX_BOOL CommitData(CPDFSDK_PageV iew* pPageView, FX_UINT nFlag); 102 FX_BOOL CommitData(CPDFSDK_PageV iew* pPageView, FX_UINT nFlag);
111 virtual FX_BOOL IsDataChanged(CPDFSDK_PageView* pPageView); 103 virtual FX_BOOL IsDataChanged(CPDFSDK_PageView* pPageView);
112 virtual void SaveData(CPDFSDK_PageView* pPage View); 104 virtual void SaveData(CPDFSDK_PageView* pPage View);
113 105
114 virtual void GetKeyStrokeData(CPDFSDK_PageVie w* pPageView, FFL_KeyStrokeData& data);
115 virtual FX_BOOL IsFieldFull(CPDFSDK_PageView* pP ageView); 106 virtual FX_BOOL IsFieldFull(CPDFSDK_PageView* pP ageView);
116 107
117 CPWL_Wnd* GetPDFWindow(CPDFSDK_Pag eView* pPageView, FX_BOOL bNew); 108 CPWL_Wnd* GetPDFWindow(CPDFSDK_Pag eView* pPageView, FX_BOOL bNew);
118 void DestroyPDFWindow(CPDFSDK _PageView* pPageView); 109 void DestroyPDFWindow(CPDFSDK _PageView* pPageView);
119 void EscapeFiller(CPDFSDK_Pag eView* pPageView, FX_BOOL bDestroyPDFWindow); 110 void EscapeFiller(CPDFSDK_Pag eView* pPageView, FX_BOOL bDestroyPDFWindow);
120 111
121 virtual PWL_CREATEPARAM GetCreateParam(); 112 virtual PWL_CREATEPARAM GetCreateParam();
122 virtual CPWL_Wnd* NewPDFWindow(const PWL_CREATEPAR AM& cp, CPDFSDK_PageView* pPageView) = 0; 113 virtual CPWL_Wnd* NewPDFWindow(const PWL_CREATEPAR AM& cp, CPDFSDK_PageView* pPageView) = 0;
123 virtual CPDF_Rect GetFocusBox(CPDFSDK_PageView* pP ageView); 114 virtual CPDF_Rect GetFocusBox(CPDFSDK_PageView* pP ageView);
124 115
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 152
162 virtual void OnDrawDeactive(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, 153 virtual void OnDrawDeactive(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot,
163 CFX_Rend erDevice* pDevice, CPDF_Matrix* pUser2Device, 154 CFX_Rend erDevice* pDevice, CPDF_Matrix* pUser2Device,
164 FX_DWORD dwFlags); 155 FX_DWORD dwFlags);
165 protected: 156 protected:
166 FX_BOOL m_bMouseIn; 157 FX_BOOL m_bMouseIn;
167 FX_BOOL m_bMouseDown; 158 FX_BOOL m_bMouseDown;
168 }; 159 };
169 160
170 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_FORMFILLER_H_ 161 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_FORMFILLER_H_
OLDNEW
« no previous file with comments | « core/src/fxge/ge/fx_ge_text.cpp ('k') | fpdfsdk/include/javascript/JS_Define.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698