Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CJX_Node Class Reference

#include <cjx_node.h>

+ Inheritance diagram for CJX_Node:
+ Collaboration diagram for CJX_Node:

Public Member Functions

 ~CJX_Node () override
 
bool DynamicTypeIs (TypeTag eType) const override
 
 JSE_METHOD (applyXSL)
 
 JSE_METHOD (assignNode)
 
 JSE_METHOD (clone)
 
 JSE_METHOD (getAttribute)
 
 JSE_METHOD (getElement)
 
 JSE_METHOD (isPropertySpecified)
 
 JSE_METHOD (loadXML)
 
 JSE_METHOD (saveFilteredXML)
 
 JSE_METHOD (saveXML)
 
 JSE_METHOD (setAttribute)
 
 JSE_METHOD (setElement)
 
 JSE_PROP (isContainer)
 
 JSE_PROP (isNull)
 
 JSE_PROP (model)
 
 JSE_PROP (ns)
 
 JSE_PROP (oneOfChild)
 
- Public Member Functions inherited from CJX_Tree
 ~CJX_Tree () override
 
bool DynamicTypeIs (TypeTag eType) const override
 
 JSE_METHOD (resolveNode)
 
 JSE_METHOD (resolveNodes)
 
 JSE_PROP (all)
 
 JSE_PROP (classAll)
 
 JSE_PROP (classIndex)
 
 JSE_PROP (index)
 
 JSE_PROP (nodes)
 
 JSE_PROP (parent)
 
 JSE_PROP (somExpression)
 
- Public Member Functions inherited from CJX_Object
 ~CJX_Object () override
 
CJX_ObjectAsCJXObject () override
 
virtual void Trace (cppgc::Visitor *visitor) const
 
 JSE_PROP (className)
 
CXFA_DocumentGetDocument () const
 
CXFA_NodeGetXFANode () const
 
CXFA_ObjectGetXFAObject () const
 
void SetCalcRecursionCount (size_t count)
 
size_t GetCalcRecursionCount () const
 
void SetLayoutItem (CXFA_LayoutItem *item)
 
CXFA_LayoutItemGetLayoutItem () const
 
bool HasMethod (const WideString &func) const
 
CJS_Result RunMethod (CFXJSE_Engine *pScriptContext, const WideString &func, pdfium::span< v8::Local< v8::Value > > params)
 
bool HasAttribute (XFA_Attribute eAttr) const
 
WideString GetAttributeByString (WideStringView attr) const
 
WideString GetAttributeByEnum (XFA_Attribute attr) const
 
absl::optional< WideStringTryAttribute (XFA_Attribute eAttr, bool bUseDefault) const
 
void SetAttributeByEnum (XFA_Attribute eAttr, const WideString &wsValue, bool bNotify)
 
void SetAttributeByString (WideStringView wsAttr, const WideString &wsValue)
 
void RemoveAttribute (WideStringView wsAttr)
 
WideString GetContent (bool bScriptModify) const
 
absl::optional< WideStringTryContent (bool bScriptModify, bool bProto) const
 
void SetContent (const WideString &wsContent, const WideString &wsXMLValue, bool bNotify, bool bScriptModify, bool bSyncData)
 
template<typename T >
T * GetProperty (int32_t index, XFA_Element eType) const
 
template<typename T >
T * GetOrCreateProperty (int32_t index, XFA_Element eType)
 
void SetAttributeValue (const WideString &wsValue, const WideString &wsXMLValue)
 
 JSE_PROP (ScriptAttributeString)
 
 JSE_PROP (ScriptAttributeBool)
 
 JSE_PROP (ScriptAttributeInteger)
 
 JSE_PROP (ScriptSomFontColor)
 
 JSE_PROP (ScriptSomFillColor)
 
 JSE_PROP (ScriptSomBorderColor)
 
 JSE_PROP (ScriptSomBorderWidth)
 
 JSE_PROP (ScriptSomValidationMessage)
 
 JSE_PROP (ScriptSomMandatoryMessage)
 
 JSE_PROP (ScriptSomDefaultValue)
 
 JSE_PROP (ScriptSomDefaultValue_Read)
 
 JSE_PROP (ScriptSomDataNode)
 
 JSE_PROP (ScriptSomMandatory)
 
 JSE_PROP (ScriptSomInstanceIndex)
 
 JSE_PROP (ScriptSubmitFormatMode)
 
absl::optional< WideStringTryNamespace () const
 
