Files
libreoffice/sd/source/ui/view/viewshel.cxx

1601 lines
43 KiB
C++
Raw Normal View History

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2000-09-18 16:07:07 +00:00
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2000-09-18 16:07:07 +00:00
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
2000-09-18 16:07:07 +00:00
*
* OpenOffice.org - a multi-platform office productivity suite
2000-09-18 16:07:07 +00:00
*
* This file is part of OpenOffice.org.
2000-09-18 16:07:07 +00:00
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
2000-09-18 16:07:07 +00:00
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
2000-09-18 16:07:07 +00:00
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
2000-09-18 16:07:07 +00:00
*
************************************************************************/
#include "ViewShell.hxx"
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
#include "ViewShellImplementation.hxx"
#include <com/sun/star/embed/EmbedStates.hpp>
#include "ViewShellBase.hxx"
#include "ShellFactory.hxx"
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
#include "DrawController.hxx"
#include "LayerTabBar.hxx"
#include <sfx2/viewfrm.hxx>
2000-09-18 16:07:07 +00:00
#include <sfx2/bindings.hxx>
#include <sfx2/dispatch.hxx>
#include <vcl/scrbar.hxx>
#include <svl/eitem.hxx>
2000-09-18 16:07:07 +00:00
#include <svx/ruler.hxx>
#include <svx/svxids.hrc>
#include <svx/fmshell.hxx>
#include "WindowUpdater.hxx"
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
#include "GraphicViewShell.hxx"
#include <sfx2/childwin.hxx>
#include <sdxfer.hxx>
2000-09-18 16:07:07 +00:00
#include "app.hrc"
#include "helpids.h"
#include "strings.hrc"
#include "res_bmp.hrc"
#include "OutlineView.hxx"
#include "Client.hxx"
2000-09-18 16:07:07 +00:00
#include "sdresid.hxx"
#include "DrawDocShell.hxx"
#include "slideshow.hxx"
2000-09-18 16:07:07 +00:00
#include "drawdoc.hxx"
#include "sdpage.hxx"
#include "zoomlist.hxx"
#include "FrameView.hxx"
2002-03-08 14:28:48 +00:00
#include "optsitem.hxx"
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
#include "BezierObjectBar.hxx"
#include "TextObjectBar.hxx"
#include "GraphicObjectBar.hxx"
#include "MediaObjectBar.hxx"
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
#include "ViewShellManager.hxx"
#include "FormShellManager.hxx"
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
#include <svx/dialogs.hrc>
#include <svx/extrusionbar.hxx>
#include <svx/fontworkbar.hxx>
#include <svx/svdoutl.hxx>
#include <tools/diagnose_ex.h>
2000-09-18 16:07:07 +00:00
#include <svl/slstitm.hxx>
#include <sfx2/request.hxx>
#include "SpellDialogChildWindow.hxx"
#include <basegfx/tools/zoomtools.hxx>
#include "Window.hxx"
#include "fupoor.hxx"
2000-09-18 16:07:07 +00:00
#ifndef SO2_DECL_SVINPLACEOBJECT_DEFINED
#define SO2_DECL_SVINPLACEOBJECT_DEFINED
SO2_DECL_REF(SvInPlaceObject)
#endif
namespace sd { namespace ui { namespace table {
extern SfxShell* CreateTableObjectBar( ViewShell& rShell, ::sd::View* pView );
} } }
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::presentation;
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
namespace {
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
class ViewShellObjectBarFactory
: public ::sd::ShellFactory<SfxShell>
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
{
public:
ViewShellObjectBarFactory (::sd::ViewShell& rViewShell);
virtual ~ViewShellObjectBarFactory (void);
virtual SfxShell* CreateShell (
::sd::ShellId nId,
::Window* pParentWindow,
::sd::FrameView* pFrameView);
virtual void ReleaseShell (SfxShell* pShell);
private:
::sd::ViewShell& mrViewShell;
/** This cache holds the already created object bars.
*/
typedef ::std::map< ::sd::ShellId,SfxShell*> ShellCache;
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
ShellCache maShellCache;
};
} // end of anonymous namespace
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
namespace sd {
sal_Bool ViewShell::IsPageFlipMode(void) const
{
return this->ISA(DrawViewShell) && mpContentWindow.get() != NULL &&
mpContentWindow->GetVisibleHeight() >= 1.0;
}
SfxViewFrame* ViewShell::GetViewFrame (void) const
{
const SfxViewShell* pViewShell = GetViewShell();
if (pViewShell != NULL)
{
return pViewShell->GetViewFrame();
}
else
{
OSL_ASSERT (GetViewShell()!=NULL);
return NULL;
}
}
2000-09-18 16:07:07 +00:00
/*************************************************************************
|*
|* SFX-Slotmap und Standardinterface deklarieren
|*
\************************************************************************/
TYPEINIT1(ViewShell, SfxShell);
ViewShell::ViewShell( SfxViewFrame*, ::Window* pParentWindow, ViewShellBase& rViewShellBase, bool bAllowCenter)
: SfxShell(&rViewShellBase)
, mbCenterAllowed(bAllowCenter)
, mpParentWindow(pParentWindow)
{
construct();
}
ViewShell::~ViewShell()
{
// Keep the content window from accessing in its destructor the
// WindowUpdater.
mpContentWindow->SetViewShell(NULL);
delete mpZoomList;
mpLayerTabBar.reset();
if (mpImpl->mpSubShellFactory.get() != NULL)
GetViewShellBase().GetViewShellManager()->RemoveSubShellFactory(
this,mpImpl->mpSubShellFactory);
}
2000-09-18 16:07:07 +00:00
/*************************************************************************
|*
|* gemeinsamer Initialiserungsanteil der beiden Konstruktoren
|*
\************************************************************************/
void ViewShell::construct(void)
2000-09-18 16:07:07 +00:00
{
mbHasRulers = false;
mpActiveWindow = 0;
mpView = 0;
mpFrameView = 0;
mpZoomList = 0;
mbStartShowWithDialog = sal_False;
mnPrintedHandoutPageNum = 1;
CWS-TOOLING: integrate CWS impress168 2009-04-24 11:26:33 +0200 wg r271204 : i101157 2009-04-24 10:17:59 +0200 wg r271200 : i101157 2009-04-23 15:50:12 +0200 wg r271178 : i101157 2009-04-23 15:16:58 +0200 wg r271176 : i101157 2009-04-23 13:04:41 +0200 wg r271158 : i101157 2009-04-22 15:39:32 +0200 wg r271123 : i101157 2009-04-22 14:27:24 +0200 wg r271111 : i101157 2009-04-22 14:14:02 +0200 wg r271109 : i101157 2009-04-17 14:34:19 +0200 wg r270946 : i101157 2009-04-17 13:49:15 +0200 wg r270939 : i101157 2009-03-31 14:54:52 +0200 sj r270281 : CWS-TOOLING: rebase CWS impress168 to trunk@270033 (milestone: DEV300:m45) 2009-03-26 16:56:44 +0100 sj r270089 : removed invalid file names 2009-03-24 14:02:54 +0100 sj r269944 : CWS-TOOLING: rebase CWS impress168 to trunk@269781 (milestone: DEV300:m44) 2009-03-06 16:32:14 +0100 sj r269020 : #i99970# importing customshapes without group object, taking care of the correct text alignment 2009-02-27 13:53:24 +0100 sj r268591 : #158501,158483# fixed positioning problem of 3d customshapes 2009-02-19 16:02:00 +0100 sj r268292 : #76543# fixed interactive hyperlink program action with relativ url 2009-02-18 15:36:52 +0100 sj r268233 : #158503# added import of circular gradients for ellipse shapes 2009-02-16 19:51:54 +0100 sj r267836 : #i99146# calculating correct text bounds 2009-02-12 13:59:46 +0100 sj r267654 : #i96179# fixed bullet problem 2009-02-10 17:26:41 +0100 sj r267566 : #158476# fixed import of the ribbon shape 2009-02-10 17:10:27 +0100 cl r267561 : #i95364# fixed type detection of linked images 2009-02-09 18:31:59 +0100 cl r267531 : #i98352# removed assertion 2009-02-09 18:31:17 +0100 cl r267530 : #i98355# fixed alien attribute import for sd in binfilter 2009-02-09 18:30:53 +0100 cl r267529 : #i98355# fixed alien attribute import for sd in binfilter 2009-02-09 09:52:15 +0100 cl r267501 : #i98573# fixed build error 2009-02-06 17:02:21 +0100 sj r267476 : #i96179# fixed bullet problem 2009-02-06 14:58:39 +0100 cl r267466 : #i14832# fixed page count field for handout printing 2009-02-06 10:23:01 +0100 cl r267447 : #i98573# fixed GetEditOutlinerParaObject() memory leak 2009-02-05 18:03:34 +0100 cl r267435 : #i98573# fixed GetEditOutlinerParaObject() memory leak 2009-02-05 18:03:08 +0100 cl r267434 : #i85481# added XMultiPropertyStates to text implementations 2009-02-05 18:02:54 +0100 cl r267433 : #i85481# added XMultiPropertyStates to text implementations 2009-02-05 18:02:42 +0100 cl r267432 : #i85481# added XMultiPropertyStates to text implementations 2009-02-04 18:54:46 +0100 sj r267400 : #i33630# fixed arrow size of word import 2009-02-04 15:40:16 +0100 cl r267389 : #i58702# fixed tiled bitmap fill for vcl canvas 2009-02-04 15:39:07 +0100 cl r267388 : #i58702# fixed tiled bitmap fill for vcl canvas 2009-02-04 14:23:27 +0100 cl r267382 : #i98573# fixed memory leaks caused by wron usage of GetEditOutlinerParaObject() 2009-02-04 14:22:34 +0100 cl r267381 : #i98573# fixed memory leaks caused by wron usage of GetEditOutlinerParaObject() 2009-02-04 12:51:50 +0100 cl r267371 : #i14832# added Page Count field to impress 2009-02-04 12:41:31 +0100 cl r267368 : #i14832# added Page Count field to impress
2009-05-06 21:51:02 +00:00
mnPrintedHandoutPageCount = 0;
mpWindowUpdater.reset( new ::sd::WindowUpdater() );
mpImpl.reset(new Implementation(*this));
meShellType = ST_NONE;
OSL_ASSERT (GetViewShell()!=NULL);
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if (IsMainViewShell())
GetDocSh()->Connect (this);
2000-09-18 16:07:07 +00:00
mpZoomList = new ZoomList( this );
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
mpContentWindow.reset(new ::sd::Window(GetParentWindow()));
SetActiveWindow (mpContentWindow.get());
GetParentWindow()->SetBackground (Wallpaper());
mpContentWindow->SetBackground (Wallpaper());
mpContentWindow->SetCenterAllowed(mbCenterAllowed);
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
mpContentWindow->SetViewShell(this);
mpContentWindow->SetPosSizePixel(
GetParentWindow()->GetPosPixel(),GetParentWindow()->GetSizePixel());
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if ( ! GetDocSh()->IsPreview())
{
// Create scroll bars and the filler between the scroll bars.
mpHorizontalScrollBar.reset (new ScrollBar(GetParentWindow(), WinBits(WB_HSCROLL | WB_DRAG)));
mpHorizontalScrollBar->EnableRTL (sal_False);
mpHorizontalScrollBar->SetRange(Range(0, 32000));
mpHorizontalScrollBar->SetScrollHdl(LINK(this, ViewShell, HScrollHdl));
mpVerticalScrollBar.reset (new ScrollBar(GetParentWindow(), WinBits(WB_VSCROLL | WB_DRAG)));
mpVerticalScrollBar->SetRange(Range(0, 32000));
mpVerticalScrollBar->SetScrollHdl(LINK(this, ViewShell, VScrollHdl));
mpScrollBarBox.reset(new ScrollBarBox(GetParentWindow(), WB_SIZEABLE));
}
2000-09-18 16:07:07 +00:00
2012-04-07 13:41:56 -03:00
rtl::OUString aName( "ViewShell" );
2000-09-18 16:07:07 +00:00
SetName (aName);
GetDoc()->StartOnlineSpelling(sal_False);
mpWindowUpdater->SetViewShell (*this);
mpWindowUpdater->SetDocument (GetDoc());
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
// Re-initialize the spell dialog.
::sd::SpellDialogChildWindow* pSpellDialog =
static_cast< ::sd::SpellDialogChildWindow*> (
GetViewFrame()->GetChildWindow (
::sd::SpellDialogChildWindow::GetChildWindowId()));
if (pSpellDialog != NULL)
pSpellDialog->InvalidateSpellDialog();
// Register the sub shell factory.
mpImpl->mpSubShellFactory.reset(new ViewShellObjectBarFactory(*this));
GetViewShellBase().GetViewShellManager()->AddSubShellFactory(this,mpImpl->mpSubShellFactory);
2000-09-18 16:07:07 +00:00
}
void ViewShell::doShow(void)
{
mpContentWindow->Show();
static_cast< ::Window*>(mpContentWindow.get())->Resize();
OSL_TRACE("content window has size %d %d",
mpContentWindow->GetSizePixel().Width(),
mpContentWindow->GetSizePixel().Height());
if ( ! GetDocSh()->IsPreview())
{
// Show scroll bars
mpHorizontalScrollBar->Show();
mpVerticalScrollBar->Show();
maScrBarWH = Size(
mpVerticalScrollBar->GetSizePixel().Width(),
mpHorizontalScrollBar->GetSizePixel().Height());
mpScrollBarBox->Show();
}
GetParentWindow()->Show();
}
void ViewShell::Init (bool bIsMainViewShell)
2000-09-18 16:07:07 +00:00
{
mpImpl->mbIsInitialized = true;
SetIsMainViewShell(bIsMainViewShell);
if (bIsMainViewShell)
SetActiveWindow (mpContentWindow.get());
}
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
void ViewShell::Exit (void)
{
sd::View* pView = GetView();
if (pView!=NULL && pView->IsTextEdit())
{
pView->SdrEndTextEdit();
pView->UnmarkAll();
}
Deactivate (sal_True);
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if (IsMainViewShell())
{
GetDocSh()->Disconnect(this);
}
SetIsMainViewShell(false);
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
}
2000-09-18 16:07:07 +00:00
/*************************************************************************
|*
|* Aktivierung: Arbeitsfenster den Fokus zuweisen
|*
\************************************************************************/
void ViewShell::Activate(sal_Bool bIsMDIActivate)
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
SfxShell::Activate(bIsMDIActivate);
2000-09-18 16:07:07 +00:00
// Laut MI darf keiner GrabFocus rufen, der nicht genau weiss von
// welchem Window der Focus gegrabt wird. Da Activate() vom SFX teilweise
// asynchron verschickt wird, kann es sein, dass ein falsches Window
2010-12-05 00:16:48 +02:00
// den Focus hat
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if (mpHorizontalRuler.get() != NULL)
mpHorizontalRuler->SetActive(sal_True);
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if (mpVerticalRuler.get() != NULL)
mpVerticalRuler->SetActive(sal_True);
2000-09-18 16:07:07 +00:00
if (bIsMDIActivate)
{
// Damit der Navigator auch einen aktuellen Status bekommt
SfxBoolItem aItem( SID_NAVIGATOR_INIT, sal_True );
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if (GetDispatcher() != NULL)
GetDispatcher()->Execute(
SID_NAVIGATOR_INIT,
SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD,
&aItem,
0L);
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
SfxViewShell* pViewShell = GetViewShell();
OSL_ASSERT (pViewShell!=NULL);
SfxBindings& rBindings = pViewShell->GetViewFrame()->GetBindings();
rBindings.Invalidate( SID_3D_STATE, sal_True, sal_False );
2000-09-18 16:07:07 +00:00
rtl::Reference< SlideShow > xSlideShow( SlideShow::GetSlideShow( GetViewShellBase() ) );
if(xSlideShow.is() && xSlideShow->isRunning() )
2000-09-18 16:07:07 +00:00
{
xSlideShow->activate(GetViewShellBase());
2000-09-18 16:07:07 +00:00
}
if(HasCurrentFunction())
2000-09-18 16:07:07 +00:00
{
GetCurrentFunction()->Activate();
2000-09-18 16:07:07 +00:00
}
if(!GetDocSh()->IsUIActive())
UpdatePreview( GetActualPage(), sal_True );
2000-09-18 16:07:07 +00:00
}
ReadFrameViewData( mpFrameView );
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if (IsMainViewShell())
GetDocSh()->Connect(this);
}
void ViewShell::UIActivating( SfxInPlaceClient* )
{
OSL_ASSERT (GetViewShell()!=NULL);
GetViewShellBase().GetToolBarManager()->ToolBarsDestroyed();
}
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
void ViewShell::UIDeactivated( SfxInPlaceClient* )
{
OSL_ASSERT (GetViewShell()!=NULL);
GetViewShellBase().GetToolBarManager()->ToolBarsDestroyed();
if ( GetDrawView() )
GetViewShellBase().GetToolBarManager()->SelectionHasChanged(*this, *GetDrawView());
2000-09-18 16:07:07 +00:00
}
/*************************************************************************
|*
|* Deaktivierung
|*
\************************************************************************/
void ViewShell::Deactivate(sal_Bool bIsMDIActivate)
2000-09-18 16:07:07 +00:00
{
// remove view from a still active drag'n'drop session
SdTransferable* pDragTransferable = SD_MOD()->pTransferDrag;
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if (IsMainViewShell())
GetDocSh()->Disconnect(this);
if( pDragTransferable )
pDragTransferable->SetView( NULL );
OSL_ASSERT (GetViewShell()!=NULL);
2000-09-18 16:07:07 +00:00
// View-Attribute an der FrameView merken
WriteFrameViewData();
if (bIsMDIActivate)
{
rtl::Reference< SlideShow > xSlideShow( SlideShow::GetSlideShow( GetViewShellBase() ) );
if(xSlideShow.is() && xSlideShow->isRunning() )
2000-09-18 16:07:07 +00:00
{
xSlideShow->deactivate(GetViewShellBase());
2000-09-18 16:07:07 +00:00
}
if(HasCurrentFunction())
2000-09-18 16:07:07 +00:00
{
GetCurrentFunction()->Deactivate();
2000-09-18 16:07:07 +00:00
}
}
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if (mpHorizontalRuler.get() != NULL)
mpHorizontalRuler->SetActive(sal_False);
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if (mpVerticalRuler.get() != NULL)
mpVerticalRuler->SetActive(sal_False);
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
SfxShell::Deactivate(bIsMDIActivate);
}
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
void ViewShell::Shutdown (void)
{
Exit ();
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
2000-09-18 16:07:07 +00:00
/*************************************************************************
|*
|* Keyboard event
|*
\************************************************************************/
sal_Bool ViewShell::KeyInput(const KeyEvent& rKEvt, ::sd::Window* pWin)
2000-09-18 16:07:07 +00:00
{
sal_Bool bReturn(sal_False);
2000-09-18 16:07:07 +00:00
if(pWin)
2000-09-18 16:07:07 +00:00
{
SetActiveWindow(pWin);
}
if(!bReturn)
2000-09-18 16:07:07 +00:00
{
// give key input first to SfxViewShell to give CTRL+Key
// (e.g. CTRL+SHIFT+'+', to front) priority.
OSL_ASSERT (GetViewShell()!=NULL);
bReturn = (sal_Bool)GetViewShell()->KeyInput(rKEvt);
2000-09-18 16:07:07 +00:00
}
if(!bReturn)
2000-09-18 16:07:07 +00:00
{
rtl::Reference< SlideShow > xSlideShow( SlideShow::GetSlideShow( GetViewShellBase() ) );
if(xSlideShow.is() && xSlideShow->isRunning())
{
bReturn = xSlideShow->keyInput(rKEvt);
}
else
{
bool bConsumed = false;
if( GetView() )
bConsumed = GetView()->getSmartTags().KeyInput(rKEvt);
if( !bConsumed )
{
rtl::Reference< sdr::SelectionController > xSelectionController( GetView()->getSelectionController() );
if( !xSelectionController.is() || !xSelectionController->onKeyInput( rKEvt, pWin ) )
{
if(HasCurrentFunction())
bReturn = GetCurrentFunction()->KeyInput(rKEvt);
}
else
{
bReturn = sal_True;
}
}
}
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if(!bReturn && GetActiveWindow())
2000-09-18 16:07:07 +00:00
{
KeyCode aKeyCode = rKEvt.GetKeyCode();
if (aKeyCode.IsMod1() && aKeyCode.IsShift()
&& aKeyCode.GetCode() == KEY_R)
{
InvalidateWindows();
bReturn = sal_True;
2000-09-18 16:07:07 +00:00
}
}
return(bReturn);
}
/*************************************************************************
|*
|* MouseButtonDown event
|*
\************************************************************************/
void ViewShell::MouseButtonDown(const MouseEvent& rMEvt, ::sd::Window* pWin)
2000-09-18 16:07:07 +00:00
{
// We have to lock tool bar updates while the mouse button is pressed in
// order to prevent the shape under the mouse to be moved (this happens
// when the number of docked tool bars changes as result of a changed
// selection; this changes the window size and thus the mouse position
// in model coordinates: with respect to model coordinates the mouse
// moves.)
OSL_ASSERT(mpImpl->mpUpdateLockForMouse.expired());
mpImpl->mpUpdateLockForMouse = ViewShell::Implementation::ToolBarManagerLock::Create(
GetViewShellBase().GetToolBarManager());
2000-09-18 16:07:07 +00:00
if ( pWin && !pWin->HasFocus() )
{
pWin->GrabFocus();
SetActiveWindow(pWin);
}
// MouseEvent in E3dView eintragen
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if (GetView() != NULL)
GetView()->SetMouseEvent(rMEvt);
2000-09-18 16:07:07 +00:00
bool bConsumed = false;
if( GetView() )
bConsumed = GetView()->getSmartTags().MouseButtonDown( rMEvt );
if( !bConsumed )
{
rtl::Reference< sdr::SelectionController > xSelectionController( GetView()->getSelectionController() );
if( !xSelectionController.is() || !xSelectionController->onMouseButtonDown( rMEvt, pWin ) )
{
if(HasCurrentFunction())
{
GetCurrentFunction()->MouseButtonDown(rMEvt);
}
}
2000-09-18 16:07:07 +00:00
}
}
/*************************************************************************
|*
|* MouseMove event
|*
\************************************************************************/
void ViewShell::MouseMove(const MouseEvent& rMEvt, ::sd::Window* pWin)
2000-09-18 16:07:07 +00:00
{
if (rMEvt.IsLeaveWindow())
{
if ( ! mpImpl->mpUpdateLockForMouse.expired())
{
::boost::shared_ptr<ViewShell::Implementation::ToolBarManagerLock> pLock(
mpImpl->mpUpdateLockForMouse);
if (pLock.get() != NULL)
pLock->Release();
}
}
2000-09-18 16:07:07 +00:00
if ( pWin )
{
SetActiveWindow(pWin);
}
// MouseEvent in E3dView eintragen
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if (GetView() != NULL)
GetView()->SetMouseEvent(rMEvt);
2000-09-18 16:07:07 +00:00
if(HasCurrentFunction())
2000-09-18 16:07:07 +00:00
{
rtl::Reference< sdr::SelectionController > xSelectionController( GetView()->getSelectionController() );
if( !xSelectionController.is() || !xSelectionController->onMouseMove( rMEvt, pWin ) )
{
if(HasCurrentFunction())
GetCurrentFunction()->MouseMove(rMEvt);
}
}
2000-09-18 16:07:07 +00:00
}
/*************************************************************************
|*
|* MouseButtonUp event
|*
\************************************************************************/
void ViewShell::MouseButtonUp(const MouseEvent& rMEvt, ::sd::Window* pWin)
2000-09-18 16:07:07 +00:00
{
if ( pWin )
{
SetActiveWindow(pWin);
}
// MouseEvent in E3dView eintragen
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if (GetView() != NULL)
GetView()->SetMouseEvent(rMEvt);
2000-09-18 16:07:07 +00:00
if( HasCurrentFunction())
2000-09-18 16:07:07 +00:00
{
rtl::Reference< sdr::SelectionController > xSelectionController( GetView()->getSelectionController() );
if( !xSelectionController.is() || !xSelectionController->onMouseButtonUp( rMEvt, pWin ) )
{
if(HasCurrentFunction())
GetCurrentFunction()->MouseButtonUp(rMEvt);
}
2000-09-18 16:07:07 +00:00
}
if ( ! mpImpl->mpUpdateLockForMouse.expired())
{
::boost::shared_ptr<ViewShell::Implementation::ToolBarManagerLock> pLock(
mpImpl->mpUpdateLockForMouse);
if (pLock.get() != NULL)
pLock->Release();
}
2000-09-18 16:07:07 +00:00
}
/*************************************************************************
|*
|* Command event
|*
\************************************************************************/
void ViewShell::Command(const CommandEvent& rCEvt, ::sd::Window* pWin)
{
sal_Bool bDone = HandleScrollCommand (rCEvt, pWin);
if( !bDone )
{
if( rCEvt.GetCommand() == COMMAND_INPUTLANGUAGECHANGE )
{
//#i42732# update state of fontname if input language changes
GetViewFrame()->GetBindings().Invalidate( SID_ATTR_CHAR_FONT );
GetViewFrame()->GetBindings().Invalidate( SID_ATTR_CHAR_FONTHEIGHT );
}
CWS-TOOLING: integrate CWS impressnotes01 2009-09-11 13:52:41 +0200 cl r276061 : CWS-TOOLING: rebase CWS impressnotes01 to trunk@276043 (milestone: DEV300:m58) 2009-09-10 15:44:57 +0200 cl r276039 : #i103139# continued work on the impress annotation feature 2009-09-10 14:52:31 +0200 cl r276032 : #i103139# continued work on the impress annotation feature 2009-09-10 14:50:32 +0200 cl r276031 : #i103139# continued work on the impress annotation feature 2009-09-10 14:48:29 +0200 cl r276030 : #i103139# continued work on the impress annotation feature 2009-09-10 11:36:11 +0200 cl r276027 : #i103139# continued work on the impress annotation feature 2009-09-09 20:22:41 +0200 cl r276018 : #i103139# continued work on the impress annotation feature 2009-09-09 20:21:45 +0200 cl r276017 : #i103139# continued work on the impress annotation feature 2009-09-09 19:32:29 +0200 sj r276015 : #i103139# added import of comments (ppt binary) 2009-09-09 19:31:07 +0200 sj r276014 : #i103139# added import of comments (ppt binary) 2009-09-09 19:16:41 +0200 cl r276011 : #i103139# continued work on the impress annotation feature 2009-09-09 19:15:19 +0200 cl r276010 : #i103139# continued work on the impress annotation feature 2009-09-09 16:27:19 +0200 cl r276001 : #i104579# fixed isEmptyPresObj() 2009-09-09 15:12:02 +0200 cl r275997 : #i103139# continued work on the impress annotation feature 2009-09-09 15:06:29 +0200 sj r275996 : #i103139# added import of comments (ppt binary) 2009-09-09 14:53:01 +0200 cl r275995 : #i103139# continued work on the impress annotation feature 2009-09-09 14:51:32 +0200 cl r275994 : #i103139# continued work on the impress annotation feature 2009-09-09 12:11:17 +0200 cl r275982 : #i103139# continued work on the impress annotation feature 2009-09-09 11:47:55 +0200 cl r275981 : #i103139# continued work on the impress annotation feature 2009-09-09 11:47:23 +0200 cl r275980 : #i103139# continued work on the impress annotation feature 2009-09-09 11:44:47 +0200 cl r275978 : #i104315# added missing tab pages 2009-09-08 16:04:44 +0200 cl r275936 : #i103139# continued work on the impress annotation feature 2009-09-08 16:03:28 +0200 cl r275935 : #i103139# continued work on the impress annotation feature 2009-09-08 11:45:47 +0200 cl r275920 : #i103139# continued work on the impress annotation feature 2009-09-08 11:41:51 +0200 cl r275919 : #i103139# continued work on the impress annotation feature 2009-09-07 18:30:55 +0200 cl r275910 : #i103139# continued work on the impress annotation feature 2009-09-07 18:29:37 +0200 cl r275909 : #i103139# continued work on the impress annotation feature 2009-09-07 17:25:43 +0200 cl r275905 : #i103139# continued work on the impress annotation feature 2009-09-07 12:00:28 +0200 cl r275884 : #i103139# continued work on the impress annotation feature 2009-09-06 14:14:00 +0200 cl r275859 : #i103139# continued work on the impress annotation feature 2009-09-05 20:57:24 +0200 cl r275854 : #i103139# continued work on the impress annotation feature 2009-09-05 20:56:29 +0200 cl r275853 : #i103139# continued work on the impress annotation feature 2009-09-05 20:55:27 +0200 cl r275852 : #i103139# continued work on the impress annotation feature 2009-09-05 20:11:42 +0200 cl r275851 : #i103139# continued work on the impress annotation feature 2009-09-05 20:11:09 +0200 cl r275850 : #i103139# continued work on the impress annotation feature 2009-09-05 17:43:33 +0200 cl r275845 : #i103139# continued work on the impress annotation feature 2009-09-05 17:04:41 +0200 cl r275843 : #i103139# continued work on the impress annotation feature 2009-09-05 17:03:26 +0200 cl r275842 : #i103139# continued work on the impress annotation feature 2009-09-05 17:02:53 +0200 cl r275841 : #i103139# continued work on the impress annotation feature 2009-09-05 13:15:04 +0200 pl r275839 : #i104823# WB_NEEDSFOCUS 2009-09-05 13:14:41 +0200 pl r275838 : #i104823# WB_NEEDSFOCUS 2009-09-04 17:48:21 +0200 cl r275826 : #i103139# continued work on the impress annotation feature 2009-09-04 17:35:03 +0200 cl r275825 : #i103139# continued work on the impress annotation feature 2009-09-04 17:15:46 +0200 cl r275824 : #i103139# continued work on the impress annotation feature 2009-09-04 17:12:54 +0200 cl r275823 : #i103139# continued work on the impress annotation feature 2009-09-04 17:05:23 +0200 cl r275822 : #i103139# continued work on the impress annotation feature 2009-09-04 16:48:28 +0200 cl r275820 : #i103139# continued work on the impress annotation feature 2009-09-04 16:44:02 +0200 cl r275818 : #i103139# continued work on the impress annotation feature 2009-09-04 16:43:23 +0200 cl r275817 : #i103139# continued work on the impress annotation feature 2009-09-04 16:06:04 +0200 cl r275812 : #i103139# continued work on the impress annotation feature 2009-09-04 16:05:45 +0200 cl r275811 : #i103139# continued work on the impress annotation feature 2009-09-04 15:04:33 +0200 cl r275806 : #i103139# continued work on the impress annotation feature 2009-09-04 11:43:14 +0200 cl r275795 : #i103139# continued work on the impress annotation feature 2009-09-04 11:27:10 +0200 cl r275793 : #i103139# continued work on the impress annotation feature 2009-09-04 11:10:02 +0200 cl r275792 : #i103139# continued work on the impress annotation feature 2009-09-04 11:07:05 +0200 cl r275790 : #i103139# continued work on the impress annotation feature 2009-09-04 11:05:01 +0200 cl r275789 : #i103139# continued work on the impress annotation feature 2009-09-04 10:55:51 +0200 cl r275785 : #i103139# renamed notes to comments 2009-09-04 10:54:57 +0200 cl r275784 : #i103139# renamed notes to comments 2009-09-03 20:37:35 +0200 cl r275772 : #i103139# continued work on the impress annotation feature 2009-09-03 20:35:31 +0200 cl r275771 : #i103139# continued work on the impress annotation feature 2009-09-01 18:17:55 +0200 cl r275680 : #i103139# continued work on the impress annotation feature 2009-09-01 18:15:08 +0200 cl r275678 : #i103139# continued work on the impress annotation feature 2009-09-01 18:13:38 +0200 cl r275677 : #i103139# continued work on the impress annotation feature 2009-08-18 12:35:42 +0200 cl r275089 : fixed merge error 2009-08-18 11:39:58 +0200 cl r275086 : CWS-TOOLING: rebase CWS impressnotes01 to trunk@275001 (milestone: DEV300:m55) 2009-07-30 13:45:10 +0200 cl r274481 : fixed merge errrors 2009-07-30 13:41:21 +0200 cl r274480 : fixed merge errrors 2009-07-30 13:39:40 +0200 cl r274478 : fixed merge errrors 2009-07-22 18:07:30 +0200 cl r274256 : CWS-TOOLING: rebase CWS impressnotes01 to trunk@273858 (milestone: DEV300:m52) 2009-07-21 17:21:31 +0200 cl r274208 : merging 2009-07-20 14:28:34 +0200 cl r274137 : #i103139# annotation support for impress 2009-07-20 14:28:04 +0200 cl r274136 : #i103139# annotation support for impress 2009-07-20 14:27:20 +0200 cl r274135 : #i103139# annotation support for impress 2009-07-20 14:21:17 +0200 cl r274134 : #i103139# annotation support for impress 2009-07-20 14:20:56 +0200 cl r274133 : #i103139# annotation support for impress 2009-07-20 14:20:09 +0200 cl r274132 : #i103139# annotation support for impress 2009-07-20 14:19:00 +0200 cl r274131 : #i103139# annotation support for impress 2009-07-20 14:17:50 +0200 cl r274130 : #i103139# annotation support for impress 2009-07-20 14:12:24 +0200 cl r274129 : #i103139# annotation support for impress 2009-07-20 13:52:03 +0200 cl r274128 : #i103139# annotation support for impress 2009-07-20 13:51:11 +0200 cl r274127 : #i103139# annotation support for impress 2009-07-20 13:48:59 +0200 cl r274126 : #i103139# annotation support for impress 2009-07-20 13:43:56 +0200 cl r274125 : #i103139# annotation support for impress 2009-07-20 13:31:55 +0200 cl r274123 : #i103139# annotation support for impress 2009-07-20 13:30:45 +0200 cl r274122 : #i103139# annotation support for impress
2009-09-16 13:55:36 +00:00
else
{
CWS-TOOLING: integrate CWS impressnotes01 2009-09-11 13:52:41 +0200 cl r276061 : CWS-TOOLING: rebase CWS impressnotes01 to trunk@276043 (milestone: DEV300:m58) 2009-09-10 15:44:57 +0200 cl r276039 : #i103139# continued work on the impress annotation feature 2009-09-10 14:52:31 +0200 cl r276032 : #i103139# continued work on the impress annotation feature 2009-09-10 14:50:32 +0200 cl r276031 : #i103139# continued work on the impress annotation feature 2009-09-10 14:48:29 +0200 cl r276030 : #i103139# continued work on the impress annotation feature 2009-09-10 11:36:11 +0200 cl r276027 : #i103139# continued work on the impress annotation feature 2009-09-09 20:22:41 +0200 cl r276018 : #i103139# continued work on the impress annotation feature 2009-09-09 20:21:45 +0200 cl r276017 : #i103139# continued work on the impress annotation feature 2009-09-09 19:32:29 +0200 sj r276015 : #i103139# added import of comments (ppt binary) 2009-09-09 19:31:07 +0200 sj r276014 : #i103139# added import of comments (ppt binary) 2009-09-09 19:16:41 +0200 cl r276011 : #i103139# continued work on the impress annotation feature 2009-09-09 19:15:19 +0200 cl r276010 : #i103139# continued work on the impress annotation feature 2009-09-09 16:27:19 +0200 cl r276001 : #i104579# fixed isEmptyPresObj() 2009-09-09 15:12:02 +0200 cl r275997 : #i103139# continued work on the impress annotation feature 2009-09-09 15:06:29 +0200 sj r275996 : #i103139# added import of comments (ppt binary) 2009-09-09 14:53:01 +0200 cl r275995 : #i103139# continued work on the impress annotation feature 2009-09-09 14:51:32 +0200 cl r275994 : #i103139# continued work on the impress annotation feature 2009-09-09 12:11:17 +0200 cl r275982 : #i103139# continued work on the impress annotation feature 2009-09-09 11:47:55 +0200 cl r275981 : #i103139# continued work on the impress annotation feature 2009-09-09 11:47:23 +0200 cl r275980 : #i103139# continued work on the impress annotation feature 2009-09-09 11:44:47 +0200 cl r275978 : #i104315# added missing tab pages 2009-09-08 16:04:44 +0200 cl r275936 : #i103139# continued work on the impress annotation feature 2009-09-08 16:03:28 +0200 cl r275935 : #i103139# continued work on the impress annotation feature 2009-09-08 11:45:47 +0200 cl r275920 : #i103139# continued work on the impress annotation feature 2009-09-08 11:41:51 +0200 cl r275919 : #i103139# continued work on the impress annotation feature 2009-09-07 18:30:55 +0200 cl r275910 : #i103139# continued work on the impress annotation feature 2009-09-07 18:29:37 +0200 cl r275909 : #i103139# continued work on the impress annotation feature 2009-09-07 17:25:43 +0200 cl r275905 : #i103139# continued work on the impress annotation feature 2009-09-07 12:00:28 +0200 cl r275884 : #i103139# continued work on the impress annotation feature 2009-09-06 14:14:00 +0200 cl r275859 : #i103139# continued work on the impress annotation feature 2009-09-05 20:57:24 +0200 cl r275854 : #i103139# continued work on the impress annotation feature 2009-09-05 20:56:29 +0200 cl r275853 : #i103139# continued work on the impress annotation feature 2009-09-05 20:55:27 +0200 cl r275852 : #i103139# continued work on the impress annotation feature 2009-09-05 20:11:42 +0200 cl r275851 : #i103139# continued work on the impress annotation feature 2009-09-05 20:11:09 +0200 cl r275850 : #i103139# continued work on the impress annotation feature 2009-09-05 17:43:33 +0200 cl r275845 : #i103139# continued work on the impress annotation feature 2009-09-05 17:04:41 +0200 cl r275843 : #i103139# continued work on the impress annotation feature 2009-09-05 17:03:26 +0200 cl r275842 : #i103139# continued work on the impress annotation feature 2009-09-05 17:02:53 +0200 cl r275841 : #i103139# continued work on the impress annotation feature 2009-09-05 13:15:04 +0200 pl r275839 : #i104823# WB_NEEDSFOCUS 2009-09-05 13:14:41 +0200 pl r275838 : #i104823# WB_NEEDSFOCUS 2009-09-04 17:48:21 +0200 cl r275826 : #i103139# continued work on the impress annotation feature 2009-09-04 17:35:03 +0200 cl r275825 : #i103139# continued work on the impress annotation feature 2009-09-04 17:15:46 +0200 cl r275824 : #i103139# continued work on the impress annotation feature 2009-09-04 17:12:54 +0200 cl r275823 : #i103139# continued work on the impress annotation feature 2009-09-04 17:05:23 +0200 cl r275822 : #i103139# continued work on the impress annotation feature 2009-09-04 16:48:28 +0200 cl r275820 : #i103139# continued work on the impress annotation feature 2009-09-04 16:44:02 +0200 cl r275818 : #i103139# continued work on the impress annotation feature 2009-09-04 16:43:23 +0200 cl r275817 : #i103139# continued work on the impress annotation feature 2009-09-04 16:06:04 +0200 cl r275812 : #i103139# continued work on the impress annotation feature 2009-09-04 16:05:45 +0200 cl r275811 : #i103139# continued work on the impress annotation feature 2009-09-04 15:04:33 +0200 cl r275806 : #i103139# continued work on the impress annotation feature 2009-09-04 11:43:14 +0200 cl r275795 : #i103139# continued work on the impress annotation feature 2009-09-04 11:27:10 +0200 cl r275793 : #i103139# continued work on the impress annotation feature 2009-09-04 11:10:02 +0200 cl r275792 : #i103139# continued work on the impress annotation feature 2009-09-04 11:07:05 +0200 cl r275790 : #i103139# continued work on the impress annotation feature 2009-09-04 11:05:01 +0200 cl r275789 : #i103139# continued work on the impress annotation feature 2009-09-04 10:55:51 +0200 cl r275785 : #i103139# renamed notes to comments 2009-09-04 10:54:57 +0200 cl r275784 : #i103139# renamed notes to comments 2009-09-03 20:37:35 +0200 cl r275772 : #i103139# continued work on the impress annotation feature 2009-09-03 20:35:31 +0200 cl r275771 : #i103139# continued work on the impress annotation feature 2009-09-01 18:17:55 +0200 cl r275680 : #i103139# continued work on the impress annotation feature 2009-09-01 18:15:08 +0200 cl r275678 : #i103139# continued work on the impress annotation feature 2009-09-01 18:13:38 +0200 cl r275677 : #i103139# continued work on the impress annotation feature 2009-08-18 12:35:42 +0200 cl r275089 : fixed merge error 2009-08-18 11:39:58 +0200 cl r275086 : CWS-TOOLING: rebase CWS impressnotes01 to trunk@275001 (milestone: DEV300:m55) 2009-07-30 13:45:10 +0200 cl r274481 : fixed merge errrors 2009-07-30 13:41:21 +0200 cl r274480 : fixed merge errrors 2009-07-30 13:39:40 +0200 cl r274478 : fixed merge errrors 2009-07-22 18:07:30 +0200 cl r274256 : CWS-TOOLING: rebase CWS impressnotes01 to trunk@273858 (milestone: DEV300:m52) 2009-07-21 17:21:31 +0200 cl r274208 : merging 2009-07-20 14:28:34 +0200 cl r274137 : #i103139# annotation support for impress 2009-07-20 14:28:04 +0200 cl r274136 : #i103139# annotation support for impress 2009-07-20 14:27:20 +0200 cl r274135 : #i103139# annotation support for impress 2009-07-20 14:21:17 +0200 cl r274134 : #i103139# annotation support for impress 2009-07-20 14:20:56 +0200 cl r274133 : #i103139# annotation support for impress 2009-07-20 14:20:09 +0200 cl r274132 : #i103139# annotation support for impress 2009-07-20 14:19:00 +0200 cl r274131 : #i103139# annotation support for impress 2009-07-20 14:17:50 +0200 cl r274130 : #i103139# annotation support for impress 2009-07-20 14:12:24 +0200 cl r274129 : #i103139# annotation support for impress 2009-07-20 13:52:03 +0200 cl r274128 : #i103139# annotation support for impress 2009-07-20 13:51:11 +0200 cl r274127 : #i103139# annotation support for impress 2009-07-20 13:48:59 +0200 cl r274126 : #i103139# annotation support for impress 2009-07-20 13:43:56 +0200 cl r274125 : #i103139# annotation support for impress 2009-07-20 13:31:55 +0200 cl r274123 : #i103139# annotation support for impress 2009-07-20 13:30:45 +0200 cl r274122 : #i103139# annotation support for impress
2009-09-16 13:55:36 +00:00
bool bConsumed = false;
if( GetView() )
{
bConsumed = GetView()->getSmartTags().Command(rCEvt);
}
if( !bConsumed && HasCurrentFunction())
{
GetCurrentFunction()->Command(rCEvt);
}
}
}
}
long ViewShell::Notify(NotifyEvent& rNEvt, ::sd::Window* pWin)
{
// handle scroll commands when they arrived at child windows
long nRet = sal_False;
if( rNEvt.GetType() == EVENT_COMMAND )
{
// note: dynamic_cast is not possible as GetData() returns a void*
CommandEvent* pCmdEvent = reinterpret_cast< CommandEvent* >(rNEvt.GetData());
nRet = HandleScrollCommand(*pCmdEvent, pWin);
}
return nRet;
}
bool ViewShell::HandleScrollCommand(const CommandEvent& rCEvt, ::sd::Window* pWin)
2000-09-18 16:07:07 +00:00
{
bool bDone = false;
2000-09-18 16:07:07 +00:00
switch( rCEvt.GetCommand() )
{
case COMMAND_WHEEL:
{
Reference< XSlideShowController > xSlideShowController( SlideShow::GetSlideShowController(GetViewShellBase() ) );
if( xSlideShowController.is() )
{
// We ignore zooming with control+mouse wheel.
const CommandWheelData* pData = rCEvt.GetWheelData();
if( pData && !pData->GetModifier() && ( pData->GetMode() == COMMAND_WHEEL_SCROLL ) && !pData->IsHorz() )
{
long nDelta = pData->GetDelta();
if( nDelta > 0 )
{
xSlideShowController->gotoPreviousSlide();
}
else if( nDelta < 0 )
{
xSlideShowController->gotoNextEffect();
}
}
break;
}
}
// fall through when not running slideshow
case COMMAND_STARTAUTOSCROLL:
case COMMAND_AUTOSCROLL:
2000-09-18 16:07:07 +00:00
{
const CommandWheelData* pData = rCEvt.GetWheelData();
if (pData != NULL)
2000-09-18 16:07:07 +00:00
{
if (pData->IsMod1())
{
if( !GetDocSh()->IsUIActive() )
{
const long nOldZoom = GetActiveWindow()->GetZoom();
long nNewZoom;
if( pData->GetDelta() < 0L )
nNewZoom = Max( (long) pWin->GetMinZoom(), basegfx::zoomtools::zoomOut( nOldZoom ));
else
nNewZoom = Min( (long) pWin->GetMaxZoom(), basegfx::zoomtools::zoomIn( nOldZoom ));
SetZoom( nNewZoom );
Invalidate( SID_ATTR_ZOOM );
2008-10-29 11:47:54 +00:00
Invalidate( SID_ATTR_ZOOMSLIDER );
bDone = true;
}
}
else
2000-09-18 16:07:07 +00:00
{
if( mpContentWindow.get() == pWin )
{
sal_uLong nScrollLines = pData->GetScrollLines();
if(IsPageFlipMode())
nScrollLines = COMMAND_WHEEL_PAGESCROLL;
CommandWheelData aWheelData( pData->GetDelta(),pData->GetNotchDelta(),
nScrollLines,pData->GetMode(),pData->GetModifier(),pData->IsHorz() );
CommandEvent aReWrite( rCEvt.GetMousePosPixel(),rCEvt.GetCommand(),
rCEvt.IsMouseEvent(),(const void *) &aWheelData );
bDone = pWin->HandleScrollCommand( aReWrite,
mpHorizontalScrollBar.get(),
mpVerticalScrollBar.get()) == sal_True;
}
2000-09-18 16:07:07 +00:00
}
}
}
break;
default:
break;
}
return bDone;
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
void ViewShell::SetupRulers (void)
2000-09-18 16:07:07 +00:00
{
if(mbHasRulers && (mpContentWindow.get() != NULL) && !SlideShow::IsRunning(GetViewShellBase()))
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
long nHRulerOfs = 0;
if ( mpVerticalRuler.get() == NULL )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
mpVerticalRuler.reset(CreateVRuler(GetActiveWindow()));
if ( mpVerticalRuler.get() != NULL )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
nHRulerOfs = mpVerticalRuler->GetSizePixel().Width();
mpVerticalRuler->SetActive(sal_True);
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
mpVerticalRuler->Show();
2000-09-18 16:07:07 +00:00
}
}
if ( mpHorizontalRuler.get() == NULL )
2000-09-18 16:07:07 +00:00
{
mpHorizontalRuler.reset(CreateHRuler(GetActiveWindow(), sal_True));
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if ( mpHorizontalRuler.get() != NULL )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
mpHorizontalRuler->SetWinPos(nHRulerOfs);
mpHorizontalRuler->SetActive(sal_True);
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
mpHorizontalRuler->Show();
2000-09-18 16:07:07 +00:00
}
}
}
}
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
sal_Bool ViewShell::HasRuler (void)
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
{
return mbHasRulers;
}
void ViewShell::Resize (void)
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
{
SetupRulers ();
if (mpParentWindow == NULL)
return;
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
// Make sure that the new size is not degenerate.
const Size aSize (mpParentWindow->GetSizePixel());
if (aSize.Width()==0 || aSize.Height()==0)
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
return;
// Remember the new position and size.
2010-12-05 00:16:48 +02:00
maViewPos = Point(0,0);
maViewSize = aSize;
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
// Rearrange the UI elements to take care of the new position and size.
ArrangeGUIElements ();
// end of included AdjustPosSizePixel.
::sd::View* pView = GetView();
if (pView)
{
pView->VisAreaChanged(GetActiveWindow());
}
}
SvBorder ViewShell::GetBorder (bool )
{
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
SvBorder aBorder;
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
// Horizontal scrollbar.
if (mpHorizontalScrollBar.get()!=NULL
&& mpHorizontalScrollBar->IsVisible())
2000-09-18 16:07:07 +00:00
{
aBorder.Bottom() = maScrBarWH.Height();
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
// Vertical scrollbar.
if (mpVerticalScrollBar.get()!=NULL
&& mpVerticalScrollBar->IsVisible())
2000-09-18 16:07:07 +00:00
{
aBorder.Right() = maScrBarWH.Width();
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
// Place horizontal ruler below tab bar.
if (mbHasRulers && mpContentWindow.get() != NULL)
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
SetupRulers();
if (mpHorizontalRuler.get() != NULL)
aBorder.Top() = mpHorizontalRuler->GetSizePixel().Height();
if (mpVerticalRuler.get() != NULL)
aBorder.Left() = mpVerticalRuler->GetSizePixel().Width();
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
return aBorder;
}
2000-09-18 16:07:07 +00:00
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
void ViewShell::ArrangeGUIElements (void)
{
if (mpImpl->mbArrangeActive)
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
return;
mpImpl->mbArrangeActive = true;
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
// Calculate border for in-place editing.
long nLeft = maViewPos.X();
long nTop = maViewPos.Y();
long nRight = maViewPos.X() + maViewSize.Width();
long nBottom = maViewPos.Y() + maViewSize.Height();
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
// Horizontal scrollbar.
if (mpHorizontalScrollBar.get()!=NULL
&& mpHorizontalScrollBar->IsVisible())
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
int nLocalLeft = nLeft;
if (mpLayerTabBar.get()!=NULL && mpLayerTabBar->IsVisible())
nLocalLeft += mpLayerTabBar->GetSizePixel().Width();
nBottom -= maScrBarWH.Height();
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
mpHorizontalScrollBar->SetPosSizePixel (
Point(nLocalLeft,nBottom),
Size(nRight-nLocalLeft-maScrBarWH.Width(),maScrBarWH.Height()));
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
// Vertical scrollbar.
if (mpVerticalScrollBar.get()!=NULL
&& mpVerticalScrollBar->IsVisible())
2000-09-18 16:07:07 +00:00
{
nRight -= maScrBarWH.Width();
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
mpVerticalScrollBar->SetPosSizePixel (
Point(nRight,nTop),
Size (maScrBarWH.Width(),nBottom-nTop));
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
// Filler in the lower right corner.
if (mpScrollBarBox.get() != NULL)
CWS-TOOLING: integrate CWS cmcfixes51 2008-12-08 10:12:55 +0100 cmc r264975 : #i96203# protect with ifdefs to avoid unused symbol on mac 2008-12-05 12:23:47 +0100 cmc r264898 : CWS-TOOLING: rebase CWS cmcfixes51 to trunk@264807 (milestone: DEV300:m37) 2008-12-01 14:45:17 +0100 cmc r264606 : #i76655# ehlos apparently required 2008-11-28 17:49:30 +0100 cmc r264567 : #i96655# remove newly unused method 2008-11-28 10:41:28 +0100 cmc r264531 : #i96647# better ppc-bridges flushCode impl 2008-11-27 12:58:40 +0100 cmc r264478 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 12:32:49 +0100 cmc r264476 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 12:26:02 +0100 cmc r264475 : #i96655# redundant old table export helpers 2008-11-27 11:49:06 +0100 cmc r264473 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 11:38:35 +0100 cmc r264471 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 11:14:21 +0100 cmc r264467 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 11:06:22 +0100 cmc r264464 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 10:58:18 +0100 cmc r264462 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 10:41:44 +0100 cmc r264461 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 10:19:24 +0100 cmc r264460 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 10:13:39 +0100 cmc r264459 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 10:06:14 +0100 cmc r264458 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 09:59:54 +0100 cmc r264457 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 09:52:51 +0100 cmc r264456 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 09:48:26 +0100 cmc r264454 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 09:40:20 +0100 cmc r264452 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 09:35:26 +0100 cmc r264451 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 09:31:00 +0100 cmc r264450 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 09:24:08 +0100 cmc r264449 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 00:26:15 +0100 cmc r264443 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 00:21:01 +0100 cmc r264442 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 00:09:40 +0100 cmc r264441 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 23:51:56 +0100 cmc r264440 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 23:49:09 +0100 cmc r264439 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 18:09:54 +0100 cmc r264432 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 18:07:40 +0100 cmc r264431 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 17:28:02 +0100 cmc r264429 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 17:27:39 +0100 cmc r264428 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 17:18:36 +0100 cmc r264426 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 16:22:16 +0100 cmc r264415 : #i96624# make implicit braces and brackets explicit to avoid warnings 2008-11-26 16:00:23 +0100 cmc r264409 : #i90426# remove warnings from svtools 2008-11-26 15:59:17 +0100 cmc r264408 : #i90426# remove warnings 2008-11-26 15:47:32 +0100 cmc r264404 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 14:46:57 +0100 cmc r264394 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 14:19:50 +0100 cmc r264387 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 14:15:26 +0100 cmc r264386 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 14:11:26 +0100 cmc r264384 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 13:44:23 +0100 cmc r264380 : #i96084# comfirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 13:12:24 +0100 cmc r264372 : #i96604# silence new warnings 2008-11-26 12:35:02 +0100 cmc r264369 : #i96203# make qstarter work in 3-layer land 2008-11-26 12:33:04 +0100 cmc r264368 : #i96170# ensure gtypes are up and running
2008-12-11 07:05:03 +00:00
{
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if (mpHorizontalScrollBar.get()!=NULL
&& mpHorizontalScrollBar->IsVisible()
&& mpVerticalScrollBar.get()!=NULL
&& mpVerticalScrollBar->IsVisible())
{
mpScrollBarBox->Show();
mpScrollBarBox->SetPosSizePixel(Point(nRight, nBottom), maScrBarWH);
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
}
else
mpScrollBarBox->Hide();
CWS-TOOLING: integrate CWS cmcfixes51 2008-12-08 10:12:55 +0100 cmc r264975 : #i96203# protect with ifdefs to avoid unused symbol on mac 2008-12-05 12:23:47 +0100 cmc r264898 : CWS-TOOLING: rebase CWS cmcfixes51 to trunk@264807 (milestone: DEV300:m37) 2008-12-01 14:45:17 +0100 cmc r264606 : #i76655# ehlos apparently required 2008-11-28 17:49:30 +0100 cmc r264567 : #i96655# remove newly unused method 2008-11-28 10:41:28 +0100 cmc r264531 : #i96647# better ppc-bridges flushCode impl 2008-11-27 12:58:40 +0100 cmc r264478 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 12:32:49 +0100 cmc r264476 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 12:26:02 +0100 cmc r264475 : #i96655# redundant old table export helpers 2008-11-27 11:49:06 +0100 cmc r264473 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 11:38:35 +0100 cmc r264471 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 11:14:21 +0100 cmc r264467 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 11:06:22 +0100 cmc r264464 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 10:58:18 +0100 cmc r264462 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 10:41:44 +0100 cmc r264461 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 10:19:24 +0100 cmc r264460 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 10:13:39 +0100 cmc r264459 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 10:06:14 +0100 cmc r264458 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 09:59:54 +0100 cmc r264457 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 09:52:51 +0100 cmc r264456 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 09:48:26 +0100 cmc r264454 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 09:40:20 +0100 cmc r264452 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 09:35:26 +0100 cmc r264451 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 09:31:00 +0100 cmc r264450 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 09:24:08 +0100 cmc r264449 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 00:26:15 +0100 cmc r264443 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 00:21:01 +0100 cmc r264442 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-27 00:09:40 +0100 cmc r264441 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 23:51:56 +0100 cmc r264440 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 23:49:09 +0100 cmc r264439 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 18:09:54 +0100 cmc r264432 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 18:07:40 +0100 cmc r264431 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 17:28:02 +0100 cmc r264429 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 17:27:39 +0100 cmc r264428 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 17:18:36 +0100 cmc r264426 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 16:22:16 +0100 cmc r264415 : #i96624# make implicit braces and brackets explicit to avoid warnings 2008-11-26 16:00:23 +0100 cmc r264409 : #i90426# remove warnings from svtools 2008-11-26 15:59:17 +0100 cmc r264408 : #i90426# remove warnings 2008-11-26 15:47:32 +0100 cmc r264404 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 14:46:57 +0100 cmc r264394 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 14:19:50 +0100 cmc r264387 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 14:15:26 +0100 cmc r264386 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 14:11:26 +0100 cmc r264384 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 13:44:23 +0100 cmc r264380 : #i96084# comfirm existing logic with explicit brackets to remove new gcc warnings 2008-11-26 13:12:24 +0100 cmc r264372 : #i96604# silence new warnings 2008-11-26 12:35:02 +0100 cmc r264369 : #i96203# make qstarter work in 3-layer land 2008-11-26 12:33:04 +0100 cmc r264368 : #i96170# ensure gtypes are up and running
2008-12-11 07:05:03 +00:00
}
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
// Place horizontal ruler below tab bar.
if (mbHasRulers && mpContentWindow.get() != NULL)
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if (mpHorizontalRuler.get() != NULL)
{
Size aRulerSize = mpHorizontalRuler->GetSizePixel();
aRulerSize.Width() = nRight - nLeft;
mpHorizontalRuler->SetPosSizePixel (
Point(nLeft,nTop), aRulerSize);
if (mpVerticalRuler.get() != NULL)
mpHorizontalRuler->SetBorderPos(
mpVerticalRuler->GetSizePixel().Width()-1);
nTop += aRulerSize.Height();
}
if (mpVerticalRuler.get() != NULL)
{
Size aRulerSize = mpVerticalRuler->GetSizePixel();
aRulerSize.Height() = nBottom - nTop;
mpVerticalRuler->SetPosSizePixel (
Point (nLeft,nTop), aRulerSize);
nLeft += aRulerSize.Width();
}
2000-09-18 16:07:07 +00:00
}
rtl::Reference< SlideShow > xSlideShow( SlideShow::GetSlideShow( GetViewShellBase() ) );
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
// The size of the window of the center pane is set differently from
// that of the windows in the docking windows.
bool bSlideShowActive = (xSlideShow.is() && xSlideShow->isRunning()) && !xSlideShow->isFullScreen() && xSlideShow->getAnimationMode() == ANIMATIONMODE_SHOW;
if ( !bSlideShowActive)
2000-09-18 16:07:07 +00:00
{
OSL_ASSERT (GetViewShell()!=NULL);
2000-09-18 16:07:07 +00:00
mpContentWindow->SetPosSizePixel(
Point(nLeft,nTop),
Size(nRight-nLeft,nBottom-nTop));
2000-09-18 16:07:07 +00:00
}
// Windows in the center and rulers at the left and top side.
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
maAllWindowRectangle = Rectangle(
maViewPos,
Size(maViewSize.Width()-maScrBarWH.Width(),
maViewSize.Height()-maScrBarWH.Height()));
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if (mpContentWindow.get() != NULL)
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
mpContentWindow->UpdateMapOrigin();
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
2000-09-18 16:07:07 +00:00
UpdateScrollBars();
mpImpl->mbArrangeActive = false;
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
void ViewShell::SetUIUnit(FieldUnit eUnit)
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
// Set unit at horizontal and vertical rulers.
if (mpHorizontalRuler.get() != NULL)
mpHorizontalRuler->SetUnit(eUnit);
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if (mpVerticalRuler.get() != NULL)
mpVerticalRuler->SetUnit(eUnit);
2000-09-18 16:07:07 +00:00
}
/*************************************************************************
|*
|* DefTab an den horizontalen Linealen setzen
|*
\************************************************************************/
void ViewShell::SetDefTabHRuler( sal_uInt16 nDefTab )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if (mpHorizontalRuler.get() != NULL)
mpHorizontalRuler->SetDefTabDist( nDefTab );
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
/** Tell the FmFormShell that the view shell is closing. Give it the
oportunity to prevent that.
*/
sal_uInt16 ViewShell::PrepareClose (sal_Bool bUI, sal_Bool bForBrowsing)
2000-09-18 16:07:07 +00:00
{
sal_uInt16 nResult = sal_True;
2000-09-18 16:07:07 +00:00
FmFormShell* pFormShell = GetViewShellBase().GetFormShellManager()->GetFormShell();
if (pFormShell != NULL)
nResult = pFormShell->PrepareClose (bUI, bForBrowsing);
2000-09-18 16:07:07 +00:00
return nResult;
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
void ViewShell::UpdatePreview (SdPage*, sal_Bool )
2001-09-13 10:22:42 +00:00
{
// Do nothing. After the actual preview has been removed,
// OutlineViewShell::UpdatePreview() is the place where something
// usefull is still done.
2001-09-13 10:22:42 +00:00
}
::svl::IUndoManager* ViewShell::ImpGetUndoManager (void) const
{
const ViewShell* pMainViewShell = GetViewShellBase().GetMainViewShell().get();
if( pMainViewShell == 0 )
pMainViewShell = this;
::sd::View* pView = pMainViewShell->GetView();
// check for text edit our outline view
if( pView )
{
if( pMainViewShell->GetShellType() == ViewShell::ST_OUTLINE )
{
OutlineView* pOlView = dynamic_cast< OutlineView* >( pView );
if( pOlView )
{
::Outliner* pOutl = pOlView->GetOutliner();
if( pOutl )
return &pOutl->GetUndoManager();
}
}
else if( pView->IsTextEdit() )
{
SdrOutliner* pOL = pView->GetTextEditOutliner();
if( pOL )
return &pOL->GetUndoManager();
}
}
if( GetDocSh() )
return GetDocSh()->GetUndoManager();
return NULL;
}
void ViewShell::ImpGetUndoStrings(SfxItemSet &rSet) const
{
::svl::IUndoManager* pUndoManager = ImpGetUndoManager();
if(pUndoManager)
{
sal_uInt16 nCount(pUndoManager->GetUndoActionCount());
if(nCount)
{
// prepare list
::std::vector< String > aStringList;
sal_uInt16 a;
for( a = 0; a < nCount; a++)
{
// generate one String in list per undo step
aStringList.push_back( String(pUndoManager->GetUndoActionComment(a)) );
}
// set item
rSet.Put(SfxStringListItem(SID_GETUNDOSTRINGS, &aStringList));
}
else
{
rSet.DisableItem(SID_GETUNDOSTRINGS);
}
}
}
2002-03-08 14:28:48 +00:00
// -----------------------------------------------------------------------------
void ViewShell::ImpGetRedoStrings(SfxItemSet &rSet) const
{
::svl::IUndoManager* pUndoManager = ImpGetUndoManager();
if(pUndoManager)
{
sal_uInt16 nCount(pUndoManager->GetRedoActionCount());
if(nCount)
{
// prepare list
::std::vector< String > aStringList;
sal_uInt16 a;
for( a = 0; a < nCount; a++)
{
// generate one String in list per undo step
aStringList.push_back( String(pUndoManager->GetRedoActionComment(a)) );
}
// set item
rSet.Put(SfxStringListItem(SID_GETREDOSTRINGS, &aStringList));
}
else
{
rSet.DisableItem(SID_GETREDOSTRINGS);
}
}
}
2002-03-08 14:28:48 +00:00
// -----------------------------------------------------------------------------
void ViewShell::ImpSidUndo(sal_Bool, SfxRequest& rReq)
{
::svl::IUndoManager* pUndoManager = ImpGetUndoManager();
sal_uInt16 nNumber(1);
const SfxItemSet* pReqArgs = rReq.GetArgs();
if(pReqArgs)
{
SfxUInt16Item* pUIntItem = (SfxUInt16Item*)&pReqArgs->Get(SID_UNDO);
nNumber = pUIntItem->GetValue();
}
if(nNumber && pUndoManager)
{
sal_uInt16 nCount(pUndoManager->GetUndoActionCount());
if(nCount >= nNumber)
{
try
{
// when UndoStack is cleared by ModifyPageUndoAction
// the nCount may have changed, so test GetUndoActionCount()
while(nNumber-- && pUndoManager->GetUndoActionCount())
{
pUndoManager->Undo();
}
}
2011-10-26 15:12:45 +03:00
catch( const Exception& )
{
// no need to handle. By definition, the UndoManager handled this by clearing the
// Undo/Redo stacks
}
}
2010-12-05 00:16:48 +02:00
// refresh rulers, maybe UNDO was move of TAB marker in ruler
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if (mbHasRulers)
{
Invalidate(SID_ATTR_TABSTOP);
}
}
// This one is corresponding to the default handling
// of SID_UNDO in sfx2
GetViewFrame()->GetBindings().InvalidateAll(sal_False);
rReq.Done();
}
2002-03-08 14:28:48 +00:00
// -----------------------------------------------------------------------------
void ViewShell::ImpSidRedo(sal_Bool, SfxRequest& rReq)
{
::svl::IUndoManager* pUndoManager = ImpGetUndoManager();
sal_uInt16 nNumber(1);
const SfxItemSet* pReqArgs = rReq.GetArgs();
if(pReqArgs)
{
SfxUInt16Item* pUIntItem = (SfxUInt16Item*)&pReqArgs->Get(SID_REDO);
nNumber = pUIntItem->GetValue();
}
if(nNumber && pUndoManager)
{
sal_uInt16 nCount(pUndoManager->GetRedoActionCount());
if(nCount >= nNumber)
{
try
{
// when UndoStack is cleared by ModifyPageRedoAction
// the nCount may have changed, so test GetRedoActionCount()
while(nNumber-- && pUndoManager->GetRedoActionCount())
{
pUndoManager->Redo();
}
}
2011-10-26 15:12:45 +03:00
catch( const Exception& )
{
// no need to handle. By definition, the UndoManager handled this by clearing the
// Undo/Redo stacks
}
}
2010-12-05 00:16:48 +02:00
// refresh rulers, maybe REDO was move of TAB marker in ruler
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if (mbHasRulers)
{
Invalidate(SID_ATTR_TABSTOP);
}
}
// This one is corresponding to the default handling
// of SID_UNDO in sfx2
GetViewFrame()->GetBindings().InvalidateAll(sal_False);
rReq.Done();
}
2000-09-18 16:07:07 +00:00
2002-03-08 14:28:48 +00:00
// -----------------------------------------------------------------------------
void ViewShell::ExecReq( SfxRequest& rReq )
2002-03-08 14:28:48 +00:00
{
sal_uInt16 nSlot = rReq.GetSlot();
switch( nSlot )
2002-03-08 14:28:48 +00:00
{
case SID_MAIL_SCROLLBODY_PAGEDOWN:
{
FunctionReference xFunc( GetCurrentFunction() );
if( xFunc.is() )
2002-03-08 14:28:48 +00:00
{
xFunc->ScrollStart();
2002-03-08 14:28:48 +00:00
ScrollLines( 0, -1 );
xFunc->ScrollEnd();
2002-03-08 14:28:48 +00:00
}
rReq.Done();
}
break;
case SID_OUTPUT_QUALITY_COLOR:
case SID_OUTPUT_QUALITY_GRAYSCALE:
case SID_OUTPUT_QUALITY_BLACKWHITE:
case SID_OUTPUT_QUALITY_CONTRAST:
{
sal_uLong nMode = OUTPUT_DRAWMODE_COLOR;
switch( nSlot )
{
case SID_OUTPUT_QUALITY_COLOR: nMode = OUTPUT_DRAWMODE_COLOR; break;
case SID_OUTPUT_QUALITY_GRAYSCALE: nMode = OUTPUT_DRAWMODE_GRAYSCALE; break;
case SID_OUTPUT_QUALITY_BLACKWHITE: nMode = OUTPUT_DRAWMODE_BLACKWHITE; break;
case SID_OUTPUT_QUALITY_CONTRAST: nMode = OUTPUT_DRAWMODE_CONTRAST; break;
}
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
GetActiveWindow()->SetDrawMode( nMode );
mpFrameView->SetDrawMode( nMode );
2010-12-05 00:16:48 +02:00
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
GetActiveWindow()->Invalidate();
Invalidate();
rReq.Done();
break;
}
2002-03-08 14:28:48 +00:00
}
}
/** This default implemenation returns only an empty reference. See derived
classes for more interesting examples.
*/
::com::sun::star::uno::Reference<
::com::sun::star::accessibility::XAccessible>
ViewShell::CreateAccessibleDocumentView (::sd::Window* )
{
OSL_FAIL("ViewShell::CreateAccessibleDocumentView should not be called!, perhaps Meyers, 3rd edition, Item 9:\n");
return ::com::sun::star::uno::Reference<
::com::sun::star::accessibility::XAccessible> ();
}
::sd::WindowUpdater* ViewShell::GetWindowUpdater (void) const
{
return mpWindowUpdater.get();
}
ViewShellBase& ViewShell::GetViewShellBase (void) const
{
return *static_cast<ViewShellBase*>(GetViewShell());
}
ViewShell::ShellType ViewShell::GetShellType (void) const
{
return meShellType;
}
DrawDocShell* ViewShell::GetDocSh (void) const
{
return GetViewShellBase().GetDocShell();
}
SdDrawDocument* ViewShell::GetDoc (void) const
{
return GetViewShellBase().GetDocument();
}
ErrCode ViewShell::DoVerb (long )
{
return ERRCODE_NONE;
}
void ViewShell::SetCurrentFunction( const FunctionReference& xFunction)
{
if( mxCurrentFunction.is() && (mxOldFunction != mxCurrentFunction) )
mxCurrentFunction->Dispose();
FunctionReference xTemp( mxCurrentFunction );
mxCurrentFunction = xFunction;
}
void ViewShell::SetOldFunction(const FunctionReference& xFunction)
{
if( mxOldFunction.is() && (xFunction != mxOldFunction) && (mxCurrentFunction != mxOldFunction) )
mxOldFunction->Dispose();
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
FunctionReference xTemp( mxOldFunction );
mxOldFunction = xFunction;
}
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
/** this method deactivates the current function. If an old function is
saved, this will become activated and current function.
*/
void ViewShell::Cancel()
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
{
if(mxCurrentFunction.is() && (mxCurrentFunction != mxOldFunction ))
{
FunctionReference xTemp( mxCurrentFunction );
mxCurrentFunction.clear();
xTemp->Deactivate();
xTemp->Dispose();
}
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if(mxOldFunction.is())
{
mxCurrentFunction = mxOldFunction;
mxCurrentFunction->Activate();
}
}
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
void ViewShell::DeactivateCurrentFunction( bool bPermanent /* == false */ )
{
if( mxCurrentFunction.is() )
{
if(bPermanent && (mxOldFunction == mxCurrentFunction))
mxOldFunction.clear();
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
mxCurrentFunction->Deactivate();
if( mxCurrentFunction != mxOldFunction )
mxCurrentFunction->Dispose();
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
FunctionReference xTemp( mxCurrentFunction );
mxCurrentFunction.clear();
}
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
}
void ViewShell::DisposeFunctions()
{
if(mxCurrentFunction.is())
{
FunctionReference xTemp( mxCurrentFunction );
mxCurrentFunction.clear();
xTemp->Deactivate();
xTemp->Dispose();
}
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
if(mxOldFunction.is())
{
FunctionReference xTemp( mxOldFunction );
mxOldFunction->Dispose();
mxOldFunction.clear();
}
}
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
bool ViewShell::IsMainViewShell (void) const
{
return mpImpl->mbIsMainViewShell;
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
}
void ViewShell::SetIsMainViewShell (bool bIsMainViewShell)
{
if (bIsMainViewShell != mpImpl->mbIsMainViewShell)
{
mpImpl->mbIsMainViewShell = bIsMainViewShell;
if (bIsMainViewShell)
{
GetDocSh()->Connect (this);
}
else
{
GetDocSh()->Disconnect (this);
}
}
}
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
::sd::Window* ViewShell::GetActiveWindow (void) const
{
return mpActiveWindow;
}
void ViewShell::PrePaint()
{
}
void ViewShell::Paint (const Rectangle&, ::sd::Window* )
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
{
}
void ViewShell::Draw(OutputDevice &, const Region &)
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
{
}
ZoomList* ViewShell::GetZoomList (void)
{
return mpZoomList;
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
}
void ViewShell::ShowUIControls (bool bVisible)
{
mpImpl->mbIsShowingUIControls = bVisible;
if (mbHasRulers)
{
if (mpHorizontalRuler.get() != NULL)
mpHorizontalRuler->Show( bVisible );
if (mpVerticalRuler.get() != NULL)
mpVerticalRuler->Show( bVisible );
}
if (mpVerticalScrollBar.get() != NULL)
mpVerticalScrollBar->Show( bVisible );
if (mpHorizontalScrollBar.get() != NULL)
mpHorizontalScrollBar->Show( bVisible );
if (mpScrollBarBox.get() != NULL)
mpScrollBarBox->Show(bVisible);
if (mpContentWindow.get() != NULL)
mpContentWindow->Show( bVisible );
}
bool ViewShell::RelocateToParentWindow (::Window* pParentWindow)
{
mpParentWindow = pParentWindow;
mpParentWindow->SetBackground (Wallpaper());
if (mpContentWindow.get() != NULL)
mpContentWindow->SetParent(pParentWindow);
if (mpHorizontalScrollBar.get() != NULL)
mpHorizontalScrollBar->SetParent(mpParentWindow);
if (mpVerticalScrollBar.get() != NULL)
mpVerticalScrollBar->SetParent(mpParentWindow);
if (mpScrollBarBox.get() != NULL)
mpScrollBarBox->SetParent(mpParentWindow);
return true;
}
} // end of namespace sd
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
//===== ViewShellObjectBarFactory =============================================
namespace {
ViewShellObjectBarFactory::ViewShellObjectBarFactory (
::sd::ViewShell& rViewShell)
: mrViewShell (rViewShell)
{
}
ViewShellObjectBarFactory::~ViewShellObjectBarFactory (void)
{
for (ShellCache::iterator aI(maShellCache.begin());
aI!=maShellCache.end();
aI++)
{
delete aI->second;
}
}
SfxShell* ViewShellObjectBarFactory::CreateShell (
::sd::ShellId nId,
::Window*,
::sd::FrameView* )
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
{
SfxShell* pShell = NULL;
ShellCache::iterator aI (maShellCache.find(nId));
if (aI == maShellCache.end() || aI->second==NULL)
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
{
::sd::View* pView = mrViewShell.GetView();
switch (nId)
{
case RID_BEZIER_TOOLBOX:
pShell = new ::sd::BezierObjectBar(&mrViewShell, pView);
break;
case RID_DRAW_TEXT_TOOLBOX:
pShell = new ::sd::TextObjectBar(
&mrViewShell, mrViewShell.GetDoc()->GetPool(), pView);
break;
case RID_DRAW_GRAF_TOOLBOX:
pShell = new ::sd::GraphicObjectBar(&mrViewShell, pView);
break;
case RID_DRAW_MEDIA_TOOLBOX:
pShell = new ::sd::MediaObjectBar(&mrViewShell, pView);
break;
case RID_DRAW_TABLE_TOOLBOX:
pShell = ::sd::ui::table::CreateTableObjectBar( mrViewShell, pView );
break;
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
case RID_SVX_EXTRUSION_BAR:
pShell = new ::svx::ExtrusionBar(
&mrViewShell.GetViewShellBase());
break;
case RID_SVX_FONTWORK_BAR:
pShell = new ::svx::FontworkBar(
&mrViewShell.GetViewShellBase());
break;
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
default:
pShell = NULL;
break;
}
}
else
pShell = aI->second;
return pShell;
}
void ViewShellObjectBarFactory::ReleaseShell (SfxShell* pShell)
{
if (pShell != NULL)
delete pShell;
INTEGRATION: CWS impress2 (1.26.26); FILE MERGED 2004/07/13 12:05:24 af 1.26.26.34: RESYNC: (1.27-1.29); FILE MERGED 2004/07/10 14:56:37 af 1.26.26.33: #i22705# In Activate() checking for missing SfxDispatcher. Preparation for fixing InnerResizerPixel problems. 2004/07/09 07:13:30 af 1.26.26.32: #i22705# Added initialisation of mpImpl member. 2004/07/07 16:46:18 af 1.26.26.31: #i22705# New view shell shows its content window. 2004/06/30 12:06:50 af 1.26.26.30: #i22705# Included mpLayerTabBar into arrangement of GUI elements. 2004/06/29 07:11:20 af 1.26.26.29: #i22705# Return value of PrepareClose() now initialized with correct value. 2004/06/22 11:59:02 af 1.26.26.28: #i22705# Moved creation of controller to GetController() method. 2004/06/18 00:22:55 af 1.26.26.27: RESYNC: (1.26-1.27); FILE MERGED 2004/06/15 15:20:30 af 1.26.26.26: #i22705# Renamed member bHasRuler to mbHasRulers. Factored out creation of rulers to SetupRulers() method. 2004/06/12 12:33:35 af 1.26.26.25: #i22705# Replaced OuterResizePixel(), InnerResizePixel(), AdjustPosSizePixel() by GetBorder() and Resize(). 2004/06/11 07:18:13 af 1.26.26.24: #i22705# Using GetActiveWindow() instead of pWindow or GetWindow(). 2004/06/09 17:26:38 af 1.26.26.23: #i22705# Setting the window of the SfxShell to NULL is done by the PaneManager. 2004/06/09 15:05:25 af 1.26.26.22: #i22705# Set the active window and thus the window of the SfxViewShell to NULL in the destructor. 2004/06/09 14:58:01 af 1.26.26.21: #i22705# Moved inline implementation of some methods from header to this file. 2004/06/06 15:00:37 af 1.26.26.20: #i22705# Fixed placing of scroll bars. 2004/06/06 13:01:52 af 1.26.26.19: #i22705# Cleanup of member initialization. Fixed using the ScrollBarBox member. 2004/06/05 15:03:35 af 1.26.26.18: #i22705# Moved the re-setting of the window from the ViewShell classes to the VieShellBase class. 2004/06/04 07:16:41 af 1.26.26.17: #i22705# Rulers are off by default. Content window is transparent by default. Added guards against missing view. Fixed layout of controls. 2004/05/23 14:15:01 af 1.26.26.16: #i22705# Fixed resync error. 2004/05/19 14:17:51 af 1.26.26.15: #i22705# Commented out code that is no longer necessary. Remove it in the future. 2004/05/05 13:40:29 af 1.26.26.14: #i22705# (last commit was an accident) Moved the ViewTabBar to ViewShellBase.cxx. Reorganized the ArrangeGUIElements(). 2004/05/05 11:04:09 af 1.26.26.13: #i22705#lidesorter\controller\SlideSorterController.cxx 2004/04/27 12:53:16 af 1.26.26.12: #i22705# Cleaned up ArrangeGUIElements(). 2004/04/23 12:42:16 af 1.26.26.11: #i22705# Vertical scroll bar now starts below tab bar. 2004/04/22 15:22:43 af 1.26.26.10: #i22705# Transition from layer tab bar to layer dialog. 2004/04/22 07:40:21 af 1.26.26.9: #i22705# Removed buttons that switch between views. 2004/04/21 15:24:18 af 1.26.26.8: #i22705# Added support for ViewTabBar. 2004/04/15 12:11:49 af 1.26.26.7: #i22705# Splitter removed: Replaced pointer arrays by single auto_ptr. 2004/04/15 08:24:45 af 1.26.26.6: #i22705# Removed splitters. 2004/03/05 12:26:15 af 1.26.26.5: #i22705# Added new Set... method. 2004/03/03 17:33:59 af 1.26.26.4: #i22705# Added missing Connect() and Disconnect() calls to the docshell. 2004/03/02 13:23:23 af 1.26.26.3: #i22705# Reordered initialization of ObjectBarManager. 2004/03/02 10:37:36 af 1.26.26.2: #i22705# Fixes for the use of PrintManager. 2004/02/25 10:29:55 af 1.26.26.1: #i22705# Added argument to constructor. Adaption to modified shell handling.
2004-07-13 14:03:16 +00:00
}
} // end of anonymous namespace
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */