diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/misc/swruler.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sw/source/uibase/misc/swruler.cxx b/sw/source/uibase/misc/swruler.cxx index 47c9ac541fd5..c58123a1367b 100644 --- a/sw/source/uibase/misc/swruler.cxx +++ b/sw/source/uibase/misc/swruler.cxx @@ -279,6 +279,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); |