diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-04 08:23:50 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-05 09:17:46 +0200 |
commit | 49d85c15362a8f91a0f1528c25a3927ba04bdb7c (patch) | |
tree | 7a7a886dfe338c257d8d8d967b9d669cfb881373 /sfx2 | |
parent | 56b24765f24222d3d1a2fe488b89c56a331ffce0 (diff) |
remove unused code in ThumbnailView
ThumbnailView::DeselectItem(unsigned short)
ThumbnailView::GetItemText(unsigned short) const
ThumbnailView::SetColor(Color const&)
Change-Id: Ifed909b3c6b32e7e553bee29fbf989963c733e69
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/thumbnailview.cxx | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx index 2b71d7a84719..af0b0eeb862d 100644 --- a/sfx2/source/control/thumbnailview.cxx +++ b/sfx2/source/control/thumbnailview.cxx @@ -1157,25 +1157,6 @@ void ThumbnailView::SelectItem( sal_uInt16 nItemId ) } } -void ThumbnailView::DeselectItem( sal_uInt16 nItemId ) -{ - size_t nItemPos = GetItemPos( nItemId ); - if ( nItemPos == THUMBNAILVIEW_ITEM_NOTFOUND ) - return; - - ThumbnailViewItem* pItem = mFilteredItemList[nItemPos]; - if (pItem->isSelected()) - { - pItem->setSelection(false); - maItemStateHdl.Call(pItem); - - if (IsReallyVisible() && IsUpdateMode()) - Invalidate(); - - // TODO Trigger event in accessible object? - } -} - bool ThumbnailView::IsItemSelected( sal_uInt16 nItemId ) const { size_t nItemPos = GetItemPos( nItemId ); @@ -1203,30 +1184,11 @@ void ThumbnailView::deselectItems() Invalidate(); } -OUString ThumbnailView::GetItemText( sal_uInt16 nItemId ) const -{ - size_t nPos = GetItemPos( nItemId ); - - if ( nPos != THUMBNAILVIEW_ITEM_NOTFOUND ) - return mFilteredItemList[nPos]->maTitle; - - return OUString(); -} - void ThumbnailView::ShowTooltips( bool bShowTooltips ) { mbShowTooltips = bShowTooltips; } -void ThumbnailView::SetColor( const Color& rColor ) -{ - maColor = rColor; - mpItemAttrs->aFillColor = rColor.getBColor(); - - if ( IsReallyVisible() && IsUpdateMode() ) - Invalidate(); -} - void ThumbnailView::filterItems (const boost::function<bool (const ThumbnailViewItem*) > &func) { mnFirstLine = 0; // start at the top of the list instead of the current position |