diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2020-11-19 13:50:30 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2020-12-01 13:48:13 +0100 |
commit | 411034066510d21a960adced5c6f0f14638da972 (patch) | |
tree | df8b5325a249486fcf6f55d3fb2f10a45a81f6d1 | |
parent | cdeadf981ba0e4beccf3f0ad454272d199aea078 (diff) |
jsdialog: dump dialog title
Change-Id: Id4c9f336039f8a0b8d1d43fdff4852f32e2c7ae6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106967
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
-rw-r--r-- | include/vcl/dialog.hxx | 2 | ||||
-rw-r--r-- | vcl/source/window/dialog.cxx | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/vcl/dialog.hxx b/include/vcl/dialog.hxx index 1f777dfc1629..d02772ce0e63 100644 --- a/include/vcl/dialog.hxx +++ b/include/vcl/dialog.hxx @@ -155,6 +155,8 @@ public: void set_default_response(int nResponse); int get_default_response() const; vcl::Window* get_widget_for_response(int nResponse); + + virtual boost::property_tree::ptree DumpAsPropertyTree() override; }; #endif // INCLUDED_VCL_DIALOG_HXX diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx index 85f87ad92a54..f0b5a96462c9 100644 --- a/vcl/source/window/dialog.cxx +++ b/vcl/source/window/dialog.cxx @@ -1607,4 +1607,11 @@ void TopLevelWindowLocker::decBusy() m_aBusyStack.pop(); } +boost::property_tree::ptree Dialog::DumpAsPropertyTree() +{ + boost::property_tree::ptree aTree(SystemWindow::DumpAsPropertyTree()); + aTree.put("title", GetText()); + return aTree; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |