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

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

Issue 1249643003: Remove dead code found by Scythe. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 CPDF_Point WndtoPWL(CPDFSDK_PageVie w* pPageView, const CPDF_Point& pt); 92 CPDF_Point WndtoPWL(CPDFSDK_PageVie w* pPageView, const CPDF_Point& pt);
101 CPDF_Rect FFLtoWnd(CPDFSDK_PageVie w* pPageView, const CPDF_Rect& rect); 93 CPDF_Rect FFLtoWnd(CPDFSDK_PageVie w* pPageView, const CPDF_Rect& rect);
102 94
103 void SetWindowRect(CPDFSDK_Pa geView* pPageView, const CPDF_Rect& rcWindow); 95 void SetWindowRect(CPDFSDK_Pa geView* pPageView, const CPDF_Rect& rcWindow);
104 CPDF_Rect GetWindowRect(CPDFSDK_Pa geView* pPageView); 96 CPDF_Rect GetWindowRect(CPDFSDK_Pa geView* pPageView);
105 97
106 FX_BOOL CommitData(CPDFSDK_PageV iew* pPageView, FX_UINT nFlag); 98 FX_BOOL CommitData(CPDFSDK_PageV iew* pPageView, FX_UINT nFlag);
107 virtual FX_BOOL IsDataChanged(CPDFSDK_PageView* pPageView); 99 virtual FX_BOOL IsDataChanged(CPDFSDK_PageView* pPageView);
108 virtual void SaveData(CPDFSDK_PageView* pPage View); 100 virtual void SaveData(CPDFSDK_PageView* pPage View);
109 101
110 virtual void GetKeyStrokeData(CPDFSDK_PageVie w* pPageView, FFL_KeyStrokeData& data);
111
112 CPWL_Wnd* GetPDFWindow(CPDFSDK_Pag eView* pPageView, FX_BOOL bNew); 102 CPWL_Wnd* GetPDFWindow(CPDFSDK_Pag eView* pPageView, FX_BOOL bNew);
113 void DestroyPDFWindow(CPDFSDK _PageView* pPageView); 103 void DestroyPDFWindow(CPDFSDK _PageView* pPageView);
114 void EscapeFiller(CPDFSDK_Pag eView* pPageView, FX_BOOL bDestroyPDFWindow); 104 void EscapeFiller(CPDFSDK_Pag eView* pPageView, FX_BOOL bDestroyPDFWindow);
115 105
116 virtual PWL_CREATEPARAM GetCreateParam(); 106 virtual PWL_CREATEPARAM GetCreateParam();
117 virtual CPWL_Wnd* NewPDFWindow(const PWL_CREATEPAR AM& cp, CPDFSDK_PageView* pPageView) = 0; 107 virtual CPWL_Wnd* NewPDFWindow(const PWL_CREATEPAR AM& cp, CPDFSDK_PageView* pPageView) = 0;
118 virtual CPDF_Rect GetFocusBox(CPDFSDK_PageView* pP ageView); 108 virtual CPDF_Rect GetFocusBox(CPDFSDK_PageView* pP ageView);
119 109
120 FX_BOOL IsValid() const; 110 FX_BOOL IsValid() const;
121 CPDF_Rect GetPDFWindowRect() const ; 111 CPDF_Rect GetPDFWindowRect() const ;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 146
157 virtual void OnDrawDeactive(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, 147 virtual void OnDrawDeactive(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot,
158 CFX_Rend erDevice* pDevice, CPDF_Matrix* pUser2Device, 148 CFX_Rend erDevice* pDevice, CPDF_Matrix* pUser2Device,
159 FX_DWORD dwFlags); 149 FX_DWORD dwFlags);
160 protected: 150 protected:
161 FX_BOOL m_bMouseIn; 151 FX_BOOL m_bMouseIn;
162 FX_BOOL m_bMouseDown; 152 FX_BOOL m_bMouseDown;
163 }; 153 };
164 154
165 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_FORMFILLER_H_ 155 #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