Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cfxjse_engine.h>
Classes | |
class | EventParamScope |
class | ResolveResult |
Public Member Functions | |
CFXJSE_Engine (CXFA_Document *pDocument, CJS_Runtime *fxjs_runtime) | |
~CFXJSE_Engine () override | |
CXFA_Node * | GetEventTarget () const |
CXFA_EventParam * | GetEventParam () const |
CFXJSE_Context::ExecutionResult | RunScript (CXFA_Script::Type eScriptType, WideStringView wsScript, CXFA_Object *pThisObject) |
absl::optional< ResolveResult > | ResolveObjects (CXFA_Object *refObject, WideStringView wsExpression, Mask< XFA_ResolveFlag > dwStyles) |
absl::optional< ResolveResult > | ResolveObjectsWithBindNode (CXFA_Object *refObject, WideStringView wsExpression, Mask< XFA_ResolveFlag > dwStyles, CXFA_Node *bindNode) |
v8::Local< v8::Object > | GetOrCreateJSBindingFromMap (CXFA_Object *pObject) |
CXFA_Object * | GetThisObject () const |
CFXJSE_Class * | GetJseNormalClass () const |
CXFA_Document * | GetDocument () const |
void | SetNodesOfRunScript (std::vector< cppgc::Persistent< CXFA_Node > > *pArray) |
void | AddNodesOfRunScript (CXFA_Node *pNode) |
void | SetRunAtType (XFA_AttributeValue eRunAt) |
bool | IsRunAtClient () |
CXFA_Script::Type | GetType () |
void | AddObjectToUpArray (CXFA_Node *pNode) |
CXFA_Node * | LastObjectFromUpArray () |
CXFA_Object * | ToXFAObject (v8::Local< v8::Value > obj) |
v8::Local< v8::Object > | NewNormalXFAObject (CXFA_Object *obj) |
bool | IsResolvingNodes () const |
CFXJSE_Context * | GetJseContextForTest () const |
Public Member Functions inherited from CFX_V8 | |
CFX_V8 (v8::Isolate *pIsolate) | |
virtual | ~CFX_V8 () |
v8::Isolate * | GetIsolate () const |
v8::Local< v8::Value > | NewNull () |
v8::Local< v8::Value > | NewUndefined () |
v8::Local< v8::Array > | NewArray () |
v8::Local< v8::Object > | NewObject () |
v8::Local< v8::Number > | NewNumber (int number) |
v8::Local< v8::Number > | NewNumber (double number) |
v8::Local< v8::Number > | NewNumber (float number) |
v8::Local< v8::Boolean > | NewBoolean (bool b) |
v8::Local< v8::String > | NewString (ByteStringView str) |
v8::Local< v8::String > | NewString (WideStringView str) |
v8::Local< v8::Date > | NewDate (double d) |
int | ToInt32 (v8::Local< v8::Value > pValue) |
bool | ToBoolean (v8::Local< v8::Value > pValue) |
double | ToDouble (v8::Local< v8::Value > pValue) |
WideString | ToWideString (v8::Local< v8::Value > pValue) |
ByteString | ToByteString (v8::Local< v8::Value > pValue) |
v8::Local< v8::Object > | ToObject (v8::Local< v8::Value > pValue) |
v8::Local< v8::Array > | ToArray (v8::Local< v8::Value > pValue) |
size_t | GetArrayLength (v8::Local< v8::Array > pArray) |
v8::Local< v8::Value > | GetArrayElement (v8::Local< v8::Array > pArray, size_t index) |
void | PutArrayElement (v8::Local< v8::Array > pArray, size_t index, v8::Local< v8::Value > pValue) |
std::vector< WideString > | GetObjectPropertyNames (v8::Local< v8::Object > pObj) |
v8::Local< v8::Value > | GetObjectProperty (v8::Local< v8::Object > pObj, ByteStringView bsUTF8PropertyName) |
void | PutObjectProperty (v8::Local< v8::Object > pObj, ByteStringView bsUTF8PropertyName, v8::Local< v8::Value > pValue) |
Static Public Member Functions | |
static CXFA_Object * | ToObject (const v8::FunctionCallbackInfo< v8::Value > &info) |
static CXFA_Object * | ToObject (v8::Isolate *pIsolate, v8::Local< v8::Value > value) |
static CXFA_Object * | ToObject (v8::Isolate *pIsolate, CFXJSE_Value *pValue) |
static CXFA_Object * | ToObject (CFXJSE_HostObject *pHostObj) |
static v8::Local< v8::Value > | GlobalPropertyGetter (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) |
static v8::Local< v8::Value > | NormalPropertyGetter (v8::Isolate *pIsolate, v8::Local< v8::Object > pObject, ByteStringView szPropName) |
static void | NormalPropertySetter (v8::Isolate *pIsolate, v8::Local< v8::Object > pObject, ByteStringView szPropName, v8::Local< v8::Value > pValue) |
static CJS_Result | NormalMethodCall (const v8::FunctionCallbackInfo< v8::Value > &info, const WideString &functionName) |
static FXJSE_ClassPropType | NormalPropTypeGetter (v8::Isolate *pIsolate, v8::Local< v8::Object > pObject, ByteStringView szPropName, bool bQueryIn) |
static FXJSE_ClassPropType | GlobalPropTypeGetter (v8::Isolate *pIsolate, v8::Local< v8::Object > pObject, ByteStringView szPropName, bool bQueryIn) |
Friends | |
class | EventParamScope |
Additional Inherited Members | |
Protected Member Functions inherited from CFX_V8 | |
void | SetIsolate (v8::Isolate *pIsolate) |
void | DisposeIsolate () |
Definition at line 49 of file cfxjse_engine.h.
CFXJSE_Engine::CFXJSE_Engine | ( | CXFA_Document * | pDocument, |
CJS_Runtime * | fxjs_runtime ) |
Definition at line 123 of file cfxjse_engine.cpp.
References CFXJSE_Engine().
Referenced by CFXJSE_Engine().
|
override |
Definition at line 144 of file cfxjse_engine.cpp.
References CFXJSE_ScopeUtil_IsolateHandleContext::CFXJSE_ScopeUtil_IsolateHandleContext().
Definition at line 896 of file cfxjse_engine.cpp.
Referenced by CJX_Object::TryContent().
Definition at line 563 of file cfxjse_engine.cpp.
|
inline |
Definition at line 150 of file cfxjse_engine.h.
Referenced by GlobalPropertyGetter(), and NormalPropertyGetter().
|
inline |
Definition at line 130 of file cfxjse_engine.h.
|
inline |
Definition at line 129 of file cfxjse_engine.h.
|
inline |
Definition at line 168 of file cfxjse_engine.h.
Referenced by XFAJSEmbedderTest::Execute(), and XFAJSEmbedderTest::ExecuteSilenceFailure().
|
inline |
Definition at line 149 of file cfxjse_engine.h.
v8::Local< v8::Object > CFXJSE_Engine::GetOrCreateJSBindingFromMap | ( | CXFA_Object * | pObject | ) |
Definition at line 875 of file cfxjse_engine.cpp.
References CXFA_Object::AsNode(), CXFA_Script::FromNode(), and CXFA_Object::JSObject().
|
inline |
Definition at line 148 of file cfxjse_engine.h.
Referenced by CFXJSE_FormCalcContext::Format(), GlobalPropertyGetter(), GlobalPropertySetter(), NormalPropertyGetter(), CFXJSE_FormCalcContext::Parse(), and CFXJSE_FormCalcContext::Time2Num().
CXFA_Script::Type CFXJSE_Engine::GetType | ( | ) |
Definition at line 559 of file cfxjse_engine.cpp.
Referenced by GlobalPropertyGetter(), and NormalPropertyGetter().
|
static |
Definition at line 294 of file cfxjse_engine.cpp.
References EventParamScope, CXFA_Script::Formcalc, fxcrt::WideString::FromUTF8(), GetDocument(), CXFA_Object::GetDocument(), CXFA_FFNotify::GetFFDoc(), CXFA_FFDoc::GetIJSRuntime(), CXFA_Document::GetNotify(), CXFA_Document::GetScriptContext(), GetThisObject(), GetType(), CXFA_Document::GetXFAObject(), CXFA_Object::IsThisProxy(), ToNode(), and XFA_HASHCODE_Layout.
|
static |
Definition at line 255 of file cfxjse_engine.cpp.
References EventParamScope, fxcrt::WideString::FromUTF8(), CXFA_Object::GetDocument(), CXFA_FFNotify::GetFFDoc(), CXFA_FFDoc::GetIJSRuntime(), CXFA_Document::GetNotify(), CXFA_Document::GetScriptContext(), GetThisObject(), CXFA_Object::IsThisProxy(), fxv8::IsUndefined(), kAttributes, kChildren, kParent, kProperties, kSiblings, and ToNode().
|
static |
Definition at line 363 of file cfxjse_engine.cpp.
References EventParamScope, fxcrt::WideString::FromUTF8(), CXFA_Object::GetDocument(), CXFA_Document::GetScriptContext(), CJX_Object::HasMethod(), CXFA_Object::JSObject(), kMethod, kNone, and kProperty.
|
inline |
Definition at line 166 of file cfxjse_engine.h.
Referenced by NormalPropertySetter().
|
inline |
Definition at line 156 of file cfxjse_engine.h.
CXFA_Node * CFXJSE_Engine::LastObjectFromUpArray | ( | ) |
Definition at line 567 of file cfxjse_engine.cpp.
v8::Local< v8::Object > CFXJSE_Engine::NewNormalXFAObject | ( | CXFA_Object * | obj | ) |
Definition at line 914 of file cfxjse_engine.cpp.
|
static |
Definition at line 537 of file cfxjse_engine.cpp.
References EventParamScope, CJS_Result::Failure(), CXFA_Object::GetDocument(), and CXFA_Document::GetScriptContext().
|
static |
Definition at line 382 of file cfxjse_engine.cpp.
References fxcrt::WideString::EqualsASCII(), EventParamScope, fxcrt::WideString::FromUTF8(), GetDocument(), CXFA_Object::GetDocument(), CXFA_FFNotify::GetFFDoc(), CXFA_FFDoc::GetIJSRuntime(), CXFA_Document::GetNotify(), CXFA_Document::GetRoot(), CXFA_Document::GetScriptContext(), GetThisObject(), GetType(), CXFA_Script::Javascript, and ToNode().
|
static |
Definition at line 454 of file cfxjse_engine.cpp.
References CXFA_Object::AsNode(), EventParamScope, CXFA_Script::FromNode(), fxcrt::WideString::FromUTF8(), CXFA_Object::GetDocument(), CXFA_Document::GetScriptContext(), CXFA_Object::IsNode(), IsResolvingNodes(), CXFA_Object::JSObject(), ToNode(), and Unknown.
|
static |
Definition at line 512 of file cfxjse_engine.cpp.
References EventParamScope, fxcrt::WideString::FromUTF8(), CXFA_Object::GetDocument(), CXFA_Object::GetElementType(), CXFA_Document::GetScriptContext(), CJX_Object::HasMethod(), CXFA_Object::JSObject(), kMethod, kNone, and kProperty.
absl::optional< CFXJSE_Engine::ResolveResult > CFXJSE_Engine::ResolveObjects | ( | CXFA_Object * | refObject, |
WideStringView | wsExpression, | ||
Mask< XFA_ResolveFlag > | dwStyles ) |
Definition at line 688 of file cfxjse_engine.cpp.
absl::optional< CFXJSE_Engine::ResolveResult > CFXJSE_Engine::ResolveObjectsWithBindNode | ( | CXFA_Object * | refObject, |
WideStringView | wsExpression, | ||
Mask< XFA_ResolveFlag > | dwStyles, | ||
CXFA_Node * | bindNode ) |
Definition at line 696 of file cfxjse_engine.cpp.
References CFXJSE_ScopeUtil_IsolateHandleContext::CFXJSE_ScopeUtil_IsolateHandleContext(), XFA_SCRIPTATTRIBUTEINFO::callback, CFXJSE_Engine::ResolveResult::kAttribute, kBind, kBindNew, kCreateNode, CFXJSE_Engine::ResolveResult::kCreateNodeMidAll, CFXJSE_Engine::ResolveResult::kCreateNodeOne, CFXJSE_Engine::ResolveResult::kExistNodes, CFXJSE_Engine::ResolveResult::kNodes, kParent, kSiblings, CFXJSE_ResolveProcessor::NodeData::m_nLevel, CFXJSE_ResolveProcessor::NodeData::m_Result, CFXJSE_Engine::ResolveResult::script_attribute, and CFXJSE_Engine::ResolveResult::type.
CFXJSE_Context::ExecutionResult CFXJSE_Engine::RunScript | ( | CXFA_Script::Type | eScriptType, |
WideStringView | wsScript, | ||
CXFA_Object * | pThisObject ) |
Definition at line 169 of file cfxjse_engine.cpp.
References CFXJSE_ScopeUtil_IsolateHandleContext::CFXJSE_ScopeUtil_IsolateHandleContext(), and CXFA_Script::Formcalc.
Referenced by CXFA_Node::ExecuteBoolScript().
Definition at line 891 of file cfxjse_engine.cpp.
|
inline |
Definition at line 155 of file cfxjse_engine.h.
Referenced by CXFA_Node::ExecuteBoolScript().
|
static |
Definition at line 115 of file cfxjse_engine.cpp.
References CFXJSE_HostObject::AsCJXObject(), and CJX_Object::GetXFAObject().
Referenced by ToObject().
|
static |
Definition at line 94 of file cfxjse_engine.cpp.
|
static |
Definition at line 109 of file cfxjse_engine.cpp.
References ToObject().
|
static |
Definition at line 100 of file cfxjse_engine.cpp.
CXFA_Object * CFXJSE_Engine::ToXFAObject | ( | v8::Local< v8::Value > | obj | ) |
Definition at line 901 of file cfxjse_engine.cpp.
|
friend |
Definition at line 127 of file cfxjse_engine.h.
Referenced by CFXJSE_NodeHelper::CreateNodeForCondition(), CXFA_Node::ExecuteBoolScript(), CXFA_FFDocView::GetWidgetByName(), GlobalPropertyGetter(), GlobalPropertySetter(), GlobalPropTypeGetter(), NormalMethodCall(), NormalPropertyGetter(), NormalPropertySetter(), NormalPropTypeGetter(), and CJX_Object::TryContent().