diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2012-08-18 11:47:26 -0430 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-08-20 06:40:48 +0200 |
commit | e2075f36c27bd3e681c218143d3eb36631ac2e3e (patch) | |
tree | d84d1dfe986c48b6c4e1788091ec01ae9ebd3178 | |
parent | 1f288cbceda3ebdda719c6f276d249f9333e7b9d (diff) |
Remove unused functions.
Change-Id: Ie02db475949809254bfb941b6acbf1c887bfd8e5
-rw-r--r-- | sfx2/inc/sfx2/thumbnailview.hxx | 9 | ||||
-rw-r--r-- | sfx2/source/control/thumbnailview.cxx | 57 |
2 files changed, 0 insertions, 66 deletions
diff --git a/sfx2/inc/sfx2/thumbnailview.hxx b/sfx2/inc/sfx2/thumbnailview.hxx index b2d02e81675c..6f0978d97d51 100644 --- a/sfx2/inc/sfx2/thumbnailview.hxx +++ b/sfx2/inc/sfx2/thumbnailview.hxx @@ -195,12 +195,8 @@ public: sal_uInt16 GetItemId( const Point& rPos ) const; - void SetColCount( sal_uInt16 nNewCols = 1 ); - sal_uInt16 GetColCount() const { return mnUserCols; } - void SetLineCount( sal_uInt16 nNewLines = 0 ); - sal_uInt16 GetLineCount() const { return mnUserVisLines; } long GetItemWidth() const { return mnItemWidth; } @@ -264,8 +260,6 @@ protected: virtual void MouseMove( const MouseEvent& rMEvt ); - virtual void Tracking( const TrackingEvent& rMEvt ); - virtual void Command( const CommandEvent& rCEvt ); virtual void Paint( const Rectangle& rRect ); @@ -319,10 +313,7 @@ protected: SFX2_DLLPRIVATE void ImplInsertItem( ThumbnailViewItem *const pItem, const size_t nPos ); SFX2_DLLPRIVATE void ImplFireAccessibleEvent( short nEventId, const ::com::sun::star::uno::Any& rOldValue, const ::com::sun::star::uno::Any& rNewValue ); SFX2_DLLPRIVATE bool ImplHasAccessibleListeners(); - SFX2_DLLPRIVATE void ImplTracking( const Point& rPos, bool bRepeat ); - SFX2_DLLPRIVATE void ImplEndTracking( const Point& rPos, bool bCancel ); DECL_DLLPRIVATE_LINK( ImplScrollHdl, ScrollBar* ); - DECL_DLLPRIVATE_LINK( ImplTimerHdl, void* ); DECL_LINK(OnItemSelected, ThumbnailViewItem*); diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx index b589ea947a4a..ff1b61ef5968 100644 --- a/sfx2/source/control/thumbnailview.cxx +++ b/sfx2/source/control/thumbnailview.cxx @@ -544,27 +544,6 @@ IMPL_LINK( ThumbnailView,ImplScrollHdl, ScrollBar*, pScrollBar ) return 0; } -IMPL_LINK_NOARG(ThumbnailView, ImplTimerHdl) -{ - ImplTracking( GetPointerPosPixel(), true ); - return 0; -} - -void ThumbnailView::ImplTracking( const Point& rPos, bool bRepeat ) -{ - if ( bRepeat ) - { - if ( ImplScroll( rPos ) ) - { - } - } -} - -void ThumbnailView::ImplEndTracking(const Point& /*rPos*/, bool const /*bCancel*/) -{ - //FIXME TODO -} - IMPL_LINK (ThumbnailView, OnItemSelected, ThumbnailViewItem*, pItem) { maItemStateHdl.Call(pItem); @@ -683,16 +662,6 @@ void ThumbnailView::MouseMove( const MouseEvent& rMEvt ) Control::MouseMove( rMEvt ); } -void ThumbnailView::Tracking( const TrackingEvent& rTEvt ) -{ - Point aMousePos = rTEvt.GetMouseEvent().GetPosPixel(); - - if ( rTEvt.IsTrackingEnded() ) - ImplEndTracking( aMousePos, rTEvt.IsTrackingCanceled() ); - else - ImplTracking( aMousePos, rTEvt.IsTrackingRepeat() ); -} - void ThumbnailView::Command( const CommandEvent& rCEvt ) { if ( (rCEvt.GetCommand() == COMMAND_WHEEL) || @@ -935,32 +904,6 @@ sal_uInt16 ThumbnailView::GetItemId( const Point& rPos ) const return 0; } -void ThumbnailView::SetColCount( sal_uInt16 nNewCols ) -{ - if ( mnUserCols != nNewCols ) - { - mnUserCols = nNewCols; - - CalculateItemPositions(); - - if ( IsReallyVisible() && IsUpdateMode() ) - Invalidate(); - } -} - -void ThumbnailView::SetLineCount( sal_uInt16 nNewLines ) -{ - if ( mnUserVisLines != nNewLines ) - { - mnUserVisLines = nNewLines; - - CalculateItemPositions(); - - if ( IsReallyVisible() && IsUpdateMode() ) - Invalidate(); - } -} - void ThumbnailView::setItemMaxTextLength(sal_uInt32 nLength) { mpItemAttrs->nMaxTextLenght = nLength; |