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/fpdfxfa/cpdfxfa_docenvironment.h" | 7 #include "fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h" |
8 | 8 |
9 #include "core/fpdfapi/fpdf_parser/cpdf_array.h" | 9 #include "core/fpdfapi/fpdf_parser/cpdf_array.h" |
10 #include "core/fpdfapi/fpdf_parser/cpdf_stream_acc.h" | 10 #include "core/fpdfapi/fpdf_parser/cpdf_stream_acc.h" |
11 #include "core/fpdfapi/fpdf_parser/cpdf_string.h" | 11 #include "core/fpdfapi/fpdf_parser/cpdf_string.h" |
| 12 #include "fpdfsdk/cpdfsdk_document.h" |
| 13 #include "fpdfsdk/cpdfsdk_environment.h" |
| 14 #include "fpdfsdk/cpdfsdk_interform.h" |
| 15 #include "fpdfsdk/cpdfsdk_pageview.h" |
12 #include "fpdfsdk/fpdfxfa/fpdfxfa_doc.h" | 16 #include "fpdfsdk/fpdfxfa/fpdfxfa_doc.h" |
13 #include "fpdfsdk/fpdfxfa/fpdfxfa_page.h" | 17 #include "fpdfsdk/fpdfxfa/fpdfxfa_page.h" |
14 #include "fpdfsdk/include/cpdfsdk_document.h" | |
15 #include "fpdfsdk/include/cpdfsdk_environment.h" | |
16 #include "fpdfsdk/include/cpdfsdk_interform.h" | |
17 #include "fpdfsdk/include/cpdfsdk_pageview.h" | |
18 #include "fpdfsdk/javascript/ijs_runtime.h" | 18 #include "fpdfsdk/javascript/ijs_runtime.h" |
19 #include "xfa/fxfa/include/xfa_ffdocview.h" | 19 #include "xfa/fxfa/include/xfa_ffdocview.h" |
20 #include "xfa/fxfa/include/xfa_ffwidget.h" | 20 #include "xfa/fxfa/include/xfa_ffwidget.h" |
21 #include "xfa/fxfa/include/xfa_ffwidgethandler.h" | 21 #include "xfa/fxfa/include/xfa_ffwidgethandler.h" |
22 | 22 |
23 #define IDS_XFA_Validate_Input \ | 23 #define IDS_XFA_Validate_Input \ |
24 "At least one required field was empty. Please fill in the required " \ | 24 "At least one required field was empty. Please fill in the required " \ |
25 "fields\r\n(highlighted) before continuing." | 25 "fields\r\n(highlighted) before continuing." |
26 | 26 |
27 // submit | 27 // submit |
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 if (!m_pJSContext) { | 1011 if (!m_pJSContext) { |
1012 m_pDocument->GetSDKDoc()->GetEnv()->GetJSRuntime()->SetReaderDocument( | 1012 m_pDocument->GetSDKDoc()->GetEnv()->GetJSRuntime()->SetReaderDocument( |
1013 m_pDocument->GetSDKDoc()); | 1013 m_pDocument->GetSDKDoc()); |
1014 m_pJSContext = | 1014 m_pJSContext = |
1015 m_pDocument->GetSDKDoc()->GetEnv()->GetJSRuntime()->NewContext(); | 1015 m_pDocument->GetSDKDoc()->GetEnv()->GetJSRuntime()->NewContext(); |
1016 } | 1016 } |
1017 | 1017 |
1018 return m_pDocument->GetSDKDoc()->GetEnv()->GetJSRuntime()->GetValueByName( | 1018 return m_pDocument->GetSDKDoc()->GetEnv()->GetJSRuntime()->GetValueByName( |
1019 szPropName, pValue); | 1019 szPropName, pValue); |
1020 } | 1020 } |
OLD | NEW |