sc/source/ui/view/formatsh.cxx |   10 ++++++++++
 1 file changed, 10 insertions(+)

New commits:
commit 2b995f4817741beee6a198c5405bdf72ed720e16
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Wed Nov 13 11:00:02 2019 +0100
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Wed Nov 13 13:01:56 2019 +0100

    jsdialogs: send .uno:NumberFormat updates
    
    Change-Id: I5c482123c51ba580ef9b597dc8e07fbf51b96ca9
    Reviewed-on: https://gerrit.libreoffice.org/82578
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>
    (cherry picked from commit 97451c8ab5f571c4e291f6c21121d68ee2423b05)
    Reviewed-on: https://gerrit.libreoffice.org/82581
    Tested-by: Jenkins

diff --git a/sc/source/ui/view/formatsh.cxx b/sc/source/ui/view/formatsh.cxx
index e9f849e07380..3460d6e3d927 100644
--- a/sc/source/ui/view/formatsh.cxx
+++ b/sc/source/ui/view/formatsh.cxx
@@ -53,6 +53,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>
@@ -2569,6 +2572,13 @@ void ScFormatShell::GetNumFormatState( SfxItemSet& rSet )
                             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
                     {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to