int32_t GetInteger (XFA_Attribute eAttr) const
 
absl::optional< int32_t > TryInteger (XFA_Attribute eAttr, bool bUseDefault) const
 
void SetInteger (XFA_Attribute eAttr, int32_t iValue, bool bNotify)
 
WideString GetCData (XFA_Attribute eAttr) const
 
absl::optional< WideStringTryCData (XFA_Attribute eAttr, bool bUseDefault) const
 
void SetCData (XFA_Attribute eAttr, const WideString &wsValue)
 
XFA_AttributeValue GetEnum (XFA_Attribute eAttr) const
 
absl::optional< XFA_AttributeValueTryEnum (XFA_Attribute eAttr, bool bUseDefault) const
 
void SetEnum (XFA_Attribute eAttr, XFA_AttributeValue eValue, bool bNotify)
 
bool GetBoolean (XFA_Attribute eAttr) const
 
absl::optional< bool > TryBoolean (XFA_Attribute eAttr, bool bUseDefault) const
 
void SetBoolean (XFA_Attribute eAttr, bool bValue, bool bNotify)
 
CXFA_Measurement GetMeasure (XFA_Attribute eAttr) const
 
float GetMeasureInUnit (XFA_Attribute eAttr, XFA_Unit unit) const
 
absl::optional< CXFA_MeasurementTryMeasure (XFA_Attribute eAttr, bool bUseDefault) const
 
absl::optional< float > TryMeasureAsFloat (XFA_Attribute attr) const
 
void SetMeasure (XFA_Attribute eAttr, const CXFA_Measurement &mValue, bool bNotify)
 
void MergeAllData (CXFA_Object *pDstObj)
 
CalcDataGetCalcData () const
 
CalcDataGetOrCreateCalcData (cppgc::Heap *heap)
 
void TakeCalcDataFrom (CJX_Object *that)
 
void ThrowInvalidPropertyException (v8::Isolate *pIsolate) const
 
void ThrowArgumentMismatchException (v8::Isolate *pIsolate) const
 
void ThrowIndexOutOfBoundsException (v8::Isolate *pIsolate) const
 
void ThrowParamCountMismatchException (v8::Isolate *pIsolate, const WideString &method) const
 
void ThrowTooManyOccurrencesException (v8::Isolate *pIsolate, const WideString &obj) const
 
- Public Member Functions inherited from CFXJSE_HostObject
virtual ~CFXJSE_HostObject ()
 
virtual CFXJSE_FormCalcContextAsFormCalcContext ()
 
v8::Local< v8::Object > NewBoundV8Object (v8::Isolate *pIsolate, v8::Local< v8::FunctionTemplate > tmpl)
 

Public Attributes

 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
 
- Public Attributes inherited from CJX_Tree
 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
 
- Public Attributes inherited from CJX_Object
 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
 

Protected Member Functions

 CJX_Node (CXFA_Node *node)
 
XFA_EventError execSingleEventByName (WideStringView wsEventName, XFA_Element eType)
 
- Protected Member Functions inherited from CJX_Tree
 CJX_Tree (CXFA_Object *obj)
 
- Protected Member Functions inherited from CJX_Object
 CJX_Object (CXFA_Object *obj)
 
void ScriptSomMessage (v8::Isolate *pIsolate, v8::Local< v8::Value > *pValue, bool bSetting, SOMMessageType iMessageType)
 
void SetAttributeValueImpl (const WideString &wsValue, const WideString &wsXMLValue, bool bNotify, bool bScriptModify)
 
void SetCDataImpl (XFA_Attribute eAttr, const WideString &wsValue, bool bNotify, bool bScriptModify)
 
void DefineMethods (pdfium::span< const CJX_MethodSpec > methods)
 
void MoveBufferMapData (CXFA_Object *pSrcObj, CXFA_Object *pDstObj)
 
void ThrowException (v8::Isolate *pIsolate, const WideString &str) const
 
- Protected Member Functions inherited from CFXJSE_HostObject
 CFXJSE_HostObject ()
 

Additional Inherited Members

- Public Types inherited from CJX_Object
enum class  TypeTag {
  Boolean , Container , DataWindow , Delta ,
  Desc , Draw , Encrypt , EventPseudoModel ,
  ExclGroup , Extras , Field , Form ,
  Handler , HostPseudoModel , InstanceManager , LayoutPseudoModel ,
  List , LogPseudoModel , Manifest , Model ,
  Node , Object , Occur , Packet ,
  Script , SignaturePesudoModel , Source , Subform ,
  SubformSet , Template , TextNode , Tree ,
  TreeList , WsdlConnection , Xfa
}
 
