diff options
Diffstat (limited to 'vcl/source/control/edit.cxx')
-rw-r--r-- | vcl/source/control/edit.cxx | 10 |
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: */ |