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 "xfa/src/fxfa/fm2js/xfa_expression.h" | 7 #include "xfa/fxfa/fm2js/xfa_expression.h" |
8 | 8 |
9 #include "core/include/fxcrt/fx_basic.h" | 9 #include "core/include/fxcrt/fx_basic.h" |
10 | 10 |
11 namespace { | 11 namespace { |
12 | 12 |
13 const CFX_WideStringC RUNTIMEBLOCKTEMPARRAY = | 13 const CFX_WideStringC RUNTIMEBLOCKTEMPARRAY = |
14 FX_WSTRC(L"foxit_xfa_formcalc_runtime_block_temp_array"); | 14 FX_WSTRC(L"foxit_xfa_formcalc_runtime_block_temp_array"); |
15 | 15 |
16 const CFX_WideStringC RUNTIMEBLOCKTEMPARRAYINDEX = | 16 const CFX_WideStringC RUNTIMEBLOCKTEMPARRAYINDEX = |
17 FX_WSTRC(L"foxit_xfa_formcalc_runtime_block_temp_array_index"); | 17 FX_WSTRC(L"foxit_xfa_formcalc_runtime_block_temp_array_index"); |
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 } | 618 } |
619 javascript << FX_WSTRC(L" = "); | 619 javascript << FX_WSTRC(L" = "); |
620 javascript << RUNTIMEBLOCKTEMPARRAY; | 620 javascript << RUNTIMEBLOCKTEMPARRAY; |
621 javascript << FX_WSTRC(L"["); | 621 javascript << FX_WSTRC(L"["); |
622 javascript << RUNTIMEBLOCKTEMPARRAYINDEX; | 622 javascript << RUNTIMEBLOCKTEMPARRAYINDEX; |
623 javascript << FX_WSTRC(L"++];\n"); | 623 javascript << FX_WSTRC(L"++];\n"); |
624 m_pList->ToImpliedReturnJS(javascript); | 624 m_pList->ToImpliedReturnJS(javascript); |
625 javascript << FX_WSTRC(L"}\n"); | 625 javascript << FX_WSTRC(L"}\n"); |
626 javascript << FX_WSTRC(L"}\n"); | 626 javascript << FX_WSTRC(L"}\n"); |
627 } | 627 } |
OLD | NEW |