7#include "fxjs/xfa/cjx_exclgroup.h"
9#include "core/fxcrt/span.h"
11#include "fxjs/js_resources.h"
12#include "fxjs/xfa/cfxjse_engine.h"
13#include "v8/include/v8-object.h"
14#include "v8/include/v8-primitive.h"
15#include "xfa/fxfa/cxfa_eventparam.h"
16#include "xfa/fxfa/cxfa_ffnotify.h"
17#include "xfa/fxfa/fxfa.h"
18#include "xfa/fxfa/parser/cxfa_document.h"
19#include "xfa/fxfa/parser/cxfa_exclgroup.h"
22 {
"execCalculate", execCalculate_static},
23 {
"execEvent", execEvent_static},
24 {
"execInitialize", execInitialize_static},
25 {
"execValidate", execValidate_static},
26 {
"selectedMember", selectedMember_static}};
28CJX_ExclGroup::CJX_ExclGroup(CXFA_ExclGroup* group) :
CJX_Node(group) {
29 DefineMethods(MethodSpecs);
39 pdfium::span<v8::Local<v8::Value>> params) {
40 if (params.size() != 1)
43 execSingleEventByName(runtime->ToWideString(params[0]).AsStringView(),
44 XFA_Element::ExclGroup);
50 pdfium::span<v8::Local<v8::Value>> params) {
63 pdfium::span<v8::Local<v8::Value>> params) {
76 pdfium::span<v8::Local<v8::Value>> params) {
92 pdfium::span<v8::Local<v8::Value>> params) {
101 if (params.empty()) {
104 pReturnNode = node->SetSelectedMember(
105 runtime->ToWideString(params[0]).AsStringView());
113void CJX_ExclGroup::defaultValue(
v8::Isolate* pIsolate,
114 v8::Local<v8::Value>* pValue,
123 fxv8::ReentrantToWideStringHelper(pIsolate, *pValue).AsStringView()
,
131 *pValue = fxv8::NewNullHelper(pIsolate);
134 *pValue = fxv8::NewStringHelper(pIsolate, wsValue
.ToUTF8().AsStringView());
137void CJX_ExclGroup::rawValue(
v8::Isolate* pIsolate,
138 v8::Local<v8::Value>* pValue,
141 defaultValue(pIsolate, pValue, bSetting, eAttribute);
144void CJX_ExclGroup::transient(
v8::Isolate* pIsolate,
145 v8::Local<v8::Value>* pValue,
149void CJX_ExclGroup::errorText(
v8::Isolate* pIsolate,
150 v8::Local<v8::Value>* pValue,
friend class EventParamScope
static CJS_Result Success()
static CJS_Result Failure(JSMessage id)
~CJX_ExclGroup() override
bool DynamicTypeIs(TypeTag eType) const override
bool DynamicTypeIs(TypeTag eType) const override
WideString GetContent(bool bScriptModify) const
void ThrowInvalidPropertyException(v8::Isolate *pIsolate) const
CXFA_Document * GetDocument() const
CXFA_Node * GetXFANode() const
XFA_EventError ExecEventByDeepFirst(CXFA_Node *pFormNode, XFA_EVENTTYPE eEventType, bool bIsFormReady, bool bRecursive)
void SetSelectedMemberByValue(WideStringView wsValue, bool bNotify, bool bScriptModify, bool bSyncData)
CXFA_Node * GetSelectedMember()
bool IsWidgetReady() const
ByteString ToUTF8() const
fxcrt::WideString WideString