diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-01-23 09:08:09 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-01-23 09:09:27 +0100 |
commit | ea1d8c5ab3183f67c27683133d286725b4fa98bc (patch) | |
tree | 6023823a3e188ef2b5acf8ec9f2a39e7ecae9daa /include | |
parent | 5d47b83cef0b2d0486162989722b23e53eb0cdb1 (diff) |
Factor out SfxPoolItem::dumpAsXml() from sw
The primary benefit of this is that it's no longer necessary to manually
downcast to each and every subclass in sw.
Change-Id: I5742d5744836eef192eef2d4f7ad180da67eb914
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/brushitem.hxx | 2 | ||||
-rw-r--r-- | include/editeng/charrotateitem.hxx | 2 | ||||
-rw-r--r-- | include/editeng/fhgtitem.hxx | 2 | ||||
-rw-r--r-- | include/editeng/fontitem.hxx | 2 | ||||
-rw-r--r-- | include/editeng/lrspitem.hxx | 2 | ||||
-rw-r--r-- | include/editeng/postitem.hxx | 2 | ||||
-rw-r--r-- | include/editeng/protitem.hxx | 2 | ||||
-rw-r--r-- | include/editeng/rsiditem.hxx | 2 | ||||
-rw-r--r-- | include/editeng/shaditem.hxx | 2 | ||||
-rw-r--r-- | include/editeng/ulspitem.hxx | 2 | ||||
-rw-r--r-- | include/editeng/wghtitem.hxx | 2 | ||||
-rw-r--r-- | include/svl/intitem.hxx | 2 | ||||
-rw-r--r-- | include/svl/poolitem.hxx | 1 | ||||
-rw-r--r-- | include/svl/stritem.hxx | 2 | ||||
-rw-r--r-- | include/svx/xfillit0.hxx | 2 | ||||
-rw-r--r-- | include/svx/xflbmpit.hxx | 2 | ||||
-rw-r--r-- | include/svx/xflbmtit.hxx | 2 | ||||
-rw-r--r-- | include/svx/xflbstit.hxx | 2 | ||||
-rw-r--r-- | include/svx/xfltrit.hxx | 2 | ||||
-rw-r--r-- | include/svx/xit.hxx | 2 |
20 files changed, 20 insertions, 19 deletions
diff --git a/include/editeng/brushitem.hxx b/include/editeng/brushitem.hxx index 16dc38de410c..9a7bb0f6bedd 100644 --- a/include/editeng/brushitem.hxx +++ b/include/editeng/brushitem.hxx @@ -128,7 +128,7 @@ public: static WallpaperStyle GraphicPos2WallpaperStyle( SvxGraphicPosition ePos ); static sal_Int8 TransparencyToPercent(sal_Int32 nTrans); - void dumpAsXml(struct _xmlTextWriter* pWriter) const; + void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE; }; #endif // INCLUDED_EDITENG_BRUSHITEM_HXX diff --git a/include/editeng/charrotateitem.hxx b/include/editeng/charrotateitem.hxx index c78cfc69670d..6a88c76c25f0 100644 --- a/include/editeng/charrotateitem.hxx +++ b/include/editeng/charrotateitem.hxx @@ -75,7 +75,7 @@ public: bool IsFitToLine() const { return bFitToLine; } void SetFitToLine( bool b ) { bFitToLine = b; } - void dumpAsXml(struct _xmlTextWriter* pWriter) const; + void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE; }; #endif diff --git a/include/editeng/fhgtitem.hxx b/include/editeng/fhgtitem.hxx index 7034dcfdf079..ac3cde46a02f 100644 --- a/include/editeng/fhgtitem.hxx +++ b/include/editeng/fhgtitem.hxx @@ -92,7 +92,7 @@ public: SfxMapUnit GetPropUnit() const { return ePropUnit; } // Percent, Twip, ... - void dumpAsXml(struct _xmlTextWriter* pWriter) const; + void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE; }; #endif diff --git a/include/editeng/fontitem.hxx b/include/editeng/fontitem.hxx index 6a2cb8a5dba1..38e7d416152b 100644 --- a/include/editeng/fontitem.hxx +++ b/include/editeng/fontitem.hxx @@ -87,7 +87,7 @@ public: static void EnableStoreUnicodeNames( bool bEnable ); - void dumpAsXml(struct _xmlTextWriter* pWriter) const; + void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE; }; EDITENG_DLLPUBLIC void GetDefaultFonts( SvxFontItem& rLatin, SvxFontItem& rAsian, diff --git a/include/editeng/lrspitem.hxx b/include/editeng/lrspitem.hxx index ef5d73798bd2..123264e9cd89 100644 --- a/include/editeng/lrspitem.hxx +++ b/include/editeng/lrspitem.hxx @@ -126,7 +126,7 @@ public: { return nPropFirstLineOfst; } inline void SetTxtFirstLineOfstValue( const short nValue ) { nFirstLineOfst = nValue; } - void dumpAsXml(struct _xmlTextWriter* pWriter) const; + void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE; }; inline SvxLRSpaceItem &SvxLRSpaceItem::operator=( const SvxLRSpaceItem &rCpy ) diff --git a/include/editeng/postitem.hxx b/include/editeng/postitem.hxx index 2651415b7586..d8a2b42c6360 100644 --- a/include/editeng/postitem.hxx +++ b/include/editeng/postitem.hxx @@ -70,7 +70,7 @@ public: void SetPosture( FontItalic eNew ) { SetValue( (sal_uInt16)eNew ); } - void dumpAsXml(struct _xmlTextWriter* pWriter) const; + void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE; }; #endif // INCLUDED_EDITENG_POSTITEM_HXX diff --git a/include/editeng/protitem.hxx b/include/editeng/protitem.hxx index a21bb6b785a8..66fa1a30d1ca 100644 --- a/include/editeng/protitem.hxx +++ b/include/editeng/protitem.hxx @@ -66,7 +66,7 @@ public: virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE; virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) SAL_OVERRIDE; - void dumpAsXml(struct _xmlTextWriter* pWriter) const; + void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE; }; inline SvxProtectItem::SvxProtectItem( const sal_uInt16 nId ) diff --git a/include/editeng/rsiditem.hxx b/include/editeng/rsiditem.hxx index cda36484f8f5..43ba37eaede4 100644 --- a/include/editeng/rsiditem.hxx +++ b/include/editeng/rsiditem.hxx @@ -30,7 +30,7 @@ public: virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE; virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) SAL_OVERRIDE; - void dumpAsXml(struct _xmlTextWriter* pWriter) const; + void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE; }; #endif // INCLUDED_EDITENG_RSIDITEM_HXX diff --git a/include/editeng/shaditem.hxx b/include/editeng/shaditem.hxx index c7761fcae9cb..1e9209b87ae3 100644 --- a/include/editeng/shaditem.hxx +++ b/include/editeng/shaditem.hxx @@ -83,7 +83,7 @@ public: virtual OUString GetValueTextByPos( sal_uInt16 nPos ) const SAL_OVERRIDE; virtual sal_uInt16 GetEnumValue() const SAL_OVERRIDE; virtual void SetEnumValue( sal_uInt16 nNewVal ) SAL_OVERRIDE; - void dumpAsXml(struct _xmlTextWriter* pWriter) const; + void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE; }; inline SvxShadowItem &SvxShadowItem::operator=( const SvxShadowItem& rFmtShadow ) diff --git a/include/editeng/ulspitem.hxx b/include/editeng/ulspitem.hxx index 58aade9613c3..3fd40f0dca03 100644 --- a/include/editeng/ulspitem.hxx +++ b/include/editeng/ulspitem.hxx @@ -78,7 +78,7 @@ public: bool GetContext() const { return bContext; } sal_uInt16 GetPropUpper() const { return nPropUpper; } sal_uInt16 GetPropLower() const { return nPropLower; } - void dumpAsXml(struct _xmlTextWriter* pWriter) const; + void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE; }; inline SvxULSpaceItem &SvxULSpaceItem::operator=( const SvxULSpaceItem &rCpy ) diff --git a/include/editeng/wghtitem.hxx b/include/editeng/wghtitem.hxx index 4f0c7956b041..834052674189 100644 --- a/include/editeng/wghtitem.hxx +++ b/include/editeng/wghtitem.hxx @@ -70,7 +70,7 @@ public: void SetWeight( FontWeight eNew ) { SetValue( (sal_uInt16)eNew ); } - void dumpAsXml(struct _xmlTextWriter* pWriter) const; + void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE; }; #endif // INCLUDED_EDITENG_WGHTITEM_HXX diff --git a/include/svl/intitem.hxx b/include/svl/intitem.hxx index fea545b07c74..152f5b5ae8bf 100644 --- a/include/svl/intitem.hxx +++ b/include/svl/intitem.hxx @@ -115,7 +115,7 @@ public: virtual SfxPoolItem * Clone(SfxItemPool * = 0) const SAL_OVERRIDE { return new SfxUInt16Item(*this); } - void dumpAsXml(struct _xmlTextWriter* pWriter) const; + void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE; }; diff --git a/include/svl/poolitem.hxx b/include/svl/poolitem.hxx index 45d415bc16d1..bc5180ba15d0 100644 --- a/include/svl/poolitem.hxx +++ b/include/svl/poolitem.hxx @@ -194,6 +194,7 @@ public: sal_uLong GetRefCount() const { return m_nRefCount; } inline SfxItemKind GetKind() const { return m_nKind; } + virtual void dumpAsXml(struct _xmlTextWriter* pWriter) const; private: SfxPoolItem& operator=( const SfxPoolItem& ); // not implemented!! diff --git a/include/svl/stritem.hxx b/include/svl/stritem.hxx index eb0fea36a5ae..d2df1e42a158 100644 --- a/include/svl/stritem.hxx +++ b/include/svl/stritem.hxx @@ -42,7 +42,7 @@ public: virtual SfxPoolItem * Clone(SfxItemPool * = 0) const SAL_OVERRIDE; - void dumpAsXml(struct _xmlTextWriter* pWriter) const; + void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE; }; #endif // INCLUDED_SVL_STRITEM_HXX diff --git a/include/svx/xfillit0.hxx b/include/svx/xfillit0.hxx index 4ed3af637cfd..cd3fec1f8046 100644 --- a/include/svx/xfillit0.hxx +++ b/include/svx/xfillit0.hxx @@ -51,7 +51,7 @@ public: virtual sal_uInt16 GetValueCount() const SAL_OVERRIDE; css::drawing::FillStyle GetValue() const { return (css::drawing::FillStyle) SfxEnumItem::GetValue(); } - void dumpAsXml(struct _xmlTextWriter* pWriter) const; + void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE; }; #endif diff --git a/include/svx/xflbmpit.hxx b/include/svx/xflbmpit.hxx index 34dfd7a22755..621c34ccdfc9 100644 --- a/include/svx/xflbmpit.hxx +++ b/include/svx/xflbmpit.hxx @@ -41,7 +41,7 @@ public: SVX_DLLPRIVATE virtual sal_uInt16 GetValueCount() const SAL_OVERRIDE; SVX_DLLPRIVATE RECT_POINT GetValue() const { return (RECT_POINT) SfxEnumItem::GetValue(); } - void dumpAsXml(struct _xmlTextWriter* pWriter) const; + void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE; }; diff --git a/include/svx/xflbmtit.hxx b/include/svx/xflbmtit.hxx index cefca741b3ab..ad41503dccee 100644 --- a/include/svx/xflbmtit.hxx +++ b/include/svx/xflbmtit.hxx @@ -37,7 +37,7 @@ public: SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE; - virtual void dumpAsXml(struct _xmlTextWriter* pWriter) const; + void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE; }; #endif diff --git a/include/svx/xflbstit.hxx b/include/svx/xflbstit.hxx index 2e8e9322ed3d..a558ed83220a 100644 --- a/include/svx/xflbstit.hxx +++ b/include/svx/xflbstit.hxx @@ -37,7 +37,7 @@ public: SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE; - void dumpAsXml(struct _xmlTextWriter* pWriter) const; + void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE; }; #endif diff --git a/include/svx/xfltrit.hxx b/include/svx/xfltrit.hxx index 3424a691d334..4109b7a43e41 100644 --- a/include/svx/xfltrit.hxx +++ b/include/svx/xfltrit.hxx @@ -41,7 +41,7 @@ public: SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE; - virtual void dumpAsXml(struct _xmlTextWriter* pWriter) const; + void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE; }; #endif diff --git a/include/svx/xit.hxx b/include/svx/xit.hxx index 6ac1236d7e91..74fd1cc2442f 100644 --- a/include/svx/xit.hxx +++ b/include/svx/xit.hxx @@ -70,7 +70,7 @@ public: */ static OUString CheckNamedItem( const NameOrIndex* pCheckItem, const sal_uInt16 nWhich, const SfxItemPool* pPool1, const SfxItemPool* pPool2, SvxCompareValueFunc pCompareValueFunc, sal_uInt16 nPrefixResId, const XPropertyListRef &pDefaults ); - virtual void dumpAsXml(struct _xmlTextWriter* pWriter) const; + void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE; }; #endif |