| 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> |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 102 |
| 103 UnderlyingDocumentType* GetUnderlyingDocument() const { | 103 UnderlyingDocumentType* GetUnderlyingDocument() const { |
| 104 return m_pUnderlyingDoc; | 104 return m_pUnderlyingDoc; |
| 105 } | 105 } |
| 106 | 106 |
| 107 #ifdef PDF_ENABLE_XFA | 107 #ifdef PDF_ENABLE_XFA |
| 108 CPDF_Document* GetPDFDocument() const { | 108 CPDF_Document* GetPDFDocument() const { |
| 109 return m_pUnderlyingDoc ? m_pUnderlyingDoc->GetPDFDoc() : nullptr; | 109 return m_pUnderlyingDoc ? m_pUnderlyingDoc->GetPDFDoc() : nullptr; |
| 110 } | 110 } |
| 111 | 111 |
| 112 CPDFXFA_Document* GetXFADocument() const { return m_pUnderlyingDoc; } | 112 CPDFXFA_Context* GetXFAContext() const { return m_pUnderlyingDoc; } |
| 113 void ResetXFADocument() { m_pUnderlyingDoc = nullptr; } | 113 void ResetXFADocument() { m_pUnderlyingDoc = nullptr; } |
| 114 | 114 |
| 115 int GetPageViewCount() const { return m_pageMap.size(); } | 115 int GetPageViewCount() const { return m_pageMap.size(); } |
| 116 | 116 |
| 117 void DisplayCaret(FPDF_PAGE page, | 117 void DisplayCaret(FPDF_PAGE page, |
| 118 FPDF_BOOL bVisible, | 118 FPDF_BOOL bVisible, |
| 119 double left, | 119 double left, |
| 120 double top, | 120 double top, |
| 121 double right, | 121 double right, |
| 122 double bottom); | 122 double bottom); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 std::unique_ptr<CPDFSDK_InterForm> m_pInterForm; | 217 std::unique_ptr<CPDFSDK_InterForm> m_pInterForm; |
| 218 CPDFSDK_Annot::ObservedPtr m_pFocusAnnot; | 218 CPDFSDK_Annot::ObservedPtr m_pFocusAnnot; |
| 219 UnderlyingDocumentType* m_pUnderlyingDoc; | 219 UnderlyingDocumentType* m_pUnderlyingDoc; |
| 220 std::unique_ptr<CFFL_InteractiveFormFiller> m_pFormFiller; | 220 std::unique_ptr<CFFL_InteractiveFormFiller> m_pFormFiller; |
| 221 std::unique_ptr<CFX_SystemHandler> m_pSysHandler; | 221 std::unique_ptr<CFX_SystemHandler> m_pSysHandler; |
| 222 bool m_bChangeMask; | 222 bool m_bChangeMask; |
| 223 bool m_bBeingDestroyed; | 223 bool m_bBeingDestroyed; |
| 224 }; | 224 }; |
| 225 | 225 |
| 226 #endif // FPDFSDK_CPDFSDK_FORMFILLENVIRONMENT_H_ | 226 #endif // FPDFSDK_CPDFSDK_FORMFILLENVIRONMENT_H_ |
| OLD | NEW |