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_IFORMFILLER_H_ | 7 #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_ |
8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_ | 8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 | 11 |
12 #include "FormFiller.h" | 12 #include "FormFiller.h" |
13 | 13 |
14 class CFFL_FormFiller; | 14 class CFFL_FormFiller; |
15 class CFFL_PrivateData; | 15 class CFFL_PrivateData; |
16 | 16 |
17 class CFFL_IFormFiller : public IPWL_Filler_Notify { | 17 class CFFL_IFormFiller : public IPWL_Filler_Notify { |
18 public: | 18 public: |
19 explicit CFFL_IFormFiller(CPDFDoc_Environment* pApp); | 19 explicit CFFL_IFormFiller(CPDFDoc_Environment* pApp); |
20 ~CFFL_IFormFiller() override; | 20 ~CFFL_IFormFiller() override; |
21 | 21 |
22 virtual FX_BOOL Annot_HitTest(CPDFSDK_PageView* pPageView, | 22 virtual FX_BOOL Annot_HitTest(CPDFSDK_PageView* pPageView, |
23 CPDFSDK_Annot* pAnnot, | 23 CPDFSDK_Annot* pAnnot, |
24 CPDF_Point point); | 24 CPDF_Point point); |
25 virtual FX_RECT GetViewBBox(CPDFSDK_PageView* pPageView, | 25 virtual FX_RECT GetViewBBox(CPDFSDK_PageView* pPageView, |
26 CPDFSDK_Annot* pAnnot); | 26 CPDFSDK_Annot* pAnnot); |
27 virtual void OnDraw(CPDFSDK_PageView* pPageView, | 27 virtual void OnDraw(CPDFSDK_PageView* pPageView, |
28 CPDFSDK_Annot* pAnnot, | 28 CPDFSDK_Annot* pAnnot, |
29 CFX_RenderDevice* pDevice, | 29 CFX_RenderDevice* pDevice, |
30 CPDF_Matrix* pUser2Device, | 30 CFX_Matrix* pUser2Device, |
31 FX_DWORD dwFlags); | 31 FX_DWORD dwFlags); |
32 | 32 |
33 virtual void OnCreate(CPDFSDK_Annot* pAnnot); | 33 virtual void OnCreate(CPDFSDK_Annot* pAnnot); |
34 virtual void OnLoad(CPDFSDK_Annot* pAnnot); | 34 virtual void OnLoad(CPDFSDK_Annot* pAnnot); |
35 virtual void OnDelete(CPDFSDK_Annot* pAnnot); | 35 virtual void OnDelete(CPDFSDK_Annot* pAnnot); |
36 | 36 |
37 virtual void OnMouseEnter(CPDFSDK_PageView* pPageView, | 37 virtual void OnMouseEnter(CPDFSDK_PageView* pPageView, |
38 CPDFSDK_Annot* pAnnot, | 38 CPDFSDK_Annot* pAnnot, |
39 FX_UINT nFlag); | 39 FX_UINT nFlag); |
40 virtual void OnMouseExit(CPDFSDK_PageView* pPageView, | 40 virtual void OnMouseExit(CPDFSDK_PageView* pPageView, |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 141 |
142 class CFFL_PrivateData { | 142 class CFFL_PrivateData { |
143 public: | 143 public: |
144 CPDFSDK_Widget* pWidget; | 144 CPDFSDK_Widget* pWidget; |
145 CPDFSDK_PageView* pPageView; | 145 CPDFSDK_PageView* pPageView; |
146 int nWidgetAge; | 146 int nWidgetAge; |
147 int nValueAge; | 147 int nValueAge; |
148 }; | 148 }; |
149 | 149 |
150 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_ | 150 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_ |
OLD | NEW |