summaryrefslogtreecommitdiffstats
path: root/desktop
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2020-04-22 18:22:33 -0400
committerHenry Castro <hcastro@collabora.com>2020-04-28 04:53:40 +0200
commit08dbff244c6b58e34ca9658b7405b641fcaaffec (patch)
treef5d8dbb79558ec4c1b3e6b97c6703a9a87bda42a /desktop
parentlok: fix wrong metric conversion of the metric input control (diff)
downloadcore-08dbff244c6b58e34ca9658b7405b641fcaaffec.tar.gz
core-08dbff244c6b58e34ca9658b7405b641fcaaffec.zip
lok: add MetricFieldUIObject class
Add new action "VALUE" to set the value number for metric input controls Change-Id: I5058260c2e1562cfc6d10508d5981d185c5f2212 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92738 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index daf2eb90b8bc..cde112ba3fa4 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3559,6 +3559,7 @@ static void doc_sendDialogEvent(LibreOfficeKitDocument* /*pThis*/, unsigned nWin
static const OUString sTypeAction("TYPE");
static const OUString sUpAction("UP");
static const OUString sDownAction("DOWN");
+ static const OUString sValue("VALUE");
try
{
@@ -3590,6 +3591,11 @@ static void doc_sendDialogEvent(LibreOfficeKitDocument* /*pThis*/, unsigned nWin
pUIWindow->execute(sClearAction, aMap);
pUIWindow->execute(sTypeAction, aMap);
}
+ else if (aMap["cmd"] == "value")
+ {
+ aMap["VALUE"] = aMap["data"];
+ pUIWindow->execute(sValue, aMap);
+ }
else
bIsClickAction = true;
}