svtools: Drop now unused ValueSet::SetItemImage
The last caller of that method was ported from ValueSet
to weld::IconView in previous commit
Change-Id: I28d86251b70149574535dc7b583660dbe42e9a0d
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Tue Oct 6 15:01:52 2026 +0200
svx: Port ExtrusionLightingWindow from ValueSet to weld::IconView
Change-Id: I232f3767268a4fde206515f2a6d92e35c664ccd1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211904
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
This commit is contained in:
@@ -331,7 +331,6 @@ public:
|
|||||||
return mbNoSelection;
|
return mbNoSelection;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetItemImage( sal_uInt16 nItemId, const Image& rImage );
|
|
||||||
Image GetItemImage( sal_uInt16 nItemId ) const;
|
Image GetItemImage( sal_uInt16 nItemId ) const;
|
||||||
void SetItemColor( sal_uInt16 nItemId, const Color& rColor );
|
void SetItemColor( sal_uInt16 nItemId, const Color& rColor );
|
||||||
Color GetItemColor( sal_uInt16 nItemId ) const;
|
Color GetItemColor( sal_uInt16 nItemId ) const;
|
||||||
|
|||||||
@@ -1353,26 +1353,6 @@ void ValueSet::SetColCount( sal_uInt16 nNewCols )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ValueSet::SetItemImage( sal_uInt16 nItemId, const Image& rImage )
|
|
||||||
{
|
|
||||||
size_t nPos = GetItemPos( nItemId );
|
|
||||||
|
|
||||||
if ( nPos == VALUESET_ITEM_NOTFOUND )
|
|
||||||
return;
|
|
||||||
|
|
||||||
ValueSetItem* pItem = mItemList[nPos].get();
|
|
||||||
pItem->meType = ValueSetItemType::Image;
|
|
||||||
pItem->maImage = rImage;
|
|
||||||
|
|
||||||
if (!mbFormat && IsReallyVisible())
|
|
||||||
{
|
|
||||||
const tools::Rectangle aRect = ImplGetItemRect(nPos);
|
|
||||||
Invalidate(aRect);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
mbFormat = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ValueSet::SetItemColor( sal_uInt16 nItemId, const Color& rColor )
|
void ValueSet::SetItemColor( sal_uInt16 nItemId, const Color& rColor )
|
||||||
{
|
{
|
||||||
size_t nPos = GetItemPos( nItemId );
|
size_t nPos = GetItemPos( nItemId );
|
||||||
|
|||||||
Reference in New Issue
Block a user