| 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_FM_PROGRAM_H | 7 #ifndef _XFA_FM_PROGRAM_H |
| 8 #define _XFA_FM_PROGRAM_H | 8 #define _XFA_FM_PROGRAM_H |
| 9 class CXFA_FMProgram | 9 class CXFA_FMProgram |
| 10 { | 10 { |
| 11 public: | 11 public: |
| 12 CXFA_FMProgram(); | 12 CXFA_FMProgram(); |
| 13 ~CXFA_FMProgram(); | 13 ~CXFA_FMProgram(); |
| 14 FX_INT32 Init(FX_WSTR wsFormcalc); | 14 int32_t Init(FX_WSTR wsFormcalc); |
| 15 FX_INT32 ParseProgram(); | 15 int32_t ParseProgram(); |
| 16 FX_INT32 TranslateProgram(CFX_WideTextBuf &wsJavaScript); | 16 int32_t TranslateProgram(CFX_WideTextBuf &wsJavaScript); |
| 17 CXFA_FMErrorInfo& GetError() | 17 CXFA_FMErrorInfo& GetError() |
| 18 { | 18 { |
| 19 return m_pErrorInfo; | 19 return m_pErrorInfo; |
| 20 } | 20 } |
| 21 private: | 21 private: |
| 22 CXFA_FMErrorInfo m_pErrorInfo; | 22 CXFA_FMErrorInfo m_pErrorInfo; |
| 23 CXFA_FMParse m_parse; | 23 CXFA_FMParse m_parse; |
| 24 CXFA_FMFunctionDefinition *m_globalFunction; | 24 CXFA_FMFunctionDefinition *m_globalFunction; |
| 25 }; | 25 }; |
| 26 #endif | 26 #endif |
| OLD | NEW |