summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_checkbutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/parser/cxfa_checkbutton.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_checkbutton.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/xfa/fxfa/parser/cxfa_checkbutton.cpp b/xfa/fxfa/parser/cxfa_checkbutton.cpp
index 0e40e574b2..59afe5ac98 100644
--- a/xfa/fxfa/parser/cxfa_checkbutton.cpp
+++ b/xfa/fxfa/parser/cxfa_checkbutton.cpp
@@ -47,3 +47,11 @@ CXFA_CheckButton::~CXFA_CheckButton() {}
XFA_FFWidgetType CXFA_CheckButton::GetDefaultFFWidgetType() const {
return XFA_FFWidgetType::kCheckButton;
}
+
+bool CXFA_CheckButton::IsRound() {
+ return JSObject()->GetEnum(XFA_Attribute::Shape) == XFA_AttributeEnum::Round;
+}
+
+XFA_AttributeEnum CXFA_CheckButton::GetMark() {
+ return JSObject()->GetEnum(XFA_Attribute::Mark);
+}