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 #include "public/fpdf_formfill.h" | 7 #include "public/fpdf_formfill.h" |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "fpdfsdk/include/fsdk_define.h" | 11 #include "fpdfsdk/include/fsdk_define.h" |
12 #include "fpdfsdk/include/fsdk_mgr.h" | 12 #include "fpdfsdk/include/fsdk_mgr.h" |
13 #include "public/fpdfview.h" | 13 #include "public/fpdfview.h" |
14 | 14 |
15 #ifdef PDF_ENABLE_XFA | 15 #ifdef PDF_ENABLE_XFA |
16 #include "../include/fpdfxfa/fpdfxfa_app.h" | 16 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_app.h" |
17 #include "../include/fpdfxfa/fpdfxfa_doc.h" | 17 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h" |
18 #include "../include/fpdfxfa/fpdfxfa_page.h" | 18 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_page.h" |
19 #endif // PDF_ENABLE_XFA | 19 #endif // PDF_ENABLE_XFA |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 CPDFSDK_Document* FormHandleToSDKDoc(FPDF_FORMHANDLE hHandle) { | 23 CPDFSDK_Document* FormHandleToSDKDoc(FPDF_FORMHANDLE hHandle) { |
24 CPDFDoc_Environment* pEnv = (CPDFDoc_Environment*)hHandle; | 24 CPDFDoc_Environment* pEnv = (CPDFDoc_Environment*)hHandle; |
25 return pEnv ? pEnv->GetSDKDocument() : nullptr; | 25 return pEnv ? pEnv->GetSDKDocument() : nullptr; |
26 } | 26 } |
27 | 27 |
28 CPDFSDK_InterForm* FormHandleToInterForm(FPDF_FORMHANDLE hHandle) { | 28 CPDFSDK_InterForm* FormHandleToInterForm(FPDF_FORMHANDLE hHandle) { |
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 pActionHandler->DoAction_Page(action, CPDF_AAction::OpenPage, pSDKDoc); | 734 pActionHandler->DoAction_Page(action, CPDF_AAction::OpenPage, pSDKDoc); |
735 } | 735 } |
736 } else { | 736 } else { |
737 if (aa.ActionExist(CPDF_AAction::ClosePage)) { | 737 if (aa.ActionExist(CPDF_AAction::ClosePage)) { |
738 CPDF_Action action = aa.GetAction(CPDF_AAction::ClosePage); | 738 CPDF_Action action = aa.GetAction(CPDF_AAction::ClosePage); |
739 pActionHandler->DoAction_Page(action, CPDF_AAction::ClosePage, pSDKDoc); | 739 pActionHandler->DoAction_Page(action, CPDF_AAction::ClosePage, pSDKDoc); |
740 } | 740 } |
741 } | 741 } |
742 } | 742 } |
743 } | 743 } |
OLD | NEW |