diff options
Diffstat (limited to 'sw/inc/fmtsrnd.hxx')
-rw-r--r-- | sw/inc/fmtsrnd.hxx | 8 |
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; } |