diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-04-18 11:32:58 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-04-18 11:39:43 +0900 |
commit | ab0cd9b481c8af1954faf7a54c4b1d2c2fbb5577 (patch) | |
tree | 685db24d4f01b98b4d2e82a9420e468aac8c8390 /include/editeng | |
parent | ac1ca7a9e3200642248c402202bbca94f61c90c8 (diff) |
cleanup colritem.hxx
Change-Id: I8e703012fe5693251aea6ec1f7a7997c4d6b0edc
Diffstat (limited to 'include/editeng')
-rw-r--r-- | include/editeng/colritem.hxx | 69 |
1 files changed, 29 insertions, 40 deletions
diff --git a/include/editeng/colritem.hxx b/include/editeng/colritem.hxx index 31a7af48dc36..64d8a56669c8 100644 --- a/include/editeng/colritem.hxx +++ b/include/editeng/colritem.hxx @@ -25,75 +25,64 @@ class SvXMLUnitConverter; -// class SvxColorItem ---------------------------------------------------- - -/* [Description] - - This item describes a color. -*/ - #define VERSION_USEAUTOCOLOR 1 +/** SvxColorItem item describes a color. +*/ class EDITENG_DLLPUBLIC SvxColorItem : public SfxPoolItem { private: - Color mColor; + Color mColor; public: TYPEINFO_OVERRIDE(); - explicit SvxColorItem( const sal_uInt16 nId ); - SvxColorItem( const Color& aColor, const sal_uInt16 nId ); - SvxColorItem( SvStream& rStrm, const sal_uInt16 nId ); - SvxColorItem( const SvxColorItem& rCopy ); + explicit SvxColorItem(const sal_uInt16 nId); + SvxColorItem(const Color& aColor, const sal_uInt16 nId); + SvxColorItem(SvStream& rStream, const sal_uInt16 nId); + SvxColorItem(const SvxColorItem& rCopy); virtual ~SvxColorItem(); // "pure virtual Methods" from SfxPoolItem - virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE; - 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; - virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const SAL_OVERRIDE; + virtual bool operator==(const SfxPoolItem& rPoolItem) const SAL_OVERRIDE; + virtual bool QueryValue(css::uno::Any& rVal, sal_uInt8 nMemberId = 0) const SAL_OVERRIDE; + virtual bool PutValue(const css::uno::Any& rVal, sal_uInt8 nMemberId = 0) SAL_OVERRIDE; + virtual sal_uInt16 GetVersion(sal_uInt16 nFileVersion) const SAL_OVERRIDE; - virtual bool GetPresentation( SfxItemPresentation ePres, - SfxMapUnit eCoreMetric, - SfxMapUnit ePresMetric, - OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE; + virtual bool GetPresentation(SfxItemPresentation ePres, + SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, + OUString &rText, const IntlWrapper* pIntlWrapper = 0) const SAL_OVERRIDE; - virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE; - virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const SAL_OVERRIDE; - virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const SAL_OVERRIDE; + virtual SfxPoolItem* Clone(SfxItemPool* pPool = 0) const SAL_OVERRIDE; + virtual SfxPoolItem* Create(SvStream& rStream, sal_uInt16 nVersion) const SAL_OVERRIDE; + virtual SvStream& Store(SvStream& rStream, sal_uInt16 nVersion) const SAL_OVERRIDE; inline SvxColorItem& operator=(const SvxColorItem& rColor) { - SetValue( rColor.GetValue() ); + SetValue(rColor.GetValue()); return *this; } - const Color& GetValue() const - { - return mColor; - } - void SetValue( const Color& rNewCol ); - + const Color& GetValue() const + { + return mColor; + } + void SetValue(const Color& rNewColor); }; -// class SvxBackgroundColorItem - // XXX: to be moved in a separate header. class EDITENG_DLLPUBLIC SvxBackgroundColorItem : public SvxColorItem { public: TYPEINFO_OVERRIDE(); - SvxBackgroundColorItem( const sal_uInt16 nId ); - SvxBackgroundColorItem( const Color& rCol, - const sal_uInt16 nId ); - SvxBackgroundColorItem( SvStream& rStrm, const sal_uInt16 nId ); - SvxBackgroundColorItem( const SvxBackgroundColorItem& rCopy ); - - virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE; - virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const SAL_OVERRIDE; + SvxBackgroundColorItem(const sal_uInt16 nId); + SvxBackgroundColorItem(const Color& rCol, const sal_uInt16 nId); + SvxBackgroundColorItem(SvStream& rStrm, const sal_uInt16 nId); + SvxBackgroundColorItem(const SvxBackgroundColorItem& rCopy); + virtual SfxPoolItem* Clone(SfxItemPool* pPool = 0) const SAL_OVERRIDE; + virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const SAL_OVERRIDE; }; #endif |