summaryrefslogtreecommitdiff
path: root/sw/inc/fmtsrnd.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-03-01 14:17:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-03 06:44:41 +0000
commitf091259ad2ec1590714645839668580cd7b8c7c4 (patch)
tree3bf6b328637358365848bc98a18cbf82ccd4b2d0 /sw/inc/fmtsrnd.hxx
parentd0cc5fcd5bacd8e5e0fa7fe62a78907c2febb867 (diff)
convert SfxEnumItem to type-safe template class
and drop the SvxChartTextOrientItem class, unused. Change-Id: I99100837d1beb953450f57b2cda47d165df1620c Reviewed-on: https://gerrit.libreoffice.org/34747 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/fmtsrnd.hxx')
-rw-r--r--sw/inc/fmtsrnd.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/inc/fmtsrnd.hxx b/sw/inc/fmtsrnd.hxx
index 02bf0e0c7299..74e429d4c9d5 100644
--- a/sw/inc/fmtsrnd.hxx
+++ b/sw/inc/fmtsrnd.hxx
@@ -28,7 +28,7 @@
class IntlWrapper;
// SwFormatSurround: How document content under the frame shall behave.
-class SW_DLLPUBLIC SwFormatSurround: public SfxEnumItem
+class SW_DLLPUBLIC SwFormatSurround: public SfxEnumItem<css::text::WrapTextMode>
{
bool bAnchorOnly :1;
bool bContour :1;
@@ -41,7 +41,7 @@ public:
// "Pure virtual Methods" of SfxPoolItem.
virtual bool operator==( const SfxPoolItem& ) const override;
virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
- virtual sal_uInt16 GetValueCount() const override;
+ virtual sal_uInt16 GetValueCount() const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
MapUnit eCoreMetric,
MapUnit ePresMetric,
@@ -50,11 +50,11 @@ public:
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
- css::text::WrapTextMode GetSurround()const { return css::text::WrapTextMode( GetValue() ); }
+ css::text::WrapTextMode GetSurround() const { return GetValue(); }
bool IsAnchorOnly() const { return bAnchorOnly; }
bool IsContour() const { return bContour; }
bool IsOutside() const { return bOutside; }
- void SetSurround ( css::text::WrapTextMode eNew ){ SfxEnumItem::SetValue( sal_uInt16( eNew ) ); }
+ void SetSurround ( css::text::WrapTextMode eNew ) { SetValue( eNew ); }
void SetAnchorOnly( bool bNew ) { bAnchorOnly = bNew; }
void SetContour( bool bNew ) { bContour = bNew; }
void SetOutside( bool bNew ) { bOutside = bNew; }