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" | |
8 #include "../../include/fsdk_define.h" | 7 #include "../../include/fsdk_define.h" |
9 #include "../../include/fpdfxfa/fpdfxfa_doc.h" | 8 #include "../../include/fpdfxfa/fpdfxfa_doc.h" |
10 #include "../../include/fsdk_mgr.h" | 9 #include "../../include/fsdk_mgr.h" |
11 #include "../../include/fpdfxfa/fpdfxfa_app.h" | 10 #include "../../include/fpdfxfa/fpdfxfa_app.h" |
12 #include "../../include/fpdfxfa/fpdfxfa_util.h" | 11 #include "../../include/fpdfxfa/fpdfxfa_util.h" |
13 #include "../../include/fpdfxfa/fpdfxfa_page.h" | 12 #include "../../include/fpdfxfa/fpdfxfa_page.h" |
14 #include "../../include/javascript/IJavaScript.h" | 13 #include "../../include/javascript/IJavaScript.h" |
| 14 #include "public/fpdf_formfill.h" |
15 | 15 |
16 #define IDS_XFA_Validate_Input \ | 16 #define IDS_XFA_Validate_Input \ |
17 "At least one required field was empty. Please fill in the required " \ | 17 "At least one required field was empty. Please fill in the required " \ |
18 "fields\r\n(highlighted) before continuing." | 18 "fields\r\n(highlighted) before continuing." |
19 | 19 |
20 // submit | 20 // submit |
21 #define FXFA_CONFIG 0x00000001 | 21 #define FXFA_CONFIG 0x00000001 |
22 #define FXFA_TEMPLATE 0x00000010 | 22 #define FXFA_TEMPLATE 0x00000010 |
23 #define FXFA_LOCALESET 0x00000100 | 23 #define FXFA_LOCALESET 0x00000100 |
24 #define FXFA_DATASETS 0x00001000 | 24 #define FXFA_DATASETS 0x00001000 |
(...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1267 } | 1267 } |
1268 | 1268 |
1269 return _GetHValueByName(szPropName, hValue, | 1269 return _GetHValueByName(szPropName, hValue, |
1270 m_pSDKDoc->GetEnv()->GetJSRuntime()); | 1270 m_pSDKDoc->GetEnv()->GetJSRuntime()); |
1271 } | 1271 } |
1272 FX_BOOL CPDFXFA_Document::_GetHValueByName(const CFX_ByteStringC& utf8Name, | 1272 FX_BOOL CPDFXFA_Document::_GetHValueByName(const CFX_ByteStringC& utf8Name, |
1273 FXJSE_HVALUE hValue, | 1273 FXJSE_HVALUE hValue, |
1274 IJS_Runtime* runTime) { | 1274 IJS_Runtime* runTime) { |
1275 return runTime->GetHValueByName(utf8Name, hValue); | 1275 return runTime->GetHValueByName(utf8Name, hValue); |
1276 } | 1276 } |
OLD | NEW |