summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-05-30 15:25:26 +0200
committerMichael Stahl <mstahl@redhat.com>2016-05-30 17:33:53 +0200
commit84fb4be390a7a09c27f3aa1f004c022f0cdc192a (patch)
tree569f66c35ad260da7ab21f20432c2458e02c445e /sc/source
parent4d23189aee9adeb87e749a21305f22a43fb3fb17 (diff)
editeng: rename misleading SvxBoxItem::GetDistance()/SetDistance()
Change-Id: Iea61f2de2b907974bbb05c66abf6cdaeab87b8b2
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/core/data/document.cxx2
-rw-r--r--sc/source/core/data/stlpool.cxx2
-rw-r--r--sc/source/ui/unoobj/cellsuno.cxx4
3 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index f5ad18c25d6f..68b1f8f52a7d 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -4956,7 +4956,7 @@ void ScDocument::GetSelectionFrame( const ScMarkData& rMark,
rLineOuter.SetLine(nullptr, SvxBoxItemLine::BOTTOM);
rLineOuter.SetLine(nullptr, SvxBoxItemLine::LEFT);
rLineOuter.SetLine(nullptr, SvxBoxItemLine::RIGHT);
- rLineOuter.SetDistance(0);
+ rLineOuter.SetAllDistances(0);
rLineInner.SetLine(nullptr, SvxBoxInfoItemLine::HORI);
rLineInner.SetLine(nullptr, SvxBoxInfoItemLine::VERT);
diff --git a/sc/source/core/data/stlpool.cxx b/sc/source/core/data/stlpool.cxx
index ec06c0887308..9b2a5ce56488 100644
--- a/sc/source/core/data/stlpool.cxx
+++ b/sc/source/core/data/stlpool.cxx
@@ -374,7 +374,7 @@ void ScStyleSheetPool::CreateStandardStyles()
aBoxItem.SetLine( &aBorderLine, SvxBoxItemLine::BOTTOM );
aBoxItem.SetLine( &aBorderLine, SvxBoxItemLine::LEFT );
aBoxItem.SetLine( &aBorderLine, SvxBoxItemLine::RIGHT );
- aBoxItem.SetDistance( 10 ); // 0.2mm
+ aBoxItem.SetAllDistances( 10 ); // 0.2mm
aBoxInfoItem.SetValid( SvxBoxInfoItemValidFlags::TOP );
aBoxInfoItem.SetValid( SvxBoxInfoItemValidFlags::BOTTOM );
aBoxInfoItem.SetValid( SvxBoxInfoItemValidFlags::LEFT );
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index 944c56d13cc2..238da0d112e3 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -962,7 +962,7 @@ template<typename TableBorderType>
void lcl_fillBoxItems( SvxBoxItem& rOuter, SvxBoxInfoItem& rInner, const TableBorderType& rBorder )
{
::editeng::SvxBorderLine aLine;
- rOuter.SetDistance( static_cast<sal_uInt16>(HMMToTwips( rBorder.Distance )) );
+ rOuter.SetAllDistances(static_cast<sal_uInt16>(HMMToTwips(rBorder.Distance)));
rOuter.SetLine( ScHelperFunctions::GetBorderLine( aLine, rBorder.TopLine ), SvxBoxItemLine::TOP );
rOuter.SetLine( ScHelperFunctions::GetBorderLine( aLine, rBorder.BottomLine ), SvxBoxItemLine::BOTTOM );
rOuter.SetLine( ScHelperFunctions::GetBorderLine( aLine, rBorder.LeftLine ), SvxBoxItemLine::LEFT );
@@ -1014,7 +1014,7 @@ void lcl_fillTableBorder( TableBorderItem& rBorder, const SvxBoxItem& rOuter, co
ScHelperFunctions::FillBorderLine( rBorder.HorizontalLine, rInner.GetHori() );
ScHelperFunctions::FillBorderLine( rBorder.VerticalLine, rInner.GetVert() );
- rBorder.Distance = rOuter.GetDistance();
+ rBorder.Distance = rOuter.GetSmallestDistance();
rBorder.IsTopLineValid = rInner.IsValid(SvxBoxInfoItemValidFlags::TOP);
rBorder.IsBottomLineValid = rInner.IsValid(SvxBoxInfoItemValidFlags::BOTTOM);
rBorder.IsLeftLineValid = rInner.IsValid(SvxBoxInfoItemValidFlags::LEFT);