summaryrefslogtreecommitdiff
path: root/vcl/source/control/edit.cxx
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2020-11-02 12:14:50 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2020-11-25 15:46:49 +0100
commit6581a8a322cc2b83385722ae3042a885a7423f19 (patch)
tree9e4979034607bab55a297cfcc8f0b4101f022b46 /vcl/source/control/edit.cxx
parent0de158b4eb6d48d2c1a7cfcd638a73d7b69d45a7 (diff)
jsdialog: export placeholder text for edit fields
Change-Id: I6031025a72cc72e8bc3834c256479ec1a07971b7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106561 Tested-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'vcl/source/control/edit.cxx')
-rw-r--r--vcl/source/control/edit.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index 0484797de298..5699124a9cde 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -62,6 +62,7 @@
#include <vcl/unohelp2.hxx>
#include <o3tl/safeint.hxx>
#include <officecfg/Office/Common.hxx>
+#include <tools/json_writer.hxx>
#include <algorithm>
#include <memory>
@@ -2924,4 +2925,13 @@ FactoryFunction Edit::GetUITestFactory() const
return EditUIObject::create;
}
+
+void Edit::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter)
+{
+ Control::DumpAsPropertyTree(rJsonWriter);
+
+ if (!maPlaceholderText.isEmpty())
+ rJsonWriter.put("placeholder", maPlaceholderText);
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */