summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2020-11-19 13:50:30 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2020-11-27 11:42:54 +0100
commit60ec1659924be692de2985d2b1a5363976db6ca1 (patch)
tree6e42ddaabb73b6fedab637c50a5809cf5828d7d8 /vcl
parentb6d634d74c0231173d6b43357b7cd3cecb76407d (diff)
jsdialog: dump dialog title
Change-Id: Id4c9f336039f8a0b8d1d43fdff4852f32e2c7ae6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106707 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/dialog.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index 5618af225d4c..c6aed4909b87 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -60,6 +60,7 @@
#include <vcl/IDialogRenderable.hxx>
#include <messagedialog.hxx>
#include <salframe.hxx>
+#include <tools/json_writer.hxx>
#include <iostream>
#include <utility>
@@ -1614,4 +1615,10 @@ void TopLevelWindowLocker::decBusy()
m_aBusyStack.pop();
}
+void Dialog::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter)
+{
+ SystemWindow::DumpAsPropertyTree(rJsonWriter);
+ rJsonWriter.put("title", GetText());
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */