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

1786 lines
46 KiB
C++
Raw Normal View History

2000-09-18 16:07:07 +00:00
/*************************************************************************
*
* $RCSfile: viewshel.cxx,v $
*
* $Revision: 1.36 $
2000-09-18 16:07:07 +00:00
*
* last change: $Author: kz $ $Date: 2004-10-04 18:48:54 $
2000-09-18 16:07:07 +00:00
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Public License Version 2.1
* - Sun Industry Standards Source License Version 1.1
*
* Sun Microsystems Inc., October, 2000
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2000 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library 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 for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
*
* Sun Industry Standards Source License Version 1.1
* =================================================
* The contents of this file are subject to the Sun Industry Standards
* Source License Version 1.1 (the "License"); You may not use this file
* except in compliance with the License. You may obtain a copy of the
* License at http://www.openoffice.org/license.html.
*
* Software provided under this License is provided on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
* See the License for the specific provisions governing your rights and
* obligations concerning the Software.
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
*
* Copyright: 2000 by Sun Microsystems, Inc.
*
* All Rights Reserved.
*
* Contributor(s): _______________________________________
*
*
************************************************************************/
#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"
#ifndef _COM_SUN_STAR_EMBED_EMBEDSTATE_HPP_
#include <com/sun/star/embed/EmbedStates.hpp>
#endif
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
#ifndef SD_VIEW_SHELL_BASE_HXX
#include "ViewShellBase.hxx"
#endif
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
#ifndef SD_OBJECT_BAR_MANAGER_HXX
#include "ObjectBarManager.hxx"
#endif
#include "DrawController.hxx"
#include "LayerTabBar.hxx"
#include <sfx2/viewfrm.hxx>
2000-09-18 16:07:07 +00:00
#ifndef _SFX_BINDINGS_HXX //autogen
#include <sfx2/bindings.hxx>
#endif
#ifndef _SFXDISPATCH_HXX //autogen
#include <sfx2/dispatch.hxx>
#endif
#ifndef _SCRBAR_HXX //autogen
#include <vcl/scrbar.hxx>
#endif
#ifndef _SFXENUMITEM_HXX //autogen
#include <svtools/eitem.hxx>
#endif
#ifndef _SVX_RULER_HXX //autogen
#include <svx/ruler.hxx>
#endif
#ifndef _SVXIDS_HXX
#include <svx/svxids.hrc>
#endif
#ifndef _B3D_BASE3D_HXX
#include "goodies/base3d.hxx"
#endif
#ifndef _SVX_FMSHELL_HXX
#include <svx/fmshell.hxx>
#endif
#ifndef SD_WINDOW_UPDATER_HXX
#include "WindowUpdater.hxx"
#endif
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
#ifndef SD_GRAPHIC_VIEW_SHELL_HXX
#include "GraphicViewShell.hxx"
#endif
#ifndef SD_PREVIEW_WINDOW_HXX
#include "PreviewWindow.hxx"
#endif
#ifndef _SFX_CHILDWIN_HXX
#include <sfx2/childwin.hxx>
#endif
#ifndef _SD_SDXFER_HXX
#include <sdxfer.hxx>
#endif
#ifndef SD_GRAPHIC_VIEW_SHELL_HXX
#include "GraphicViewShell.hxx"
#endif
#ifndef SD_PREVIEW_WINDOW_HXX
#include "PreviewWindow.hxx"
#endif
#ifndef _SFX_CHILDWIN_HXX
#include <sfx2/childwin.hxx>
#endif
2000-09-18 16:07:07 +00:00
#include "app.hrc"
#include "helpids.h"
#include "strings.hrc"
#include "res_bmp.hrc"
#ifndef SD_VIEW_HXX
#include "View.hxx"
#endif
#ifndef SD_CLIENT_HXX
#include "Client.hxx"
#endif
2000-09-18 16:07:07 +00:00
#include "sdresid.hxx"
#include "DrawDocShell.hxx"
#ifndef SD_FU_SLIDE_SHOW_HXX
2000-09-18 16:07:07 +00:00
#include "fuslshow.hxx"
#endif
2000-09-18 16:07:07 +00:00
#include "drawdoc.hxx"
#include "sdpage.hxx"
#include "zoomlist.hxx"
#ifndef SD_FRAME_VIEW_HXX
#include "FrameView.hxx"
#endif
2002-03-08 14:28:48 +00:00
#include "optsitem.hxx"
#ifndef SD_PREVIEW_CHILD_WINDOW_HXX
#include "PreviewChildWindow.hxx"
#endif
#ifndef SD_OBJECT_BAR_MANAGER_HXX
#include "ObjectBarManager.hxx"
#endif
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 "DrawObjectBar.hxx"
#include "ImpressObjectBar.hxx"
#include "BezierObjectBar.hxx"
#include "GluePointsObjectBar.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 <svx/fmshell.hxx>
#include "ViewTabBar.hxx"
#include <svx/dialogs.hrc>
#include <svx/extrusionbar.hxx>
2000-09-18 16:07:07 +00:00
// #96090#
#ifndef _SFXSLSTITM_HXX
#include <svtools/slstitm.hxx>
#endif
#ifndef _SFXREQUEST_HXX
#include <sfx2/request.hxx>
#endif
#include "SpellDialogChildWindow.hxx"
2000-09-18 16:07:07 +00:00
#ifndef SO2_DECL_SVINPLACEOBJECT_DEFINED
#define SO2_DECL_SVINPLACEOBJECT_DEFINED
SO2_DECL_REF(SvInPlaceObject)
#endif
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
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 {
class ViewShellObjectBarFactory
: public ::sd::ObjectBarManager::ObjectBarFactory
{
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::hash_map< ::sd::ShellId,SfxShell*> ShellCache;
ShellCache maShellCache;
};
}
namespace sd {
static const int DELTA_ZOOM = 10;
2000-09-18 16:07:07 +00:00
// Use magenta as transparency color instead of the standard gray that is
// imported from vcl/image.hxx
#undef IMAGE_STDBTN_COLOR
#undef IMAGE_STDBTN_COLOR_HC
#define IMAGE_STDBTN_COLOR Color(0xff,0x00,0xff)
#define IMAGE_STDBTN_COLOR_HC Color(0xff,0x00,0xff)
SfxViewFrame* ViewShell::GetViewFrame (void) const
{
OSL_ASSERT (GetViewShell()!=NULL);
return GetViewShell()->GetViewFrame();
}
2000-09-18 16:07:07 +00:00
/*************************************************************************
|*
|* SFX-Slotmap und Standardinterface deklarieren
|*
\************************************************************************/
TYPEINIT1(ViewShell, SfxShell);
ViewShell::ViewShell (
SfxViewFrame* pFrame,
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
::Window* pParentWindow,
ViewShellBase& rViewShellBase,
bool bAllowCenter)
: SfxShell (&rViewShellBase),
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(NULL),
mpHorizontalScrollBar(NULL),
mpVerticalScrollBar(NULL),
mpHorizontalRuler(NULL),
mpVerticalRuler(NULL),
mpScrollBarBox(NULL),
mbHasRulers(false),
mpActiveWindow(NULL),
mpView(NULL),
pFrameView(NULL),
pFuActual(NULL),
pFuOld(NULL),
pFuSearch(NULL),
pFuSlideShow(NULL),
pZoomList(NULL),
aViewPos(),
aViewSize(),
aScrBarWH(),
bCenterAllowed(bAllowCenter),
bStartShowWithDialog(FALSE),
nPrintedHandoutPageNum(1),
maAllWindowRectangle(),
meShellType(ST_NONE),
mpController(NULL),
mpParentWindow(pParentWindow),
mpObjectBarManager(NULL),
mpWindowUpdater (new ::sd::WindowUpdater()),
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
mpImpl(new Implementation(*this))
{
Construct();
}
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
ViewShell::ViewShell(
SfxViewFrame* pFrame,
::Window* pParentWindow,
const ViewShell& rShell)
: SfxShell (rShell.GetViewShell()),
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(NULL),
mpHorizontalScrollBar(NULL),
mpVerticalScrollBar(NULL),
mpHorizontalRuler(NULL),
mpVerticalRuler(NULL),
mpScrollBarBox(NULL),
mbHasRulers(false),
mpActiveWindow(NULL),
mpView(NULL),
pFrameView(NULL),
pFuActual(NULL),
pFuOld(NULL),
pFuSearch(NULL),
pFuSlideShow(NULL),
pZoomList(NULL),
aViewPos(),
aViewSize(),
aScrBarWH(),
bCenterAllowed(rShell.bCenterAllowed),
bStartShowWithDialog(FALSE),
nPrintedHandoutPageNum(1),
maAllWindowRectangle(),
meShellType(ST_NONE),
mpController(NULL),
mpParentWindow(pParentWindow),
mpObjectBarManager(NULL),
mpWindowUpdater (new ::sd::WindowUpdater()),
mpImpl(new Implementation(*this))
{
Construct();
}
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
ViewShell::~ViewShell()
{
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
SetActiveWindow (NULL);
// The sub shell manager will be destroyed in a short time.
// Disable the switching of object bars now anyway just in case
// the object bars would access invalid data when switched.
GetObjectBarManager().DisableObjectBarSwitching();
// Dispose the controller of this sub-shell. The disposing event sent
// to the main controller will result in it asking the sub shell manager
// for the controller of the new main sub-shell.
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
Reference<lang::XComponent> xComponent (mpController.getRef(), UNO_QUERY);
if (xComponent.is())
xComponent->dispose();
SfxViewShell* pViewShell = GetViewShell();
OSL_ASSERT (pViewShell!=NULL);
CancelSearching();
// Stop listening for window events.
// GetParentWindow()->RemoveEventListener (
// LINK(this,ViewShell,FrameWindowEventListener));
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);
delete pZoomList;
}
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
{
SfxViewShell* pViewShell = GetViewShell();
OSL_ASSERT (pViewShell!=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
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
pZoomList = 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(bCenterAllowed);
mpContentWindow->SetViewShell(this);
mpContentWindow->Show();
// Create scroll bars and the filler between the scroll bars.
mpHorizontalScrollBar.reset (new ScrollBar(
GetParentWindow(),
WinBits(WB_HSCROLL | WB_DRAG)));
mpHorizontalScrollBar->EnableRTL (FALSE);
mpHorizontalScrollBar->SetRange(Range(0, 32000));
mpHorizontalScrollBar->SetScrollHdl(LINK(this, ViewShell, HScrollHdl));
mpHorizontalScrollBar->Show();
mpVerticalScrollBar.reset (new ScrollBar(
GetParentWindow(),
WinBits(WB_VSCROLL | WB_DRAG)));
mpVerticalScrollBar->SetRange(Range(0, 32000));
mpVerticalScrollBar->SetScrollHdl(LINK(this, ViewShell, VScrollHdl));
mpVerticalScrollBar->Show();
aScrBarWH = Size(mpVerticalScrollBar->GetSizePixel().Width(),
mpHorizontalScrollBar->GetSizePixel().Height());
mpScrollBarBox.reset(new ScrollBarBox(
GetParentWindow(),
WB_SIZEABLE));
mpScrollBarBox->Show();
2000-09-18 16:07:07 +00:00
String aName( RTL_CONSTASCII_USTRINGPARAM( "ViewShell" ));
SetName (aName);
GetDoc()->StartOnlineSpelling(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();
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 up the object bar manager.
mpObjectBarManager = ::std::auto_ptr<ObjectBarManager> (
new ObjectBarManager (*this));
GetObjectBarManager().RegisterDefaultFactory (
::std::auto_ptr<ObjectBarManager::ObjectBarFactory>(
new ViewShellObjectBarFactory(*this)));
GetObjectBarManager().Clear ();
GetObjectBarManager().EnableObjectBarSwitching();
2000-09-18 16:07:07 +00:00
}
void ViewShell::Init (void)
2000-09-18 16:07:07 +00:00
{
SfxViewShell* pViewShell = GetViewShell();
OSL_ASSERT (pViewShell!=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
void ViewShell::Exit (void)
{
Deactivate (TRUE);
// Enable object bar switching so that Clear() deactivates every object
// bar cleanly.
GetObjectBarManager().EnableObjectBarSwitching();
GetObjectBarManager().Clear();
}
2000-09-18 16:07:07 +00:00
/*************************************************************************
|*
|* Diese Methode deaktiviert und loescht die aktuelle Funktion. Falls es
|* eine alte Funktion gibt, wird sie als aktuelle Funktion eingesetzt und
|* aktiviert.
|*
\************************************************************************/
void ViewShell::Cancel()
2000-09-18 16:07:07 +00:00
{
if (pFuActual && pFuActual != pFuOld)
{
FuPoor* pTemp = pFuActual;
pFuActual = NULL;
pTemp->Deactivate();
delete pTemp;
}
if (pFuOld)
{
pFuActual = pFuOld;
pFuActual->Activate();
}
}
/*************************************************************************
|*
|* Aktivierung: Arbeitsfenster den Fokus zuweisen
|*
\************************************************************************/
void ViewShell::Activate(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
// den Focus hat (#29682#):
//GetViewFrame()->GetWindow().GrabFocus();
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(TRUE);
if (mpVerticalRuler.get() != NULL)
mpVerticalRuler->SetActive(TRUE);
2000-09-18 16:07:07 +00:00
if (bIsMDIActivate)
{
// Damit der Navigator auch einen aktuellen Status bekommt
SfxBoolItem aItem( SID_NAVIGATOR_INIT, 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_EFFECT_STATE, TRUE, FALSE );
rBindings.Invalidate( SID_3D_STATE, TRUE, FALSE );
2000-09-18 16:07:07 +00:00
if (pFuSlideShow && !pFuSlideShow->IsTerminated() )
{
pFuSlideShow->Activate();
}
if (pFuActual)
{
pFuActual->Activate();
}
if(!GetDocSh()->IsUIActive())
2001-09-13 10:22:42 +00:00
UpdatePreview( GetActualPage(), TRUE );
2000-09-18 16:07:07 +00:00
::sd::View* pView = GetView();
2000-09-18 16:07:07 +00:00
if (pView)
{
pView->ShowMarkHdl(NULL);
}
}
ReadFrameViewData( pFrameView );
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* pCli )
{
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
void ViewShell::UIDeactivated( SfxInPlaceClient* pCli )
{
OSL_ASSERT (GetViewShell()!=NULL);
2000-09-18 16:07:07 +00:00
}
/*************************************************************************
|*
|* Deaktivierung
|*
\************************************************************************/
void ViewShell::Deactivate(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 );
SfxViewShell* pViewShell = GetViewShell();
OSL_ASSERT (pViewShell!=NULL);
2000-09-18 16:07:07 +00:00
// View-Attribute an der FrameView merken
WriteFrameViewData();
if (bIsMDIActivate)
{
if (pFuSlideShow)
{
pFuSlideShow->Deactivate();
}
if (pFuActual)
{
pFuActual->Deactivate();
}
// ggfs. Preview vom Kontext loesen
SfxChildWindow* pPreviewChildWindow =
pViewShell->GetViewFrame()->GetChildWindow(
PreviewChildWindow::GetChildWindowId());
2000-09-18 16:07:07 +00:00
if (pPreviewChildWindow)
{
PreviewWindow* pPreviewWin =
static_cast<PreviewWindow*>(pPreviewChildWindow->GetWindow());
if (pPreviewWin && pPreviewWin->GetDoc() == GetDoc())
2000-09-18 16:07:07 +00:00
{
pPreviewWin->SetContext(NULL, 0, NULL);
}
}
::sd::View* pView = GetView();
2000-09-18 16:07:07 +00:00
if (pView)
{
pView->HideMarkHdl(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 (mpHorizontalRuler.get() != NULL)
mpHorizontalRuler->SetActive(FALSE);
if (mpVerticalRuler.get() != NULL)
mpVerticalRuler->SetActive(FALSE);
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
|*
\************************************************************************/
BOOL ViewShell::KeyInput(const KeyEvent& rKEvt, ::sd::Window* pWin)
2000-09-18 16:07:07 +00:00
{
BOOL bReturn(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
{
// #76008#
// give key input first to SfxViewShell to give CTRL+Key
// (e.g. CTRL+SHIFT+'+', to front) priority.
OSL_ASSERT (GetViewShell()!=NULL);
bReturn = GetViewShell()->KeyInput(rKEvt);
2000-09-18 16:07:07 +00:00
}
if(!bReturn)
2000-09-18 16:07:07 +00:00
{
if(pFuSlideShow)
{
bReturn = pFuSlideShow->KeyInput(rKEvt);
}
else if(pFuActual)
{
bReturn = pFuActual->KeyInput(rKEvt);
}
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)
{
// 3D-Kontext wieder zerstoeren
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
Base3D* pBase3D = (Base3D*) GetActiveWindow()->Get3DContext();
2000-09-18 16:07:07 +00:00
if (pBase3D)
{
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
pBase3D->Destroy(GetActiveWindow());
2000-09-18 16:07:07 +00:00
}
InvalidateWindows();
bReturn = TRUE;
}
}
return(bReturn);
}
/*************************************************************************
|*
|* MouseButtonDown event
|*
\************************************************************************/
void ViewShell::MouseButtonDown(const MouseEvent& rMEvt, ::sd::Window* pWin)
2000-09-18 16:07:07 +00:00
{
if ( pWin && !pWin->HasFocus() )
{
pWin->GrabFocus();
SetActiveWindow(pWin);
// GetViewFrame()->GetWindow().GrabFocus();
}
// 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 (pFuSlideShow)
{
pFuSlideShow->MouseButtonDown(rMEvt);
}
else if (pFuActual)
{
pFuActual->MouseButtonDown(rMEvt);
}
}
/*************************************************************************
|*
|* MouseMove event
|*
\************************************************************************/
void ViewShell::MouseMove(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 (pFuSlideShow)
{
pFuSlideShow->MouseMove(rMEvt);
}
else if (pFuActual)
{
pFuActual->MouseMove(rMEvt);
}
}
/*************************************************************************
|*
|* 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 (pFuSlideShow)
{
pFuSlideShow->MouseButtonUp(rMEvt);
}
else if (pFuActual)
{
pFuActual->MouseButtonUp(rMEvt);
}
}
/*************************************************************************
|*
|* Command event
|*
\************************************************************************/
void ViewShell::Command(const CommandEvent& rCEvt, ::sd::Window* pWin)
2000-09-18 16:07:07 +00:00
{
BOOL bDone = FALSE;
switch( rCEvt.GetCommand() )
{
case( COMMAND_WHEEL ):
case( COMMAND_STARTAUTOSCROLL ):
case( COMMAND_AUTOSCROLL ):
{
const CommandWheelData* pData = rCEvt.GetWheelData();
if( pData && pData->IsMod1() )
{
if( !GetDocSh()->IsUIActive() )
{
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
const long nOldZoom = GetActiveWindow()->GetZoom();
long nNewZoom;
if( pData->GetDelta() < 0L )
nNewZoom = Max( (long) pWin->GetMinZoom(), (long)(nOldZoom - DELTA_ZOOM) );
else
nNewZoom = Min( (long) pWin->GetMaxZoom(), (long)(nOldZoom + DELTA_ZOOM) );
SetZoom( nNewZoom );
Invalidate( SID_ATTR_ZOOM );
bDone = TRUE;
}
2000-09-18 16:07:07 +00:00
}
else
{
ScrollBar* pWinHScroll = NULL;
ScrollBar* pWinVScroll = 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 (mpContentWindow.get() == pWin)
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
bDone = pWin->HandleScrollCommand( rCEvt,
mpHorizontalScrollBar.get(),
mpVerticalScrollBar.get());
2000-09-18 16:07:07 +00:00
}
}
}
break;
default:
break;
}
if( !bDone )
{
if (pFuSlideShow)
{
pFuSlideShow->Command(rCEvt);
}
else if (pFuActual)
{
pFuActual->Command(rCEvt);
}
}
}
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
{
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
&& mpContentWindow.get() != NULL
&& (pFuSlideShow==NULL
|| pFuSlideShow->GetAnimationMode()==ANIMATIONMODE_PREVIEW))
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(TRUE);
mpVerticalRuler->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
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.reset(CreateHRuler(GetActiveWindow(), TRUE));
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(TRUE);
mpHorizontalRuler->Show();
2000-09-18 16:07:07 +00:00
}
}
}
/*
SvBorder aBorder (
bHasRuler && pVRulerArray[0]!=NULL
? pVRulerArray[0]->GetSizePixel().Width()
: 0,
bHasRuler && pHRulerArray[0]!=NULL
? pHRulerArray[0]->GetSizePixel().Height()
: 0,
aScrBarWH.Width(),
aScrBarWH.Height());
GetViewShellBase().SetBorderPixel (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
BOOL ViewShell::HasRuler (void)
{
return mbHasRulers;
}
void ViewShell::Resize (const Point& rPos, const Size& rSize)
{
SetupRulers ();
// AdjustPosSizePixel(rPos, rSize);
// Make sure that the new size is not degenerate.
if ( !rSize.Width() || !rSize.Height() )
return;
// Remember the new position and size.
aViewPos = rPos;
aViewSize = rSize;
// Rearrange the UI elements to take care of the new position and size.
ArrangeGUIElements ();
// end of included AdjustPosSizePixel.
Size aS (GetParentWindow()->GetOutputSizePixel());
Size aVisSizePixel = GetActiveWindow()->GetOutputSizePixel();
Rectangle aVisArea = GetParentWindow()->PixelToLogic(
Rectangle( Point(0,0), aVisSizePixel));
Rectangle aCurrentVisArea (GetDocSh()->GetVisArea(ASPECT_CONTENT));
Rectangle aWindowRect = GetActiveWindow()->LogicToPixel(aCurrentVisArea);
if (GetDocSh()->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED
&& IsMainViewShell())
{
// GetDocSh()->SetVisArea(aVisArea);
}
// VisAreaChanged(aVisArea);
::sd::View* pView = GetView();
if (pView)
{
pView->VisAreaChanged(GetActiveWindow());
}
}
SvBorder ViewShell::GetBorder (bool bOuterResize)
{
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
{
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
aBorder.Bottom() = aScrBarWH.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
{
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
aBorder.Right() = aScrBarWH.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)
{
bool bVisible = mpContentWindow->IsVisible();
static bool bFunctionIsRunning = false;
if (bFunctionIsRunning)
return;
bFunctionIsRunning = 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 = aViewPos.X();
long nTop = aViewPos.Y();
long nRight = aViewPos.X() + aViewSize.Width();
long nBottom = aViewPos.Y() + aViewSize.Height();
// 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 -= aScrBarWH.Height();
mpHorizontalScrollBar->SetPosSizePixel (
Point(nLocalLeft,nBottom),
Size(nRight-nLocalLeft-aScrBarWH.Width(),aScrBarWH.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
{
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
nRight -= aScrBarWH.Width();
mpVerticalScrollBar->SetPosSizePixel (
Point(nRight,nTop),
Size (aScrBarWH.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)
if (mpHorizontalScrollBar.get()!=NULL
&& mpHorizontalScrollBar->IsVisible()
&& mpVerticalScrollBar.get()!=NULL
&& mpVerticalScrollBar->IsVisible())
{
mpScrollBarBox->Show();
mpScrollBarBox->SetPosSizePixel(Point(nRight, nBottom), aScrBarWH);
}
else
mpScrollBarBox->Hide();
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
}
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 =
pFuSlideShow != NULL
&& ! pFuSlideShow->IsTerminated()
&& ! pFuSlideShow->IsFullScreen()
&& pFuSlideShow->GetAnimationMode() == ANIMATIONMODE_SHOW;
if ( ! bSlideShowActive)
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
// der Sfx darf immer nur das erste Fenster setzen
// SetActiveWindow(mpContentWindow.get());
// Sfx loest ein Resize fuer die Gesamtgroesse aus; bei aktiven
// Splittern darf dann nicht der minimale Zoom neu berechnet
// werden. Falls kein Splitter aktiv ist, wird die Berechnung am
// Ende der Methode nachgeholt
SfxViewShell* pViewShell = GetViewShell();
OSL_ASSERT (pViewShell!=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 (IsMainViewShell())
{
// For the center pane the border is passed to the
// ViewShellBase so that it can place it inside or outside a
// fixed rectangle and calculate the size of the content window
// accordingly.
// SetActiveWindow (mpContentWindow.get());
}
else
{
// For panes other than the center pane we set the size of the
// content window directly by subtracting the border from the
// box of the parent window.
Rectangle aBox (
Point(0,0),
GetParentWindow()->GetSizePixel());
mpContentWindow->SetPosSizePixel(
aBox.TopLeft(),
aBox.GetSize());
}
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(
aViewPos,
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
Size(aViewSize.Width()-aScrBarWH.Width(),
aViewSize.Height()-aScrBarWH.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();
bFunctionIsRunning = 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( 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.
*/
USHORT ViewShell::PrepareClose (BOOL bUI, BOOL bForBrowsing)
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
USHORT nResult = 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
FmFormShell* pFormShell = static_cast<FmFormShell*>(
GetObjectBarManager().GetObjectBar(RID_FORMLAYER_TOOLBOX));
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
2001-09-13 10:22:42 +00:00
/*************************************************************************
|*
|* Update preview context
|*
\************************************************************************/
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* pPage, BOOL bInit)
2001-09-13 10:22:42 +00:00
{
SfxChildWindow* pPreviewChildWindow = GetViewFrame()->GetChildWindow(
PreviewChildWindow::GetChildWindowId() );
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 (pPreviewChildWindow!=NULL && pPage!=NULL)
2001-09-13 10:22:42 +00:00
{
PreviewWindow* pPreviewWin = static_cast<PreviewWindow*>(
pPreviewChildWindow->GetWindow());
if ( pPreviewWin && ( bInit || pPreviewWin->GetDoc() == GetDoc() ) )
2001-09-13 10:22:42 +00:00
{
USHORT nSdPageNo = ( pPage->GetPageNum() - 1 ) / 2;
pPreviewWin->SetContext(GetDoc(), nSdPageNo, pFrameView);
2001-09-13 10:22:42 +00:00
}
}
}
SfxUndoManager* ViewShell::ImpGetUndoManager (void) const
{
// Return the undo manager of the currently active object bar.
SfxShell* pObjectBar = GetObjectBarManager().GetTopObjectBar();
// The object bar may be temporarily missing, i.e. when one is
// replaced by another. Return a NULL pointer in this case.
if (pObjectBar != NULL)
return pObjectBar->GetUndoManager();
else
return NULL;
}
void ViewShell::ImpGetUndoStrings(SfxItemSet &rSet) const
{
SfxUndoManager* pUndoManager = ImpGetUndoManager();
if(pUndoManager)
{
sal_uInt16 nCount(pUndoManager->GetUndoActionCount());
if(nCount)
{
// prepare list
List aStringList;
sal_uInt16 a;
for( a = 0; a < nCount; a++)
{
// generate one String in list per undo step
String* pInsertString = new String(pUndoManager->GetUndoActionComment(a));
aStringList.Insert(pInsertString, LIST_APPEND);
}
// set item
rSet.Put(SfxStringListItem(SID_GETUNDOSTRINGS, &aStringList));
// delete Strings again
for(a = 0; a < nCount; a++)
delete (String*)aStringList.GetObject(a);
}
else
{
rSet.DisableItem(SID_GETUNDOSTRINGS);
}
}
}
2002-03-08 14:28:48 +00:00
// -----------------------------------------------------------------------------
void ViewShell::ImpGetRedoStrings(SfxItemSet &rSet) const
{
SfxUndoManager* pUndoManager = ImpGetUndoManager();
if(pUndoManager)
{
sal_uInt16 nCount(pUndoManager->GetRedoActionCount());
if(nCount)
{
// prepare list
List aStringList;
sal_uInt16 a;
for( a = 0; a < nCount; a++)
{
// generate one String in list per undo step
String* pInsertString = new String(pUndoManager->GetRedoActionComment(a));
aStringList.Insert(pInsertString, LIST_APPEND);
}
// set item
rSet.Put(SfxStringListItem(SID_GETREDOSTRINGS, &aStringList));
// delete Strings again
for(a = 0; a < nCount; a++)
delete (String*)aStringList.GetObject(a);
}
else
{
rSet.DisableItem(SID_GETREDOSTRINGS);
}
}
}
2002-03-08 14:28:48 +00:00
// -----------------------------------------------------------------------------
void ViewShell::ImpSidUndo(BOOL bDrawViewShell, SfxRequest& rReq)
{
SfxUndoManager* 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)
{
if(bDrawViewShell)
{
List* pList = GetDoc()->GetDeletedPresObjList();
if( pList )
pList->Clear();
}
sal_uInt16 nCount(pUndoManager->GetUndoActionCount());
if(nCount >= nNumber)
{
// #94637# when UndoStack is cleared by ModifyPageUndoAction
// the nCount may have changed, so test GetUndoActionCount()
while(nNumber-- && pUndoManager->GetUndoActionCount())
{
pUndoManager->Undo();
}
}
// #91081# 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(BOOL bDrawViewShell, SfxRequest& rReq)
{
SfxUndoManager* 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)
{
// #94637# when UndoStack is cleared by ModifyPageRedoAction
// the nCount may have changed, so test GetRedoActionCount()
while(nNumber-- && pUndoManager->GetRedoActionCount())
{
pUndoManager->Redo();
}
}
// #91081# 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
{
USHORT nSlot = rReq.GetSlot();
switch( nSlot )
2002-03-08 14:28:48 +00:00
{
case SID_MAIL_SCROLLBODY_PAGEDOWN:
{
if( pFuActual )
{
pFuActual->ScrollStart();
ScrollLines( 0, -1 );
pFuActual->ScrollEnd();
}
rReq.Done();
}
break;
case SID_OUTPUT_QUALITY_COLOR:
case SID_OUTPUT_QUALITY_GRAYSCALE:
case SID_OUTPUT_QUALITY_BLACKWHITE:
case SID_OUTPUT_QUALITY_CONTRAST:
{
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 );
pFrameView->SetDrawMode( nMode );
// #110094#-7
// GetView()->ReleaseMasterPagePaintCache();
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
case SID_PREVIEW_QUALITY_COLOR:
case SID_PREVIEW_QUALITY_GRAYSCALE:
case SID_PREVIEW_QUALITY_BLACKWHITE:
case SID_PREVIEW_QUALITY_CONTRAST:
{
ULONG nMode = PREVIEW_DRAWMODE_COLOR;
switch( nSlot )
2002-03-08 14:28:48 +00:00
{
case SID_PREVIEW_QUALITY_COLOR:
nMode = PREVIEW_DRAWMODE_COLOR;
break;
case SID_PREVIEW_QUALITY_GRAYSCALE:
nMode = PREVIEW_DRAWMODE_GRAYSCALE;
break;
case SID_PREVIEW_QUALITY_BLACKWHITE:
nMode = PREVIEW_DRAWMODE_BLACKWHITE;
break;
case SID_PREVIEW_QUALITY_CONTRAST:
nMode = PREVIEW_DRAWMODE_CONTRAST;
break;
2002-03-08 14:28:48 +00:00
}
SfxChildWindow* pPreviewChildWindow =
GetViewFrame()->GetChildWindow(
PreviewChildWindow::GetChildWindowId());
PreviewWindow* pPreviewWindow = static_cast<PreviewWindow*>(
pPreviewChildWindow ? pPreviewChildWindow->GetWindow() : NULL);
FuSlideShow* pShow = pPreviewWindow!=NULL
? pPreviewWindow->GetSlideShow()
: NULL;
ShowWindow* pShowWindow = const_cast<ShowWindow*>(
pShow!=NULL ? pShow->GetShowWindow() : NULL);
2002-03-08 14:28:48 +00:00
if( pShowWindow )
{
pShowWindow->SetDrawMode( nMode );
pShow->Resize( pShowWindow->GetOutputSizePixel() );
pShowWindow->Invalidate();
}
pFrameView->SetPreviewDrawMode( nMode );
SdOptions* pOptions = SD_MOD()->GetSdOptions (
GetDoc()->GetDocumentType() );
2002-03-08 14:28:48 +00:00
pOptions->SetPreviewQuality( nMode );
Invalidate();
rReq.Done();
}
break;
}
}
/** 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* pWindow)
{
return ::com::sun::star::uno::Reference<
::com::sun::star::accessibility::XAccessible> ();
}
::sd::WindowUpdater* ViewShell::GetWindowUpdater (void) const
{
return mpWindowUpdater.get();
}
/** The implementation has to change in order to take care of at least
one current/main/default window per ViewShell object. Of these
there will usually be more than one for every ViewShellBase object.
*/
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
/*::Window* ViewShell::GetWindow (void) const
{
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
// return GetViewShell()->GetWindow();
return const_cast<ViewShell*>(this)->GetActiveWindow();
}
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
*/
ViewShellBase& ViewShell::GetViewShellBase (void) const
{
return *static_cast<ViewShellBase*>(GetViewShell());
}
DrawController* ViewShell::GetController (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 mpController.get();
}
ViewShell::ShellType ViewShell::GetShellType (void) const
{
return meShellType;
}
/*
IMPL_LINK(ViewShell, FrameWindowEventListener, VclSimpleEvent*, pEvent )
{
if (pEvent!=NULL && pEvent->ISA(VclWindowEvent))
{
VclWindowEvent* pWindowEvent = static_cast<VclWindowEvent*>(pEvent);
switch (pWindowEvent->GetId())
{
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 VCLEVENT_WINDOW_SHOW:
// case VCLEVENT_WINDOW_ACTIVATE:
case VCLEVENT_WINDOW_RESIZE:
{
if ( ! GetViewFrame()->GetFrame()->IsInPlace())
{
// Forward the event only when in in-place mode
// which is handled differently (InnerResize from
// the ViewShellBase class is forwarded).
::Window* pWindow = pWindowEvent->GetWindow();
if (pWindow != 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
Resize (Point(),
pWindow->GetOutputSizePixel());
}
}
break;
}
}
return 0;
}
*/
DrawDocShell* ViewShell::GetDocSh (void) const
{
return GetViewShellBase().GetDocShell();
}
SdDrawDocument* ViewShell::GetDoc (void) const
{
return GetViewShellBase().GetDocument();
}
ErrCode ViewShell::DoVerb (long nVerb)
{
return ERRCODE_NONE;
}
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::SetCurrentFunction (FuPoor* pFunction)
{
pFuActual = pFunction;
}
void ViewShell::SetOldFunction (FuPoor* pFunction)
{
pFuOld = pFunction;
}
void ViewShell::SetSlideShowFunction (FuSlideShow* pFunction)
{
pFuSlideShow = pFunction;
}
bool ViewShell::IsMainViewShell (void) const
{
return GetViewShellBase().GetMainViewShell() == this;
}
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
ObjectBarManager& ViewShell::GetObjectBarManager (void) const
{
return *mpObjectBarManager.get();
}
void ViewShell::GetLowerShellList (::std::vector<SfxShell*>& rShellList) const
{
mpObjectBarManager->GetLowerShellList (rShellList);
}
void ViewShell::GetUpperShellList (::std::vector<SfxShell*>& rShellList) const
{
mpObjectBarManager->GetUpperShellList (rShellList);
}
::sd::Window* ViewShell::GetActiveWindow (void) const
{
return mpActiveWindow;
}
void ViewShell::Paint (const Rectangle& rRect, ::sd::Window* pWin)
{
}
void ViewShell::Draw(OutputDevice &rDev, const Region &rReg)
{
}
ZoomList* ViewShell::GetZoomList (void)
{
return pZoomList;
}
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 );
}
} // 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* pParentWindow,
::sd::FrameView* pFrameView)
{
SfxShell* pShell = NULL;
ShellCache::iterator aI (maShellCache.find(nId));
if (aI == maShellCache.end())
{
::sd::View* pView = mrViewShell.GetView();
switch (nId)
{
case RID_DRAW_OBJ_TOOLBOX:
if (mrViewShell.GetShellType() == ::sd::ViewShell::ST_DRAW)
pShell = new ::sd::DrawObjectBar(&mrViewShell, pView);
else
pShell = new ::sd::ImpressObjectBar(&mrViewShell, pView);
break;
case RID_BEZIER_TOOLBOX:
pShell = new ::sd::BezierObjectBar(&mrViewShell, pView);
break;
case RID_GLUEPOINTS_TOOLBOX:
pShell = new ::sd::GluePointsObjectBar(&mrViewShell, pView);
break;
case RID_DRAW_TEXT_TOOLBOX:
pShell = new ::sd::TextObjectBar(
&mrViewShell, mrViewShell.GetDoc()->GetPool(), pView);
break;
case RID_FORMLAYER_TOOLBOX:
pShell = new FmFormShell(
&mrViewShell.GetViewShellBase(), 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;
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;
default:
pShell = NULL;
break;
}
maShellCache[nId] = pShell;
}
else
pShell = aI->second;
return pShell;
}
void ViewShellObjectBarFactory::ReleaseShell (SfxShell* pShell)
{
// Do nothing because the shells are stored in a cache.
}
} // end of anonymous namespace