summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-07-03 21:26:13 +0200
committerMichael Stahl <mstahl@redhat.com>2012-07-04 18:06:10 +0200
commitaf24dfc60aae08fe49ac8544ddced6974c58f097 (patch)
treeb18ac766931d0d9e8db588437bea136535b0c6a4 /svx
parent786e9503d4d4e19769a5ba13ab6ea95dfca724ac (diff)
replace enum SvxBorderStyle with css::table::BorderLineSyle
Change-Id: I1dadb53f46b23f92d34061ef78dda872bdbcda67 (cherry picked from commit 8b4593948582c3b5b3d013bd751bb19ffd37a31b)
Diffstat (limited to 'svx')
-rw-r--r--svx/inc/svx/framelink.hxx5
-rw-r--r--svx/source/dialog/framelink.cxx6
-rw-r--r--svx/source/dialog/frmsel.cxx11
-rw-r--r--svx/source/table/viewcontactoftableobj.cxx8
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx5
5 files changed, 21 insertions, 14 deletions
diff --git a/svx/inc/svx/framelink.hxx b/svx/inc/svx/framelink.hxx
index c2edbb428c14..3a9117252be3 100644
--- a/svx/inc/svx/framelink.hxx
+++ b/svx/inc/svx/framelink.hxx
@@ -116,7 +116,10 @@ class SVX_DLLPUBLIC Style
{
public:
/** Constructs an invisible frame style. */
- inline explicit Style() : meRefMode( REFMODE_CENTERED ), mnType( editeng::SOLID ) { Clear(); }
+ inline explicit Style()
+ : meRefMode( REFMODE_CENTERED )
+ , mnType( ::com::sun::star::table::BorderLineStyle::SOLID )
+ { Clear(); }
/** Constructs a frame style with passed line widths. */
inline explicit Style( double nP, double nD, double nS, editeng::SvxBorderStyle nType ) :
meRefMode( REFMODE_CENTERED ), mnType( nType )
diff --git a/svx/source/dialog/framelink.cxx b/svx/source/dialog/framelink.cxx
index 8e38b611b19b..565b851db042 100644
--- a/svx/source/dialog/framelink.cxx
+++ b/svx/source/dialog/framelink.cxx
@@ -56,6 +56,8 @@
#include <drawinglayer/primitive2d/borderlineprimitive2d.hxx>
#include <drawinglayer/primitive2d/clippedborderlineprimitive2d.hxx>
+
+using namespace ::com::sun::star;
using namespace editeng;
namespace svx {
@@ -1185,7 +1187,7 @@ void Style::Set( const SvxBorderLine& rBorder, double fScale, sal_uInt16 nMaxWid
sal_uInt16 nDist = rBorder.GetDistance();
sal_uInt16 nSecn = rBorder.GetInWidth();
- mnType = rBorder.GetSvxBorderStyle();
+ mnType = rBorder.GetBorderLineStyle();
if( !nSecn ) // no or single frame border
{
Set( SCALEVALUE( nPrim ), 0, 0 );
@@ -1232,7 +1234,7 @@ void Style::Set( const SvxBorderLine* pBorder, double fScale, sal_uInt16 nMaxWid
else
{
Clear();
- mnType = SOLID;
+ mnType = table::BorderLineStyle::SOLID;
}
}
diff --git a/svx/source/dialog/frmsel.cxx b/svx/source/dialog/frmsel.cxx
index 9aace5087c58..75a7d7ebe830 100644
--- a/svx/source/dialog/frmsel.cxx
+++ b/svx/source/dialog/frmsel.cxx
@@ -39,6 +39,7 @@
#include <tools/rcid.h>
+using namespace ::com::sun::star;
using namespace ::editeng;
namespace svx {
@@ -160,7 +161,7 @@ void FrameBorder::SetState( FrameBorderState eState )
break;
case FRAMESTATE_DONTCARE:
maCoreStyle = SvxBorderLine();
- maUIStyle = frame::Style(3, 0, 0, SOLID); //OBJ_FRAMESTYLE_DONTCARE
+ maUIStyle = frame::Style(3, 0, 0, table::BorderLineStyle::SOLID); //OBJ_FRAMESTYLE_DONTCARE
break;
}
}
@@ -881,14 +882,14 @@ bool FrameSelector::GetVisibleWidth( long& rnWidth, SvxBorderStyle& rnStyle ) co
{
bFound =
(rStyle.GetWidth() == (*aIt)->GetCoreStyle().GetWidth()) &&
- (rStyle.GetSvxBorderStyle() ==
- (*aIt)->GetCoreStyle().GetSvxBorderStyle());
+ (rStyle.GetBorderLineStyle() ==
+ (*aIt)->GetCoreStyle().GetBorderLineStyle());
}
if( bFound )
{
rnWidth = rStyle.GetWidth();
- rnStyle = rStyle.GetSvxBorderStyle();
+ rnStyle = rStyle.GetBorderLineStyle();
}
return bFound;
}
@@ -951,7 +952,7 @@ void FrameSelector::SelectAllVisibleBorders( bool bSelect )
void FrameSelector::SetStyleToSelection( long nWidth, SvxBorderStyle nStyle )
{
- mxImpl->maCurrStyle.SetSvxBorderStyle( nStyle );
+ mxImpl->maCurrStyle.SetBorderLineStyle( 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 f1494fef8548..c4b3e7b8169b 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().GetSvxBorderStyle()));
+ getLeftLine().GetBorderLineStyle()));
}
}
@@ -362,7 +362,7 @@ namespace drawinglayer
getBottomLine().GetColorIn(false).getBColor(),
getBottomLine().GetColorGap().getBColor(),
getBottomLine().HasGapColor(),
- getBottomLine().GetSvxBorderStyle()));
+ getBottomLine().GetBorderLineStyle()));
}
}
@@ -393,7 +393,7 @@ namespace drawinglayer
getRightLine().GetColorIn(true).getBColor(),
getRightLine().GetColorGap().getBColor(),
getRightLine().HasGapColor(),
- getRightLine().GetSvxBorderStyle()));
+ getRightLine().GetBorderLineStyle()));
}
}
@@ -424,7 +424,7 @@ namespace drawinglayer
getTopLine().GetColorIn(false).getBColor(),
getTopLine().GetColorGap().getBColor(),
getTopLine().HasGapColor(),
- getTopLine().GetSvxBorderStyle()));
+ getTopLine().GetBorderLineStyle()));
}
}
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 2eb7511df5e8..6ff2c513721c 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -1153,7 +1153,7 @@ IMPL_LINK_NOARG(SvxFrameWindow_Impl, SelectHdl)
sal_uInt16 nModifier = aFrameSet.GetModifier();
sal_uInt8 nValidFlags = 0;
- theDefLine.GuessLinesWidths(theDefLine.GetSvxBorderStyle(),
+ theDefLine.GuessLinesWidths(theDefLine.GetBorderLineStyle(),
DEF_LINE_WIDTH_0);
switch ( nSel )
{
@@ -1344,6 +1344,7 @@ SvxLineWindow_Impl::SvxLineWindow_Impl( sal_uInt16 nId, const Reference< XFrame
m_aLineStyleLb.SetSourceUnit( FUNIT_TWIP );
m_aLineStyleLb.SetNone( SVX_RESSTR(STR_NONE) );
+ using namespace table::BorderLineStyle;
m_aLineStyleLb.InsertEntry( SvxBorderLine::getWidthImpl( SOLID ), SOLID );
m_aLineStyleLb.InsertEntry( SvxBorderLine::getWidthImpl( DOTTED ), DOTTED );
m_aLineStyleLb.InsertEntry( SvxBorderLine::getWidthImpl( DASHED ), DASHED );
@@ -1394,7 +1395,7 @@ IMPL_LINK_NOARG(SvxLineWindow_Impl, SelectHdl)
if ( m_aLineStyleLb.GetSelectEntryPos( ) > 0 )
{
SvxBorderLine aTmp;
- aTmp.SetSvxBorderStyle( nStyle );
+ aTmp.SetBorderLineStyle( nStyle );
aTmp.SetWidth( 20 ); // TODO Make it depend on a width field
aLineItem.SetLine( &aTmp );
}