summaryrefslogtreecommitdiff
path: root/vcl/source/edit
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2020-03-17 15:17:14 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2020-07-09 08:45:08 +0200
commit113a5e2b70d31299acad676fadac8c820e655a67 (patch)
tree1dd2cfb1edd336201385c5ffbfe30b3fa0c379bb /vcl/source/edit
parent6653107b838be22da2ceb6e9123dafe67b45dd91 (diff)
jsdialog: export cursor visibility for text areas
Change-Id: I404e496a6f68f5cc2e2e628b51c759be49c7fecd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97729 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98231 Tested-by: Jenkins
Diffstat (limited to 'vcl/source/edit')
-rw-r--r--vcl/source/edit/vclmedit.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/source/edit/vclmedit.cxx b/vcl/source/edit/vclmedit.cxx
index fe459ba59a0d..b3fb80f2dbc6 100644
--- a/vcl/source/edit/vclmedit.cxx
+++ b/vcl/source/edit/vclmedit.cxx
@@ -38,6 +38,7 @@
#include <vcl/settings.hxx>
#include <vcl/weld.hxx>
#include <osl/diagnose.h>
+#include <tools/json_writer.hxx>
class ImpVclMEdit : public SfxListener
{
@@ -1552,4 +1553,11 @@ bool VclMultiLineEdit::set_property(const OString &rKey, const OUString &rValue)
return true;
}
+void VclMultiLineEdit::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter)
+{
+ Edit::DumpAsPropertyTree(rJsonWriter);
+
+ rJsonWriter.put("cursor", pImpVclMEdit->GetTextWindow()->GetTextView()->IsCursorEnabled());
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */