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 "fpdfsdk/include/fpdfxfa/fpdfxfa_app.h" |
| 8 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h" |
| 9 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_page.h" |
| 10 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_util.h" |
7 #include "fpdfsdk/include/fsdk_define.h" | 11 #include "fpdfsdk/include/fsdk_define.h" |
8 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h" | |
9 #include "fpdfsdk/include/fsdk_mgr.h" | 12 #include "fpdfsdk/include/fsdk_mgr.h" |
10 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_app.h" | |
11 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_util.h" | |
12 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_page.h" | |
13 #include "fpdfsdk/include/javascript/IJavaScript.h" | 13 #include "fpdfsdk/include/javascript/IJavaScript.h" |
14 #include "public/fpdf_formfill.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 |
(...skipping 1226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1249 } | 1249 } |
1250 | 1250 |
1251 return _GetHValueByName(szPropName, hValue, | 1251 return _GetHValueByName(szPropName, hValue, |
1252 m_pSDKDoc->GetEnv()->GetJSRuntime()); | 1252 m_pSDKDoc->GetEnv()->GetJSRuntime()); |
1253 } | 1253 } |
1254 FX_BOOL CPDFXFA_Document::_GetHValueByName(const CFX_ByteStringC& utf8Name, | 1254 FX_BOOL CPDFXFA_Document::_GetHValueByName(const CFX_ByteStringC& utf8Name, |
1255 FXJSE_HVALUE hValue, | 1255 FXJSE_HVALUE hValue, |
1256 IJS_Runtime* runTime) { | 1256 IJS_Runtime* runTime) { |
1257 return runTime->GetHValueByName(utf8Name, hValue); | 1257 return runTime->GetHValueByName(utf8Name, hValue); |
1258 } | 1258 } |
OLD | NEW |