[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - sw/source

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Tue Dec 10 04:16:16 UTC 2019


 sw/source/uibase/misc/swruler.cxx |   12 ++++++++++++
 1 file changed, 12 insertions(+)

New commits:
commit 20c02c0f54618deb6b8c9af640f1e05e6a1168a2
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Wed Dec 4 16:19:24 2019 +0200
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Tue Dec 10 05:15:09 2019 +0100

    tdf#128468: Add tab stop information to LOK_CALLBACK_RULER_UPDATE
    
    Change-Id: I7872cdc3aabf66bb6d1df09f503274c698b64a4e
    Reviewed-on: https://gerrit.libreoffice.org/84420
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Tor Lillqvist <tml at collabora.com>
    Tested-by: Tor Lillqvist <tml at collabora.com>
    (cherry picked from commit 8a840463fc8abbbc445fed91463a1e2eb42dc1aa)
    Reviewed-on: https://gerrit.libreoffice.org/84760

diff --git a/sw/source/uibase/misc/swruler.cxx b/sw/source/uibase/misc/swruler.cxx
index 7dd10518dc34..ae3f35a8f2c8 100644
--- a/sw/source/uibase/misc/swruler.cxx
+++ b/sw/source/uibase/misc/swruler.cxx
@@ -278,6 +278,18 @@ const std::string SwCommentRuler::CreateJsonNotification()
     // GetPageWidth() on the other hand does return a value in twips.
     jsonNotif.put("pageWidth", convertTwipToMm100(GetPageWidth()));
 
+    boost::property_tree::ptree tabs;
+
+    for (auto const& tab : GetTabs())
+    {
+        boost::property_tree::ptree element;
+        element.put("position", tab.nPos);
+        element.put("style", tab.nStyle);
+        tabs.push_back(std::make_pair("", element));
+    }
+
+    jsonNotif.add_child("tabs", tabs);
+
     RulerUnitData aUnitData = GetCurrentRulerUnit();
     jsonNotif.put("unit", aUnitData.aUnitStr);
 


More information about the Libreoffice-commits mailing list