| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_CPDFSDK_FORMFILLENVIRONMENT_H_ | 7 #ifndef FPDFSDK_CPDFSDK_FORMFILLENVIRONMENT_H_ |
| 8 #define FPDFSDK_CPDFSDK_FORMFILLENVIRONMENT_H_ | 8 #define FPDFSDK_CPDFSDK_FORMFILLENVIRONMENT_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "core/fpdfapi/page/cpdf_page.h" | 12 #include "core/fpdfapi/page/cpdf_page.h" |
| 13 #include "core/fpdfapi/parser/cpdf_document.h" | 13 #include "core/fpdfapi/parser/cpdf_document.h" |
| 14 #include "core/fpdfdoc/cpdf_occontext.h" | 14 #include "core/fpdfdoc/cpdf_occontext.h" |
| 15 #include "core/fxcrt/cfx_observable.h" | 15 #include "core/fxcrt/cfx_observable.h" |
| 16 #include "fpdfsdk/cfx_systemhandler.h" | 16 #include "fpdfsdk/cfx_systemhandler.h" |
| 17 #include "fpdfsdk/fsdk_define.h" | 17 #include "fpdfsdk/fsdk_define.h" |
| 18 #include "public/fpdf_formfill.h" | 18 #include "public/fpdf_formfill.h" |
| 19 #include "public/fpdf_fwlevent.h" | 19 #include "public/fpdf_fwlevent.h" |
| 20 | 20 |
| 21 class CFFL_InteractiveFormFiller; | 21 class CFFL_InteractiveFormFiller; |
| 22 class CFX_SystemHandler; | 22 class CFX_SystemHandler; |
| 23 class CPDFSDK_ActionHandler; | 23 class CPDFSDK_ActionHandler; |
| 24 class CPDFSDK_AnnotHandlerMgr; | 24 class CPDFSDK_AnnotHandlerMgr; |
| 25 class CPDFSDK_Document; | 25 class CPDFSDK_Document; |
| 26 class IJS_Runtime; | 26 class IJS_Runtime; |
| 27 | 27 |
| 28 class CPDFSDK_FormFillEnvironment final { | 28 class CPDFSDK_FormFillEnvironment |
| 29 : public CFX_Observable<CPDFSDK_FormFillEnvironment> { |
| 29 public: | 30 public: |
| 30 CPDFSDK_FormFillEnvironment(UnderlyingDocumentType* pDoc, | 31 CPDFSDK_FormFillEnvironment(UnderlyingDocumentType* pDoc, |
| 31 FPDF_FORMFILLINFO* pFFinfo); | 32 FPDF_FORMFILLINFO* pFFinfo); |
| 32 ~CPDFSDK_FormFillEnvironment(); | 33 ~CPDFSDK_FormFillEnvironment(); |
| 33 | 34 |
| 34 void Invalidate(FPDF_PAGE page, | 35 void Invalidate(FPDF_PAGE page, |
| 35 double left, | 36 double left, |
| 36 double top, | 37 double top, |
| 37 double right, | 38 double right, |
| 38 double bottom); | 39 double bottom); |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 std::unique_ptr<CPDFSDK_ActionHandler> m_pActionHandler; | 167 std::unique_ptr<CPDFSDK_ActionHandler> m_pActionHandler; |
| 167 std::unique_ptr<IJS_Runtime> m_pJSRuntime; | 168 std::unique_ptr<IJS_Runtime> m_pJSRuntime; |
| 168 FPDF_FORMFILLINFO* const m_pInfo; | 169 FPDF_FORMFILLINFO* const m_pInfo; |
| 169 std::unique_ptr<CPDFSDK_Document> m_pSDKDoc; | 170 std::unique_ptr<CPDFSDK_Document> m_pSDKDoc; |
| 170 UnderlyingDocumentType* const m_pUnderlyingDoc; | 171 UnderlyingDocumentType* const m_pUnderlyingDoc; |
| 171 std::unique_ptr<CFFL_InteractiveFormFiller> m_pFormFiller; | 172 std::unique_ptr<CFFL_InteractiveFormFiller> m_pFormFiller; |
| 172 std::unique_ptr<CFX_SystemHandler> m_pSysHandler; | 173 std::unique_ptr<CFX_SystemHandler> m_pSysHandler; |
| 173 }; | 174 }; |
| 174 | 175 |
| 175 #endif // FPDFSDK_CPDFSDK_FORMFILLENVIRONMENT_H_ | 176 #endif // FPDFSDK_CPDFSDK_FORMFILLENVIRONMENT_H_ |
| OLD | NEW |