summaryrefslogtreecommitdiff
path: root/svx/source/items
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/items')
-rw-r--r--svx/source/items/algitem.cxx6
-rw-r--r--svx/source/items/chrtitem.cxx27
-rw-r--r--svx/source/items/rotmodit.cxx4
3 files changed, 10 insertions, 27 deletions
diff --git a/svx/source/items/algitem.cxx b/svx/source/items/algitem.cxx
index f7df00afd16e..afef2e6f446c 100644
--- a/svx/source/items/algitem.cxx
+++ b/svx/source/items/algitem.cxx
@@ -46,12 +46,12 @@ SfxPoolItem* SvxMarginItem::CreateDefault() { return new SvxMarginItem(0) ;}
SvxOrientationItem::SvxOrientationItem( const SvxCellOrientation eOrientation,
const sal_uInt16 nId):
- SfxEnumItem( nId, (sal_uInt16)eOrientation )
+ SfxEnumItem( nId, eOrientation )
{
}
SvxOrientationItem::SvxOrientationItem( sal_Int32 nRotation, bool bStacked, const sal_uInt16 nId ) :
- SfxEnumItem( nId )
+ SfxEnumItem( nId, SvxCellOrientation::SVX_ORIENTATION_STANDARD )
{
if( bStacked )
{
@@ -111,7 +111,7 @@ bool SvxOrientationItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/
case table::CellOrientation_STACKED: eSvx = SVX_ORIENTATION_STACKED; break;
default: ; //prevent warning
}
- SetValue( (sal_uInt16)eSvx );
+ SetValue( eSvx );
return true;
}
diff --git a/svx/source/items/chrtitem.cxx b/svx/source/items/chrtitem.cxx
index 945ed3ef6c57..4680ddefb144 100644
--- a/svx/source/items/chrtitem.cxx
+++ b/svx/source/items/chrtitem.cxx
@@ -34,7 +34,7 @@ SfxPoolItem* SvxDoubleItem::CreateDefault() { return new SvxDoubleItem(0.0, 0);
SvxChartTextOrderItem::SvxChartTextOrderItem(SvxChartTextOrder eOrder,
sal_uInt16 nId) :
- SfxEnumItem(nId, (sal_uInt16)eOrder)
+ SfxEnumItem(nId, eOrder)
{
}
@@ -110,28 +110,11 @@ bool SvxChartTextOrderItem::PutValue( const css::uno::Any& rVal, sal_uInt8 /*nMe
return false;
}
- SetValue( (sal_uInt16)eOrder );
+ SetValue( eOrder );
return true;
}
-SvxChartTextOrientItem::SvxChartTextOrientItem(SvStream& rIn, sal_uInt16 nId) :
- SfxEnumItem(nId, rIn)
-{
-}
-
-
-SfxPoolItem* SvxChartTextOrientItem::Clone(SfxItemPool* /*pPool*/) const
-{
- return new SvxChartTextOrientItem(*this);
-}
-
-
-SfxPoolItem* SvxChartTextOrientItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
-{
- return new SvxChartTextOrientItem(rIn, Which());
-}
-
SvxDoubleItem::SvxDoubleItem(double fValue, sal_uInt16 nId) :
SfxPoolItem(nId),
fVal(fValue)
@@ -201,7 +184,7 @@ bool SvxDoubleItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/ )
SvxChartKindErrorItem::SvxChartKindErrorItem(SvxChartKindError eOrient,
sal_uInt16 nId) :
- SfxEnumItem(nId, (sal_uInt16)eOrient)
+ SfxEnumItem(nId, eOrient)
{
}
@@ -233,7 +216,7 @@ sal_uInt16 SvxChartKindErrorItem::GetVersion (sal_uInt16 nFileFormatVersion) con
SvxChartIndicateItem::SvxChartIndicateItem(SvxChartIndicate eOrient,
sal_uInt16 nId) :
- SfxEnumItem(nId, (sal_uInt16)eOrient)
+ SfxEnumItem(nId, eOrient)
{
}
@@ -265,7 +248,7 @@ sal_uInt16 SvxChartIndicateItem::GetVersion (sal_uInt16 nFileFormatVersion) cons
SvxChartRegressItem::SvxChartRegressItem(SvxChartRegress eOrient,
sal_uInt16 nId) :
- SfxEnumItem(nId, (sal_uInt16)eOrient)
+ SfxEnumItem(nId, eOrient)
{
}
diff --git a/svx/source/items/rotmodit.cxx b/svx/source/items/rotmodit.cxx
index 41262a8973d4..52ab4748cb55 100644
--- a/svx/source/items/rotmodit.cxx
+++ b/svx/source/items/rotmodit.cxx
@@ -44,7 +44,7 @@ SfxPoolItem* SvxRotateModeItem::CreateDefault() { return new SvxRotateModeItem(
SvxRotateModeItem::SvxRotateModeItem( SvxRotateMode eMode, sal_uInt16 _nWhich )
- : SfxEnumItem( _nWhich, (sal_uInt16)eMode )
+ : SfxEnumItem( _nWhich, eMode )
{
}
@@ -133,7 +133,7 @@ bool SvxRotateModeItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/
case table::CellVertJustify2::BOTTOM: eSvx = SVX_ROTATE_MODE_BOTTOM; break;
default: ;//prevent warning
}
- SetValue( (sal_uInt16)eSvx );
+ SetValue( eSvx );
return true;
}