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 | |
parent | 56b24765f24222d3d1a2fe488b89c56a331ffce0 (diff) |
remove unused code in ThumbnailView
ThumbnailView::DeselectItem(unsigned short)
ThumbnailView::GetItemText(unsigned short) const
ThumbnailView::SetColor(Color const&)
Change-Id: Ifed909b3c6b32e7e553bee29fbf989963c733e69
-rw-r--r-- | include/sfx2/thumbnailview.hxx | 8 | ||||
-rw-r--r-- | sfx2/source/control/thumbnailview.cxx | 38 | ||||
-rw-r--r-- | unusedcode.easy | 3 |
3 files changed, 0 insertions, 49 deletions
diff --git a/include/sfx2/thumbnailview.hxx b/include/sfx2/thumbnailview.hxx index 761b45b89a37..5d12f4653836 100644 --- a/include/sfx2/thumbnailview.hxx +++ b/include/sfx2/thumbnailview.hxx @@ -216,8 +216,6 @@ public: void SelectItem( sal_uInt16 nItemId ); - void DeselectItem( sal_uInt16 nItemId ); - bool IsItemSelected( sal_uInt16 nItemId ) const; /** @@ -228,14 +226,8 @@ public: void deselectItems (); - OUString GetItemText( sal_uInt16 nItemId ) const; - void ShowTooltips( bool bShowTooltips ); - void SetColor( const Color& rColor ); - - void SetColor() { SetColor( Color( COL_TRANSPARENT ) ); } - Color GetColor() const { return maColor; } bool IsColor() const { return maColor.GetTransparency() == 0; } 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 diff --git a/unusedcode.easy b/unusedcode.easy index 7debc1b49583..6871f5555182 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -89,9 +89,6 @@ SwViewImp::FireSectionChangeEvent(unsigned short, unsigned short) TemplateLocalView::HasUnfilteredItems(FILTER_APPLICATION) TextDoc::IsValidPaM(TextPaM const&) TextEngine::GetLeftMargin() const -ThumbnailView::DeselectItem(unsigned short) -ThumbnailView::GetItemText(unsigned short) const -ThumbnailView::SetColor(Color const&) UnoApiTest::closeDocument(com::sun::star::uno::Reference<com::sun::star::lang::XComponent>) apitest::CellProperties::testRotateReference() apitest::CellProperties::testVertJustify() |