[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - sc/source
Szymon Kłos (via logerrit)
logerrit at kemper.freedesktop.org
Wed Nov 13 11:14:49 UTC 2019
sc/source/ui/view/formatsh.cxx | 10 ++++++++++
1 file changed, 10 insertions(+)
New commits:
commit 97451c8ab5f571c4e291f6c21121d68ee2423b05
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Wed Nov 13 11:00:02 2019 +0100
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Wed Nov 13 12:14:12 2019 +0100
jsdialogs: send .uno:NumberFormat updates
Change-Id: I5c482123c51ba580ef9b597dc8e07fbf51b96ca9
Reviewed-on: https://gerrit.libreoffice.org/82578
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
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
{
More information about the Libreoffice-commits
mailing list