diff options
author | Oliver Bolte <obo@openoffice.org> | 2009-03-02 14:19:13 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2009-03-02 14:19:13 +0000 |
commit | 07b0c01857137de7e4bd02375e7c892d622d270e (patch) | |
tree | ca4599cb8c96535139e3e0ee07acb37bcb5ad636 /sc/source/ui/view/tabview5.cxx | |
parent | 74e4b152bbe46cf55cec4da21b9365363ec2fa8d (diff) |
CWS-TOOLING: integrate CWS dr66
2009-01-22 15:51:40 +0100 dr r266730 : #i98028# moved to CWS dr66
2009-01-22 15:50:28 +0100 dr r266729 : #i98028# moved to CWS dr66
2009-01-20 16:25:49 +0100 dr r266595 : #i98282# resolve palette colors while loading chart gradients (convert back to unx lineends...)
2009-01-20 16:23:19 +0100 dr r266594 : #i98282# resolve palette colors while loading chart gradients
2009-01-19 15:43:57 +0100 dr r266507 : #i97900# move fix to CWS dr66
2009-01-19 15:40:28 +0100 dr r266506 : #i97900# move fix to CWS dr66
2009-01-19 15:20:14 +0100 dr r266505 : #i98141# correctly update note position while switching LTR/RTL mode of sheet
2009-01-06 10:28:02 +0100 dr r265899 : CWS-TOOLING: rebase CWS dr66 to trunk@265758 (milestone: DEV300:m38)
2008-11-13 13:59:02 +0100 dr r263644 : #i10000# merge problems
2008-11-13 13:25:15 +0100 dr r263639 : #i10000# merge problems
2008-11-13 13:22:58 +0100 dr r263638 : #i10000# merge problems
2008-11-13 13:22:25 +0100 dr r263637 : #i10000# merge problems
2008-11-12 13:40:46 +0100 dr r263595 : #i10000# merge problem
2008-11-12 11:34:51 +0100 dr r263583 : CWS-TOOLING: rebase CWS dr66 to trunk@263288 (milestone: DEV300:m35)
2008-11-11 16:58:11 +0100 dr r263568 : CWS-TOOLING: rebase CWS dr66 to trunk@262087 (milestone: DEV300:m33)
2008-10-27 14:38:34 +0100 dr r262675 : migrate CWS dr66 to SVN
Diffstat (limited to 'sc/source/ui/view/tabview5.cxx')
-rw-r--r-- | sc/source/ui/view/tabview5.cxx | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/sc/source/ui/view/tabview5.cxx b/sc/source/ui/view/tabview5.cxx index 03f5892427a5..c27524c83542 100644 --- a/sc/source/ui/view/tabview5.cxx +++ b/sc/source/ui/view/tabview5.cxx @@ -77,8 +77,10 @@ using namespace com::sun::star; void __EXPORT ScTabView::Init() { - // RTL layout of the view windows is done manually, because it depends on the - // sheet orientation, not the UI setting + /* RTL layout of the view windows is done manually, because it depends on + the sheet orientation, not the UI setting. Note: controls that are + already constructed (e.g. scroll bars) have the RTL setting of the GUI. + Eventually this has to be disabled manually (see below). */ pFrameWin->EnableRTL( FALSE ); USHORT i; @@ -113,28 +115,18 @@ void __EXPORT ScTabView::Init() pVSplitter->SetKeyboardStepSize( 1 ); pTabControl = new ScTabControl( pFrameWin, &aViewData ); - //MI: nie! das war mal eine MUSS-Aenderung von MBA - //if (!aViewData.IsBasicView()) - // pTabControl->ToTop(); // ueber dem Splitter + /* #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 + explicitly because the parent frame window is already RTL disabled. */ + pTabControl->EnableRTL( Application::GetSettings().GetLayoutRTL() ); InitScrollBar( aHScrollLeft, MAXCOL+1 ); InitScrollBar( aHScrollRight, MAXCOL+1 ); InitScrollBar( aVScrollTop, MAXROW+1 ); InitScrollBar( aVScrollBottom, MAXROW+1 ); - - // SSA: --- RTL --- no mirroring for horizontal scrollbars, otherwise - // scroll direction will be wrong - aHScrollLeft.EnableRTL ( FALSE ); - aHScrollRight.EnableRTL ( FALSE ); - - // Mirroring is disabled for all scrollbars, completely handled manually. - // The other windows in the view call EnableRTL in their ctors. - aVScrollTop.EnableRTL( FALSE ); - aVScrollBottom.EnableRTL( FALSE ); - aScrollBarBox.EnableRTL( FALSE ); - - // Tabbar initially left-to-right, done via SetMirrored(), not via EnableRTL() - pTabControl->SetMirrored( Application::GetSettings().GetLayoutRTL() ); + /* #i97900# scrollbars remain in correct RTL mode, needed mirroring etc. + is now handled correctly at the respective places. */ // Hier noch nichts anzeigen (Show), weil noch falsch angeordnet ist // Show kommt dann aus UpdateShow beim ersten Resize |