7#ifndef FXJS_XFA_CFXJSE_FORMCALC_CONTEXT_H_
8#define FXJS_XFA_CFXJSE_FORMCALC_CONTEXT_H_
14#include "core/fxcrt/bytestring.h"
15#include "core/fxcrt/widetext_buffer.h"
16#include "fxjs/xfa/fxjse.h"
17#include "third_party/abseil-cpp/absl/types/optional.h"
18#include "v8/include/cppgc/persistent.h"
19#include "v8/include/v8-forward.h"
20#include "v8/include/v8-persistent-handle.h"
40 const v8::FunctionCallbackInfo<v8::Value>& info);
42 const v8::FunctionCallbackInfo<v8::Value>& info);
44 const v8::FunctionCallbackInfo<v8::Value>& info);
46 const v8::FunctionCallbackInfo<v8::Value>& info);
48 const v8::FunctionCallbackInfo<v8::Value>& info);
50 const v8::FunctionCallbackInfo<v8::Value>& info);
52 const v8::FunctionCallbackInfo<v8::Value>& info);
54 const v8::FunctionCallbackInfo<v8::Value>& info);
56 const v8::FunctionCallbackInfo<v8::Value>& info);
58 const v8::FunctionCallbackInfo<v8::Value>& info);
60 const v8::FunctionCallbackInfo<v8::Value>& info);
62 const v8::FunctionCallbackInfo<v8::Value>& info);
64 const v8::FunctionCallbackInfo<v8::Value>& info);
66 const v8::FunctionCallbackInfo<v8::Value>& info);
68 const v8::FunctionCallbackInfo<v8::Value>& info);
70 const v8::FunctionCallbackInfo<v8::Value>& info);
72 const v8::FunctionCallbackInfo<v8::Value>& info);
74 const v8::FunctionCallbackInfo<v8::Value>& info);
76 const v8::FunctionCallbackInfo<v8::Value>& info);
78 const v8::FunctionCallbackInfo<v8::Value>& info);
80 const v8::FunctionCallbackInfo<v8::Value>& info);
82 const v8::FunctionCallbackInfo<v8::Value>& info);
84 const v8::FunctionCallbackInfo<v8::Value>& info);
87 ByteStringView bsDate,
88 ByteStringView bsFormat,
89 ByteStringView bsLocale);
91 ByteStringView bsDate,
92 ByteStringView bsFormat,
93 ByteStringView bsLocale);
95 ByteStringView bsTime,
96 ByteStringView bsFormat,
97 ByteStringView bsLocale);
100 ByteStringView bsLocale,
104 ByteStringView bsLocale,
108 ByteStringView bsLocale);
111 ByteStringView bsLocale);
114 ByteStringView bsFormat,
115 ByteStringView bsLocale,
119 const v8::FunctionCallbackInfo<v8::Value>& info);
121 const v8::FunctionCallbackInfo<v8::Value>& info);
123 const v8::FunctionCallbackInfo<v8::Value>& info);
125 const v8::FunctionCallbackInfo<v8::Value>& info);
127 const v8::FunctionCallbackInfo<v8::Value>& info);
129 const v8::FunctionCallbackInfo<v8::Value>& info);
131 const v8::FunctionCallbackInfo<v8::Value>& info);
133 const v8::FunctionCallbackInfo<v8::Value>& info);
135 const v8::FunctionCallbackInfo<v8::Value>& info);
137 const v8::FunctionCallbackInfo<v8::Value>& info);
139 const v8::FunctionCallbackInfo<v8::Value>& info);
141 const v8::FunctionCallbackInfo<v8::Value>& info);
143 const v8::FunctionCallbackInfo<v8::Value>& info);
145 const v8::FunctionCallbackInfo<v8::Value>& info);
147 const v8::FunctionCallbackInfo<v8::Value>& info);
149 const v8::FunctionCallbackInfo<v8::Value>& info);
151 const v8::FunctionCallbackInfo<v8::Value>& info);
153 const v8::FunctionCallbackInfo<v8::Value>& info);
155 const v8::FunctionCallbackInfo<v8::Value>& info);
157 const v8::FunctionCallbackInfo<v8::Value>& info);
160 const v8::FunctionCallbackInfo<v8::Value>& info);
162 const v8::FunctionCallbackInfo<v8::Value>& info);
164 const v8::FunctionCallbackInfo<v8::Value>& info);
166 const v8::FunctionCallbackInfo<v8::Value>& info);
168 const v8::FunctionCallbackInfo<v8::Value>& info);
170 const v8::FunctionCallbackInfo<v8::Value>& info);
172 const v8::FunctionCallbackInfo<v8::Value>& info);
174 const v8::FunctionCallbackInfo<v8::Value>& info);
176 const v8::FunctionCallbackInfo<v8::Value>& info);
178 const v8::FunctionCallbackInfo<v8::Value>& info);
180 const v8::FunctionCallbackInfo<v8::Value>& info);
182 const v8::FunctionCallbackInfo<v8::Value>& info);
184 const v8::FunctionCallbackInfo<v8::Value>& info);
186 const v8::FunctionCallbackInfo<v8::Value>& info);
188 const v8::FunctionCallbackInfo<v8::Value>& info);
190 const v8::FunctionCallbackInfo<v8::Value>& info);
192 const v8::FunctionCallbackInfo<v8::Value>& info);
194 const v8::FunctionCallbackInfo<v8::Value>& info);
196 const v8::FunctionCallbackInfo<v8::Value>& info);
198 const v8::FunctionCallbackInfo<v8::Value>& info);
201 const v8::FunctionCallbackInfo<v8::Value>& info);
203 const v8::FunctionCallbackInfo<v8::Value>& info);
205 const v8::FunctionCallbackInfo<v8::Value>& info);
208 const v8::FunctionCallbackInfo<v8::Value>& info);
211 const v8::FunctionCallbackInfo<v8::Value>& info);
214 const v8::FunctionCallbackInfo<v8::Value>& info);
217 const v8::FunctionCallbackInfo<v8::Value>& info);
220 const v8::FunctionCallbackInfo<v8::Value>& info);
222 const v8::FunctionCallbackInfo<v8::Value>& info);
224 const v8::FunctionCallbackInfo<v8::Value>& info);
227 const v8::FunctionCallbackInfo<v8::Value>& info);
229 const v8::FunctionCallbackInfo<v8::Value>& info);
232 const v8::FunctionCallbackInfo<v8::Value>& info);
234 const v8::FunctionCallbackInfo<v8::Value>& info);
236 const v8::FunctionCallbackInfo<v8::Value>& info);
239 const v8::FunctionCallbackInfo<v8::Value>& info);
241 const v8::FunctionCallbackInfo<v8::Value>& info);
244 const v8::FunctionCallbackInfo<v8::Value>& info);
247 const v8::FunctionCallbackInfo<v8::Value>& info);
250 const v8::FunctionCallbackInfo<v8::Value>& info);
252 const v8::FunctionCallbackInfo<v8::Value>& info);
254 const v8::FunctionCallbackInfo<v8::Value>& info);
256 const v8::FunctionCallbackInfo<v8::Value>& info);
258 const v8::FunctionCallbackInfo<v8::Value>& info);
260 const v8::FunctionCallbackInfo<v8::Value>& info);
262 const v8::FunctionCallbackInfo<v8::Value>& info);
264 const v8::FunctionCallbackInfo<v8::Value>& info);
266 const v8::FunctionCallbackInfo<v8::Value>& info);
268 const v8::FunctionCallbackInfo<v8::Value>& info);
271 WideStringView wsFormcalc);
278 friend class FormCalcContextTest_GenerateSomExpression_Test;
279 friend class FormCalcContextTest_IsIsoDateFormat_Test;
280 friend class FormCalcContextTest_IsIsoTimeFormat_Test;
282 static ByteString GenerateSomExpression(ByteStringView bsName,
288 const v8::FunctionCallbackInfo<v8::Value>& info,
291 static bool IsIsoDateTimeFormat(ByteStringView bsData,
296 static bool IsIsoDateFormat(ByteStringView bsData,
301 static bool IsIsoTimeFormat(ByteStringView bsData);
303 static int32_t DateString2Num(ByteStringView bsDate);
305 bool ApplyToExpansion(
306 std::function<
void(
v8::Isolate*, v8::Local<v8::Value>)> fn,
307 const v8::FunctionCallbackInfo<v8::Value>& info,
310 bool ApplyToArray(
v8::Isolate* pIsolate,
311 std::function<
void(
v8::Isolate*, v8::Local<v8::Value>)> fn,
312 v8::Local<v8::Array> pArray);
314 void ApplyToObject(
v8::Isolate* pIsolate,
315 std::function<
void(
v8::Isolate*, v8::Local<v8::Value>)> fn,
316 v8::Local<v8::Object> pObject);
318 void ThrowArgumentMismatchException()
const;
319 void ThrowNoDefaultPropertyException(ByteStringView name)
const;
320 void ThrowCompilerErrorException()
const;
321 void ThrowDivideByZeroException()
const;
322 void ThrowServerDeniedException()
const;
323 void ThrowPropertyNotInObjectException(ByteStringView name,
324 ByteStringView exp)
const;
325 void ThrowParamCountMismatchException(ByteStringView method)
const;
326 void ThrowException(ByteStringView str)
const;
329 v8::Global<v8::Value> m_Value;
330 cppgc::WeakPersistent<CXFA_Document>
const m_pDocument;
const FXJSE_CLASS_DESCRIPTOR kNormalClassDescriptor
const FXJSE_CLASS_DESCRIPTOR kGlobalClassDescriptor
const FXJSE_CLASS_DESCRIPTOR kVariablesClassDescriptor
EventParamScope(CFXJSE_Engine *pEngine, CXFA_Node *pTarget, CXFA_EventParam *pEventParam)
ResolveResult & operator=(const ResolveResult &that)
XFA_SCRIPTATTRIBUTEINFO script_attribute
ResolveResult(const ResolveResult &that)
void SetRunAtType(XFA_AttributeValue eRunAt)
static CJS_Result NormalMethodCall(const v8::FunctionCallbackInfo< v8::Value > &info, const WideString &functionName)
bool IsResolvingNodes() const
CXFA_Object * ToXFAObject(v8::Local< v8::Value > obj)
CXFA_Node * GetEventTarget() const
static v8::Local< v8::Value > NormalPropertyGetter(v8::Isolate *pIsolate, v8::Local< v8::Object > pObject, ByteStringView szPropName)
static void GlobalPropertySetter(v8::Isolate *pIsolate, v8::Local< v8::Object > pObject, ByteStringView szPropName, v8::Local< v8::Value > pValue)
CFXJSE_Engine(CXFA_Document *pDocument, CJS_Runtime *fxjs_runtime)
static FXJSE_ClassPropType GlobalPropTypeGetter(v8::Isolate *pIsolate, v8::Local< v8::Object > pObject, ByteStringView szPropName, bool bQueryIn)
CXFA_EventParam * GetEventParam() const
static CXFA_Object * ToObject(const v8::FunctionCallbackInfo< v8::Value > &info)
CXFA_Object * GetThisObject() const
CXFA_Script::Type GetType()
CFXJSE_Class * GetJseNormalClass() const
void AddNodesOfRunScript(CXFA_Node *pNode)
void SetNodesOfRunScript(std::vector< cppgc::Persistent< CXFA_Node > > *pArray)
static v8::Local< v8::Value > GlobalPropertyGetter(v8::Isolate *pIsolate, v8::Local< v8::Object > pObject, ByteStringView szPropName)
friend class EventParamScope
static FXJSE_ClassPropType NormalPropTypeGetter(v8::Isolate *pIsolate, v8::Local< v8::Object > pObject, ByteStringView szPropName, bool bQueryIn)
static CXFA_Object * ToObject(v8::Isolate *pIsolate, CFXJSE_Value *pValue)
absl::optional< ResolveResult > ResolveObjectsWithBindNode(CXFA_Object *refObject, WideStringView wsExpression, Mask< XFA_ResolveFlag > dwStyles, CXFA_Node *bindNode)
CFXJSE_Context * GetJseContextForTest() const
v8::Local< v8::Object > NewNormalXFAObject(CXFA_Object *obj)
CFXJSE_Context::ExecutionResult RunScript(CXFA_Script::Type eScriptType, WideStringView wsScript, CXFA_Object *pThisObject)
static void NormalPropertySetter(v8::Isolate *pIsolate, v8::Local< v8::Object > pObject, ByteStringView szPropName, v8::Local< v8::Value > pValue)
CXFA_Node * LastObjectFromUpArray()
~CFXJSE_Engine() override
absl::optional< ResolveResult > ResolveObjects(CXFA_Object *refObject, WideStringView wsExpression, Mask< XFA_ResolveFlag > dwStyles)
static CXFA_Object * ToObject(v8::Isolate *pIsolate, v8::Local< v8::Value > value)
static CXFA_Object * ToObject(CFXJSE_HostObject *pHostObj)
CXFA_Document * GetDocument() const
void AddObjectToUpArray(CXFA_Node *pNode)
v8::Local< v8::Object > GetOrCreateJSBindingFromMap(CXFA_Object *pObject)
v8::Local< v8::Value > GlobalPropertyGetter()
static void Space(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void CTerm(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Put(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void get_fm_value(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Pmt(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static ByteString Local2IsoDate(CFXJSE_HostObject *pThis, ByteStringView bsDate, ByteStringView bsFormat, ByteStringView bsLocale)
static void IPmt(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void UnitValue(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void TimeFmt(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void greater_operator(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Uuid(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Lower(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Len(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void LocalDateFmt(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Encode(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static ByteString Num2AllTime(CFXJSE_HostObject *pThis, int32_t iTime, ByteStringView bsFormat, ByteStringView bsLocale, bool bGM)
CXFA_Document * GetDocument() const
static void At(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static ByteString GetStandardTimeFormat(CFXJSE_HostObject *pThis, int32_t iStyle, ByteStringView bsLocale)
static bool fm_ref_equal(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Round(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Num2Time(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void less_operator(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
v8::Isolate * GetIsolate() const
static void Time2Num(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Mod(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Concat(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void is_fm_array(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Rate(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Sum(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void is_fm_object(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Replace(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static ByteString GetStandardDateFormat(CFXJSE_HostObject *pThis, int32_t iStyle, ByteStringView bsLocale)
static void logical_or_operator(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
CFXJSE_FormCalcContext * AsFormCalcContext() override
static void Decode(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void equality_operator(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void concat_fm_object(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void NPV(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void positive_operator(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void UnitType(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void DateFmt(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Format(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Num2GMTime(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Rtrim(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void greaterequal_operator(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Max(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void PV(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void multiple_operator(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void negative_operator(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static ByteString GetLocalDateFormat(CFXJSE_HostObject *pThis, int32_t iStyle, ByteStringView bsLocale, bool bStandard)
static void Within(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void lessequal_operator(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
~CFXJSE_FormCalcContext() override
static void Exists(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Ceil(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Right(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void logical_not_operator(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Get(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void IsoTime2Num(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Apr(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Ref(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Ltrim(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Eval(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void divide_operator(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Abs(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Date2Num(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void HasValue(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void If(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Date(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void WordNum(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void FV(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Stuff(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void assign_value_operator(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void fm_var_filter(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void logical_and_operator(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void notequality_operator(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Str(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void minus_operator(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void dotdot_accessor(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Choose(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Oneof(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Post(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Count(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static absl::optional< WideTextBuffer > Translate(cppgc::Heap *pHeap, WideStringView wsFormcalc)
static void get_fm_jsobj(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
CFXJSE_FormCalcContext(v8::Isolate *pIsolate, CFXJSE_Context *pScriptContext, CXFA_Document *pDoc)
static void Time(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Avg(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void dot_accessor(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static ByteString GetLocalTimeFormat(CFXJSE_HostObject *pThis, int32_t iStyle, ByteStringView bsLocale, bool bStandard)
static void IsoDate2Num(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Num2Date(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Parse(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static ByteString IsoDate2Local(CFXJSE_HostObject *pThis, ByteStringView bsDate, ByteStringView bsFormat, ByteStringView bsLocale)
static void Left(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void plus_operator(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Upper(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Substr(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static ByteString IsoTime2Local(CFXJSE_HostObject *pThis, ByteStringView bsTime, ByteStringView bsFormat, ByteStringView bsLocale)
static void PPmt(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void LocalTimeFmt(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Min(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void eval_translation(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Term(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
static void Floor(CFXJSE_HostObject *pThis, const v8::FunctionCallbackInfo< v8::Value > &info)
virtual CJX_Object * AsCJXObject()
CFXJSE_Engine::ResolveResult m_Result
CFXJSE_ScopeUtil_IsolateHandleContext(CFXJSE_Context *pContext)
static CJS_Result Failure(const WideString &str)
bool HasMethod(const WideString &func) const
CXFA_Object * GetXFAObject() const
CXFA_FFNotify * GetNotify() const
CFXJSE_Engine * GetScriptContext() const
CXFA_Object * GetXFAObject(XFA_HashCode wsNodeNameHash)
CXFA_Node * GetRoot() const
IJS_Runtime * GetIJSRuntime() const
CXFA_FFDoc * GetFFDoc() const
XFA_Element GetElementType() const
CXFA_Document * GetDocument() const
static CXFA_Script * FromNode(CXFA_Node *pNode)
XFA_AttributeValue GetRunAt()
WideString GetExpression()
CXFA_Script * GetScriptNode() const
CXFA_Node * GetThisNode() const
static CXFA_Variables * FromNode(CXFA_Node *pNode)
static WideString FromUTF8(ByteStringView str)
bool EqualsASCII(ByteStringView that) const
CXFA_ThisProxy * ToThisProxy(CXFA_Object *pObj)
CXFA_Node * ToNode(CXFA_Object *pObj)
#define CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
bool IsUndefined(v8::Local< v8::Value > value)
XFA_ScriptType eValueType
XFA_PacketSupport support
XFA_PacketType packet_type
XFA_ScriptType eValueType
XFA_ATTRIBUTE_CALLBACK callback
XFA_Element XFA_GetElementByName(WideStringView name)
ByteStringView XFA_AttributeValueToName(XFA_AttributeValue item)
absl::optional< XFA_AttributeValue > XFA_GetAttributeValueByName(WideStringView name)
ByteStringView XFA_ElementToName(XFA_Element elem)
absl::optional< XFA_SCRIPTATTRIBUTEINFO > XFA_GetScriptAttributeByName(XFA_Element eElement, WideStringView wsAttributeName)
absl::optional< XFA_PACKETINFO > XFA_GetPacketByName(WideStringView wsName)
absl::optional< XFA_ATTRIBUTEINFO > XFA_GetAttributeByName(WideStringView name)
XFA_PACKETINFO XFA_GetPacketByIndex(XFA_PacketType ePacket)
ByteStringView XFA_AttributeToName(XFA_Attribute attr)