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 CPDFSDK_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(CPDFSDK_Environment* pApp); | 24 explicit CFFL_IFormFiller(CPDFSDK_Environment* pEnv); |
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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 uint32_t nFlag) override; | 166 uint32_t nFlag) override; |
167 void OnPopupPostOpen(void* pPrivateData, | 167 void OnPopupPostOpen(void* pPrivateData, |
168 FX_BOOL& bExit, | 168 FX_BOOL& bExit, |
169 uint32_t nFlag) override; | 169 uint32_t nFlag) override; |
170 void SetFocusAnnotTab(CPDFSDK_Annot* pWidget, | 170 void SetFocusAnnotTab(CPDFSDK_Annot* pWidget, |
171 FX_BOOL bSameField, | 171 FX_BOOL bSameField, |
172 FX_BOOL bNext); | 172 FX_BOOL bNext); |
173 #endif // PDF_ENABLE_XFA | 173 #endif // PDF_ENABLE_XFA |
174 void UnRegisterFormFiller(CPDFSDK_Annot* pAnnot); | 174 void UnRegisterFormFiller(CPDFSDK_Annot* pAnnot); |
175 | 175 |
176 CPDFSDK_Environment* const m_pApp; | 176 CPDFSDK_Environment* const m_pEnv; |
177 CFFL_Widget2Filler m_Maps; | 177 CFFL_Widget2Filler m_Maps; |
178 FX_BOOL m_bNotifying; | 178 FX_BOOL m_bNotifying; |
179 }; | 179 }; |
180 | 180 |
181 class CFFL_PrivateData { | 181 class CFFL_PrivateData { |
182 public: | 182 public: |
183 CPDFSDK_Widget* pWidget; | 183 CPDFSDK_Widget* pWidget; |
184 CPDFSDK_PageView* pPageView; | 184 CPDFSDK_PageView* pPageView; |
185 int nWidgetAge; | 185 int nWidgetAge; |
186 int nValueAge; | 186 int nValueAge; |
187 }; | 187 }; |
188 | 188 |
189 #endif // FPDFSDK_FORMFILLER_CFFL_IFORMFILLER_H_ | 189 #endif // FPDFSDK_FORMFILLER_CFFL_IFORMFILLER_H_ |
OLD | NEW |