[Libreoffice-commits] core.git: Branch 'feature/jsdialogs' - include/vcl vcl/source
Jan Holesovsky (via logerrit)
logerrit at kemper.freedesktop.org
Tue Sep 17 10:45:02 UTC 2019
include/vcl/button.hxx | 6 ++++++
vcl/source/control/button.cxx | 14 ++++++++++++++
2 files changed, 20 insertions(+)
New commits:
commit 0e8652ea83352b1866f6b8b5bc6dc7f207d2baa5
Author: Jan Holesovsky <kendy at collabora.com>
AuthorDate: Tue Sep 17 12:42:24 2019 +0200
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Tue Sep 17 12:42:24 2019 +0200
lok jsdialogs: Add handling of checked state for checkbox and radiobutton.
Change-Id: Id64833a08c62388220921208cba33a60c178e9ac
diff --git a/include/vcl/button.hxx b/include/vcl/button.hxx
index 57e7a9b55857..71a8401cce10 100644
--- a/include/vcl/button.hxx
+++ b/include/vcl/button.hxx
@@ -377,6 +377,9 @@ public:
void group(RadioButton &rOther);
virtual void ShowFocus(const tools::Rectangle& rRect) override;
+ /// Button hes additional stuff that we need to dump too.
+ boost::property_tree::ptree DumpAsPropertyTree() override;
+
virtual FactoryFunction GetUITestFactory() const override;
};
@@ -465,6 +468,9 @@ public:
virtual bool set_property(const OString &rKey, const OUString &rValue) override;
virtual void ShowFocus(const tools::Rectangle& rRect) override;
+ /// Button hes additional stuff that we need to dump too.
+ boost::property_tree::ptree DumpAsPropertyTree() override;
+
virtual FactoryFunction GetUITestFactory() const override;
};
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 4c18207e0844..d2151c7018a2 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -2900,6 +2900,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;
@@ -3719,6 +3726,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;
More information about the Libreoffice-commits
mailing list