diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-01-04 18:42:14 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-01-04 20:40:43 +0900 |
commit | 12d37f92507ab66fd519a68a2479e1cd7136cf74 (patch) | |
tree | 2a0bf8bfbb573db9b8367aa9d1de9180e29d6247 /sc/source/ui/view/tabview5.cxx | |
parent | d91926de43d2192759029f7124e4e515efc96ba7 (diff) |
fdo#87684 option to make tabbar inline with scrollbar again
This adds an option to move the tabbar back to be inline with
scrollbar. The option is only available in Expert Configuration
under key: /org.openoffice.Office.Calc/Layout/Other property
TabbarInlineWithScrollbar
Change-Id: I95491072ad1cc195f2d8b8d0fadbd5ef045767e7
Diffstat (limited to 'sc/source/ui/view/tabview5.cxx')
-rw-r--r-- | sc/source/ui/view/tabview5.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sc/source/ui/view/tabview5.cxx b/sc/source/ui/view/tabview5.cxx index 424e9bc76743..66ec1a8463e8 100644 --- a/sc/source/ui/view/tabview5.cxx +++ b/sc/source/ui/view/tabview5.cxx @@ -51,6 +51,8 @@ #include <vcl/svapp.hxx> #include <vcl/settings.hxx> +#include <officecfg/Office/Calc.hxx> + using namespace com::sun::star; // STATIC DATA ----------------------------------------------------------- @@ -65,6 +67,8 @@ void ScTabView::Init() sal_uInt16 i; + mbInlineWithScrollbar = officecfg::Office::Calc::Layout::Other::TabbarInlineWithScrollbar::get(); + aScrollTimer.SetTimeout(10); aScrollTimer.SetTimeoutHdl( LINK( this, ScTabView, TimerHdl ) ); @@ -94,7 +98,10 @@ void ScTabView::Init() pHSplitter->SetKeyboardStepSize( 1 ); pVSplitter->SetKeyboardStepSize( 1 ); - pTabControl = new ScTabControl( pFrameWin, &aViewData ); + pTabControl = new ScTabControl(pFrameWin, &aViewData); + if (mbInlineWithScrollbar) + pTabControl->SetStyle(pTabControl->GetStyle() | WB_SIZEABLE); + /* #i97900# The tab control has to remain in RTL mode if GUI is RTL, this is needed to draw the 3D effect correctly. The base TabBar implementes mirroring independent from the GUI direction. Have to set RTL mode |