| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
| 6 | |
| 7 #ifndef XFA_SRC_FXFA_FM2JS_XFA_PROGRAM_H_ | |
| 8 #define XFA_SRC_FXFA_FM2JS_XFA_PROGRAM_H_ | |
| 9 | |
| 10 #include "xfa/src/fxfa/fm2js/xfa_error.h" | |
| 11 #include "xfa/src/fxfa/fm2js/xfa_fmparse.h" | |
| 12 | |
| 13 class CXFA_FMProgram { | |
| 14 public: | |
| 15 CXFA_FMProgram(); | |
| 16 ~CXFA_FMProgram(); | |
| 17 int32_t Init(const CFX_WideStringC& wsFormcalc); | |
| 18 int32_t ParseProgram(); | |
| 19 int32_t TranslateProgram(CFX_WideTextBuf& wsJavaScript); | |
| 20 CXFA_FMErrorInfo& GetError() { return m_pErrorInfo; } | |
| 21 | |
| 22 private: | |
| 23 CXFA_FMErrorInfo m_pErrorInfo; | |
| 24 CXFA_FMParse m_parse; | |
| 25 CXFA_FMFunctionDefinition* m_globalFunction; | |
| 26 }; | |
| 27 | |
| 28 #endif // XFA_SRC_FXFA_FM2JS_XFA_PROGRAM_H_ | |
| OLD | NEW |