summaryrefslogtreecommitdiff
path: root/fxjs/xfa/cjx_object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/xfa/cjx_object.cpp')
-rw-r--r--fxjs/xfa/cjx_object.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/fxjs/xfa/cjx_object.cpp b/fxjs/xfa/cjx_object.cpp
index 566eb1cbca..10c6078f17 100644
--- a/fxjs/xfa/cjx_object.cpp
+++ b/fxjs/xfa/cjx_object.cpp
@@ -873,3 +873,13 @@ void CJX_Object::Script_Attribute_String(CFXJSE_Value* pValue,
GetDocument()->RemovePurgeNode(pProtoForm.get());
}
+
+void CJX_Object::Script_Attribute_BOOL(CFXJSE_Value* pValue,
+ bool bSetting,
+ XFA_Attribute eAttribute) {
+ if (bSetting) {
+ SetBoolean(eAttribute, pValue->ToBoolean(), true);
+ return;
+ }
+ pValue->SetString(GetBoolean(eAttribute) ? "1" : "0");
+}