summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/treelist/svtabbx.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/vcl/source/treelist/svtabbx.cxx b/vcl/source/treelist/svtabbx.cxx
index 81f0f4e8b078..6f309bb9a85f 100644
--- a/vcl/source/treelist/svtabbx.cxx
+++ b/vcl/source/treelist/svtabbx.cxx
@@ -142,6 +142,23 @@ void SvTabListBox::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter)
bool bCheckButtons = static_cast<int>(nTreeFlags & SvTreeFlags::CHKBTN);
+ bool isRadioButton = false;
+ if (pCheckButtonData)
+ {
+ isRadioButton = pCheckButtonData -> IsRadio();
+ }
+
+ OUString checkboxtype;
+ if (bCheckButtons)
+ {
+ checkboxtype = "checkbox";
+ if(isRadioButton)
+ {
+ checkboxtype = "radio";
+ }
+ }
+
+ rJsonWriter.put("checkboxtype", checkboxtype);
auto entriesNode = rJsonWriter.startArray("entries");
lcl_DumpEntryAndSiblings(rJsonWriter, First(), this, bCheckButtons);
}