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_IFORMFILLER_H_ | 7 #ifndef FPDFSDK_FORMFILLER_CFFL_IFORMFILLER_H_ |
8 #define FPDFSDK_FORMFILLER_CFFL_IFORMFILLER_H_ | 8 #define FPDFSDK_FORMFILLER_CFFL_IFORMFILLER_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
13 #include "fpdfsdk/include/fsdk_define.h" | 13 #include "fpdfsdk/include/fsdk_define.h" |
14 #include "fpdfsdk/pdfwindow/PWL_Edit.h" | 14 #include "fpdfsdk/pdfwindow/PWL_Edit.h" |
15 | 15 |
16 class CFFL_FormFiller; | 16 class CFFL_FormFiller; |
17 class CPDFDoc_Environment; | 17 class CPDFSDK_Environment; |
18 class CPDFSDK_Annot; | 18 class CPDFSDK_Annot; |
19 class CPDFSDK_PageView; | 19 class CPDFSDK_PageView; |
20 class CPDFSDK_Widget; | 20 class CPDFSDK_Widget; |
21 | 21 |
22 class CFFL_IFormFiller : public IPWL_Filler_Notify { | 22 class CFFL_IFormFiller : public IPWL_Filler_Notify { |
23 public: | 23 public: |
24 explicit CFFL_IFormFiller(CPDFDoc_Environment* pApp); | 24 explicit CFFL_IFormFiller(CPDFSDK_Environment* pApp); |
25 ~CFFL_IFormFiller() override; | 25 ~CFFL_IFormFiller() override; |
26 | 26 |
27 virtual FX_BOOL Annot_HitTest(CPDFSDK_PageView* pPageView, | 27 virtual FX_BOOL Annot_HitTest(CPDFSDK_PageView* pPageView, |
28 CPDFSDK_Annot* pAnnot, | 28 CPDFSDK_Annot* pAnnot, |
29 CFX_FloatPoint point); | 29 CFX_FloatPoint point); |
30 virtual FX_RECT GetViewBBox(CPDFSDK_PageView* pPageView, | 30 virtual FX_RECT GetViewBBox(CPDFSDK_PageView* pPageView, |
31 CPDFSDK_Annot* pAnnot); | 31 CPDFSDK_Annot* pAnnot); |
32 virtual void OnDraw(CPDFSDK_PageView* pPageView, | 32 virtual void OnDraw(CPDFSDK_PageView* pPageView, |
33 CPDFSDK_Annot* pAnnot, | 33 CPDFSDK_Annot* pAnnot, |
34 CFX_RenderDevice* pDevice, | 34 CFX_RenderDevice* pDevice, |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 uint32_t nFlag) override; | 164 uint32_t nFlag) override; |
165 void OnPopupPostOpen(void* pPrivateData, | 165 void OnPopupPostOpen(void* pPrivateData, |
166 FX_BOOL& bExit, | 166 FX_BOOL& bExit, |
167 uint32_t nFlag) override; | 167 uint32_t nFlag) override; |
168 void SetFocusAnnotTab(CPDFSDK_Annot* pWidget, | 168 void SetFocusAnnotTab(CPDFSDK_Annot* pWidget, |
169 FX_BOOL bSameField, | 169 FX_BOOL bSameField, |
170 FX_BOOL bNext); | 170 FX_BOOL bNext); |
171 #endif // PDF_ENABLE_XFA | 171 #endif // PDF_ENABLE_XFA |
172 void UnRegisterFormFiller(CPDFSDK_Annot* pAnnot); | 172 void UnRegisterFormFiller(CPDFSDK_Annot* pAnnot); |
173 | 173 |
174 CPDFDoc_Environment* const m_pApp; | 174 CPDFSDK_Environment* const m_pApp; |
175 CFFL_Widget2Filler m_Maps; | 175 CFFL_Widget2Filler m_Maps; |
176 FX_BOOL m_bNotifying; | 176 FX_BOOL m_bNotifying; |
177 }; | 177 }; |
178 | 178 |
179 class CFFL_PrivateData { | 179 class CFFL_PrivateData { |
180 public: | 180 public: |
181 CPDFSDK_Widget* pWidget; | 181 CPDFSDK_Widget* pWidget; |
182 CPDFSDK_PageView* pPageView; | 182 CPDFSDK_PageView* pPageView; |
183 int nWidgetAge; | 183 int nWidgetAge; |
184 int nValueAge; | 184 int nValueAge; |
185 }; | 185 }; |
186 | 186 |
187 #endif // FPDFSDK_FORMFILLER_CFFL_IFORMFILLER_H_ | 187 #endif // FPDFSDK_FORMFILLER_CFFL_IFORMFILLER_H_ |
OLD | NEW |