diff options
author | Oliver Bolte <obo@openoffice.org> | 2004-11-16 15:15:51 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2004-11-16 15:15:51 +0000 |
commit | 4797b3512e4c47e84cd008e507e9533659c90210 (patch) | |
tree | e5b3281f85827999d8af642cf1e40f206faece12 /sd/source/ui/view/ViewShellManager.cxx | |
parent | d664943f7ea0bc7b5aa69e6d31d638c790fcc743 (diff) |
INTEGRATION: CWS impress15 (1.3.16); FILE MERGED
2004/11/10 15:44:51 af 1.3.16.2: #i36947# In PrepareStackModification moved resetting of mbTakeShellFromStackPending flag to head of code block.
2004/10/14 11:35:29 af 1.3.16.1: #i35524# Changed default value of mkKeepMainViewShellOnTop to true but changed MoveToTop() to disobey that flag.
Diffstat (limited to 'sd/source/ui/view/ViewShellManager.cxx')
-rwxr-xr-x | sd/source/ui/view/ViewShellManager.cxx | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/sd/source/ui/view/ViewShellManager.cxx b/sd/source/ui/view/ViewShellManager.cxx index 179e6270cc78..b9d34a98b77e 100755 --- a/sd/source/ui/view/ViewShellManager.cxx +++ b/sd/source/ui/view/ViewShellManager.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ViewShellManager.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: pjunck $ $Date: 2004-10-28 13:34:05 $ + * last change: $Author: obo $ $Date: 2004-11-16 16:15:51 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -136,7 +136,7 @@ ViewShellManager::ViewShellManager (ViewShellBase& rBase) new ActiveShellList())), mpCache (new ViewShellCache(*this)), mnUpdateLockCount(0), - mbKeepMainViewShellOnTop(false), + mbKeepMainViewShellOnTop(true), mbIsValid (true) { } @@ -329,19 +329,11 @@ void ViewShellManager::MoveToTop (const ViewShell* pShell) ViewShell* pNonConstViewShell = aI->mpViewShell; ShellId nId = aI->mnId; mpActiveViewShells->erase (aI); - - // Find out whether to insert at the top or one below. - ActiveShellList::iterator aInsertPosition ( - mpActiveViewShells->begin()); - if (mbKeepMainViewShellOnTop && ! aI->mpViewShell->IsMainViewShell()) - { - if (mpActiveViewShells->back().mpViewShell->IsMainViewShell()) - aInsertPosition++; - } - - mpActiveViewShells->insert ( - aInsertPosition, + mpActiveViewShells->insert( + mpActiveViewShells->begin(), ActiveShellDescriptor(pNonConstViewShell,nId)); + + InvalidateShellStack(); } } @@ -582,10 +574,8 @@ void ViewShellManager::PrepareStackModification (void) { if (mbTakeShellsFromStackPending) { - TakeShellsFromStack(); - // Now that the stack is empty we can reset the flag so that this is - // not attempted a second time. mbTakeShellsFromStackPending = false; + TakeShellsFromStack(); } } |