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 #include "fpdfsdk/cpdfsdk_formfillenvironment.h" | 7 #include "fpdfsdk/cpdfsdk_formfillenvironment.h" |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "fpdfsdk/cpdfsdk_annothandlermgr.h" | 11 #include "fpdfsdk/cpdfsdk_annothandlermgr.h" |
12 #include "fpdfsdk/cpdfsdk_document.h" | 12 #include "fpdfsdk/cpdfsdk_document.h" |
| 13 #include "fpdfsdk/cpdfsdk_interform.h" |
13 #include "fpdfsdk/formfiller/cffl_interactiveformfiller.h" | 14 #include "fpdfsdk/formfiller/cffl_interactiveformfiller.h" |
14 #include "fpdfsdk/fsdk_actionhandler.h" | 15 #include "fpdfsdk/fsdk_actionhandler.h" |
15 #include "fpdfsdk/javascript/ijs_runtime.h" | 16 #include "fpdfsdk/javascript/ijs_runtime.h" |
16 #include "third_party/base/ptr_util.h" | 17 #include "third_party/base/ptr_util.h" |
17 | 18 |
18 #ifdef PDF_ENABLE_XFA | 19 #ifdef PDF_ENABLE_XFA |
19 #include "fpdfsdk/fpdfxfa/cpdfxfa_app.h" | 20 #include "fpdfsdk/fpdfxfa/cpdfxfa_app.h" |
20 #endif // PDF_ENABLE_XFA | 21 #endif // PDF_ENABLE_XFA |
21 | 22 |
22 namespace { | 23 namespace { |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 delete[] pbuff; | 546 delete[] pbuff; |
546 return wsRet; | 547 return wsRet; |
547 } | 548 } |
548 | 549 |
549 void CPDFSDK_FormFillEnvironment::PageEvent(int iPageCount, | 550 void CPDFSDK_FormFillEnvironment::PageEvent(int iPageCount, |
550 uint32_t dwEventType) const { | 551 uint32_t dwEventType) const { |
551 if (m_pInfo && m_pInfo->FFI_PageEvent) | 552 if (m_pInfo && m_pInfo->FFI_PageEvent) |
552 m_pInfo->FFI_PageEvent(m_pInfo, iPageCount, dwEventType); | 553 m_pInfo->FFI_PageEvent(m_pInfo, iPageCount, dwEventType); |
553 } | 554 } |
554 #endif // PDF_ENABLE_XFA | 555 #endif // PDF_ENABLE_XFA |
| 556 |
| 557 CPDFSDK_InterForm* CPDFSDK_FormFillEnvironment::GetInterForm() const { |
| 558 return m_pSDKDoc->GetInterForm(); |
| 559 } |
OLD | NEW |