From 43c1a3a904e889e4b8660fa28d4f4479c0f267ae Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 13 Aug 2018 16:07:54 +0200 Subject: SvxCharSetColorItem can be removed and just use SvxColorItem in its stead, all of it's special functionality has been removed over time Change-Id: I61a4d1fb92d9dccbdfc5bbb6d1a41692b83eb320 Reviewed-on: https://gerrit.libreoffice.org/58938 Tested-by: Jenkins Reviewed-by: Noel Grandin --- editeng/inc/pch/precompiled_editeng.hxx | 1 - editeng/source/editeng/editattr.cxx | 1 - editeng/source/editeng/editdoc.cxx | 1 - editeng/source/editeng/editeng.cxx | 1 - editeng/source/editeng/editobj.cxx | 1 - editeng/source/editeng/eerdll.cxx | 3 +-- editeng/source/editeng/impedit3.cxx | 1 - editeng/source/items/textitem.cxx | 34 --------------------------------- editeng/source/rtf/rtfitem.cxx | 1 - 9 files changed, 1 insertion(+), 43 deletions(-) (limited to 'editeng') diff --git a/editeng/inc/pch/precompiled_editeng.hxx b/editeng/inc/pch/precompiled_editeng.hxx index 151d38fcaba2..c441fe1ff4ec 100644 --- a/editeng/inc/pch/precompiled_editeng.hxx +++ b/editeng/inc/pch/precompiled_editeng.hxx @@ -336,7 +336,6 @@ #include #include #include -#include #include #include #include diff --git a/editeng/source/editeng/editattr.cxx b/editeng/source/editeng/editattr.cxx index c20e03d21a51..516ca28f9946 100644 --- a/editeng/source/editeng/editattr.cxx +++ b/editeng/source/editeng/editattr.cxx @@ -37,7 +37,6 @@ #include #include #include -#include #include #include #include diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index 76fd0a4d6f01..2e3fcec41184 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -38,7 +38,6 @@ #include #include #include -#include #include #include #include diff --git a/editeng/source/editeng/editeng.cxx b/editeng/source/editeng/editeng.cxx index 85bfbfb44a76..e2c4a63f3efd 100644 --- a/editeng/source/editeng/editeng.cxx +++ b/editeng/source/editeng/editeng.cxx @@ -59,7 +59,6 @@ #include #include #include -#include #include #include #include diff --git a/editeng/source/editeng/editobj.cxx b/editeng/source/editeng/editobj.cxx index 8166f84c6a11..9b7fa07924d6 100644 --- a/editeng/source/editeng/editobj.cxx +++ b/editeng/source/editeng/editobj.cxx @@ -34,7 +34,6 @@ #include #include #include -#include #include #include #include diff --git a/editeng/source/editeng/eerdll.cxx b/editeng/source/editeng/eerdll.cxx index ad574cf9b6a3..1a2a15c4975d 100644 --- a/editeng/source/editeng/eerdll.cxx +++ b/editeng/source/editeng/eerdll.cxx @@ -49,7 +49,6 @@ #include #include #include -#include #include #include #include @@ -149,7 +148,7 @@ DefItems::DefItems() // Features rDefItems[51] = new SfxVoidItem( EE_FEATURE_TAB ); rDefItems[52] = new SfxVoidItem( EE_FEATURE_LINEBR ); - rDefItems[53] = new SvxCharSetColorItem( COL_RED, EE_FEATURE_NOTCONV ); + rDefItems[53] = new SvxColorItem( COL_RED, EE_FEATURE_NOTCONV ); rDefItems[54] = new SvxFieldItem( SvxFieldData(), EE_FEATURE_FIELD ); assert(EDITITEMCOUNT == 55 && "ITEMCOUNT changed, adjust DefItems!"); diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index d10c8ff26feb..6287609944bb 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -34,7 +34,6 @@ #include #include #include -#include #include #include #include diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx index fd6ce05c3970..0b971d71911d 100644 --- a/editeng/source/items/textitem.cxx +++ b/editeng/source/items/textitem.cxx @@ -76,7 +76,6 @@ #include #include #include -#include #include #include #include @@ -1751,39 +1750,6 @@ void SvxColorItem::SetValue( const Color& rNewCol ) mColor = rNewCol; } -// class SvxCharSetColorItem --------------------------------------------- - -SvxCharSetColorItem::SvxCharSetColorItem( const sal_uInt16 nId ) : - SvxColorItem( nId ) -{ -} - - -SvxCharSetColorItem::SvxCharSetColorItem( const Color& rCol, - const sal_uInt16 nId ) : - SvxColorItem( rCol, nId ) -{ -} - - -SfxPoolItem* SvxCharSetColorItem::Clone( SfxItemPool * ) const -{ - return new SvxCharSetColorItem( *this ); -} - - -bool SvxCharSetColorItem::GetPresentation -( - SfxItemPresentation /*ePres*/, - MapUnit /*eCoreUnit*/, - MapUnit /*ePresUnit*/, - OUString& rText, const IntlWrapper& /*rIntl*/ -) const -{ - rText.clear(); - return false; -} - // class SvxKerningItem -------------------------------------------------- SvxKerningItem::SvxKerningItem( const short nKern, const sal_uInt16 nId ) : diff --git a/editeng/source/rtf/rtfitem.cxx b/editeng/source/rtf/rtfitem.cxx index 7130793ef8b5..8d12c04e0394 100644 --- a/editeng/source/rtf/rtfitem.cxx +++ b/editeng/source/rtf/rtfitem.cxx @@ -30,7 +30,6 @@ #include #include #include -#include #include #include #include -- cgit