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