summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2019-11-28 14:22:26 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2019-11-29 13:43:28 +0100
commit88b0cb4c31d0631ff8db1e4842dc1431ae6d0234 (patch)
tree373efb887765bfa05029308917694734d2e2f0f9 /sd
parent5e55f7a54170b25aaf82520c1cde307ece362eef (diff)
jsdialog: migrate after/before spacing to generic items dump
Change-Id: I18f0596baa8e1136f4546a943eafab9a13929c06 Reviewed-on: https://gerrit.libreoffice.org/83999 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/drtxtob.cxx23
1 files changed, 0 insertions, 23 deletions
diff --git a/sd/source/ui/view/drtxtob.cxx b/sd/source/ui/view/drtxtob.cxx
index 2c7df774cbf6..94679765eb73 100644
--- a/sd/source/ui/view/drtxtob.cxx
+++ b/sd/source/ui/view/drtxtob.cxx
@@ -482,38 +482,15 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet )
nEndPara = pOLV->GetOutliner()->GetParagraphCount() - 1;
}
long nUpper = 0;
- OUString sUpper, sLower;
- // TODO: set correct unit
- MapUnit eTargetUnit = MapUnit::MapInch;
for( sal_Int32 nPara = nStartPara; nPara <= nEndPara; nPara++ )
{
const SfxItemSet& rItems = pOLV->GetOutliner()->GetParaAttribs( nPara );
const SvxULSpaceItem& rItem = rItems.Get( EE_PARA_ULSPACE );
nUpper = std::max( nUpper, static_cast<long>(rItem.GetUpper()) );
-
- if (nPara == nStartPara)
- {
- sUpper = GetMetricText(rItem.GetUpper(),
- MapUnit::MapTwip, eTargetUnit, nullptr);
- }
- if (nPara == nEndPara)
- {
- sLower = GetMetricText(rItem.GetLower(),
- MapUnit::MapTwip, eTargetUnit, nullptr);
- }
}
if( nUpper == 0 )
rSet.DisableItem( SID_PARASPACE_DECREASE );
-
- if (comphelper::LibreOfficeKit::isActive())
- {
- OUString sPayload = ".uno:ULSpacing={\"upper\": \"" + sUpper +
- "\", \"lower\": \"" + sLower + "\"}";
-
- GetViewShell()->libreOfficeKitViewCallback(LOK_CALLBACK_STATE_CHANGED,
- OUStringToOString(sPayload, RTL_TEXTENCODING_ASCII_US).getStr());
- }
}
else
{