diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-04-05 21:08:26 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-04-05 21:11:21 +0400 |
commit | c5154a179f435cc23798057895b0db8312bcd6f6 (patch) | |
tree | 8fcb9cc2badc1765882011e323358f01eb30835b /sc | |
parent | dc2fe18e95731dcb7c9e2027f45fdaf265490592 (diff) |
SfxViewShell::GetScrollingMode always returns SCROLLING_DEFAULT
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/tabview.cxx | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx index a2784e14cfa9..219f9d21b25c 100644 --- a/sc/source/ui/view/tabview.cxx +++ b/sc/source/ui/view/tabview.cxx @@ -407,13 +407,6 @@ void ScTabView::DoResize( const Point& rOffset, const Size& rSize, bool bInner ) bool bHOutline = bOutlMode && lcl_HasColOutline(aViewData); bool bVOutline = bOutlMode && lcl_HasRowOutline(aViewData); - // Scrollbar-Einstellungen koennen vom Sfx ueberschrieben werden: - SfxScrollingMode eMode = aViewData.GetViewShell()->GetScrollingMode(); - if ( eMode == SCROLLING_NO ) - bHScroll = bVScroll = false; - else if ( eMode == SCROLLING_YES || eMode == SCROLLING_AUTO ) //! Auto ??? - bHScroll = bVScroll = true; - if ( aViewData.GetDocShell()->IsPreview() ) bHScroll = bVScroll = bTabControl = bHeaders = bOutlMode = bHOutline = bVOutline = false; @@ -899,16 +892,7 @@ void ScTabView::GetBorderSize( SvBorder& rBorder, const Size& /* rSize */ ) IMPL_LINK_NOARG(ScTabView, TabBarResize) { - sal_Bool bHScrollMode = aViewData.IsHScrollMode(); - - // Scrollbar-Einstellungen koennen vom Sfx ueberschrieben werden: - SfxScrollingMode eMode = aViewData.GetViewShell()->GetScrollingMode(); - if ( eMode == SCROLLING_NO ) - bHScrollMode = false; - else if ( eMode == SCROLLING_YES || eMode == SCROLLING_AUTO ) //! Auto ??? - bHScrollMode = sal_True; - - if( bHScrollMode ) + if (aViewData.IsHScrollMode()) { const long nOverlap = 0; // ScrollBar::GetWindowOverlapPixel(); long nSize = pTabControl->GetSplitSize(); @@ -1572,13 +1556,6 @@ void ScTabView::UpdateShow() sal_Bool bShowH = ( aViewData.GetHSplitMode() != SC_SPLIT_NONE ); sal_Bool bShowV = ( aViewData.GetVSplitMode() != SC_SPLIT_NONE ); - // Scrollbar-Einstellungen koennen vom Sfx ueberschrieben werden: - SfxScrollingMode eMode = aViewData.GetViewShell()->GetScrollingMode(); - if ( eMode == SCROLLING_NO ) - bHScrollMode = bVScrollMode = false; - else if ( eMode == SCROLLING_YES || eMode == SCROLLING_AUTO ) //! Auto ??? - bHScrollMode = bVScrollMode = sal_True; - if ( aViewData.GetDocShell()->IsPreview() ) bHScrollMode = bVScrollMode = bTabMode = bHeader = bOutlMode = bHOutline = bVOutline = false; |