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 #ifndef XFA_SRC_FXFA_FM2JS_XFA_PROGRAM_H_ | 7 #ifndef XFA_FXFA_FM2JS_XFA_PROGRAM_H_ |
8 #define XFA_SRC_FXFA_FM2JS_XFA_PROGRAM_H_ | 8 #define XFA_FXFA_FM2JS_XFA_PROGRAM_H_ |
9 | 9 |
10 #include "xfa/src/fxfa/fm2js/xfa_error.h" | 10 #include "xfa/fxfa/fm2js/xfa_error.h" |
11 #include "xfa/src/fxfa/fm2js/xfa_fmparse.h" | 11 #include "xfa/fxfa/fm2js/xfa_fmparse.h" |
12 | 12 |
13 class CXFA_FMProgram { | 13 class CXFA_FMProgram { |
14 public: | 14 public: |
15 CXFA_FMProgram(); | 15 CXFA_FMProgram(); |
16 ~CXFA_FMProgram(); | 16 ~CXFA_FMProgram(); |
17 int32_t Init(const CFX_WideStringC& wsFormcalc); | 17 int32_t Init(const CFX_WideStringC& wsFormcalc); |
18 int32_t ParseProgram(); | 18 int32_t ParseProgram(); |
19 int32_t TranslateProgram(CFX_WideTextBuf& wsJavaScript); | 19 int32_t TranslateProgram(CFX_WideTextBuf& wsJavaScript); |
20 CXFA_FMErrorInfo& GetError() { return m_pErrorInfo; } | 20 CXFA_FMErrorInfo& GetError() { return m_pErrorInfo; } |
21 | 21 |
22 private: | 22 private: |
23 CXFA_FMErrorInfo m_pErrorInfo; | 23 CXFA_FMErrorInfo m_pErrorInfo; |
24 CXFA_FMParse m_parse; | 24 CXFA_FMParse m_parse; |
25 CXFA_FMFunctionDefinition* m_globalFunction; | 25 CXFA_FMFunctionDefinition* m_globalFunction; |
26 }; | 26 }; |
27 | 27 |
28 #endif // XFA_SRC_FXFA_FM2JS_XFA_PROGRAM_H_ | 28 #endif // XFA_FXFA_FM2JS_XFA_PROGRAM_H_ |
OLD | NEW |