diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-06-22 23:44:56 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-06-25 12:46:17 +0200 |
commit | 463e59d680467a7b0d30ae956935a444c513de9e (patch) | |
tree | 34691ff4b80743167e4c5ad5ca3517d8bf098204 /svx | |
parent | 003b4d21a43b607fb754ca3a65746937cbcc20e9 (diff) |
rename SvxBorderLine::SetStyle to something unambiguous
Change-Id: Iec70985319a64cdc3630e15499ac304a7f1aabae
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/framelink.cxx | 2 | ||||
-rw-r--r-- | svx/source/dialog/frmsel.cxx | 9 | ||||
-rw-r--r-- | svx/source/table/viewcontactoftableobj.cxx | 8 | ||||
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 5 |
4 files changed, 14 insertions, 10 deletions
diff --git a/svx/source/dialog/framelink.cxx b/svx/source/dialog/framelink.cxx index cf43a4106a8b..8e38b611b19b 100644 --- a/svx/source/dialog/framelink.cxx +++ b/svx/source/dialog/framelink.cxx @@ -1185,7 +1185,7 @@ void Style::Set( const SvxBorderLine& rBorder, double fScale, sal_uInt16 nMaxWid sal_uInt16 nDist = rBorder.GetDistance(); sal_uInt16 nSecn = rBorder.GetInWidth(); - mnType = rBorder.GetStyle(); + mnType = rBorder.GetSvxBorderStyle(); if( !nSecn ) // no or single frame border { Set( SCALEVALUE( nPrim ), 0, 0 ); diff --git a/svx/source/dialog/frmsel.cxx b/svx/source/dialog/frmsel.cxx index 3a25bb1c2487..9aace5087c58 100644 --- a/svx/source/dialog/frmsel.cxx +++ b/svx/source/dialog/frmsel.cxx @@ -878,14 +878,17 @@ bool FrameSelector::GetVisibleWidth( long& rnWidth, SvxBorderStyle& rnStyle ) co const SvxBorderLine& rStyle = (*aIt)->GetCoreStyle(); bool bFound = true; for( ++aIt; bFound && aIt.Is(); ++aIt ) + { bFound = (rStyle.GetWidth() == (*aIt)->GetCoreStyle().GetWidth()) && - (rStyle.GetStyle() == (*aIt)->GetCoreStyle().GetStyle()); + (rStyle.GetSvxBorderStyle() == + (*aIt)->GetCoreStyle().GetSvxBorderStyle()); + } if( bFound ) { rnWidth = rStyle.GetWidth(); - rnStyle = rStyle.GetStyle(); + rnStyle = rStyle.GetSvxBorderStyle(); } return bFound; } @@ -948,7 +951,7 @@ void FrameSelector::SelectAllVisibleBorders( bool bSelect ) void FrameSelector::SetStyleToSelection( long nWidth, SvxBorderStyle nStyle ) { - mxImpl->maCurrStyle.SetStyle( nStyle ); + mxImpl->maCurrStyle.SetSvxBorderStyle( nStyle ); mxImpl->maCurrStyle.SetWidth( nWidth ); for( SelFrameBorderIter aIt( mxImpl->maEnabBorders ); aIt.Is(); ++aIt ) mxImpl->SetBorderState( **aIt, FRAMESTATE_SHOW ); diff --git a/svx/source/table/viewcontactoftableobj.cxx b/svx/source/table/viewcontactoftableobj.cxx index 7afd25eb236f..f1494fef8548 100644 --- a/svx/source/table/viewcontactoftableobj.cxx +++ b/svx/source/table/viewcontactoftableobj.cxx @@ -331,7 +331,7 @@ namespace drawinglayer getLeftLine().GetColorIn(true).getBColor(), getLeftLine().GetColorGap().getBColor(), getLeftLine().HasGapColor(), - getLeftLine().GetStyle())); + getLeftLine().GetSvxBorderStyle())); } } @@ -362,7 +362,7 @@ namespace drawinglayer getBottomLine().GetColorIn(false).getBColor(), getBottomLine().GetColorGap().getBColor(), getBottomLine().HasGapColor(), - getBottomLine().GetStyle())); + getBottomLine().GetSvxBorderStyle())); } } @@ -393,7 +393,7 @@ namespace drawinglayer getRightLine().GetColorIn(true).getBColor(), getRightLine().GetColorGap().getBColor(), getRightLine().HasGapColor(), - getRightLine().GetStyle())); + getRightLine().GetSvxBorderStyle())); } } @@ -424,7 +424,7 @@ namespace drawinglayer getTopLine().GetColorIn(false).getBColor(), getTopLine().GetColorGap().getBColor(), getTopLine().HasGapColor(), - getTopLine().GetStyle())); + getTopLine().GetSvxBorderStyle())); } } diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index bd43e59f862d..4ad989c82ff1 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -1149,7 +1149,8 @@ IMPL_LINK_NOARG(SvxFrameWindow_Impl, SelectHdl) sal_uInt16 nModifier = aFrameSet.GetModifier(); sal_uInt8 nValidFlags = 0; - theDefLine.GuessLinesWidths( theDefLine.GetStyle(), DEF_LINE_WIDTH_0 ); + theDefLine.GuessLinesWidths(theDefLine.GetSvxBorderStyle(), + DEF_LINE_WIDTH_0); switch ( nSel ) { case 1: nValidFlags |= FRM_VALID_ALL; @@ -1389,7 +1390,7 @@ IMPL_LINK_NOARG(SvxLineWindow_Impl, SelectHdl) if ( m_aLineStyleLb.GetSelectEntryPos( ) > 0 ) { SvxBorderLine aTmp; - aTmp.SetStyle( nStyle ); + aTmp.SetSvxBorderStyle( nStyle ); aTmp.SetWidth( 20 ); // TODO Make it depend on a width field aLineItem.SetLine( &aTmp ); } |