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/include/fx_basic.h" |
10 | 10 |
11 namespace { | 11 namespace { |
12 | 12 |
13 const CFX_WideStringC RUNTIMEBLOCKTEMPARRAY = | 13 const FX_WCHAR RUNTIMEBLOCKTEMPARRAY[] = |
14 FX_WSTRC(L"foxit_xfa_formcalc_runtime_block_temp_array"); | 14 L"foxit_xfa_formcalc_runtime_block_temp_array"; |
15 | 15 |
16 const CFX_WideStringC RUNTIMEBLOCKTEMPARRAYINDEX = | 16 const FX_WCHAR RUNTIMEBLOCKTEMPARRAYINDEX[] = |
17 FX_WSTRC(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 |
20 | 20 |
21 CXFA_FMExpression::CXFA_FMExpression(uint32_t line) | 21 CXFA_FMExpression::CXFA_FMExpression(uint32_t line) |
22 : m_type(XFA_FM_EXPTYPE_UNKNOWN), m_line(line) {} | 22 : m_type(XFA_FM_EXPTYPE_UNKNOWN), m_line(line) {} |
23 | 23 |
24 CXFA_FMExpression::CXFA_FMExpression(uint32_t line, XFA_FM_EXPTYPE type) | 24 CXFA_FMExpression::CXFA_FMExpression(uint32_t line, XFA_FM_EXPTYPE type) |
25 : m_type(type), m_line(line) {} | 25 : m_type(type), m_line(line) {} |
26 | 26 |
27 void CXFA_FMExpression::ToJavaScript(CFX_WideTextBuf& javascript) {} | 27 void CXFA_FMExpression::ToJavaScript(CFX_WideTextBuf& javascript) {} |
(...skipping 590 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 |