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_FORMFILLER_CFFL_FORMFILLER_H_ | 7 #ifndef FPDFSDK_FORMFILLER_CFFL_FORMFILLER_H_ |
8 #define FPDFSDK_FORMFILLER_CFFL_FORMFILLER_H_ | 8 #define FPDFSDK_FORMFILLER_CFFL_FORMFILLER_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 10 matching lines...) Expand all Loading... |
21 class CFFL_FormFiller : public IPWL_Provider, public CPWL_TimerHandler { | 21 class CFFL_FormFiller : public IPWL_Provider, public CPWL_TimerHandler { |
22 public: | 22 public: |
23 CFFL_FormFiller(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pAnnot); | 23 CFFL_FormFiller(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pAnnot); |
24 ~CFFL_FormFiller() override; | 24 ~CFFL_FormFiller() override; |
25 | 25 |
26 virtual FX_RECT GetViewBBox(CPDFSDK_PageView* pPageView, | 26 virtual FX_RECT GetViewBBox(CPDFSDK_PageView* pPageView, |
27 CPDFSDK_Annot* pAnnot); | 27 CPDFSDK_Annot* pAnnot); |
28 virtual void OnDraw(CPDFSDK_PageView* pPageView, | 28 virtual void OnDraw(CPDFSDK_PageView* pPageView, |
29 CPDFSDK_Annot* pAnnot, | 29 CPDFSDK_Annot* pAnnot, |
30 CFX_RenderDevice* pDevice, | 30 CFX_RenderDevice* pDevice, |
31 CFX_Matrix* pUser2Device, | 31 CFX_Matrix* pUser2Device); |
32 uint32_t dwFlags); | |
33 virtual void OnDrawDeactive(CPDFSDK_PageView* pPageView, | 32 virtual void OnDrawDeactive(CPDFSDK_PageView* pPageView, |
34 CPDFSDK_Annot* pAnnot, | 33 CPDFSDK_Annot* pAnnot, |
35 CFX_RenderDevice* pDevice, | 34 CFX_RenderDevice* pDevice, |
36 CFX_Matrix* pUser2Device, | 35 CFX_Matrix* pUser2Device); |
37 uint32_t dwFlags); | |
38 | 36 |
39 virtual void OnCreate(CPDFSDK_Annot* pAnnot); | 37 virtual void OnCreate(CPDFSDK_Annot* pAnnot); |
40 virtual void OnLoad(CPDFSDK_Annot* pAnnot); | 38 virtual void OnLoad(CPDFSDK_Annot* pAnnot); |
41 virtual void OnDelete(CPDFSDK_Annot* pAnnot); | 39 virtual void OnDelete(CPDFSDK_Annot* pAnnot); |
42 | 40 |
43 virtual void OnMouseEnter(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot); | 41 virtual void OnMouseEnter(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot); |
44 virtual void OnMouseExit(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot); | 42 virtual void OnMouseExit(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot); |
45 | 43 |
46 virtual FX_BOOL OnLButtonDown(CPDFSDK_PageView* pPageView, | 44 virtual FX_BOOL OnLButtonDown(CPDFSDK_PageView* pPageView, |
47 CPDFSDK_Annot* pAnnot, | 45 CPDFSDK_Annot* pAnnot, |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 CPDFSDK_Annot* pAnnot, | 186 CPDFSDK_Annot* pAnnot, |
189 FX_UINT nFlags, | 187 FX_UINT nFlags, |
190 const CFX_FloatPoint& point) override; | 188 const CFX_FloatPoint& point) override; |
191 FX_BOOL OnMouseMove(CPDFSDK_PageView* pPageView, | 189 FX_BOOL OnMouseMove(CPDFSDK_PageView* pPageView, |
192 CPDFSDK_Annot* pAnnot, | 190 CPDFSDK_Annot* pAnnot, |
193 FX_UINT nFlags, | 191 FX_UINT nFlags, |
194 const CFX_FloatPoint& point) override; | 192 const CFX_FloatPoint& point) override; |
195 void OnDraw(CPDFSDK_PageView* pPageView, | 193 void OnDraw(CPDFSDK_PageView* pPageView, |
196 CPDFSDK_Annot* pAnnot, | 194 CPDFSDK_Annot* pAnnot, |
197 CFX_RenderDevice* pDevice, | 195 CFX_RenderDevice* pDevice, |
198 CFX_Matrix* pUser2Device, | 196 CFX_Matrix* pUser2Device) override; |
199 uint32_t dwFlags) override; | |
200 void OnDrawDeactive(CPDFSDK_PageView* pPageView, | 197 void OnDrawDeactive(CPDFSDK_PageView* pPageView, |
201 CPDFSDK_Annot* pAnnot, | 198 CPDFSDK_Annot* pAnnot, |
202 CFX_RenderDevice* pDevice, | 199 CFX_RenderDevice* pDevice, |
203 CFX_Matrix* pUser2Device, | 200 CFX_Matrix* pUser2Device) override; |
204 uint32_t dwFlags) override; | |
205 | 201 |
206 protected: | 202 protected: |
207 FX_BOOL m_bMouseIn; | 203 FX_BOOL m_bMouseIn; |
208 FX_BOOL m_bMouseDown; | 204 FX_BOOL m_bMouseDown; |
209 }; | 205 }; |
210 | 206 |
211 #endif // FPDFSDK_FORMFILLER_CFFL_FORMFILLER_H_ | 207 #endif // FPDFSDK_FORMFILLER_CFFL_FORMFILLER_H_ |
OLD | NEW |