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_FM2JSAPI_H_ | |
8 #define XFA_SRC_FXFA_FM2JS_XFA_FM2JSAPI_H_ | |
9 | |
10 #include "core/include/fxcrt/fx_basic.h" | |
11 #include "xfa/include/fxjse/fxjse.h" | |
12 #include "xfa/src/fxfa/parser/xfa_document.h" | |
13 | |
14 #define FOXIT_XFA_FM2JS_FORMCALC_RUNTIME "foxit_xfa_formcalc_runtime" | |
15 | |
16 #ifdef __cplusplus | |
17 extern "C" { | |
18 #endif | |
19 | |
20 typedef struct XFA_HFM2JSCONTEXT_ { void** pData; } * XFA_HFM2JSCONTEXT; | |
21 int32_t XFA_FM2JS_Translate(const CFX_WideStringC& wsFormcalc, | |
22 CFX_WideTextBuf& wsJavascript, | |
23 CFX_WideString& wsError); | |
24 XFA_HFM2JSCONTEXT XFA_FM2JS_ContextCreate(); | |
25 void XFA_FM2JS_ContextInitialize(XFA_HFM2JSCONTEXT hFM2JSContext, | |
26 FXJSE_HRUNTIME hScriptRuntime, | |
27 FXJSE_HCONTEXT hScriptContext, | |
28 CXFA_Document* pDocument); | |
29 void XFA_FM2JS_GlobalPropertyGetter(XFA_HFM2JSCONTEXT hFM2JSContext, | |
30 FXJSE_HVALUE hValue); | |
31 void XFA_FM2JS_ContextRelease(XFA_HFM2JSCONTEXT hFM2JSContext); | |
32 | |
33 #ifdef __cplusplus | |
34 } | |
35 #endif | |
36 | |
37 #endif // XFA_SRC_FXFA_FM2JS_XFA_FM2JSAPI_H_ | |
OLD | NEW |