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 "core/fpdfapi/fpdf_parser/include/cpdf_array.h" | 7 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" |
8 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 8 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" |
9 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" | 9 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" |
10 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h" | 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h" |
11 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_app.h" | 11 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_app.h" |
12 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h" | 12 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h" |
13 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_page.h" | 13 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_page.h" |
14 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_util.h" | 14 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_util.h" |
15 #include "fpdfsdk/include/fsdk_define.h" | 15 #include "fpdfsdk/include/fsdk_define.h" |
16 #include "fpdfsdk/include/fsdk_mgr.h" | 16 #include "fpdfsdk/include/fsdk_mgr.h" |
17 #include "fpdfsdk/include/javascript/IJavaScript.h" | 17 #include "fpdfsdk/javascript/ijs_runtime.h" |
18 #include "public/fpdf_formfill.h" | 18 #include "public/fpdf_formfill.h" |
19 | 19 |
20 #define IDS_XFA_Validate_Input \ | 20 #define IDS_XFA_Validate_Input \ |
21 "At least one required field was empty. Please fill in the required " \ | 21 "At least one required field was empty. Please fill in the required " \ |
22 "fields\r\n(highlighted) before continuing." | 22 "fields\r\n(highlighted) before continuing." |
23 | 23 |
24 // submit | 24 // submit |
25 #define FXFA_CONFIG 0x00000001 | 25 #define FXFA_CONFIG 0x00000001 |
26 #define FXFA_TEMPLATE 0x00000010 | 26 #define FXFA_TEMPLATE 0x00000010 |
27 #define FXFA_LOCALESET 0x00000100 | 27 #define FXFA_LOCALESET 0x00000100 |
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1278 } | 1278 } |
1279 | 1279 |
1280 return _GetHValueByName(szPropName, hValue, | 1280 return _GetHValueByName(szPropName, hValue, |
1281 m_pSDKDoc->GetEnv()->GetJSRuntime()); | 1281 m_pSDKDoc->GetEnv()->GetJSRuntime()); |
1282 } | 1282 } |
1283 FX_BOOL CPDFXFA_Document::_GetHValueByName(const CFX_ByteStringC& utf8Name, | 1283 FX_BOOL CPDFXFA_Document::_GetHValueByName(const CFX_ByteStringC& utf8Name, |
1284 FXJSE_HVALUE hValue, | 1284 FXJSE_HVALUE hValue, |
1285 IJS_Runtime* runTime) { | 1285 IJS_Runtime* runTime) { |
1286 return runTime->GetHValueByName(utf8Name, hValue); | 1286 return runTime->GetHValueByName(utf8Name, hValue); |
1287 } | 1287 } |
OLD | NEW |