#include "fxjs/xfa/cjx_node.h"
#include <memory>
#include <utility>
#include <vector>
#include "core/fxcrt/cfx_memorystream.h"
#include "core/fxcrt/cfx_read_only_string_stream.h"
#include "core/fxcrt/fx_codepage.h"
#include "core/fxcrt/span.h"
#include "core/fxcrt/xml/cfx_xmldocument.h"
#include "core/fxcrt/xml/cfx_xmlelement.h"
#include "core/fxcrt/xml/cfx_xmlparser.h"
#include "fxjs/fxv8.h"
#include "fxjs/js_resources.h"
#include "fxjs/xfa/cfxjse_engine.h"
#include "v8/include/v8-object.h"
#include "xfa/fxfa/cxfa_eventparam.h"
#include "xfa/fxfa/cxfa_ffdoc.h"
#include "xfa/fxfa/cxfa_ffnotify.h"
#include "xfa/fxfa/parser/cxfa_document.h"
#include "xfa/fxfa/parser/cxfa_document_builder.h"
#include "xfa/fxfa/parser/cxfa_node.h"
#include "xfa/fxfa/parser/xfa_basic_data.h"
#include "xfa/fxfa/parser/xfa_utils.h"
namespace {
enum class EventAppliesTo : uint8_t { … };
struct ExecEventParaInfo { … };
#undef PARA
#define PARA …
const ExecEventParaInfo kExecEventParaInfoTable[] = …;
#undef PARA
const ExecEventParaInfo* GetExecEventParaInfoByName(
WideStringView wsEventName) { … }
}
const CJX_MethodSpec CJX_Node::MethodSpecs[] = …;
CJX_Node::CJX_Node(CXFA_Node* node) : … { … }
CJX_Node::~CJX_Node() = default;
bool CJX_Node::DynamicTypeIs(TypeTag eType) const { … }
CJS_Result CJX_Node::applyXSL(CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_Node::assignNode(CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_Node::clone(CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_Node::getAttribute(CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_Node::getElement(CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_Node::isPropertySpecified(
CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_Node::loadXML(CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_Node::saveFilteredXML(
CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_Node::saveXML(CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_Node::setAttribute(CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_Node::setElement(CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
void CJX_Node::ns(v8::Isolate* pIsolate,
v8::Local<v8::Value>* pValue,
bool bSetting,
XFA_Attribute eAttribute) { … }
void CJX_Node::model(v8::Isolate* pIsolate,
v8::Local<v8::Value>* pValue,
bool bSetting,
XFA_Attribute eAttribute) { … }
void CJX_Node::isContainer(v8::Isolate* pIsolate,
v8::Local<v8::Value>* pValue,
bool bSetting,
XFA_Attribute eAttribute) { … }
void CJX_Node::isNull(v8::Isolate* pIsolate,
v8::Local<v8::Value>* pValue,
bool bSetting,
XFA_Attribute eAttribute) { … }
void CJX_Node::oneOfChild(v8::Isolate* pIsolate,
v8::Local<v8::Value>* pValue,
bool bSetting,
XFA_Attribute eAttribute) { … }
XFA_EventError CJX_Node::execSingleEventByName(WideStringView wsEventName,
XFA_Element eType) { … }