diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-02-03 12:02:24 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-02-03 12:02:24 +0000 |
commit | 4e576cde585893551d12e2bd6ee072e5d222bb1c (patch) | |
tree | 75491259193d279b4b1fa82f4be76cf3656bb718 /sc/source/ui/view/tabview5.cxx | |
parent | 75b0549150be8395f470c487272fd517c9abadda (diff) |
INTEGRATION: CWS calcrtl (1.11.28); FILE MERGED
2003/11/11 11:34:29 dr 1.11.28.3: #106948# changes for RTL UI
2003/07/25 16:50:45 nn 1.11.28.2: #106948# RTL handling of drawing objects
2003/07/11 10:33:40 nn 1.11.28.1: #106948# RTL ordering of view elements
Diffstat (limited to 'sc/source/ui/view/tabview5.cxx')
-rw-r--r-- | sc/source/ui/view/tabview5.cxx | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabview5.cxx b/sc/source/ui/view/tabview5.cxx index 7b7877749e9d..3a62e93a572a 100644 --- a/sc/source/ui/view/tabview5.cxx +++ b/sc/source/ui/view/tabview5.cxx @@ -2,9 +2,9 @@ * * $RCSfile: tabview5.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: vg $ $Date: 2003-05-27 15:09:43 $ + * last change: $Author: hr $ $Date: 2004-02-03 13:02:24 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -104,6 +104,10 @@ void __EXPORT ScTabView::Init() { + // RTL layout of the view windows is done manually, because it depends on the + // sheet orientation, not the UI setting + pFrameWin->EnableRTL( FALSE ); + USHORT i; aScrollTimer.SetTimeout(10); @@ -150,6 +154,15 @@ void __EXPORT ScTabView::Init() 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() ); + // Hier noch nichts anzeigen (Show), weil noch falsch angeordnet ist // Show kommt dann aus UpdateShow beim ersten Resize // pTabControl, pGridWin, aHScrollLeft, aVScrollBottom, @@ -619,6 +632,9 @@ void ScTabView::MakeVisible( const Rectangle& rHMMRect ) if (nScrollX || nScrollY) { ScDocument* pDoc = aViewData.GetDocument(); + if ( pDoc->IsNegativePage( nTab ) ) + nScrollX = -nScrollX; + double nPPTX = aViewData.GetPPTX(); double nPPTY = aViewData.GetPPTY(); ScSplitPos eWhich = aViewData.GetActivePart(); |