diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-10-27 15:13:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-10-27 15:42:33 +0100 |
commit | 6affa4be69aa31e27af9d50e9ab6bd740319c379 (patch) | |
tree | b7f796f04c04bda0a3039ecf486c301ba53a1913 /sfx2/source | |
parent | ec64bf60d902afbec91e6eed3dbda08e075ffc3f (diff) |
callcatcher: update list, stop hiding uncalled tests :-)
Change-Id: I9bd81a9c5e85db4512a3e4768c9b87696c91b7bc
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/control/thumbnailview.cxx | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx index 6741b59730d2..fd2d215b01e8 100644 --- a/sfx2/source/control/thumbnailview.cxx +++ b/sfx2/source/control/thumbnailview.cxx @@ -405,40 +405,6 @@ void ThumbnailView::CalculateItemPositions () delete pDelScrBar; } -bool ThumbnailView::ImplScroll( const Point& rPos ) -{ - if ( !mbScroll || !maItemListRect.IsInside(rPos) ) - return false; - - const long nScrollOffset = (mnItemHeight <= 16) ? SCROLL_OFFSET/2 : SCROLL_OFFSET; - bool bScroll = false; - - if ( rPos.Y() <= maItemListRect.Top()+nScrollOffset ) - { - if ( mnFirstLine > 0 ) - { - --mnFirstLine; - bScroll = true; - } - } - else if ( rPos.Y() >= maItemListRect.Bottom()-nScrollOffset ) - { - if ( mnFirstLine < static_cast<sal_uInt16>(mnLines-mnVisLines) ) - { - ++mnFirstLine; - bScroll = true; - } - } - - if ( !bScroll ) - return false; - - if ( IsReallyVisible() && IsUpdateMode() ) - Invalidate(); - - return true; -} - size_t ThumbnailView::ImplGetItem( const Point& rPos, bool bMove ) const { if ( !mbHasVisibleItems ) @@ -791,36 +757,6 @@ void ThumbnailView::DataChanged( const DataChangedEvent& rDCEvt ) } } -void ThumbnailView::InsertItem( sal_uInt16 nItemId, const BitmapEx& rImage, - const OUString& rText, size_t nPos ) -{ - ThumbnailViewItem* pItem = new ThumbnailViewItem( *this, this ); - pItem->mnId = nItemId; - pItem->maPreview1 = rImage; - pItem->maTitle = rText; - pItem->setSelectClickHdl(LINK(this,ThumbnailView,OnItemSelected)); - ImplInsertItem( pItem, nPos ); -} - -void ThumbnailView::ImplInsertItem( ThumbnailViewItem *const pItem, const size_t nPos ) -{ - assert(pItem->mnId); // "ItemId == 0" - assert(GetItemPos( pItem->mnId ) == THUMBNAILVIEW_ITEM_NOTFOUND); // ItemId already exists - - if ( nPos < mItemList.size() ) { - ValueItemList::iterator it = mItemList.begin(); - ::std::advance( it, nPos ); - mItemList.insert( it, pItem ); - } else { - mItemList.push_back( pItem ); - } - - CalculateItemPositions(); - - if ( IsReallyVisible() && IsUpdateMode() ) - Invalidate(); -} - void ThumbnailView::RemoveItem( sal_uInt16 nItemId ) { size_t nPos = GetItemPos( nItemId ); @@ -863,11 +799,6 @@ void ThumbnailView::Clear() Invalidate(); } -size_t ThumbnailView::GetItemCount() const -{ - return mItemList.size(); -} - size_t ThumbnailView::GetItemPos( sal_uInt16 nItemId ) const { for ( size_t i = 0, n = mItemList.size(); i < n; ++i ) { |