IMPL_LINK( ScTabView, TabBarResize, void*, EMPTYARG ) { 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 ) { const long nOverlap = 0; // ScrollBar::GetWindowOverlapPixel(); long nSize = pTabControl->GetSplitSize(); mfPendingTabBarWidth = ((float)nSize / pFrameWin->GetSizePixel().Width()); if (mfPendingTabBarWidth < 0.05) mfPendingTabBarWidth = 0.05; if (mfPendingTabBarWidth > 0.95) mfPendingTabBarWidth = 0.95; if (aViewData.GetHSplitMode() != SC_SPLIT_FIX) { long nMax = pHSplitter->GetPosPixel().X(); if( pTabControl->IsEffectiveRTL() ) nMax = pFrameWin->GetSizePixel().Width() - nMax; --nMax; if (nSize>nMax) nSize = nMax; } if ( nSize != pTabControl->GetSizePixel().Width() ) { pTabControl->SetSizePixel( Size( nSize+nOverlap, pTabControl->GetSizePixel().Height() ) ); RepeatResize(); } } return 0; }