summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/vcl/toolkit/dialog.hxx2
-rw-r--r--vcl/source/window/dialog.cxx7
2 files changed, 9 insertions, 0 deletions
diff --git a/include/vcl/toolkit/dialog.hxx b/include/vcl/toolkit/dialog.hxx
index 3c519d0a5004..1d3064784bd4 100644
--- a/include/vcl/toolkit/dialog.hxx
+++ b/include/vcl/toolkit/dialog.hxx
@@ -154,6 +154,8 @@ public:
void set_default_response(int nResponse);
int get_default_response() const;
vcl::Window* get_widget_for_response(int nResponse);
+
+ void DumpAsPropertyTree(tools::JsonWriter& rJsonWriter) override;
};
#endif // INCLUDED_VCL_DIALOG_HXX
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: */