summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2019-11-13 11:00:02 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2019-11-13 12:14:12 +0100
commit97451c8ab5f571c4e291f6c21121d68ee2423b05 (patch)
tree22352c4b026d5bb006946d6f10ef8a3175806880 /sc
parent7e129d994bb268715168daee306b792bc9a3a6c3 (diff)
jsdialogs: send .uno:NumberFormat updates
Change-Id: I5c482123c51ba580ef9b597dc8e07fbf51b96ca9 Reviewed-on: https://gerrit.libreoffice.org/82578 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/formatsh.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/sc/source/ui/view/formatsh.cxx b/sc/source/ui/view/formatsh.cxx
index ea5faddad12d..2d49fe1bb9c4 100644
--- a/sc/source/ui/view/formatsh.cxx
+++ b/sc/source/ui/view/formatsh.cxx
@@ -58,6 +58,9 @@
#include <editeng/justifyitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <sal/log.hxx>
+#include <comphelper/lok.hxx>
+#include <LibreOfficeKit/LibreOfficeKitEnums.h>
+#include <editeng/itemtype.hxx>
#include <formatsh.hxx>
#include <sc.hrc>
@@ -2576,6 +2579,13 @@ void ScFormatShell::GetNumFormatState( SfxItemSet& rSet )
aFormat += sBreak;
rSet.Put(SfxStringItem(nWhich, aFormat));
+
+ if (comphelper::LibreOfficeKit::isActive())
+ {
+ OUString sPayload = ".uno:NumberFormat=" + aFormat;
+ GetViewShell()->libreOfficeKitViewCallback(LOK_CALLBACK_STATE_CHANGED,
+ OUStringToOString(sPayload, RTL_TEXTENCODING_ASCII_US).getStr());
+ }
}
else
{