- Static Public Member Functions inherited from CFXJSE_HostObject
static CFXJSE_HostObjectFromV8 (v8::Local< v8::Value > arg)
 
- Protected Types inherited from CJX_Object
enum class  SOMMessageType { kValidationMessage , kFormatMessage , kMandatoryMessage }
 

Detailed Description

Definition at line 17 of file cjx_node.h.

Constructor & Destructor Documentation

◆ ~CJX_Node()

CJX_Node::~CJX_Node ( )
overridedefault

◆ CJX_Node()

CJX_Node::CJX_Node ( CXFA_Node * node)
explicitprotected

Definition at line 106 of file cjx_node.cpp.

References CJX_Object::DefineMethods().

Referenced by CJX_Container::CJX_Container(), CJX_Model::CJX_Model(), and CJX_TextNode::CJX_TextNode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Function Documentation

◆ DynamicTypeIs()

bool CJX_Node::DynamicTypeIs ( TypeTag eType) const
overridevirtual

Reimplemented from CJX_Object.

Reimplemented in CJX_Occur, CJX_Packet, CJX_Script, CJX_Source, CJX_Subform, CJX_Template, CJX_TextNode, CJX_WsdlConnection, and CJX_Xfa.

Definition at line 112 of file cjx_node.cpp.

References CJX_Tree::DynamicTypeIs().

Referenced by CJX_Container::DynamicTypeIs(), CJX_Desc::DynamicTypeIs(), CJX_Encrypt::DynamicTypeIs(), CJX_ExclGroup::DynamicTypeIs(), CJX_Extras::DynamicTypeIs(), CJX_InstanceManager::DynamicTypeIs(), CJX_Manifest::DynamicTypeIs(), CJX_Model::DynamicTypeIs(), CJX_Occur::DynamicTypeIs(), CJX_Packet::DynamicTypeIs(), CJX_Script::DynamicTypeIs(), CJX_Source::DynamicTypeIs(), CJX_TextNode::DynamicTypeIs(), and CJX_WsdlConnection::DynamicTypeIs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ execSingleEventByName()

XFA_EventError CJX_Node::execSingleEventByName ( WideStringView wsEventName,
XFA_Element eType )
protected

Definition at line 468 of file cjx_node.cpp.

References CXFA_FFNotify::ExecEventByDeepFirst(), CJX_Object::GetDocument(), CXFA_Object::GetElementType(), CJX_Object::GetXFANode(), and kNotExist.

+ Here is the call graph for this function:

◆ JSE_METHOD() [1/11]

CJX_Node::JSE_METHOD ( applyXSL )

◆ JSE_METHOD() [2/11]

CJX_Node::JSE_METHOD ( assignNode )

◆ JSE_METHOD() [3/11]

CJX_Node::JSE_METHOD ( clone )

◆ JSE_METHOD() [4/11]

CJX_Node::JSE_METHOD ( getAttribute )

◆ JSE_METHOD() [5/11]

CJX_Node::JSE_METHOD ( getElement )

◆ JSE_METHOD() [6/11]

CJX_Node::JSE_METHOD ( isPropertySpecified )

◆ JSE_METHOD() [7/11]

CJX_Node::JSE_METHOD ( loadXML )

◆ JSE_METHOD() [8/11]

CJX_Node::JSE_METHOD ( saveFilteredXML )

◆ JSE_METHOD() [9/11]

CJX_Node::JSE_METHOD ( saveXML )

◆ JSE_METHOD() [10/11]

CJX_Node::JSE_METHOD ( setAttribute )

◆ JSE_METHOD() [11/11]

CJX_Node::JSE_METHOD ( setElement )

◆ JSE_PROP() [1/5]

CJX_Node::JSE_PROP ( isContainer )

◆ JSE_PROP() [2/5]

CJX_Node::JSE_PROP ( isNull )

◆ JSE_PROP() [3/5]

CJX_Node::JSE_PROP ( model )

◆ JSE_PROP() [4/5]

CJX_Node::JSE_PROP ( ns )

◆ JSE_PROP() [5/5]

CJX_Node::JSE_PROP ( oneOfChild )

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

CJX_Node::CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

Definition at line 19 of file cjx_node.h.


The documentation for this class was generated from the following files: