Files
libreoffice/embeddedobj/source/general/docholder.cxx

1390 lines
50 KiB
C++
Raw Normal View History

2003-10-27 12:05:38 +00:00
/*************************************************************************
*
* $RCSfile: docholder.cxx,v $
*
2005-03-16 12:05:27 +00:00
* $Revision: 1.16 $
2003-10-27 12:05:38 +00:00
*
2005-03-16 12:05:27 +00:00
* last change: $Author: obo $ $Date: 2005-03-16 13:05:27 $
2003-10-27 12:05:38 +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 ): _______________________________________
*
*
************************************************************************/
#ifndef _COM_SUN_STAR_EMBED_ASPECTS_HPP_
#include <com/sun/star/embed/Aspects.hpp>
#endif
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
#ifndef _COM_SUN_STAR_UNO_XCOMPONENTCONTEXT_HPP_
#include <com/sun/star/uno/XComponentContext.hpp>
#endif
2003-10-27 12:05:38 +00:00
#ifndef _COM_SUN_STAR_FRAME_XCOMPONENTLOADER_HPP_
#include <com/sun/star/frame/XComponentLoader.hpp>
#endif
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
#ifndef _COM_SUN_STAR_FRAME_XSYNCHRONOUSFRAMELOADER_HPP_
#include <com/sun/star/frame/XSynchronousFrameLoader.hpp>
#endif
2003-10-27 12:05:38 +00:00
#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#endif
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
#ifndef _COM_SUN_STAR_LANG_XSINGLESERVICEFACTORY_HPP_
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#endif
#ifndef _COM_SUN_STAR_LANG_XSINGLECOMPONENTFACTORY_HPP_
#include <com/sun/star/lang/XSingleComponentFactory.hpp>
#endif
2003-10-27 12:05:38 +00:00
#ifndef _COM_SUN_STAR_UTIL_XCLOSEBROADCASTER_HPP_
#include <com/sun/star/util/XCloseBroadcaster.hpp>
#endif
#ifndef _COM_SUN_STAR_UTIL_XCLOSEABLE_HPP_
2003-10-29 07:14:39 +00:00
#include <com/sun/star/util/XCloseable.hpp>
2003-10-27 12:05:38 +00:00
#endif
#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACESS_HPP_
#include <com/sun/star/container/XNameAccess.hpp>
#endif
#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
#include <com/sun/star/beans/XPropertySet.hpp>
#endif
#ifndef _COM_SUN_STAR_FRAME_XMODEL_HPP_
#include <com/sun/star/frame/XModel.hpp>
#endif
#ifndef _COM_SUN_STAR_FRAME_XDESKTOP_HPP_
#include <com/sun/star/frame/XDesktop.hpp>
#endif
#ifndef _COM_SUN_STAR_FRAME_XFRAMESSUPPLIER_HPP_
#include <com/sun/star/frame/XFramesSupplier.hpp>
#endif
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
#ifndef _COM_SUN_STAR_FRAME_XDISPATCHHELPER_HPP_
#include <com/sun/star/frame/XDispatchHelper.hpp>
#endif
2003-10-27 12:05:38 +00:00
#ifndef _COM_SUN_STAR_FRAME_FRAMESEARCHFLAG_HPP_
#include <com/sun/star/frame/FrameSearchFlag.hpp>
#endif
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
#ifndef _COM_SUN_STAR_FRAME_XCONTROLLERBORDER_HPP_
#include <com/sun/star/frame/XControllerBorder.hpp>
#endif
2003-10-27 12:05:38 +00:00
#ifndef _COM_SUN_STAR_UTIL_XMODIFYBROADCASTER_HPP_
#include <com/sun/star/util/XModifyBroadcaster.hpp>
#endif
#ifndef _COM_SUN_STAR_FRAME_XDISPATCHPROVIDERINTERCEPTION_HPP_
#include <com/sun/star/frame/XDispatchProviderInterception.hpp>
#endif
#ifndef _COM_SUN_STAR_AWT_XTOPWINDOW_HPP_
#include <com/sun/star/awt/XTopWindow.hpp>
#endif
#ifndef _COM_SUN_STAR_AWT_POSSIZE_HPP_
#include <com/sun/star/awt/PosSize.hpp>
#endif
#ifndef _COM_SUN_STAR_AWT_XVIEW_HPP_
#include <com/sun/star/awt/XView.hpp>
#endif
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
#ifndef _COM_SUN_STAR_AWT_WINDOWATTRIBUTE_HPP_
#include <com/sun/star/awt/WindowAttribute.hpp>
#endif
#ifndef _COM_SUN_STAR_AWT_VCLWINDOWPEERATTRIBUTE_HPP_
#include <com/sun/star/awt/VclWindowPeerAttribute.hpp>
#endif
2003-10-27 12:05:38 +00:00
#ifndef _COM_SUN_STAR_BRIDGE_XBRIDGESUPPLIER2_HPP_
#include <com/sun/star/bridge/XBridgeSupplier2.hpp>
#endif
#ifndef _COM_SUN_STAR_BRIDGE_MODELDEPENDENT_HPP_
#include <com/sun/star/bridge/ModelDependent.hpp>
#endif
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
#ifndef _COM_SUN_STAR_EMBED_XHATCHWINDOW_HPP_
#include <com/sun/star/embed/XHatchWindow.hpp>
#endif
#ifndef _COM_SUN_STAR_EMBED_XHATCHWINDOWFACTORY_HPP_
#include <com/sun/star/embed/XHatchWindowFactory.hpp>
#endif
#ifndef _COM_SUN_STAR_EMBED_XINPLACECLIENT_HPP_
#include <com/sun/star/embed/XInplaceClient.hpp>
#endif
#ifndef _COM_SUN_STAR_FRAME_XLAYOUTMANAGER_HPP_
#include <com/sun/star/frame/XLayoutManager.hpp>
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
#endif
#ifndef _COM_SUN_STAR_FRAME_XMENUBARMERGINGACCEPTOR_HPP_
#include <com/sun/star/frame/XMenuBarMergingAcceptor.hpp>
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
#endif
#ifndef _COM_SUN_STAR_FRAME_XMODULEMANAGER_HPP_
#include <com/sun/star/frame/XModuleManager.hpp>
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
#endif
#ifndef _COM_SUN_STAR_UI_XDOCKINGAREAACCEPTOR_HPP_
#include <com/sun/star/ui/XDockingAreaAcceptor.hpp>
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
#endif
#ifndef _COM_SUN_STAR_UI_XUIELEMENTSETTINGS_HPP_
#include <com/sun/star/ui/XUIElementSettings.hpp>
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
#endif
#ifndef _COM_SUN_STAR_UI_XCONFIGURATIONMANAGER_HPP_
#include <com/sun/star/ui/XUIConfigurationManager.hpp>
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
#endif
#ifndef _COM_SUN_STAR_UI_XUICONFIGURATIONMANAGERSUPPLIER_HPP_
#include <com/sun/star/ui/XUIConfigurationManagerSupplier.hpp>
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
#endif
#ifndef _COM_SUN_STAR_UI_XMODULEUICONFIGURATIONMANAGERSUPPLIER_HPP_
#include <com/sun/star/ui/XModuleUIConfigurationManagerSupplier.hpp>
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
#endif
2003-10-27 12:05:38 +00:00
#ifndef _OSL_DIAGNOSE_H_
#include <osl/diagnose.h>
#endif
#ifndef _RTL_PROCESS_H_
#include <rtl/process.h>
#endif
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
#include <comphelper/processfactory.hxx>
2003-10-27 12:05:38 +00:00
#include "docholder.hxx"
#include "commonembobj.hxx"
#include "intercept.hxx"
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
// #include <toolkit/helper/vclunohelper.hxx>
// #include <vcl/window.hxx>
#define HATCH_BORDER_WIDTH 4
2003-10-27 12:05:38 +00:00
using namespace ::com::sun::star;
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//===========================================================================
class IntCounterGuard {
sal_Int32& m_nFlag;
public:
IntCounterGuard( sal_Int32& nFlag )
: m_nFlag( nFlag )
{
m_nFlag++;
}
~IntCounterGuard()
{
if ( m_nFlag )
m_nFlag--;
}
};
//===========================================================================
2003-10-27 12:05:38 +00:00
DocumentHolder::DocumentHolder( const uno::Reference< lang::XMultiServiceFactory >& xFactory,
OCommonEmbeddedObject* pEmbObj )
: m_xFactory( xFactory ),
m_pEmbedObj( pEmbObj ),
m_pInterceptor( NULL ),
m_bReadOnly( sal_False ),
2003-12-02 13:33:08 +00:00
m_bWaitForClose( sal_False ),
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
m_bAllowClosing( sal_False ),
m_bDesktopTerminated( sal_False ),
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
m_nNoBorderResizeReact( 0 )
2003-10-27 12:05:38 +00:00
{
const ::rtl::OUString aServiceName ( RTL_CONSTASCII_USTRINGPARAM ( "com.sun.star.frame.Desktop" ) );
uno::Reference< frame::XDesktop > xDesktop( m_xFactory->createInstance( aServiceName ), uno::UNO_QUERY );
if ( xDesktop.is() )
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
{
m_refCount++;
try
{
xDesktop->addTerminateListener( this );
}
catch ( uno::Exception& )
{
}
m_refCount--;
}
2003-10-27 12:05:38 +00:00
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//---------------------------------------------------------------------------
2003-10-27 12:05:38 +00:00
DocumentHolder::~DocumentHolder()
{
m_refCount++; // to allow deregistration as a listener
2003-10-27 12:05:38 +00:00
if( m_xFrame.is() )
CloseFrame();
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
if ( m_xComponent.is() )
{
try {
CloseDocument( sal_True, sal_False );
} catch( uno::Exception& ) {}
}
2003-10-27 12:05:38 +00:00
if ( m_pInterceptor )
{
m_pInterceptor->DisconnectDocHolder();
m_pInterceptor->release();
}
if ( !m_bDesktopTerminated )
FreeOffice();
2003-10-27 12:05:38 +00:00
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//---------------------------------------------------------------------------
2003-10-27 12:05:38 +00:00
void DocumentHolder::CloseFrame()
{
uno::Reference< util::XCloseBroadcaster > xCloseBroadcaster( m_xFrame, uno::UNO_QUERY );
if ( xCloseBroadcaster.is() )
xCloseBroadcaster->removeCloseListener( ( util::XCloseListener* )this );
uno::Reference<util::XCloseable> xCloseable(
m_xFrame,uno::UNO_QUERY );
if( xCloseable.is() )
try {
xCloseable->close( sal_True );
}
catch( const uno::Exception& ) {
}
else {
uno::Reference<lang::XComponent> xComp( m_xFrame,uno::UNO_QUERY );
if( xComp.is() )
xComp->dispose();
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
uno::Reference< lang::XComponent > xComp( m_xHatchWindow, uno::UNO_QUERY );
if ( xComp.is() )
xComp->dispose();
m_xHatchWindow = uno::Reference< awt::XWindow >();
m_xOwnWindow = uno::Reference< awt::XWindow >();
2003-10-27 12:05:38 +00:00
m_xFrame = uno::Reference< frame::XFrame >();
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//---------------------------------------------------------------------------
2003-10-27 12:05:38 +00:00
void DocumentHolder::FreeOffice()
{
const ::rtl::OUString aServiceName ( RTL_CONSTASCII_USTRINGPARAM ( "com.sun.star.frame.Desktop" ) );
uno::Reference< frame::XDesktop > xDesktop( m_xFactory->createInstance( aServiceName ), uno::UNO_QUERY );
if ( xDesktop.is() )
{
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
xDesktop->removeTerminateListener( this );
2003-10-27 12:05:38 +00:00
uno::Reference< frame::XFramesSupplier > xFramesSupplier( xDesktop, uno::UNO_QUERY );
if ( xFramesSupplier.is() )
{
uno::Reference< frame::XFrames > xFrames = xFramesSupplier->getFrames();
if ( xFrames.is() && !xFrames->hasElements() )
{
try
{
xDesktop->terminate();
}
catch( uno::Exception & )
{}
}
}
}
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//---------------------------------------------------------------------------
void DocumentHolder::CloseDocument( sal_Bool bDeliverOwnership, sal_Bool bWaitForClose )
2003-10-27 12:05:38 +00:00
{
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
uno::Reference< util::XCloseBroadcaster > xBroadcaster( m_xComponent, uno::UNO_QUERY );
2003-10-27 12:05:38 +00:00
if ( xBroadcaster.is() )
{
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
uno::Reference< document::XEventBroadcaster > xEventBroadcaster( m_xComponent, uno::UNO_QUERY );
2003-10-27 12:05:38 +00:00
if ( xEventBroadcaster.is() )
xEventBroadcaster->removeEventListener( ( document::XEventListener* )this );
uno::Reference< util::XCloseable > xCloseable( xBroadcaster, uno::UNO_QUERY );
if ( xCloseable.is() )
{
2003-12-02 13:33:08 +00:00
m_bAllowClosing = sal_True;
m_bWaitForClose = bWaitForClose;
xCloseable->close( bDeliverOwnership );
2003-10-27 12:05:38 +00:00
}
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
m_xComponent = 0;
}
//---------------------------------------------------------------------------
void DocumentHolder::PlaceFrame( const awt::Rectangle& aNewRect )
{
OSL_ENSURE( m_xFrame.is() && m_xOwnWindow.is(),
"The object does not have windows required for inplace mode!" );
//TODO: may need mutex locking???
if ( m_xFrame.is() && m_xOwnWindow.is() )
{
// the frame can be replaced only in inplace mode
frame::BorderWidths aOldWidths;
IntCounterGuard aGuard( m_nNoBorderResizeReact );
do
{
aOldWidths = m_aBorderWidths;
awt::Rectangle aHatchRect = AddBorderToArea( aNewRect );
ResizeWindows_Impl( aHatchRect );
} while ( aOldWidths.Left != m_aBorderWidths.Left
|| aOldWidths.Top != m_aBorderWidths.Top
|| aOldWidths.Right != m_aBorderWidths.Right
|| aOldWidths.Bottom != m_aBorderWidths.Bottom );
m_aObjRect = aNewRect;
}
}
//---------------------------------------------------------------------------
void DocumentHolder::ResizeWindows_Impl( const awt::Rectangle& aHatchRect )
{
OSL_ENSURE( m_xFrame.is() && m_xOwnWindow.is() /*&& m_xHatchWindow.is()*/,
"The object does not have windows required for inplace mode!" );
if ( m_xHatchWindow.is() )
{
m_xOwnWindow->setPosSize( HATCH_BORDER_WIDTH,
HATCH_BORDER_WIDTH,
aHatchRect.Width - 2*HATCH_BORDER_WIDTH,
aHatchRect.Height - 2*HATCH_BORDER_WIDTH,
awt::PosSize::POSSIZE );
// Window* pWindow = VCLUnoHelper::GetWindow( m_xOwnWindow );
m_xHatchWindow->setPosSize( aHatchRect.X,
aHatchRect.Y,
aHatchRect.Width,
aHatchRect.Height,
awt::PosSize::POSSIZE );
}
else
m_xOwnWindow->setPosSize( aHatchRect.X + HATCH_BORDER_WIDTH,
aHatchRect.Y + HATCH_BORDER_WIDTH,
aHatchRect.Width - 2*HATCH_BORDER_WIDTH,
aHatchRect.Height - 2*HATCH_BORDER_WIDTH,
awt::PosSize::POSSIZE );
}
//---------------------------------------------------------------------------
sal_Bool DocumentHolder::SetFrameLMVisibility( const uno::Reference< frame::XFrame >& xFrame, sal_Bool bVisible )
{
sal_Bool bResult = sal_False;
try
{
uno::Reference< ::com::sun::star::frame::XLayoutManager > xLayoutManager;
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
uno::Reference< beans::XPropertySet > xPropSet( xFrame, uno::UNO_QUERY_THROW );
xPropSet->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "LayoutManager" ))) >>= xLayoutManager;
if ( xLayoutManager.is() )
{
xLayoutManager->setVisible( bVisible );
// MBA: locking is done only on the container LM, because it is not about hiding windows, it's about
// giving up control over the component window (and stopping to listen for resize events of the container window)
//if ( bVisible )
// xLayoutManager->unlock();
//else
// xLayoutManager->lock();
bResult = sal_True;
}
}
catch( uno::Exception& )
{}
return bResult;
}
//---------------------------------------------------------------------------
sal_Bool DocumentHolder::ShowInplace( const uno::Reference< awt::XWindowPeer >& xParent,
const awt::Rectangle& aRectangleToShow,
const uno::Reference< frame::XDispatchProvider >& xContDisp )
{
OSL_ENSURE( !m_xFrame.is(), "A frame exists already!" );
if ( !m_xFrame.is() )
{
uno::Reference < frame::XModel > xModel( GetComponent(), uno::UNO_QUERY );
awt::Rectangle aHatchRectangle = AddBorderToArea( aRectangleToShow );
awt::Rectangle aOwnRectangle( HATCH_BORDER_WIDTH,
HATCH_BORDER_WIDTH,
aHatchRectangle.Width - 2*HATCH_BORDER_WIDTH,
aHatchRectangle.Height - 2*HATCH_BORDER_WIDTH );
uno::Reference< awt::XWindow > xHWindow;
uno::Reference< awt::XWindowPeer > xMyParent( xParent );
if ( xModel.is() )
{
uno::Reference< embed::XHatchWindowFactory > xHatchFactory(
m_xFactory->createInstance(
::rtl::OUString::createFromAscii( "com.sun.star.embed.HatchWindowFactory" ) ),
uno::UNO_QUERY );
if ( !xHatchFactory.is() )
throw uno::RuntimeException();
uno::Reference< embed::XHatchWindow > xHatchWindow =
xHatchFactory->createHatchWindowInstance( xParent,
aHatchRectangle,
awt::Size( HATCH_BORDER_WIDTH, HATCH_BORDER_WIDTH ) );
uno::Reference< awt::XWindowPeer > xHatchWinPeer( xHatchWindow, uno::UNO_QUERY );
xHWindow = uno::Reference< awt::XWindow >( xHatchWinPeer, uno::UNO_QUERY );
if ( !xHWindow.is() )
throw uno::RuntimeException(); // TODO: can not create own window
xHatchWindow->setController( uno::Reference< embed::XHatchWindowController >(
static_cast< embed::XHatchWindowController* >( this ) ) );
xMyParent = xHatchWinPeer;
}
else
{
aOwnRectangle.X += aHatchRectangle.X;
aOwnRectangle.Y += aHatchRectangle.Y;
}
awt::WindowDescriptor aOwnWinDescriptor( awt::WindowClass_SIMPLE,
::rtl::OUString(),
xMyParent,
0,
awt::Rectangle(),//aOwnRectangle,
awt::WindowAttribute::SHOW | awt::VclWindowPeerAttribute::CLIPCHILDREN );
uno::Reference< awt::XToolkit > xToolkit(
m_xFactory->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.awt.Toolkit" ) ),
uno::UNO_QUERY );
if ( !xToolkit.is() )
throw uno::RuntimeException();
uno::Reference< awt::XWindowPeer > xNewWinPeer = xToolkit->createWindow( aOwnWinDescriptor );
uno::Reference< awt::XWindow > xOwnWindow( xNewWinPeer, uno::UNO_QUERY );
if ( !xOwnWindow.is() )
throw uno::RuntimeException(); // TODO: can not create own window
// create a frame based on the specified window
uno::Reference< frame::XFrame > xFrame(
m_xFactory->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.frame.Frame" ) ),
uno::UNO_QUERY );
if ( !xFrame.is() )
throw uno::RuntimeException(); // TODO: can not create a new frame
xFrame->initialize( xOwnWindow );
// the dispatch provider may not be a frame
uno::Reference< frame::XFramesSupplier > xFramesSupplier( xContDisp, uno::UNO_QUERY );
if ( xFramesSupplier.is() )
{
uno::Reference< frame::XFrames > xFrames = xFramesSupplier->getFrames();
if ( xFrames.is() )
xFrames->append( xFrame );
}
m_xHatchWindow = xHWindow;
m_xOwnWindow = xOwnWindow;
m_xFrame = xFrame;
if ( !SetFrameLMVisibility( m_xFrame, sal_False ) )
{
OSL_ENSURE( sal_False, "Can't deactivate LayoutManager!\n" );
// TODO/LATER: error handling?
}
// m_bIsInplace = sal_True; TODO: ?
uno::Reference< util::XCloseBroadcaster > xCloseBroadcaster( m_xFrame, uno::UNO_QUERY );
if ( xCloseBroadcaster.is() )
xCloseBroadcaster->addCloseListener( ( util::XCloseListener* )this );
// TODO: some listeners to the frame and the window ( resize for example )
}
if ( m_xComponent.is() )
{
if ( !LoadDocToFrame( sal_True ) )
{
CloseFrame();
return sal_False;
}
uno::Reference< frame::XControllerBorder > xControllerBorder( m_xFrame->getController(), uno::UNO_QUERY );
if ( xControllerBorder.is() )
{
m_aBorderWidths = xControllerBorder->getBorder();
xControllerBorder->addBorderResizeListener( (frame::XBorderResizeListener*)this );
}
PlaceFrame( aRectangleToShow );
if ( m_xHatchWindow.is() )
m_xHatchWindow->setVisible( sal_True );
return sal_True;
}
return sal_False;
}
//---------------------------------------------------------------------------
uno::Reference< container::XIndexAccess > DocumentHolder::RetrieveOwnMenu_Impl()
{
uno::Reference< container::XIndexAccess > xResult;
uno::Reference< ::com::sun::star::ui::XUIConfigurationManagerSupplier > xUIConfSupplier(
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
m_xComponent,
uno::UNO_QUERY_THROW );
uno::Reference< ::com::sun::star::ui::XUIConfigurationManager > xUIConfigManager(
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
xUIConfSupplier->getUIConfigurationManager(),
uno::UNO_QUERY_THROW );
try
{
xResult = xUIConfigManager->getSettings(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "private:resource/menubar/menubar" ) ),
sal_False );
}
catch( uno::Exception )
{}
if ( !xResult.is() )
{
// no internal document configuration, use the one from the module
uno::Reference< ::com::sun::star::frame::XModuleManager > xModuleMan(
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
m_xFactory->createInstance(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.frame.ModuleManager" ) ) ),
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
uno::UNO_QUERY_THROW );
::rtl::OUString aModuleIdent =
xModuleMan->identify( uno::Reference< uno::XInterface >( m_xComponent, uno::UNO_QUERY ) );
if ( aModuleIdent.getLength() )
{
uno::Reference< ::com::sun::star::ui::XModuleUIConfigurationManagerSupplier > xModConfSupplier(
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
m_xFactory->createInstance( ::rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ui.ModuleUIConfigurationManagerSupplier" ) ) ),
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
uno::UNO_QUERY_THROW );
uno::Reference< ::com::sun::star::ui::XUIConfigurationManager > xModUIConfMan(
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
xModConfSupplier->getUIConfigurationManager( aModuleIdent ),
uno::UNO_QUERY_THROW );
xResult = xModUIConfMan->getSettings(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "private:resource/menubar/menubar" ) ),
sal_False );
}
}
if ( !xResult.is() )
throw uno::RuntimeException();
return xResult;
2003-10-27 12:05:38 +00:00
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//---------------------------------------------------------------------------
void DocumentHolder::FindConnectPoints(
const uno::Reference< container::XIndexAccess >& xMenu,
sal_Int32 nConnectPoints[2] )
throw ( uno::Exception )
{
nConnectPoints[0] = -1;
nConnectPoints[1] = -1;
for ( sal_Int32 nInd = 0; nInd < xMenu->getCount(); nInd++ )
{
uno::Sequence< beans::PropertyValue > aProps;
xMenu->getByIndex( nInd ) >>= aProps;
rtl::OUString aCommand;
for ( sal_Int32 nSeqInd = 0; nSeqInd < aProps.getLength(); nSeqInd++ )
if ( aProps[nSeqInd].Name.equalsAscii( "CommandURL" ) )
{
aProps[nSeqInd].Value >>= aCommand;
break;
}
if ( !aCommand.getLength() )
throw uno::RuntimeException();
if ( aCommand.equalsAscii( ".uno:PickList" ) )
nConnectPoints[0] = nInd;
else if ( aCommand.equalsAscii( ".uno:WindowList" ) )
nConnectPoints[1] = nInd;
}
}
//---------------------------------------------------------------------------
uno::Reference< container::XIndexAccess > DocumentHolder::MergeMenuesForInplace(
const uno::Reference< container::XIndexAccess >& xContMenu,
const uno::Reference< frame::XDispatchProvider >& xContDisp,
const uno::Reference< container::XIndexAccess >& xOwnMenu,
const uno::Reference< frame::XDispatchProvider >& xOwnDisp )
throw ( uno::Exception )
{
// TODO/LATER: use dispatch providers on merge
sal_Int32 nContPoints[2];
sal_Int32 nOwnPoints[2];
uno::Reference< lang::XSingleComponentFactory > xIndAccessFact( xContMenu, uno::UNO_QUERY_THROW );
uno::Reference< uno::XComponentContext > xComponentContext;
uno::Reference< beans::XPropertySet > xProps( ::comphelper::getProcessServiceFactory(), uno::UNO_QUERY );
if ( xProps.is() )
xProps->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DefaultContext" ))) >>=
xComponentContext;
uno::Reference< container::XIndexContainer > xMergedMenu(
xIndAccessFact->createInstanceWithContext( xComponentContext ),
uno::UNO_QUERY_THROW );
FindConnectPoints( xContMenu, nContPoints );
FindConnectPoints( xOwnMenu, nOwnPoints );
sal_Int32 nContInd = 0;
sal_Int32 nOwnInd = 0;
for ( sal_Int32 nInd = 0; nInd < xOwnMenu->getCount(); nInd++ )
{
if ( nOwnPoints[0] == nInd )
{
if ( nContPoints[0] >= 0 && nContPoints[0] < xContMenu->getCount() )
xMergedMenu->insertByIndex( nInd, xContMenu->getByIndex( nContPoints[0] ) );
}
else if ( nOwnPoints[1] == nInd )
{
if ( nContPoints[1] >= 0 && nContPoints[1] < xContMenu->getCount() )
xMergedMenu->insertByIndex( nInd, xContMenu->getByIndex( nContPoints[1] ) );
}
else
xMergedMenu->insertByIndex( nInd, xOwnMenu->getByIndex( nInd ) );
}
return uno::Reference< container::XIndexAccess >( xMergedMenu, uno::UNO_QUERY_THROW );
}
//---------------------------------------------------------------------------
sal_Bool DocumentHolder::MergeMenues_Impl( const uno::Reference< ::com::sun::star::frame::XLayoutManager >& xOwnLM,
const uno::Reference< ::com::sun::star::frame::XLayoutManager >& xContLM,
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
const uno::Reference< frame::XDispatchProvider >& xContDisp )
{
sal_Bool bMenuMerged = sal_False;
try
{
uno::Reference< ::com::sun::star::ui::XUIElementSettings > xUISettings(
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
xContLM->getElement(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "private:resource/menubar/menubar" ) ) ),
uno::UNO_QUERY_THROW );
uno::Reference< container::XIndexAccess > xContMenu = xUISettings->getSettings( sal_True );
if ( !xContMenu.is() )
throw uno::RuntimeException();
uno::Reference< container::XIndexAccess > xOwnMenu = RetrieveOwnMenu_Impl();
uno::Reference< frame::XDispatchProvider > xOwnDisp( m_xFrame, uno::UNO_QUERY_THROW );
uno::Reference< container::XIndexAccess > xMergedMenu = MergeMenuesForInplace( xContMenu, xContDisp, xOwnMenu, xOwnDisp );
uno::Reference< ::com::sun::star::frame::XMenuBarMergingAcceptor > xMerge( xOwnLM,
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
uno::UNO_QUERY_THROW );
bMenuMerged = xMerge->setMergedMenuBar( xMergedMenu );
}
catch( uno::Exception& )
{}
return bMenuMerged;
}
sal_Bool DocumentHolder::ShowUI( const uno::Reference< ::com::sun::star::frame::XLayoutManager >& xContainerLM,
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
const uno::Reference< frame::XDispatchProvider >& xContainerDP )
{
sal_Bool bResult = sal_False;
if ( xContainerLM.is() )
{
uno::Reference< ::com::sun::star::frame::XLayoutManager > xOwnLM;
uno::Reference< ::com::sun::star::ui::XDockingAreaAcceptor > xDocAreaAcc;
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
try {
uno::Reference< beans::XPropertySet > xPropSet( m_xFrame, uno::UNO_QUERY_THROW );
xPropSet->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "LayoutManager" ))) >>= xOwnLM;
xDocAreaAcc = xContainerLM->getDockingAreaAcceptor();
} catch( uno::Exception& )
{}
if ( xOwnLM.is() && xDocAreaAcc.is() )
{
try
{
m_xCachedDocAreaAcc = xOwnLM->getDockingAreaAcceptor();
xOwnLM->setDockingAreaAcceptor( xDocAreaAcc );
if ( MergeMenues_Impl( xOwnLM, xContainerLM, xContainerDP ) )
{
xContainerLM->setVisible( sal_False );
xContainerLM->lock();
xOwnLM->setVisible( sal_True );
xOwnLM->doLayout();
bResult = sal_True;
}
uno::Reference< frame::XFramesSupplier > xSupp(
m_xFrame->getCreator(), uno::UNO_QUERY );
if ( xSupp.is() )
xSupp->setActiveFrame( m_xFrame );
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
}
catch( uno::Exception& )
{
try {
xOwnLM->setDockingAreaAcceptor( m_xCachedDocAreaAcc );
m_xCachedDocAreaAcc = uno::Reference< ::com::sun::star::ui::XDockingAreaAcceptor >();
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
xOwnLM->setVisible( sal_False );
uno::Reference< ::com::sun::star::frame::XMenuBarMergingAcceptor > xMerge( xOwnLM,
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
uno::UNO_QUERY_THROW );
xMerge->removeMergedMenuBar();
} catch( uno::Exception& ) {}
try {
xContainerLM->unlock();
xContainerLM->setVisible( sal_True );
} catch( uno::Exception& ) {}
}
}
}
return bResult;
}
//---------------------------------------------------------------------------
sal_Bool DocumentHolder::HideUI( const uno::Reference< ::com::sun::star::frame::XLayoutManager >& xContainerLM )
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
{
sal_Bool bResult = sal_False;
if ( xContainerLM.is() )
{
uno::Reference< ::com::sun::star::frame::XLayoutManager > xOwnLM;
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
try {
uno::Reference< beans::XPropertySet > xPropSet( m_xFrame, uno::UNO_QUERY_THROW );
xPropSet->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "LayoutManager" ))) >>= xOwnLM;
} catch( uno::Exception& )
{}
if ( xOwnLM.is() )
{
try {
uno::Reference< frame::XFramesSupplier > xSupp(
m_xFrame->getCreator(), uno::UNO_QUERY );
if ( xSupp.is() )
xSupp->setActiveFrame( 0 );
uno::Reference< ::com::sun::star::frame::XMenuBarMergingAcceptor > xMerge( xOwnLM,
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
uno::UNO_QUERY_THROW );
xMerge->removeMergedMenuBar();
xOwnLM->setDockingAreaAcceptor( m_xCachedDocAreaAcc );
m_xCachedDocAreaAcc = uno::Reference< ::com::sun::star::ui::XDockingAreaAcceptor >();
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
xOwnLM->setVisible( sal_False );
xContainerLM->unlock();
xContainerLM->setVisible( sal_True );
xContainerLM->doLayout();
bResult = sal_True;
}
catch( uno::Exception& )
{
SetFrameLMVisibility( m_xFrame, sal_True );
}
}
}
return bResult;
}
//---------------------------------------------------------------------------
2003-10-27 12:05:38 +00:00
uno::Reference< frame::XFrame > DocumentHolder::GetDocFrame()
{
// the frame for outplace activation
2003-10-27 12:05:38 +00:00
if ( !m_xFrame.is() )
{
uno::Reference< frame::XFrame > xDesktopFrame(
m_xFactory->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.frame.Desktop" ) ),
uno::UNO_QUERY );
if( !xDesktopFrame.is() )
throw uno::RuntimeException();
m_xFrame = xDesktopFrame->findFrame( rtl::OUString::createFromAscii( "_blank" ), 0 );
uno::Reference< frame::XDispatchProviderInterception > xInterception( m_xFrame, uno::UNO_QUERY );
if ( xInterception.is() )
{
if ( m_pInterceptor )
{
m_pInterceptor->DisconnectDocHolder();
m_pInterceptor->release();
m_pInterceptor = NULL;
}
m_pInterceptor = new Interceptor( this );
m_pInterceptor->acquire();
// register interceptor from outside
if ( m_xOutplaceInterceptor.is() )
xInterception->registerDispatchProviderInterceptor( m_xOutplaceInterceptor );
xInterception->registerDispatchProviderInterceptor( m_pInterceptor );
2003-10-27 12:05:38 +00:00
}
uno::Reference< util::XCloseBroadcaster > xCloseBroadcaster( m_xFrame, uno::UNO_QUERY );
if ( xCloseBroadcaster.is() )
xCloseBroadcaster->addCloseListener( ( util::XCloseListener* )this );
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
if ( m_xComponent.is() )
{
2005-03-16 12:05:27 +00:00
uno::Reference< ::com::sun::star::frame::XLayoutManager > xOwnLM;
try {
uno::Reference< beans::XPropertySet > xPropSet( m_xFrame, uno::UNO_QUERY_THROW );
xPropSet->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "LayoutManager" ))) >>= xOwnLM;
} catch( uno::Exception& )
{}
if ( xOwnLM.is() )
xOwnLM->lock();
// TODO/LATER: get it for the real aspect
awt::Size aSize;
GetExtent( embed::Aspects::MSOLE_CONTENT, &aSize );
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
LoadDocToFrame(sal_False);
if ( xOwnLM.is() )
{
xOwnLM->unlock();
xOwnLM->lock();
}
SetExtent( embed::Aspects::MSOLE_CONTENT, aSize );
if ( xOwnLM.is() )
xOwnLM->unlock();
}
2003-10-27 12:05:38 +00:00
return m_xFrame;
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//---------------------------------------------------------------------------
void DocumentHolder::SetComponent( const uno::Reference< util::XCloseable >& xDoc, sal_Bool bReadOnly )
2003-10-27 12:05:38 +00:00
{
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
if ( m_xComponent.is() )
{
// May be should be improved
try {
CloseDocument( sal_True, sal_False );
} catch( uno::Exception& )
{}
}
2003-10-27 12:05:38 +00:00
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
m_xComponent = xDoc;
2003-10-27 12:05:38 +00:00
m_bReadOnly = bReadOnly;
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
m_bAllowClosing = sal_False;
2003-10-27 12:05:38 +00:00
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
uno::Reference< util::XCloseBroadcaster > xBroadcaster( m_xComponent, uno::UNO_QUERY );
2003-10-27 12:05:38 +00:00
if ( xBroadcaster.is() )
xBroadcaster->addCloseListener( ( util::XCloseListener* )this );
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
uno::Reference< document::XEventBroadcaster > xEventBroadcaster( m_xComponent, uno::UNO_QUERY );
2003-10-27 12:05:38 +00:00
if ( xEventBroadcaster.is() )
xEventBroadcaster->addEventListener( ( document::XEventListener* )this );
if ( m_xFrame.is() )
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
LoadDocToFrame(sal_False);
2003-10-27 12:05:38 +00:00
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//---------------------------------------------------------------------------
sal_Bool DocumentHolder::LoadDocToFrame( sal_Bool bInPlace )
2003-10-27 12:05:38 +00:00
{
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
if ( m_xFrame.is() && m_xComponent.is() )
2003-10-27 12:05:38 +00:00
{
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
uno::Reference < frame::XModel > xDocument( m_xComponent, uno::UNO_QUERY );
if ( xDocument.is() )
{
// load new document in to the frame
uno::Reference< frame::XComponentLoader > xComponentLoader( m_xFrame, uno::UNO_QUERY );
if( !xComponentLoader.is() )
throw uno::RuntimeException();
uno::Sequence< beans::PropertyValue > aArgs( bInPlace ? 3 : 2 );
aArgs[0].Name = ::rtl::OUString::createFromAscii( "Model" );
aArgs[0].Value <<= m_xComponent;
aArgs[1].Name = ::rtl::OUString::createFromAscii( "ReadOnly" );
aArgs[1].Value <<= m_bReadOnly;
if ( bInPlace )
{
aArgs[2].Name = ::rtl::OUString::createFromAscii( "PluginMode" );
aArgs[2].Value <<= sal_Int16(1);
}
2003-10-27 12:05:38 +00:00
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
xComponentLoader->loadComponentFromURL( rtl::OUString::createFromAscii( "private:object" ),
rtl::OUString::createFromAscii( "_self" ),
0,
aArgs );
2003-10-27 12:05:38 +00:00
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
::rtl::OUString aDocumentName;
uno::Reference < frame::XModel > xDocument( m_xComponent, uno::UNO_QUERY );
2003-10-27 12:05:38 +00:00
//REMOVE uno::Sequence< beans::PropertyValue > aDocArgs = xDocument->getArgs();
//REMOVE for ( sal_Int32 nInd = 0; nInd < aDocArgs.getLength(); nInd++ )
//REMOVE if ( aDocArgs[nInd].Name.equalsAscii( "Title" ) )
//REMOVE {
//REMOVE aDocArgs[nInd].Value >>= aDocumentName;
//REMOVE break;
//REMOVE }
//REMOVE
//REMOVE SetTitle( aDocumentName );
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
return sal_True;
}
else
{
uno::Reference < frame::XSynchronousFrameLoader > xLoader( m_xComponent, uno::UNO_QUERY );
if ( xLoader.is() )
return xLoader->load( uno::Sequence < beans::PropertyValue >(), m_xFrame );
else
return sal_False;
}
2003-10-27 12:05:38 +00:00
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
return sal_True;
2003-10-27 12:05:38 +00:00
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//---------------------------------------------------------------------------
2003-10-27 12:05:38 +00:00
void DocumentHolder::Show()
{
if( m_xFrame.is() )
{
m_xFrame->activate();
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
uno::Reference<awt::XTopWindow> xTopWindow( m_xFrame->getContainerWindow(), uno::UNO_QUERY );
2003-10-27 12:05:38 +00:00
if( xTopWindow.is() )
xTopWindow->toFront();
}
else
GetDocFrame();
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//---------------------------------------------------------------------------
2003-10-27 12:05:38 +00:00
void DocumentHolder::SetTitle( const rtl::OUString& aDocumentName )
{
// TODO: to have a different title for links
if( m_xFrame.is() )
{
rtl::OUString aFilterName;
uno::Sequence<beans::PropertyValue> aSeq;
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
uno::Reference < frame::XModel > xDocument( m_xComponent, uno::UNO_QUERY );
if( xDocument.is() )
2003-10-27 12:05:38 +00:00
{
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
aSeq = xDocument->getArgs();
2003-10-27 12:05:38 +00:00
for( sal_Int32 j = 0; j < aSeq.getLength(); ++j )
{
if( aSeq[j].Name == rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "FilterName" ) ) )
{
aSeq[j].Value >>= aFilterName;
break;
}
}
}
if( aFilterName.getLength() )
{
uno::Reference<container::XNameAccess> xNameAccess(
m_xFactory->createInstance(
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.document.FilterFactory" ) ) ),
uno::UNO_QUERY );
try {
if( xNameAccess.is() && ( xNameAccess->getByName( aFilterName ) >>= aSeq ) )
{
for( sal_Int32 j = 0; j < aSeq.getLength(); ++j )
if( aSeq[j].Name == rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "UIName" ) ) )
{
aSeq[j].Value >>= aFilterName;
break;
}
}
}
catch( const uno::Exception& )
{
}
}
// set the title
uno::Reference<beans::XPropertySet> xPropSet( m_xFrame,uno::UNO_QUERY );
if( xPropSet.is() )
{
uno::Any aAny;
static const sal_Unicode u[] = { ' ', '(', ' ', 0 };
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
static const sal_Unicode c[] = { ' ', ')', 0 };
2003-10-27 12:05:38 +00:00
rtl::OUString aTotalName( aFilterName );
aTotalName += rtl::OUString( u );
aTotalName += aDocumentName;
aTotalName += rtl::OUString( c );
aAny <<= aTotalName;
try
{
xPropSet->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
aAny );
}
catch( const uno::Exception& )
{
}
}
}
m_aDocumentNamePart = aDocumentName;
if( m_pInterceptor )
m_pInterceptor->GenerateFeatureStateEvent();
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//---------------------------------------------------------------------------
2003-10-27 12:05:38 +00:00
void DocumentHolder::SetContainerName( const rtl::OUString& aContainerName )
{
m_aContainerName = aContainerName;
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//---------------------------------------------------------------------------
2003-10-27 12:05:38 +00:00
void DocumentHolder::Hide()
{
if( m_xFrame.is() )
m_xFrame->deactivate();
}
#if 0
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//---------------------------------------------------------------------------
2003-10-27 12:05:38 +00:00
sal_Bool DocumentHolder::SetVisArea( const awt::Rectangle& aRect )
{
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
uno::Reference < frame::XModel > xDocument( m_xComponent, uno::UNO_QUERY );
if( xDocument.is() )
if ( xDocument.is() )
2003-10-27 12:05:38 +00:00
{
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
uno::Sequence< beans::PropertyValue > aArgs = xDocument->getArgs();
2003-10-27 12:05:38 +00:00
for ( sal_Int32 nInd = 0; nInd < aArgs.getLength(); nInd++ )
if ( aArgs[nInd].Name.equalsAscii( "WinExtent" ) )
{
// should allways be there
uno::Sequence< sal_Int32 > aSeqRect( 4 );
aSeqRect[0] = aRect.X;
aSeqRect[1] = aRect.Y;
aSeqRect[2] = aRect.X + aRect.Width;
aSeqRect[3] = aRect.Y + aRect.Height;
aArgs[nInd].Value <<= aSeqRect;
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
xDocument->attachResource( m_xComponent->getURL(), aArgs );
2003-10-27 12:05:38 +00:00
return sal_True;
}
OSL_ENSURE( sal_False, "WinExtent seems not to be implemented!\n" );
}
return sal_False;
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//---------------------------------------------------------------------------
2003-10-27 12:05:38 +00:00
sal_Bool DocumentHolder::GetVisArea( awt::Rectangle *pRect )
{
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
uno::Reference < frame::XModel > xDocument( m_xComponent, uno::UNO_QUERY );
if( xDocument.is() )
if ( pRect && xDocument.is() )
2003-10-27 12:05:38 +00:00
{
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
uno::Sequence< beans::PropertyValue > aArgs = xDocument->getArgs();
2003-10-27 12:05:38 +00:00
for ( sal_Int32 nInd = 0; nInd < aArgs.getLength(); nInd++ )
if ( aArgs[nInd].Name.equalsAscii( "WinExtent" ) )
{
uno::Sequence< sal_Int32 > aRect;
if ( ( aArgs[nInd].Value >>= aRect ) && aRect.getLength() == 4 )
{
pRect->X = aRect[0];
pRect->Y = aRect[1];
pRect->Width = aRect[2] - pRect->X;
pRect->Height = aRect[3] - pRect->Y;
return sal_True;
}
break;
}
}
return sal_False;
}
#endif
2003-10-27 12:05:38 +00:00
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//---------------------------------------------------------------------------
sal_Bool DocumentHolder::SetExtent( sal_Int64 nAspect, const awt::Size& aSize )
2003-10-27 12:05:38 +00:00
{
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
uno::Reference< embed::XVisualObject > xDocVis( m_xComponent, uno::UNO_QUERY );
if ( xDocVis.is() )
2003-10-27 12:05:38 +00:00
{
try
{
xDocVis->setVisualAreaSize( nAspect, aSize );
return sal_True;
}
catch( uno::Exception& )
{
// TODO: Error handling
}
}
2003-10-27 12:05:38 +00:00
return sal_False;
}
2003-10-27 12:05:38 +00:00
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//---------------------------------------------------------------------------
sal_Bool DocumentHolder::GetExtent( sal_Int64 nAspect, awt::Size *pSize )
{
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
uno::Reference< embed::XVisualObject > xDocVis( m_xComponent, uno::UNO_QUERY );
if ( pSize && xDocVis.is() )
{
try
{
*pSize = xDocVis->getVisualAreaSize( nAspect );
return sal_True;
}
catch( uno::Exception& )
{
// TODO: Error handling
}
2003-10-27 12:05:38 +00:00
}
return sal_False;
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//---------------------------------------------------------------------------
sal_Int32 DocumentHolder::GetMapUnit( sal_Int64 nAspect )
2003-10-27 12:05:38 +00:00
{
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
uno::Reference< embed::XVisualObject > xDocVis( m_xComponent, uno::UNO_QUERY );
if ( xDocVis.is() )
2003-10-27 12:05:38 +00:00
{
try
{
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
return xDocVis->getMapUnit( nAspect );
}
catch( uno::Exception& )
{
// TODO: Error handling
}
2003-10-27 12:05:38 +00:00
}
return 0;
2003-10-27 12:05:38 +00:00
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//---------------------------------------------------------------------------
awt::Rectangle DocumentHolder::CalculateBorderedArea( const awt::Rectangle& aRect )
{
return awt::Rectangle( aRect.X + m_aBorderWidths.Left + HATCH_BORDER_WIDTH,
aRect.Y + m_aBorderWidths.Top + HATCH_BORDER_WIDTH,
aRect.Width - m_aBorderWidths.Left - m_aBorderWidths.Right - 2*HATCH_BORDER_WIDTH,
aRect.Height - m_aBorderWidths.Top - m_aBorderWidths.Bottom - 2*HATCH_BORDER_WIDTH );
}
//---------------------------------------------------------------------------
awt::Rectangle DocumentHolder::AddBorderToArea( const awt::Rectangle& aRect )
{
return awt::Rectangle( aRect.X - m_aBorderWidths.Left - HATCH_BORDER_WIDTH,
aRect.Y - m_aBorderWidths.Top - HATCH_BORDER_WIDTH,
aRect.Width + m_aBorderWidths.Left + m_aBorderWidths.Right + 2*HATCH_BORDER_WIDTH,
aRect.Height + m_aBorderWidths.Top + m_aBorderWidths.Bottom + 2*HATCH_BORDER_WIDTH );
}
//---------------------------------------------------------------------------
2003-10-27 12:05:38 +00:00
void SAL_CALL DocumentHolder::disposing( const com::sun::star::lang::EventObject& aSource )
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
throw (uno::RuntimeException)
2003-10-27 12:05:38 +00:00
{
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
if ( m_xComponent.is() && m_xComponent == aSource.Source )
{
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
m_xComponent = 0;
if ( m_bWaitForClose )
{
m_bWaitForClose = sal_False;
FreeOffice();
}
}
2003-10-27 12:05:38 +00:00
if( m_xFrame.is() && m_xFrame == aSource.Source )
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
{
m_xHatchWindow = uno::Reference< awt::XWindow >();
m_xOwnWindow = uno::Reference< awt::XWindow >();
2003-10-27 12:05:38 +00:00
m_xFrame = uno::Reference< frame::XFrame >();
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
}
2003-10-27 12:05:38 +00:00
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//---------------------------------------------------------------------------
2003-10-27 12:05:38 +00:00
void SAL_CALL DocumentHolder::queryClosing( const lang::EventObject& aSource, sal_Bool bGetsOwnership )
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
throw (util::CloseVetoException, uno::RuntimeException)
2003-10-27 12:05:38 +00:00
{
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
if ( m_xComponent.is() && m_xComponent == aSource.Source && !m_bAllowClosing )
2003-10-27 12:05:38 +00:00
throw util::CloseVetoException();
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//---------------------------------------------------------------------------
2003-10-27 12:05:38 +00:00
void SAL_CALL DocumentHolder::notifyClosing( const lang::EventObject& aSource )
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
throw (uno::RuntimeException)
2003-10-27 12:05:38 +00:00
{
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
if ( m_xComponent.is() && m_xComponent == aSource.Source )
{
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
m_xComponent = 0;
if ( m_bWaitForClose )
{
m_bWaitForClose = sal_False;
FreeOffice();
}
}
2003-10-27 12:05:38 +00:00
if( m_xFrame.is() && m_xFrame == aSource.Source )
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
{
m_xHatchWindow = uno::Reference< awt::XWindow >();
m_xOwnWindow = uno::Reference< awt::XWindow >();
2003-10-27 12:05:38 +00:00
m_xFrame = uno::Reference< frame::XFrame >();
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
}
2003-10-27 12:05:38 +00:00
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//---------------------------------------------------------------------------
2003-10-27 12:05:38 +00:00
void SAL_CALL DocumentHolder::queryTermination( const lang::EventObject& aSource )
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
throw (frame::TerminationVetoException, uno::RuntimeException)
2003-10-27 12:05:38 +00:00
{
if ( m_bWaitForClose )
2003-10-27 12:05:38 +00:00
throw frame::TerminationVetoException();
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//---------------------------------------------------------------------------
2003-10-27 12:05:38 +00:00
void SAL_CALL DocumentHolder::notifyTermination( const lang::EventObject& aSource )
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
throw (uno::RuntimeException)
2003-10-27 12:05:38 +00:00
{
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
OSL_ENSURE( !m_xComponent.is(), "Just a disaster..." );
2003-10-27 12:05:38 +00:00
uno::Reference< frame::XDesktop > xDesktop( aSource.Source, uno::UNO_QUERY );
m_bDesktopTerminated = sal_True;
2003-10-27 12:05:38 +00:00
if ( xDesktop.is() )
xDesktop->removeTerminateListener( ( frame::XTerminateListener* )this );
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//---------------------------------------------------------------------------
2003-10-27 12:05:38 +00:00
void SAL_CALL DocumentHolder::modified( const lang::EventObject& aEvent )
throw ( uno::RuntimeException )
{
if( m_pEmbedObj )
m_pEmbedObj->update(); // TODO ???
}
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
//---------------------------------------------------------------------------
void SAL_CALL DocumentHolder::notifyEvent( const document::EventObject& Event )
throw ( uno::RuntimeException )
2003-10-27 12:05:38 +00:00
{
INTEGRATION: CWS mav09 (1.6.2); FILE MERGED 2004/09/16 22:01:45 mav 1.6.2.33: RESYNC: (1.7-1.8); FILE MERGED 2004/08/23 13:09:57 mav 1.6.2.32: #i27773# adopt to linux 2004/08/17 13:46:46 mba 1.6.2.31: #i27773#: correct locking of LM 2004/08/16 15:18:38 mba 1.6.2.30: #i27773#: don't lock InPlace LayoutManager - InPlaceWindow will get no resizes if the object is not UIActive 2004/08/12 17:28:05 mav 1.6.2.29: #i27773# UI activation 2004/08/02 13:39:32 mav 1.6.2.28: #i27773# UI activation related stuff 2004/07/19 13:05:26 mav 1.6.2.27: #i27773# menu merging 2004/07/19 09:05:55 mav 1.6.2.26: #i27773# menu merging 2004/07/16 14:58:10 mba 1.6.2.25: #i27773#: fixes after resync to m47 2004/07/15 16:57:09 mav 1.6.2.24: #i27773# layout manager switch 2004/07/06 16:44:11 mba 1.6.2.23: #i27773#: react on component that fails to activate 2004/07/01 11:48:18 mav 1.6.2.22: #i27773# links storing on deactivation 2004/06/28 13:47:28 mba 1.6.2.21: #i27773#: some typos 2004/06/21 16:41:12 mba 1.6.2.20: #i27773#: start with empty document window to make sure that the final resize is handled 2004/06/21 12:46:39 mav 1.6.2.19: #i27773# let the code be reentrance safe 2004/06/21 08:14:39 mba 1.6.2.18: #i27773#: merge conflicts 2004/06/18 15:31:20 mav 1.6.2.17: #i27773# resolve conflict 2004/06/18 15:23:45 mav 1.6.2.16: #i27773# fix typo 2004/06/18 14:17:55 mba 1.6.2.15: #i27773#: special objects don't have a hatchwindow 2004/06/17 10:52:18 mav 1.6.2.14: #i27773# retrieve suggested size for embedded document 2004/06/15 14:44:23 mav 1.6.2.13: #i27773# handle embedded document border 2004/06/11 10:29:50 mba 1.6.2.12: #i27773#: make HatchWindow visible after loading document 2004/06/08 13:15:49 mba 1.6.2.11: #i27773#: changes for UIActivation 2004/06/02 11:51:40 mba 1.6.2.10: #i27773#: reinitialisation iof bAllowClosing added 2004/05/24 09:02:52 mba 1.6.2.9: #i27773#: some changes about MapUnit 2004/05/17 18:25:03 mav 1.6.2.8: RESYNC: (1.6-1.7); FILE MERGED 2004/05/05 13:55:12 mba 1.6.2.7: #i27773#: refcounting problem 2004/02/27 10:26:27 mav 1.6.2.6: #115011# resize of inplace active object 2004/02/23 10:04:10 mav 1.6.2.5: #115011# set correct sizes for hatch window and dispose it after use 2004/02/19 10:31:37 mav 1.6.2.4: #115011# embedded object representation 2004/01/23 17:39:47 mav 1.6.2.3: #115011# set title 2004/01/23 15:39:33 mav 1.6.2.2: #115011# XInplaceObject implementation 2004/01/22 17:07:59 mav 1.6.2.1: #115011# inplace activation
2004-10-04 18:52:40 +00:00
if( m_pEmbedObj && Event.Source == m_xComponent )
{
// for now the ignored events are not forwarded, but sent by the object itself
if ( !Event.EventName.equalsAscii( "OnSave" )
&& !Event.EventName.equalsAscii( "OnSaveDone" )
&& !Event.EventName.equalsAscii( "OnSaveAs" )
&& !Event.EventName.equalsAscii( "OnSaveAsDone" ) )
m_pEmbedObj->PostEvent_Impl( Event.EventName, Event.Source );
}
}
//---------------------------------------------------------------------------
void SAL_CALL DocumentHolder::borderWidthsChanged( const uno::Reference< uno::XInterface >& aObject,
const frame::BorderWidths& aNewSize )
throw ( uno::RuntimeException )
{
// TODO: may require mutex introduction ???
if ( m_pEmbedObj && m_xFrame.is() && aObject == m_xFrame->getController() )
{
if ( m_aBorderWidths.Left != aNewSize.Left
|| m_aBorderWidths.Right != aNewSize.Right
|| m_aBorderWidths.Top != aNewSize.Top
|| m_aBorderWidths.Bottom != aNewSize.Bottom )
{
m_aBorderWidths = aNewSize;
if ( !m_nNoBorderResizeReact )
PlaceFrame( m_aObjRect );
}
}
}
//---------------------------------------------------------------------------
void SAL_CALL DocumentHolder::requestPositioning( const awt::Rectangle& aRect )
throw (uno::RuntimeException)
{
// TODO: may require mutex introduction ???
if ( m_pEmbedObj )
{
// borders should not be counted
awt::Rectangle aObjRect = CalculateBorderedArea( aRect );
m_pEmbedObj->requestPositioning( aObjRect );
}
}
//---------------------------------------------------------------------------
awt::Rectangle SAL_CALL DocumentHolder::calcAdjustedRectangle( const awt::Rectangle& aRect )
throw (uno::RuntimeException)
{
// Solar mutex should be locked already since this is a call from HatchWindow with focus
awt::Rectangle aResult( aRect );
if ( m_xFrame.is() )
{
// borders should not be counted
uno::Reference< frame::XControllerBorder > xControllerBorder( m_xFrame->getController(), uno::UNO_QUERY );
if ( xControllerBorder.is() )
{
awt::Rectangle aObjRect = CalculateBorderedArea( aRect );
aObjRect = xControllerBorder->queryBorderedArea( aObjRect );
aResult = AddBorderToArea( aObjRect );
}
}
awt::Rectangle aMinRectangle = AddBorderToArea( awt::Rectangle() );
if ( aResult.Width < aMinRectangle.Width )
aResult.Width = aMinRectangle.Width + 1;
if ( aResult.Height < aMinRectangle.Height )
aResult.Height = aMinRectangle.Height + 1;
return aResult;
2003-10-27 12:05:38 +00:00
}