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/include/cpdfsdk_environment.h" | 7 #include "fpdfsdk/cpdfsdk_environment.h" |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
| 11 #include "fpdfsdk/cpdfsdk_annothandlermgr.h" |
| 12 #include "fpdfsdk/cpdfsdk_document.h" |
11 #include "fpdfsdk/formfiller/cffl_interactiveformfiller.h" | 13 #include "fpdfsdk/formfiller/cffl_interactiveformfiller.h" |
12 #include "fpdfsdk/include/cpdfsdk_annothandlermgr.h" | 14 #include "fpdfsdk/fsdk_actionhandler.h" |
13 #include "fpdfsdk/include/cpdfsdk_document.h" | |
14 #include "fpdfsdk/include/fsdk_actionhandler.h" | |
15 #include "fpdfsdk/javascript/ijs_runtime.h" | 15 #include "fpdfsdk/javascript/ijs_runtime.h" |
16 | 16 |
17 #ifdef PDF_ENABLE_XFA | 17 #ifdef PDF_ENABLE_XFA |
18 #include "fpdfsdk/fpdfxfa/fpdfxfa_app.h" | 18 #include "fpdfsdk/fpdfxfa/fpdfxfa_app.h" |
19 #endif // PDF_ENABLE_XFA | 19 #endif // PDF_ENABLE_XFA |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 // NOTE: |bsUTF16LE| must outlive the use of the result. Care must be taken | 23 // NOTE: |bsUTF16LE| must outlive the use of the result. Care must be taken |
24 // since modifying the result would impact |bsUTF16LE|. | 24 // since modifying the result would impact |bsUTF16LE|. |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 delete[] pbuff; | 535 delete[] pbuff; |
536 return wsRet; | 536 return wsRet; |
537 } | 537 } |
538 | 538 |
539 void CPDFSDK_Environment::PageEvent(int iPageCount, | 539 void CPDFSDK_Environment::PageEvent(int iPageCount, |
540 uint32_t dwEventType) const { | 540 uint32_t dwEventType) const { |
541 if (m_pInfo && m_pInfo->FFI_PageEvent) | 541 if (m_pInfo && m_pInfo->FFI_PageEvent) |
542 m_pInfo->FFI_PageEvent(m_pInfo, iPageCount, dwEventType); | 542 m_pInfo->FFI_PageEvent(m_pInfo, iPageCount, dwEventType); |
543 } | 543 } |
544 #endif // PDF_ENABLE_XFA | 544 #endif // PDF_ENABLE_XFA |
OLD | NEW |