diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-02-04 17:27:35 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-02-06 17:38:48 +0100 |
commit | b92b485c6c956b6bfded4bbf72f8413e92fc2a44 (patch) | |
tree | 3840a7aa547216a432d8094b5ca9720cb4b9b27f /sc | |
parent | cac42d3f6aca864da439a83f123638accf2e97cd (diff) |
Remove empty methods
DrawCursor()
DrawAutoFillMark()
Remove nCursorHideCount because its useless
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/inc/gridwin.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/gridwin.cxx | 24 | ||||
-rw-r--r-- | sc/source/ui/view/gridwin4.cxx | 10 |
3 files changed, 1 insertions, 35 deletions
diff --git a/sc/source/ui/inc/gridwin.hxx b/sc/source/ui/inc/gridwin.hxx index 3d4f33881da8..46d3f6cdee91 100644 --- a/sc/source/ui/inc/gridwin.hxx +++ b/sc/source/ui/inc/gridwin.hxx @@ -362,8 +362,6 @@ public: void HideCursor(); void ShowCursor(); - void DrawCursor(); - void DrawAutoFillMark(); void UpdateAutoFillMark(BOOL bMarked, const ScRange& rMarkRange); void UpdateListValPos( BOOL bVisible, const ScAddress& rPos ); diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index de6d901438c8..ece98e1e8f06 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -424,7 +424,6 @@ ScGridWindow::ScGridWindow( Window* pParent, ScViewData* pData, ScSplitPos eWhic pFilterFloat( NULL ), mpDPFieldPopup(NULL), mpFilterButton(NULL), - nCursorHideCount( 0 ), bMarking( FALSE ), nButtonDown( 0 ), bEEMouse( FALSE ), @@ -4476,31 +4475,10 @@ void ScGridWindow::UpdateListValPos( BOOL bVisible, const ScAddress& rPos ) void ScGridWindow::HideCursor() { - ++nCursorHideCount; - if (nCursorHideCount==1) - { - DrawCursor(); - DrawAutoFillMark(); - } } void ScGridWindow::ShowCursor() { - if (nCursorHideCount==0) - { - DBG_ERROR("zuviel ShowCursor"); - return; - } - - if (nCursorHideCount==1) - { - // #i57745# Draw the cursor before setting the variable, in case the - // GetSizePixel call from drawing causes a repaint (resize handler is called) - DrawAutoFillMark(); - DrawCursor(); - } - - --nCursorHideCount; } void ScGridWindow::GetFocus() @@ -5442,7 +5420,7 @@ void ScGridWindow::UpdateAutoFillOverlay() DeleteAutoFillOverlay(); // - // get the AutoFill handle rectangle in pixels (moved from ScGridWindow::DrawAutoFillMark) + // get the AutoFill handle rectangle in pixels // if ( bAutoMarkVisible && aAutoMarkPos.Tab() == pViewData->GetTabNo() && diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index 588766d2e960..6ffee6b83764 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -1702,16 +1702,6 @@ void ScGridWindow::GetSelectionRects( ::std::vector< Rectangle >& rPixelRects ) // ------------------------------------------------------------------------- -void ScGridWindow::DrawCursor() -{ -} - -void ScGridWindow::DrawAutoFillMark() -{ -} - -// ------------------------------------------------------------------------- - void ScGridWindow::DataChanged( const DataChangedEvent& rDCEvt ) { Window::DataChanged(rDCEvt); |