summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2019-09-17 12:42:24 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2019-10-01 15:40:40 +0200
commit1cc241cfb43d82f7f816042079b8baec318bfcb7 (patch)
treee6234a9bae7aca98082b3fefb2b73037e6f0b090 /vcl
parentede6b3a780d60edd0357f3ea2426764c0ed13e6b (diff)
lok jsdialogs: Add handling of checked state for checkbox and radiobutton.
Change-Id: Id64833a08c62388220921208cba33a60c178e9ac Reviewed-on: https://gerrit.libreoffice.org/79797 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/button.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 5fbf156417b9..3d948a69c925 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -2899,6 +2899,13 @@ void RadioButton::ShowFocus(const tools::Rectangle& rRect)
Button::ShowFocus(rRect);
}
+boost::property_tree::ptree RadioButton::DumpAsPropertyTree()
+{
+ boost::property_tree::ptree aTree(Button::DumpAsPropertyTree());
+ aTree.put("checked", IsChecked());
+ return aTree;
+}
+
FactoryFunction RadioButton::GetUITestFactory() const
{
return RadioButtonUIObject::create;
@@ -3718,6 +3725,13 @@ void CheckBox::ShowFocus(const tools::Rectangle& rRect)
Button::ShowFocus(rRect);
}
+boost::property_tree::ptree CheckBox::DumpAsPropertyTree()
+{
+ boost::property_tree::ptree aTree(Button::DumpAsPropertyTree());
+ aTree.put("checked", IsChecked());
+ return aTree;
+}
+
FactoryFunction CheckBox::GetUITestFactory() const
{
return CheckBoxUIObject::create;