summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-03-14 08:00:33 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-14 07:58:49 +0000
commit250995d2b8d8ad544110d3daeb2f61089bff0aa5 (patch)
treee67d3f5685831ec6207d78ab0bcdfc0dab7a4c4a /editeng
parenta09fc7dd097357b60931739b6ed281a0b931aa73 (diff)
change SvxFrameDirectionItem base to SfxEnumItem
Change-Id: I82f01d0e3e4bf15ed6ba435406ae63b7c9110091 Reviewed-on: https://gerrit.libreoffice.org/35160 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/frmitems.cxx14
1 files changed, 3 insertions, 11 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index b10159ba64c6..7e01d0c42418 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -4041,7 +4041,7 @@ void SvxBrushItem::dumpAsXml(xmlTextWriterPtr pWriter) const
SvxFrameDirectionItem::SvxFrameDirectionItem( SvxFrameDirection nValue ,
sal_uInt16 _nWhich )
- : SfxUInt16Item( _nWhich, (sal_uInt16)nValue )
+ : SfxEnumItem<SvxFrameDirection>( _nWhich, nValue )
{
}
@@ -4069,15 +4069,7 @@ SfxPoolItem* SvxFrameDirectionItem::Create( SvStream & rStrm, sal_uInt16 /*nVer*
{
sal_uInt16 nValue;
rStrm.ReadUInt16( nValue );
- return new SvxFrameDirectionItem( (SvxFrameDirection)nValue, Which() );
-}
-
-
-SvStream& SvxFrameDirectionItem::Store( SvStream & rStrm, sal_uInt16 /*nIVer*/ ) const
-{
- sal_uInt16 nValue = GetValue();
- rStrm.WriteUInt16( nValue );
- return rStrm;
+ return new SvxFrameDirectionItem( static_cast<SvxFrameDirection>(nValue), Which() );
}
@@ -4093,7 +4085,7 @@ bool SvxFrameDirectionItem::GetPresentation(
MapUnit /*ePresUnit*/,
OUString& rText, const IntlWrapper *) const
{
- rText = EE_RESSTR( RID_SVXITEMS_FRMDIR_BEGIN + GetValue() );
+ rText = EE_RESSTR( RID_SVXITEMS_FRMDIR_BEGIN + GetEnumValue() );
return true;
}