diff options
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/fmtfordr.hxx | 4 | ||||
-rw-r--r-- | sw/inc/fmtftntx.hxx | 6 | ||||
-rw-r--r-- | sw/inc/fmtsrnd.hxx | 8 | ||||
-rw-r--r-- | sw/inc/grfatr.hxx | 10 |
4 files changed, 14 insertions, 14 deletions
diff --git a/sw/inc/fmtfordr.hxx b/sw/inc/fmtfordr.hxx index 5a09efbee57b..eec6343dbd1f 100644 --- a/sw/inc/fmtfordr.hxx +++ b/sw/inc/fmtfordr.hxx @@ -33,7 +33,7 @@ enum SwFillOrder SW_FILL_ORDER_END }; -class SwFormatFillOrder: public SfxEnumItem +class SwFormatFillOrder: public SfxEnumItem<SwFillOrder> { public: SwFormatFillOrder( SwFillOrder = ATT_TOP_DOWN ); @@ -41,7 +41,7 @@ public: /// "Pure virtual methods" of SfxPoolItem. virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; - virtual sal_uInt16 GetValueCount() const override; + virtual sal_uInt16 GetValueCount() const override; }; inline SwFormatFillOrder &SwFormatFillOrder::operator=( const SwFormatFillOrder &rCpy ) diff --git a/sw/inc/fmtftntx.hxx b/sw/inc/fmtftntx.hxx index dfd48139ee1a..c46441a297fd 100644 --- a/sw/inc/fmtftntx.hxx +++ b/sw/inc/fmtftntx.hxx @@ -34,7 +34,7 @@ enum SwFootnoteEndPosEnum FTNEND_ATTXTEND_END }; -class SW_DLLPUBLIC SwFormatFootnoteEndAtTextEnd : public SfxEnumItem +class SW_DLLPUBLIC SwFormatFootnoteEndAtTextEnd : public SfxEnumItem<SwFootnoteEndPosEnum> { OUString sPrefix; OUString sSuffix; @@ -43,7 +43,7 @@ class SW_DLLPUBLIC SwFormatFootnoteEndAtTextEnd : public SfxEnumItem protected: SwFormatFootnoteEndAtTextEnd( sal_uInt16 nWhichL, SwFootnoteEndPosEnum ePos ) - : SfxEnumItem( nWhichL, sal::static_int_cast< sal_uInt16 >(ePos) ), nOffset( 0 ) + : SfxEnumItem( nWhichL, ePos ), nOffset( 0 ) {} SwFormatFootnoteEndAtTextEnd( const SwFormatFootnoteEndAtTextEnd& rAttr ) : SfxEnumItem( rAttr ), sPrefix( rAttr.sPrefix ), @@ -52,7 +52,7 @@ protected: {} public: - virtual sal_uInt16 GetValueCount() const override; + virtual sal_uInt16 GetValueCount() const override; virtual bool operator==( const SfxPoolItem& ) const override; 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; } diff --git a/sw/inc/grfatr.hxx b/sw/inc/grfatr.hxx index de586e9c7a60..9c9b625c7590 100644 --- a/sw/inc/grfatr.hxx +++ b/sw/inc/grfatr.hxx @@ -38,13 +38,13 @@ RES_MIRROR_GRAPH_BEGIN, RES_MIRROR_GRAPH_END }; -class SW_DLLPUBLIC SwMirrorGrf : public SfxEnumItem +class SW_DLLPUBLIC SwMirrorGrf : public SfxEnumItem<MirrorGraph> { bool bGrfToggle; // Flip graphics on even pages. public: SwMirrorGrf( MirrorGraph eMiro = RES_MIRROR_GRAPH_DONT ) - : SfxEnumItem( RES_GRFATR_MIRRORGRF, static_cast< sal_uInt16 >(eMiro) ), bGrfToggle( false ) + : SfxEnumItem( RES_GRFATR_MIRRORGRF, eMiro ), bGrfToggle( false ) {} SwMirrorGrf( const SwMirrorGrf &rMirrorGrf ) : SfxEnumItem( RES_GRFATR_MIRRORGRF, rMirrorGrf.GetValue()), @@ -55,7 +55,7 @@ public: virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; // pure virtual methods of SfxEnumItem - virtual sal_uInt16 GetValueCount() const override; + virtual sal_uInt16 GetValueCount() const override; virtual bool operator==( const SfxPoolItem& ) const override; virtual bool GetPresentation( SfxItemPresentation ePres, MapUnit eCoreMetric, @@ -260,7 +260,7 @@ public: sal_uInt8 nMemberId ) override; }; -class SW_DLLPUBLIC SwDrawModeGrf : public SfxEnumItem +class SW_DLLPUBLIC SwDrawModeGrf : public SfxEnumItem<sal_uInt16> { public: SwDrawModeGrf( sal_uInt16 nMode = 0 ) @@ -271,7 +271,7 @@ public: virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; // pure virtual methods of SfxEnumItem - virtual sal_uInt16 GetValueCount() const override; + virtual sal_uInt16 GetValueCount() const override; virtual bool GetPresentation( SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, |