Files
libreoffice/svx/source/svdraw/svdoole2.cxx

1451 lines
46 KiB
C++
Raw Normal View History

2000-09-18 16:07:07 +00:00
/*************************************************************************
*
* $RCSfile: svdoole2.cxx,v $
*
* $Revision: 1.46 $
2000-09-18 16:07:07 +00:00
*
* last change: $Author: pjunck $ $Date: 2004-11-03 11:01:06 $
2000-09-18 16:07:07 +00:00
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Public License Version 2.1
* - Sun Industry Standards Source License Version 1.1
*
* Sun Microsystems Inc., October, 2000
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2000 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
*
* Sun Industry Standards Source License Version 1.1
* =================================================
* The contents of this file are subject to the Sun Industry Standards
* Source License Version 1.1 (the "License"); You may not use this file
* except in compliance with the License. You may obtain a copy of the
* License at http://www.openoffice.org/license.html.
*
* Software provided under this License is provided on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
* See the License for the specific provisions governing your rights and
* obligations concerning the Software.
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
*
* Copyright: 2000 by Sun Microsystems, Inc.
*
* All Rights Reserved.
*
* Contributor(s): _______________________________________
*
*
************************************************************************/
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
#include "svdoole2.hxx"
2000-09-18 16:07:07 +00:00
#ifndef _COM_SUN_STAR_UTIL_XMODIFYBROADCASTER_HPP_
#include <com/sun/star/util/XModifyBroadcaster.hpp>
#endif
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
#ifndef _COM_SUN_STAR_UTIL_XMODIFIABLE_HPP_
#include <com/sun/star/util/XModifiable.hpp>
2000-09-18 16:07:07 +00:00
#endif
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
#ifndef _COM_SUN_STAR_EMBED_EMBEDSTATES_HPP_
#include <com/sun/star/embed/EmbedStates.hpp>
2001-09-18 09:47:27 +00:00
#endif
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
#ifndef _COM_SUN_STAR_EMBED_ELEMENTMODE_HPP_
#include <com/sun/star/embed/ElementModes.hpp>
2000-09-18 16:07:07 +00:00
#endif
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
#ifndef _COM_SUN_STAR_EMBED_EMBEDMISC_HPP_
#include <com/sun/star/embed/EmbedMisc.hpp>
#endif
#ifndef _COM_SUN_STAR_EMBED_ASPECTS_HPP_
#include <com/sun/star/embed/Aspects.hpp>
#endif
#ifndef _COM_SUN_STAR_DOCUMENT_XEVENTLISTENER_HPP_
#include <com/sun/star/document/XEventListener.hpp>
#endif
#include <comphelper/processfactory.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <svtools/filter.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <svtools/embedhlp.hxx>
#include <sfx2/objsh.hxx>
#include <sfx2/ipclient.hxx>
#include <tools/stream.hxx>
2000-09-18 16:07:07 +00:00
#ifndef _SVDPAGV_HXX
#include <svdpagv.hxx>
#endif
#ifndef _GLOBNAME_HXX
#include <tools/globname.hxx>
#endif
#ifndef _SV_JOBSET_HXX
#include <vcl/jobset.hxx>
#endif
#ifndef _SO_CLSIDS_HXX
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
#include <sot/clsids.hxx>
2000-09-18 16:07:07 +00:00
#endif
#include <sot/formats.hxx>
2000-09-18 16:07:07 +00:00
#ifndef _SVXLINKMGR_HXX //autogen
#include <linkmgr.hxx>
#endif
2001-06-22 14:46:24 +00:00
#ifndef SVTOOLS_TRANSFER_HXX
#include <svtools/transfer.hxx>
#endif
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
#include <cppuhelper/implbase2.hxx>
2000-09-18 16:07:07 +00:00
#include <svtools/solar.hrc>
#include "svdxout.hxx"
#ifndef SVTOOLS_URIHELPER_HXX
#include <svtools/urihelper.hxx>
#endif
#include "svdpagv.hxx"
#include "svdmodel.hxx"
#include "svdio.hxx"
#include "svdglob.hxx" // Stringcache
#include "svdstr.hrc" // Objektname
#include "svdetc.hxx"
#include "svdview.hxx"
#include "unomlstr.hxx"
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
#include "impgrf.hxx"
2000-09-18 16:07:07 +00:00
using namespace ::rtl;
using namespace ::com::sun::star;
////////////////////////////////////////////////////////////////////////////////////////////////////
class SdrOle2ObjImpl
{
public:
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
// TODO/LATER: do we really need this pointer?
GraphicObject* pGraphicObject;
String aPersistName; // name of object in persist
// #107645#
// New local var to avoid repeated loading if load of OLE2 fails
sal_Bool mbLoadingOLEObjectFailed;
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
bool mbConnected;
};
2000-09-18 16:07:07 +00:00
////////////////////////////////////////////////////////////////////////////////////////////////////
// Predicate determining whether the given OLE is an internal math
// object
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
static bool ImplIsMathObj( const uno::Reference < embed::XEmbeddedObject >& rObjRef )
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if ( !rObjRef.is() )
return false;
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
SvGlobalName aClassName( rObjRef->getClassID() );
if( aClassName == SvGlobalName(SO3_SM_CLASSID_30) ||
aClassName == SvGlobalName(SO3_SM_CLASSID_40) ||
aClassName == SvGlobalName(SO3_SM_CLASSID_50) ||
aClassName == SvGlobalName(SO3_SM_CLASSID_60) ||
aClassName == SvGlobalName(SO3_SM_CLASSID) )
{
return true;
}
else
{
return false;
}
}
// -----------------------------------------------------------------------------
2000-09-18 16:07:07 +00:00
TYPEINIT1(SdrOle2Obj,SdrRectObj);
SdrOle2Obj::SdrOle2Obj(FASTBOOL bFrame_)
{
bInDestruction = FALSE;
2000-09-18 16:07:07 +00:00
Init();
bFrame=bFrame_;
}
// -----------------------------------------------------------------------------
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
SdrOle2Obj::SdrOle2Obj( const svt::EmbeddedObjectRef& rNewObjRef, FASTBOOL bFrame_)
: xObjRef( rNewObjRef )
2000-09-18 16:07:07 +00:00
{
bInDestruction = FALSE;
2000-09-18 16:07:07 +00:00
Init();
bFrame=bFrame_;
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if ( xObjRef.is() && (xObjRef->getStatus( GetAspect() ) & embed::EmbedMisc::EMBED_NEVERRESIZE ) )
2000-09-18 16:07:07 +00:00
SetResizeProtect(TRUE);
// #108759# For math objects, set closed state to transparent
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if( ImplIsMathObj( xObjRef.GetObject() ) )
SetClosedObj( false );
2000-09-18 16:07:07 +00:00
}
// -----------------------------------------------------------------------------
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
SdrOle2Obj::SdrOle2Obj( const svt::EmbeddedObjectRef& rNewObjRef, const XubString& rNewObjName, FASTBOOL bFrame_)
: xObjRef( rNewObjRef )
2000-09-18 16:07:07 +00:00
{
bInDestruction = FALSE;
2000-09-18 16:07:07 +00:00
Init();
mpImpl->aPersistName = rNewObjName;
2000-09-18 16:07:07 +00:00
bFrame=bFrame_;
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if ( xObjRef.is() && (xObjRef->getStatus( GetAspect() ) & embed::EmbedMisc::EMBED_NEVERRESIZE ) )
2000-09-18 16:07:07 +00:00
SetResizeProtect(TRUE);
// #108759# For math objects, set closed state to transparent
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if( ImplIsMathObj( xObjRef.GetObject() ) )
SetClosedObj( false );
2000-09-18 16:07:07 +00:00
}
// -----------------------------------------------------------------------------
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
SdrOle2Obj::SdrOle2Obj( const svt::EmbeddedObjectRef& rNewObjRef, const XubString& rNewObjName, const Rectangle& rNewRect, FASTBOOL bFrame_)
: SdrRectObj(rNewRect)
, xObjRef( rNewObjRef )
2000-09-18 16:07:07 +00:00
{
bInDestruction = FALSE;
2000-09-18 16:07:07 +00:00
Init();
mpImpl->aPersistName = rNewObjName;
2000-09-18 16:07:07 +00:00
bFrame=bFrame_;
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if ( xObjRef.is() && (xObjRef->getStatus( GetAspect() ) & embed::EmbedMisc::EMBED_NEVERRESIZE ) )
2000-09-18 16:07:07 +00:00
SetResizeProtect(TRUE);
// #108759# For math objects, set closed state to transparent
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if( ImplIsMathObj( xObjRef.GetObject() ) )
SetClosedObj( false );
2000-09-18 16:07:07 +00:00
}
// -----------------------------------------------------------------------------
2000-09-18 16:07:07 +00:00
void SdrOle2Obj::Init()
{
mpImpl = new SdrOle2ObjImpl;
2000-09-18 16:07:07 +00:00
pModifyListener = NULL;
pGraphic=NULL;
mpImpl->pGraphicObject=NULL;
// #107645#
// init to start situation, loading did not fail
mpImpl->mbLoadingOLEObjectFailed = sal_False;
mpImpl->mbConnected = false;
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
xObjRef.Lock( TRUE );
2000-09-18 16:07:07 +00:00
}
// -----------------------------------------------------------------------------
2000-09-18 16:07:07 +00:00
SdrOle2Obj::~SdrOle2Obj()
{
bInDestruction = TRUE;
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if ( mpImpl->mbConnected )
Disconnect();
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if( pGraphic!=NULL )
2000-09-18 16:07:07 +00:00
delete pGraphic;
if(mpImpl->pGraphicObject!=NULL)
delete mpImpl->pGraphicObject;
2000-09-18 16:07:07 +00:00
if(pModifyListener)
{
pModifyListener->invalidate();
pModifyListener->release();
pModifyListener = NULL;
}
delete mpImpl;
2000-09-18 16:07:07 +00:00
}
// -----------------------------------------------------------------------------
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
void SdrOle2Obj::SetGraphic_Impl(const Graphic* pGrf)
2000-09-18 16:07:07 +00:00
{
if ( pGraphic )
{
delete pGraphic;
pGraphic = NULL;
delete mpImpl->pGraphicObject;
mpImpl->pGraphicObject = NULL;
2000-09-18 16:07:07 +00:00
}
if (pGrf!=NULL)
{
2000-09-18 16:07:07 +00:00
pGraphic = new Graphic(*pGrf);
mpImpl->pGraphicObject = new GraphicObject( *pGraphic );
}
2000-09-18 16:07:07 +00:00
SetChanged();
BroadcastObjectChange();
//if ( ppObjRef->Is() && pGrf )
// BroadcastObjectChange();
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
void SdrOle2Obj::SetGraphic(const Graphic* pGrf)
{
// only for setting a preview graphic
SetGraphic_Impl( pGrf );
}
// -----------------------------------------------------------------------------
2000-09-18 16:07:07 +00:00
FASTBOOL SdrOle2Obj::IsEmpty() const
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
return !(xObjRef.is());
2000-09-18 16:07:07 +00:00
}
// -----------------------------------------------------------------------------
2001-04-12 09:06:03 +00:00
void SdrOle2Obj::Connect()
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if( mpImpl->mbConnected )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
DBG_ERROR("Connect() called on connected object!");
return;
}
2001-04-12 09:06:03 +00:00
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
Connect_Impl();
AddListeners_Impl();
}
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
void SdrOle2Obj::Connect_Impl()
{
if( pModel && mpImpl->aPersistName.Len() )
{
SfxObjectShell* pPers=pModel->GetPersist();
if ( pPers )
{
comphelper::EmbeddedObjectContainer& rContainer = pPers->GetEmbeddedObjectContainer();
if ( !rContainer.HasEmbeddedObject( mpImpl->aPersistName ) )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
// object not known to container document
// No object -> disaster!
DBG_ASSERT( xObjRef.is(), "No object in connect!");
if ( xObjRef.is() )
{
// object came from the outside, now add it to the container
::rtl::OUString aTmp;
rContainer.InsertEmbeddedObject( xObjRef.GetObject(), aTmp );
mpImpl->aPersistName = aTmp;
}
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
else if ( !xObjRef.is() )
xObjRef.Assign( rContainer.GetEmbeddedObject( mpImpl->aPersistName ), xObjRef.GetViewAspect() );
if ( xObjRef.GetObject().is() )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
xObjRef.AssignToContainer( &rContainer, mpImpl->aPersistName );
mpImpl->mbConnected = true;
xObjRef.Lock( TRUE );
2000-09-18 16:07:07 +00:00
}
}
// In Cache einfuegen
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if ( xObjRef.is() )
GetSdrGlobalData().GetOLEObjCache().InsertObj(this);
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
//TODO/LATER: wait for definition of MiscStatus RESIZEONPRINTERCHANGE
//if ( xObjRef.is() && (*ppObjRef)->GetMiscStatus() & SVOBJ_MISCSTATUS_RESIZEONPRINTERCHANGE )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
//TODO/LATER: needs a new handling for OnPrinterChanged
/*
2000-09-18 16:07:07 +00:00
if (pModel && pModel->GetRefDevice() &&
pModel->GetRefDevice()->GetOutDevType() == OUTDEV_PRINTER)
{
// Kein RefDevice oder RefDevice kein Printer
BOOL bModified = (*ppObjRef)->IsModified();
Printer* pPrinter = (Printer*) pModel->GetRefDevice();
(*ppObjRef)->OnDocumentPrinterChanged( pPrinter );
(*ppObjRef)->SetModified( bModified );
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
}*/
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
}
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
void SdrOle2Obj::AddListeners_Impl()
{
if( xObjRef.is() )
2000-09-18 16:07:07 +00:00
{
// register modify listener
if( pModifyListener == NULL )
{
((SdrOle2Obj*)this)->pModifyListener = new SvxUnoShapeModifyListener( (SdrOle2Obj*)this );
pModifyListener->acquire();
}
uno::Reference< util::XModifyBroadcaster > xBC( getXModel(), uno::UNO_QUERY );
if( xBC.is() && pModifyListener )
{
uno::Reference< util::XModifyListener > xListener( pModifyListener );
xBC->addModifyListener( xListener );
}
}
}
// -----------------------------------------------------------------------------
2001-04-12 09:06:03 +00:00
void SdrOle2Obj::Disconnect()
2000-09-18 16:07:07 +00:00
{
if( !mpImpl->mbConnected )
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
{
DBG_ERROR("Connect() called on disconnected object!");
return;
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
}
RemoveListeners_Impl();
Disconnect_Impl();
}
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
void SdrOle2Obj::RemoveListeners_Impl()
{
if( xObjRef.is() && mpImpl->aPersistName.Len() )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
sal_Int32 nState = xObjRef->getCurrentState();
if ( nState != embed::EmbedStates::LOADED )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
uno::Reference< util::XModifyBroadcaster > xBC( getXModel(), uno::UNO_QUERY );
if( xBC.is() && pModifyListener )
{
uno::Reference< util::XModifyListener > xListener( pModifyListener );
xBC->removeModifyListener( xListener );
}
2000-09-18 16:07:07 +00:00
}
}
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
}
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
void SdrOle2Obj::Disconnect_Impl()
{
if ( pModel && mpImpl->aPersistName.Len() )
2000-09-18 16:07:07 +00:00
{
if( pModel->IsInDestruction() )
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
// TODO/LATER: here we must assume that the destruction of the model is enough to make clear that we will not
// remove the object from the container, even if the DrawingObject itself is not destroyed (unfortunately this
// happens later than the destruction of the model, so we can't assert that).
//DBG_ASSERT( bInDestruction, "Model is destroyed, but not me?!" );
//TODO/LATER: should be make sure that the ObjectShell also forgets the object, because we will close it soon?
/*
uno::Reference < util::XCloseable > xClose( xObjRef, uno::UNO_QUERY );
if ( xClose.is() )
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
try
{
xClose->close( sal_True );
}
catch ( util::CloseVetoException& )
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
// there's still someone who needs the object!
}
}
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
xObjRef = NULL;*/
}
else if ( xObjRef.is() )
{
SfxObjectShell* pPers = pModel->GetPersist();
if ( pPers )
{
// remove object, but don't close it
comphelper::EmbeddedObjectContainer& rContainer = pPers->GetEmbeddedObjectContainer();
xObjRef.AssignToContainer( NULL, mpImpl->aPersistName );
rContainer.RemoveEmbeddedObject( xObjRef.GetObject(), sal_False);
}
2000-09-18 16:07:07 +00:00
}
// Aus Cache entfernen
GetSdrGlobalData().GetOLEObjCache().RemoveObj(this);
2000-09-18 16:07:07 +00:00
}
mpImpl->mbConnected = false;
2000-09-18 16:07:07 +00:00
}
// -----------------------------------------------------------------------------
2000-09-18 16:07:07 +00:00
void SdrOle2Obj::SetModel(SdrModel* pNewModel)
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
SfxObjectShell* pDestPers = pNewModel ? pNewModel->GetPersist() : 0;
SfxObjectShell* pSrcPers = pModel ? pModel->GetPersist() : 0;
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
DBG_ASSERT( pSrcPers || !mpImpl->mbConnected, "Connected object without a model?!" );
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if( pDestPers != pSrcPers && mpImpl->mbConnected )
// disconnect from old container
Disconnect();
else
RemoveListeners_Impl();
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if( pDestPers && pSrcPers && ( pDestPers != pSrcPers ) )
{
ImpCopyObject( pSrcPers, pDestPers, mpImpl->aPersistName );
2000-09-18 16:07:07 +00:00
}
SdrRectObj::SetModel( pNewModel );
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if( pDestPers && pDestPers != pSrcPers )
Connect();
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
else
AddListeners_Impl();
2000-09-18 16:07:07 +00:00
}
// -----------------------------------------------------------------------------
2000-09-18 16:07:07 +00:00
void SdrOle2Obj::SetPage(SdrPage* pNewPage)
{
FASTBOOL bRemove=pNewPage==NULL && pPage!=NULL;
FASTBOOL bInsert=pNewPage!=NULL && pPage==NULL;
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if (bRemove && mpImpl->mbConnected )
Disconnect();
2000-09-18 16:07:07 +00:00
SdrRectObj::SetPage(pNewPage);
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if (bInsert && !mpImpl->mbConnected )
Connect();
2000-09-18 16:07:07 +00:00
}
// -----------------------------------------------------------------------------
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
void SdrOle2Obj::SetObjRef( const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >& rNewObjRef )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
DBG_ASSERT( !rNewObjRef.is() || !xObjRef.GetObject().is(), "SetObjRef called on already initialized object!");
if( rNewObjRef == xObjRef.GetObject() )
return;
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
// MBA: the caller of the method is responsible to control the old object, it will not be closed here
// Otherwise WW8 import crashes because it tranfers control to OLENode by this method
if ( xObjRef.GetObject().is() )
xObjRef.Lock( FALSE );
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
// MBA: avoid removal of object in Disconnect! It is definitely a HACK to call SetObjRef(0)!
xObjRef.Clear();
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if ( mpImpl->mbConnected )
Disconnect();
xObjRef.Assign( rNewObjRef, GetAspect() );
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if ( xObjRef.is() )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
DELETEZ( pGraphic );
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if ( (xObjRef->getStatus( GetAspect() ) & embed::EmbedMisc::EMBED_NEVERRESIZE ) )
SetResizeProtect(TRUE);
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
// #108759# For math objects, set closed state to transparent
if( ImplIsMathObj( rNewObjRef ) )
SetClosedObj( false );
Connect();
}
2000-09-18 16:07:07 +00:00
SetChanged();
BroadcastObjectChange();
2000-09-18 16:07:07 +00:00
}
// -----------------------------------------------------------------------------
void SdrOle2Obj::SetClosedObj( bool bIsClosed )
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
// TODO/LATER: do we still need this hack?
// #108759# Allow changes to the closed state of OLE objects
bClosedObj = bIsClosed;
}
// -----------------------------------------------------------------------------
2000-09-18 16:07:07 +00:00
FASTBOOL SdrOle2Obj::HasSetName() const
{
return TRUE;
}
// -----------------------------------------------------------------------------
2000-09-18 16:07:07 +00:00
void SdrOle2Obj::SetName(const XubString& rStr)
{
aName = rStr;
2000-09-18 16:07:07 +00:00
SetChanged();
}
// -----------------------------------------------------------------------------
2000-09-18 16:07:07 +00:00
XubString SdrOle2Obj::GetName() const
{
return aName;
}
// -----------------------------------------------------------------------------
void SdrOle2Obj::SetPersistName( const String& rPersistName )
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
DBG_ASSERT( !mpImpl->aPersistName.Len(), "Persist name changed!");
mpImpl->aPersistName = rPersistName;
mpImpl->mbLoadingOLEObjectFailed = false;
Connect();
SetChanged();
}
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
void SdrOle2Obj::AbandonObject()
{
mpImpl->aPersistName.Erase();
mpImpl->mbLoadingOLEObjectFailed = false;
SetObjRef(0);
}
// -----------------------------------------------------------------------------
String SdrOle2Obj::GetPersistName() const
{
return mpImpl->aPersistName;
}
// -----------------------------------------------------------------------------
2000-09-18 16:07:07 +00:00
void SdrOle2Obj::TakeObjInfo(SdrObjTransformInfoRec& rInfo) const
{
rInfo.bRotateFreeAllowed=FALSE;
rInfo.bRotate90Allowed =FALSE;
rInfo.bMirrorFreeAllowed=FALSE;
rInfo.bMirror45Allowed =FALSE;
rInfo.bMirror90Allowed =FALSE;
rInfo.bTransparenceAllowed = FALSE;
rInfo.bGradientAllowed = FALSE;
rInfo.bShearAllowed =FALSE;
rInfo.bEdgeRadiusAllowed=FALSE;
2000-09-18 16:07:07 +00:00
rInfo.bNoOrthoDesired =FALSE;
rInfo.bCanConvToPath =FALSE;
rInfo.bCanConvToPoly =FALSE;
rInfo.bCanConvToPathLineToArea=FALSE;
rInfo.bCanConvToPolyLineToArea=FALSE;
rInfo.bCanConvToContour = FALSE;
}
// -----------------------------------------------------------------------------
2000-09-18 16:07:07 +00:00
UINT16 SdrOle2Obj::GetObjIdentifier() const
{
return bFrame ? UINT16(OBJ_FRAME) : UINT16(OBJ_OLE2);
}
// -----------------------------------------------------------------------------
sal_Bool SdrOle2Obj::DoPaintObject(XOutputDevice& rOut, const SdrPaintInfoRec& rInfoRec) const
2000-09-18 16:07:07 +00:00
{
sal_Bool bOk(sal_True);
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if( !GetGraphic() )
( (SdrOle2Obj*) this)->GetObjRef_Impl(); // try to create embedded object
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if ( xObjRef.is() )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
sal_Int64 nMiscStatus = xObjRef->getStatus( GetAspect() );
if( !bSizProt && (nMiscStatus & embed::EmbedMisc::EMBED_NEVERRESIZE) )
2000-09-18 16:07:07 +00:00
( (SdrOle2Obj*) this)->bSizProt = TRUE;
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
OutputDevice* pOut = rOut.GetOutDev();
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
//TODO/LATER: currently it's not possible to compare the windows, the XOutDev contains a virtual device
sal_Int32 nState = xObjRef->getCurrentState();
//if ( ( nState != embed::EmbedStates::INPLACE_ACTIVE && nState != embed::EmbedStates::UI_ACTIVE ) ||
// pModel && SfxInPlaceClient::GetActiveWindow( pModel->GetPersist(), xObjRef ) != pOut )
2000-09-18 16:07:07 +00:00
{
if ((rInfoRec.nPaintMode & SDRPAINTMODE_DRAFTGRAF) ==0)
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if ( nMiscStatus & embed::EmbedMisc::MS_EMBED_ACTIVATEWHENVISIBLE )
2000-09-18 16:07:07 +00:00
{
// PlugIn-Objekt connecten
if (rInfoRec.pPV!=NULL)
{
SdrOle2Obj* pOle2Obj = (SdrOle2Obj*) this;
SdrView* pSdrView = (SdrView*) &rInfoRec.pPV->GetView();
pSdrView->DoConnect(pOle2Obj);
}
}
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
// #108759# Temporarily set the current background
// color, since OLEs rely on that during
// auto-colored text rendering
Wallpaper aOldBg( pOut->GetBackground() );
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if( rInfoRec.pPV && GetPage() )
pOut->SetBackground( rInfoRec.pPV->GetView().CalcBackgroundColor( GetSnapRect(),
rInfoRec.pPV->GetVisibleLayers(),
*GetPage() ) );
pOut->Push( PUSH_CLIPREGION );
pOut->IntersectClipRegion( aRect );
GetGraphic();
PaintGraphic_Impl( rOut, rInfoRec, nState == embed::EmbedStates::ACTIVE );
/*
if ( !mpImpl->pMetaFile )
GetGDIMetaFile();
if ( mpImpl->pMetaFile )
mpImpl->pMetaFile->Play( pOut, aRect.TopLeft(), aRect.GetSize() );
//(*ppObjRef)->DoDraw(pOut,aRect.TopLeft(),aRect.GetSize(),JobSetup());
*/
pOut->Pop();
// #108759# Restore old background
pOut->SetBackground( aOldBg );
2000-09-18 16:07:07 +00:00
}
else if( ( rInfoRec.nPaintMode & SDRPAINTMODE_HIDEDRAFTGRAF ) == 0 )
2000-09-18 16:07:07 +00:00
{ // sonst SDRPAINTMODE_DRAFTGRAF
Polygon aPoly(Rect2Poly(aRect,aGeo));
pOut->SetLineColor(Color(COL_BLACK));
pOut->DrawPolyLine(aPoly);
pOut->DrawLine(aPoly[0],aPoly[2]);
pOut->DrawLine(aPoly[1],aPoly[3]);
}
}
}
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
else if ( GetGraphic() )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
PaintGraphic_Impl( rOut, rInfoRec );
2000-09-18 16:07:07 +00:00
}
// #100499# OLE without context and without bitmap, do the same as
// for empty groups, additionally draw empty OLE bitmap
else
{
if(!rInfoRec.bPrinter && rInfoRec.aPaintLayer.IsSet((sal_uInt8)nLayerId))
{
OutputDevice* pOutDev = rOut.GetOutDev();
pOutDev->SetFillColor();
pOutDev->SetLineColor(Color(COL_LIGHTGRAY));
pOutDev->DrawRect(aOutRect);
Bitmap aBitmap(ResId(BMP_OLEOBJ, ImpGetResMgr()));
Rectangle aSnapRect(GetSnapRect());
Size aBitmapSize(pOutDev->PixelToLogic(aBitmap.GetSizePixel()));
pOutDev->DrawBitmap(
aSnapRect.Center() - Point(aBitmapSize.Width() / 2, aBitmapSize.Height() / 2),
aBitmapSize,
aBitmap);
}
}
2000-09-18 16:07:07 +00:00
if (HasText())
{
bOk = SdrTextObj::DoPaintObject(rOut, rInfoRec);
2000-09-18 16:07:07 +00:00
}
return bOk;
}
void SdrOle2Obj::PaintGraphic_Impl( XOutputDevice& rOut, const SdrPaintInfoRec& rInfoRec, sal_Bool bActive ) const
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
{
Graphic* pGr = GetGraphic();
OutputDevice* pOutDev=rOut.GetOutDev();
if ( pGr && pGr->GetType() != GRAPHIC_NONE )
{
if( IsEmptyPresObj() )
{
const MapMode aDstMapMode( pOutDev->GetMapMode().GetMapUnit() );
Point aPos(aRect.Center());
Size aDstSize;
if( pGr->GetPrefMapMode().GetMapUnit() == MAP_PIXEL )
aDstSize = pOutDev->PixelToLogic( pGr->GetPrefSize(), aDstMapMode );
else
aDstSize = pOutDev->LogicToLogic( pGr->GetPrefSize(), pGr->GetPrefMapMode(), aDstMapMode );
aPos.X()-=aDstSize.Width() /2;
aPos.Y()-=aDstSize.Height()/2;
if (aPos.X() >= aRect.Left() && aPos.Y() >= aRect.Top())
pGr->Draw(pOutDev,aPos, aDstSize);
svtools::ColorConfig aColorConfig;
svtools::ColorConfigValue aColor( aColorConfig.GetColorValue( svtools::OBJECTBOUNDARIES ) );
if( aColor.bIsVisible )
{
pOutDev->SetFillColor();
pOutDev->SetLineColor( aColor.nColor );
pOutDev->DrawRect(aRect);
}
}
else
pGr->Draw( pOutDev, aRect.TopLeft(), aRect.GetSize() );
// shade the representation if the object is activated outplace
if ( bActive )
::svt::EmbeddedObjectRef::DrawShading( aRect, pOutDev );
}
else
::svt::EmbeddedObjectRef::DrawPaintReplacement( aRect, mpImpl->aPersistName, pOutDev );
}
// -----------------------------------------------------------------------------
2000-09-18 16:07:07 +00:00
SdrObject* SdrOle2Obj::CheckHit(const Point& rPnt, USHORT nTol, const SetOfByte* pVisiLayer) const
{
return ImpCheckHit(rPnt,nTol,pVisiLayer,TRUE,TRUE);
}
// -----------------------------------------------------------------------------
2000-09-18 16:07:07 +00:00
void SdrOle2Obj::TakeObjNameSingul(XubString& rName) const
{
rName = ImpGetResStr(bFrame ? STR_ObjNameSingulFrame : STR_ObjNameSingulOLE2);
2000-09-18 16:07:07 +00:00
if( aName.Len() )
2000-09-18 16:07:07 +00:00
{
rName.AppendAscii(" '");
rName += aName;
rName += sal_Unicode('\'');
}
}
// -----------------------------------------------------------------------------
2000-09-18 16:07:07 +00:00
void SdrOle2Obj::TakeObjNamePlural(XubString& rName) const
{
rName=ImpGetResStr(bFrame ? STR_ObjNamePluralFrame : STR_ObjNamePluralOLE2);
2000-09-18 16:07:07 +00:00
}
// -----------------------------------------------------------------------------
// #116235#
//void SdrOle2Obj::ImpAssign( const SdrObject& rObj, SdrPage* pNewPage, SdrModel* pNewModel, sal_Bool bRestoreModel )
//{
// const SdrOle2Obj& rOle2Obj = static_cast< const SdrOle2Obj& >( rObj );
// SdrModel* pOldModel = pModel;
//
// if( pModel )
// Disconnect();
//
// SdrRectObj::operator=( rObj );
//
// // #108867# Manually copying bClosedObj attribute
// SetClosedObj( rObj.IsClosedObj() );
//
// if( pNewPage )
// pPage = pNewPage;
//
// if( pNewModel )
// pModel = pNewModel;
//
// aName = rOle2Obj.aName;
// mpImpl->aPersistName = rOle2Obj.mpImpl->aPersistName;
// aProgName = rOle2Obj.aProgName;
// bFrame = rOle2Obj.bFrame;
//
// if( rOle2Obj.pGraphic )
// {
// if( pGraphic )
// {
// delete pGraphic;
// delete mpImpl->pGraphicObject;
// }
//
// pGraphic = new Graphic( *rOle2Obj.pGraphic );
// mpImpl->pGraphicObject = new GraphicObject( *pGraphic );
// }
//
// if( pModel && rObj.GetModel() )
// {
// SvPersist* pDestPers = pModel->GetPersist();
// SvPersist* pSrcPers = rObj.GetModel()->GetPersist();
//
// if( pDestPers && pSrcPers )
// {
// ImpCopyObject( *pSrcPers, *pDestPers, mpImpl->aPersistName );
//
// if( rOle2Obj.ppObjRef->Is() && ppObjRef->Is() &&
// ( (*rOle2Obj.ppObjRef)->GetMapUnit() == (*ppObjRef)->GetMapUnit() ) )
// {
// (*ppObjRef)->SetVisArea( (*rOle2Obj.ppObjRef)->GetVisArea() );
// }
// }
//
// Connect();
// }
//
// if(bRestoreModel)
// {
// pModel = pOldModel;
// }
//}
2000-09-18 16:07:07 +00:00
// -----------------------------------------------------------------------------
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
void SdrOle2Obj::ImpCopyObject( SfxObjectShell* pSrcPersist, SfxObjectShell* pDstPersist, String& rPersistName )
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
DBG_ASSERT( !xObjRef.is(), "Object already existing!" );
comphelper::EmbeddedObjectContainer& rContainer = pSrcPersist->GetEmbeddedObjectContainer();
uno::Reference < embed::XEmbeddedObject > xObj = rContainer.GetEmbeddedObject( rPersistName );
if ( xObj.is() )
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
::rtl::OUString aTmp;
xObjRef.Assign( pDstPersist->GetEmbeddedObjectContainer().CopyEmbeddedObject( xObj, aTmp ), GetAspect() );
rPersistName = aTmp;
2000-09-18 16:07:07 +00:00
}
}
// -----------------------------------------------------------------------------
void SdrOle2Obj::operator=(const SdrObject& rObj)
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
//TODO/LATER: who takes over control of my old object?!
if( &rObj != this )
{
// #116235#
// ImpAssign( rObj );
const SdrOle2Obj& rOle2Obj = static_cast< const SdrOle2Obj& >( rObj );
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
uno::Reference < util::XCloseable > xClose( xObjRef.GetObject(), uno::UNO_QUERY );
if( pModel && mpImpl->mbConnected )
Disconnect();
SdrRectObj::operator=( rObj );
// #108867# Manually copying bClosedObj attribute
SetClosedObj( rObj.IsClosedObj() );
aName = rOle2Obj.aName;
mpImpl->aPersistName = rOle2Obj.mpImpl->aPersistName;
aProgName = rOle2Obj.aProgName;
bFrame = rOle2Obj.bFrame;
if( rOle2Obj.pGraphic )
{
if( pGraphic )
{
delete pGraphic;
delete mpImpl->pGraphicObject;
}
pGraphic = new Graphic( *rOle2Obj.pGraphic );
mpImpl->pGraphicObject = new GraphicObject( *pGraphic );
}
if( pModel && rObj.GetModel() )
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
SfxObjectShell* pDestPers = pModel->GetPersist();
SfxObjectShell* pSrcPers = rObj.GetModel()->GetPersist();
if( pDestPers && pSrcPers )
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
ImpCopyObject( pSrcPers, pDestPers, mpImpl->aPersistName );
if( xObjRef.is() && rOle2Obj.xObjRef.is() && rOle2Obj.xObjRef->getMapUnit( rOle2Obj.GetAspect() ) == xObjRef->getMapUnit( GetAspect() ) )
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
//TODO/LATER: possible optimization: allow to do that in loaded state
svt::EmbeddedObjectRef::TryRunningState( rOle2Obj.xObjRef.GetObject() );
svt::EmbeddedObjectRef::TryRunningState( xObjRef.GetObject() );
xObjRef->setVisualAreaSize( GetAspect(), rOle2Obj.xObjRef->getVisualAreaSize( GetAspect() ) );
}
}
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if( !mpImpl->mbConnected )
Connect();
}
}
}
// -----------------------------------------------------------------------------
// #116235#
//SdrObject* SdrOle2Obj::Clone( SdrPage* pNewPage, SdrModel* pNewModel ) const
//{
// SdrOle2Obj* pObj = static_cast< SdrOle2Obj* >( SdrObjFactory::MakeNewObject( GetObjInventor(), GetObjIdentifier(),NULL ) );
//
// if( pObj )
// {
// pObj->ImpAssign( *this, pNewPage, pNewModel, sal_True );
//
// if( pNewModel )
// pObj->SetModel( pNewModel );
// }
//
// return pObj;
//}
// -----------------------------------------------------------------------------
2000-09-18 16:07:07 +00:00
FASTBOOL SdrOle2Obj::HasSpecialDrag() const
{
return FALSE;
}
// -----------------------------------------------------------------------------
2000-09-18 16:07:07 +00:00
void SdrOle2Obj::ImpSetVisAreaSize()
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
//TODO/LATER: possible optimization: allow to do that in loaded state
GetObjRef(); // try to load inplace object
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if ( xObjRef.is())
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
sal_Int64 nMiscStatus = xObjRef->getStatus( GetAspect() );
if ( nMiscStatus & embed::EmbedMisc::MS_EMBED_RECOMPOSEONRESIZE)
2000-09-18 16:07:07 +00:00
{
// Server resized selbst (StarChart)
// Neue VisArea setzen
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
//TODO/LATER: is it enough to use only size, not rectangle?
MapUnit aMapUnit = VCLUnoHelper::UnoEmbed2VCLMapUnit( xObjRef->getMapUnit( GetAspect() ) );
Rectangle aVisArea = OutputDevice::LogicToLogic( aRect, pModel->GetScaleUnit(), aMapUnit);
awt::Size aSz;
aSz.Width = aVisArea.GetSize().Width();
aSz.Height = aVisArea.GetSize().Height();
xObjRef->setVisualAreaSize( GetAspect(), aSz );
2000-09-18 16:07:07 +00:00
// Wurde die VisArea akzeptiert?
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
//TODO/LATER: is it enough to use only size, not rectangle?
aSz = xObjRef->getVisualAreaSize( GetAspect() );
Rectangle aAcceptedVisArea;
aAcceptedVisArea.SetSize( Size( aSz.Width, aSz.Height ) );
//Rectangle aAcceptedVisArea(rIPRef->GetVisArea());
2000-09-18 16:07:07 +00:00
if (aVisArea.GetSize() != aAcceptedVisArea.GetSize())
{
// VisArea wurde nicht akzeptiert -> korrigieren
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
MapUnit aMapUnit = VCLUnoHelper::UnoEmbed2VCLMapUnit( xObjRef->getMapUnit( GetAspect() ) );
aRect.SetSize(OutputDevice::LogicToLogic( aAcceptedVisArea.GetSize(), aMapUnit, pModel->GetScaleUnit()));
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
xObjRef.UpdateReplacement();
2000-09-18 16:07:07 +00:00
}
else
{
/**********************************************************************
* Nun wird nicht mehr die VisArea gesetzt, sondern es erfolgt eine
* Skalierung
**********************************************************************/
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
SfxInPlaceClient* pClient = SfxInPlaceClient::GetClient( pModel->GetPersist(), xObjRef.GetObject() );
if ( pClient && xObjRef.is() )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
awt::Size aObjSize = xObjRef->getVisualAreaSize( GetAspect() );
MapUnit aMapUnit = VCLUnoHelper::UnoEmbed2VCLMapUnit( xObjRef->getMapUnit( GetAspect() ) );
Size aObjAreaSize(aObjSize.Width, aObjSize.Height);
aObjAreaSize = OutputDevice::LogicToLogic( aObjAreaSize, aMapUnit, pModel->GetScaleUnit() );
2000-09-18 16:07:07 +00:00
Size aSize = aRect.GetSize();
Fraction aScaleWidth (aSize.Width(), aObjAreaSize.Width() );
Fraction aScaleHeight(aSize.Height(), aObjAreaSize.Height() );
// Nun auf 10 Binaerstellen kuerzen
Kuerzen(aScaleHeight, 10);
Kuerzen(aScaleWidth, 10);
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
pClient->SetSizeScale(aScaleWidth, aScaleHeight);
2000-09-18 16:07:07 +00:00
Rectangle aScaleRect(aRect.TopLeft(), aObjAreaSize);
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
pClient->SetObjArea(aScaleRect);
2000-09-18 16:07:07 +00:00
}
}
}
}
// -----------------------------------------------------------------------------
2000-09-18 16:07:07 +00:00
void SdrOle2Obj::NbcResize(const Point& rRef, const Fraction& xFact, const Fraction& yFact)
{
SdrRectObj::NbcResize(rRef,xFact,yFact);
if (aGeo.nShearWink!=0 || aGeo.nDrehWink!=0) { // kleine Korrekturen
if (aGeo.nDrehWink>=9000 && aGeo.nDrehWink<27000) {
aRect.Move(aRect.Left()-aRect.Right(),aRect.Top()-aRect.Bottom());
}
aGeo.nDrehWink=0;
aGeo.nShearWink=0;
aGeo.nSin=0.0;
aGeo.nCos=1.0;
aGeo.nTan=0.0;
SetRectsDirty();
}
2001-07-24 07:51:46 +00:00
if( (NULL == pModel) || !pModel->isLocked() )
ImpSetVisAreaSize();
2000-09-18 16:07:07 +00:00
}
// -----------------------------------------------------------------------------
2000-09-18 16:07:07 +00:00
void SdrOle2Obj::SetGeoData(const SdrObjGeoData& rGeo)
{
SdrRectObj::SetGeoData(rGeo);
2001-07-24 07:51:46 +00:00
if( (NULL == pModel) || !pModel->isLocked() )
ImpSetVisAreaSize();
2000-09-18 16:07:07 +00:00
}
// -----------------------------------------------------------------------------
2000-09-18 16:07:07 +00:00
void SdrOle2Obj::NbcSetSnapRect(const Rectangle& rRect)
{
SdrRectObj::NbcSetSnapRect(rRect);
2001-07-24 07:51:46 +00:00
if( (NULL == pModel) || !pModel->isLocked() )
ImpSetVisAreaSize();
2000-09-18 16:07:07 +00:00
}
// -----------------------------------------------------------------------------
2000-09-18 16:07:07 +00:00
void SdrOle2Obj::NbcSetLogicRect(const Rectangle& rRect)
{
SdrRectObj::NbcSetLogicRect(rRect);
2001-07-24 07:51:46 +00:00
if( (NULL == pModel) || !pModel->isLocked() )
ImpSetVisAreaSize();
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
Graphic* SdrOle2Obj::GetGraphic() const
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if ( xObjRef.is() )
return xObjRef.GetGraphic();
return pGraphic;
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
void SdrOle2Obj::GetNewReplacement()
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if ( xObjRef.is() )
xObjRef.UpdateReplacement();
2000-09-18 16:07:07 +00:00
}
// -----------------------------------------------------------------------------
//BFS01void SdrOle2Obj::WriteData(SvStream& rOut) const
//BFS01{
//BFS01 SdrRectObj::WriteData(rOut);
//BFS01 SdrDownCompat aCompat(rOut,STREAM_WRITE); // Fuer Abwaertskompatibilitaet (Lesen neuer Daten mit altem Code)
//BFS01#ifdef DBG_UTIL
//BFS01 aCompat.SetID("SdrOle2Obj");
//BFS01#endif
//BFS01
//BFS01 // UNICODE: rOut<<mpImpl->aPersistName;
//BFS01 rOut.WriteByteString(mpImpl->aPersistName);
//BFS01
//BFS01 // UNICODE: rOut<<aProgName;
//BFS01 rOut.WriteByteString(aProgName);
//BFS01
//BFS01 GetObjRef();
//BFS01 BOOL bObjRefValid=ppObjRef->Is();
//BFS01 rOut<<bObjRefValid;
//BFS01 BOOL bPreview = FALSE;
//BFS01 if( !IsEmptyPresObj() && pModel && pModel->IsSaveOLEPreview() )
//BFS01 bPreview = TRUE;
//BFS01
//BFS01 if( bPreview )
//BFS01 {
//BFS01 // set preview graphic (not for empty presentation objects)
//BFS01 GetGDIMetaFile();
//BFS01 if( mpImpl->pMetaFile )
//BFS01 {
//BFS01 Graphic aNewGraphic( *mpImpl->pMetaFile );
//BFS01 ( (SdrOle2Obj*) this )->SetGraphic( &aNewGraphic );
//BFS01 }
//BFS01 }
//BFS01
//BFS01 BOOL bHasGraphic=pGraphic!=NULL;
//BFS01 rOut<<bHasGraphic;
//BFS01 if (bHasGraphic)
//BFS01 {
//BFS01 SdrDownCompat aGrafCompat(rOut,STREAM_WRITE); // ab V11 eingepackt
//BFS01#ifdef DBG_UTIL
//BFS01 aGrafCompat.SetID("SdrOle2Obj(Graphic)");
//BFS01#endif
//BFS01 rOut<<*pGraphic;
//BFS01 }
//BFS01
//BFS01 if( bPreview )
//BFS01 ( (SdrOle2Obj*) this )->SetGraphic( NULL ); // remove preview graphic
//BFS01}
2000-09-18 16:07:07 +00:00
// -----------------------------------------------------------------------------
//BFS01void SdrOle2Obj::ReadData(const SdrObjIOHeader& rHead, SvStream& rIn)
//BFS01{
//BFS01 rIn.SetError( 0 );
//BFS01
//BFS01 if (rIn.GetError()!=0) return;
//BFS01 SdrRectObj::ReadData(rHead,rIn);
//BFS01 SdrDownCompat aCompat(rIn,STREAM_READ); // Fuer Abwaertskompatibilitaet (Lesen neuer Daten mit altem Code)
//BFS01#ifdef DBG_UTIL
//BFS01 aCompat.SetID("SdrOle2Obj");
//BFS01#endif
//BFS01
//BFS01 // UNICODE: rIn >> mpImpl->aPersistName;
//BFS01 rIn.ReadByteString(mpImpl->aPersistName);
//BFS01
//BFS01 // UNICODE: rIn >> aProgName;
//BFS01 rIn.ReadByteString(aProgName);
//BFS01
//BFS01 BOOL bObjRefValid;
//BFS01 rIn>>bObjRefValid;
//BFS01
//BFS01 BOOL bHasGraphic;
//BFS01 rIn>>bHasGraphic;
//BFS01 if (bHasGraphic)
//BFS01 {
//BFS01 if(pGraphic==NULL)
//BFS01 pGraphic=new Graphic;
//BFS01
//BFS01 if(rHead.GetVersion()>=11)
//BFS01 { // ab V11 eingepackt
//BFS01 SdrDownCompat aGrafCompat(rIn,STREAM_READ);
//BFS01#ifdef DBG_UTIL
//BFS01 aGrafCompat.SetID("SdrOle2Obj(Graphic)");
//BFS01#endif
//BFS01 rIn>>*pGraphic;
//BFS01 }
//BFS01 else
//BFS01 rIn>>*pGraphic;
//BFS01
//BFS01 if( mpImpl->pGraphicObject )
//BFS01 delete mpImpl->pGraphicObject;
//BFS01
//BFS01 mpImpl->pGraphicObject = new GraphicObject( *pGraphic );
//BFS01 }
//BFS01}
2000-09-18 16:07:07 +00:00
// -----------------------------------------------------------------------------
2000-09-18 16:07:07 +00:00
void SdrOle2Obj::NbcMove(const Size& rSize)
{
SdrRectObj::NbcMove(rSize);
2001-07-24 07:51:46 +00:00
if( (NULL == pModel) || !pModel->isLocked() )
ImpSetVisAreaSize();
2000-09-18 16:07:07 +00:00
}
// -----------------------------------------------------------------------------
2000-09-18 16:07:07 +00:00
BOOL SdrOle2Obj::Unload()
{
BOOL bUnloaded = FALSE;
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if( xObjRef.is() )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
//TODO/LATER: no refcounting tricks anymore!
//"customers" must register as state change listeners
2000-09-18 16:07:07 +00:00
//Nicht notwendig im Doc DTor (MM)
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
//ULONG nRefCount = (*ppObjRef)->GetRefCount();
2000-09-18 16:07:07 +00:00
// prevent Unload if there are external references
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
//if( nRefCount > 2 )
// return FALSE;
//DBG_ASSERT( nRefCount == 2, "Wrong RefCount for unload" );
2000-09-18 16:07:07 +00:00
}
2001-04-12 09:06:03 +00:00
else
bUnloaded = TRUE;
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if ( pModel && xObjRef.is() )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
sal_Int64 nMiscStatus = xObjRef->getStatus( GetAspect() );
sal_Int32 nState = xObjRef->getCurrentState();
if ( nState == embed::EmbedStates::LOADED )
{
bUnloaded = TRUE;
return bUnloaded;
}
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
uno::Reference < util::XModifiable > xModifiable( xObjRef->getComponent(), uno::UNO_QUERY );
if ( embed::EmbedMisc::MS_EMBED_ALWAYSRUN != nMiscStatus &&
//TODO/LATER: no refcounting tricks anymore!
//1 < (*ppObjRef)->GetRefCount() &&
!( xModifiable.is() && xModifiable->isModified() ) &&
!( nState == embed::EmbedStates::INPLACE_ACTIVE || nState == embed::EmbedStates::UI_ACTIVE ) )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
xObjRef->changeState( embed::EmbedStates::LOADED );
bUnloaded = TRUE;
2000-09-18 16:07:07 +00:00
}
}
return bUnloaded;
}
// -----------------------------------------------------------------------------
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
void SdrOle2Obj::CreatePersistName( SfxObjectShell* pPers )
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
mpImpl->aPersistName = pPers->GetEmbeddedObjectContainer().CreateUniqueObjectName();
}
// -----------------------------------------------------------------------------
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
void SdrOle2Obj::GetObjRef_Impl()
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if ( !xObjRef.is() && mpImpl->aPersistName.Len() && pModel && pModel->GetPersist() )
2000-09-18 16:07:07 +00:00
{
// #107645#
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
// Only try loading if it did not went wrong up to now
if(!mpImpl->mbLoadingOLEObjectFailed)
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
xObjRef.Assign( pModel->GetPersist()->GetEmbeddedObjectContainer().GetEmbeddedObject( mpImpl->aPersistName ) );
// #107645#
// If loading of OLE object failed, remember that to not invoke a endless
// loop trying to load it again and again.
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if( xObjRef.is() )
{
mpImpl->mbLoadingOLEObjectFailed = sal_True;
}
// #108759# For math objects, set closed state to transparent
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if( ImplIsMathObj( xObjRef.GetObject() ) )
SetClosedObj( false );
}
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if ( xObjRef.is() )
2000-09-18 16:07:07 +00:00
{
if( !IsEmptyPresObj() )
{
// #75637# remember modified status of model
const sal_Bool bWasChanged(pModel ? pModel->IsChanged() : sal_False);
2000-09-18 16:07:07 +00:00
// perhaps preview not valid anymore
// #75637# This line changes the modified state of the model
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
SetGraphic_Impl( NULL );
2000-09-18 16:07:07 +00:00
// #75637# if status was not set before, force it back
// to not set, so that SetGraphic(0L) above does not
// set the modified state of the model.
if(!bWasChanged && pModel && pModel->IsChanged())
{
pModel->SetChanged( sal_False );
}
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
sal_Int64 nMiscStatus = xObjRef->getStatus( GetAspect() );
//TODO/LATER: wait until ResizeOnPrinterChange is defined
//if ( nMiscStatus & SVOBJ_MISCSTATUS_RESIZEONPRINTERCHANGE )
2000-09-18 16:07:07 +00:00
{
if (pModel && pModel->GetRefDevice() &&
pModel->GetRefDevice()->GetOutDevType() == OUTDEV_PRINTER)
{
if(!bInDestruction)
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
//TODO/LATER: printerchange notification
/*
// prevent SetModified (don't want no update here)
sal_Bool bWasEnabled = (*ppObjRef)->IsEnableSetModified();
if ( bWasEnabled )
(*ppObjRef)->EnableSetModified( sal_False );
// Kein RefDevice oder RefDevice kein Printer
Printer* pPrinter = (Printer*) pModel->GetRefDevice();
(*ppObjRef)->OnDocumentPrinterChanged( pPrinter );
// reset state
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
(*ppObjRef)->EnableSetModified( bWasEnabled );*/
}
2000-09-18 16:07:07 +00:00
}
}
}
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if ( xObjRef.is() )
Connect();
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
}
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
uno::Reference < embed::XEmbeddedObject > SdrOle2Obj::GetObjRef() const
{
const_cast<SdrOle2Obj*>(this)->GetObjRef_Impl();
if ( xObjRef.is() )
svt::EmbeddedObjectRef::TryRunningState( xObjRef.GetObject() );
return xObjRef.GetObject();
2000-09-18 16:07:07 +00:00
}
// -----------------------------------------------------------------------------
2000-09-18 16:07:07 +00:00
uno::Reference< frame::XModel > SdrOle2Obj::getXModel() const
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
GetObjRef();
if ( xObjRef.is() )
return uno::Reference< frame::XModel >( xObjRef->getComponent(), uno::UNO_QUERY );
else
return uno::Reference< frame::XModel >();
2000-09-18 16:07:07 +00:00
}
// -----------------------------------------------------------------------------
// #109985#
sal_Bool SdrOle2Obj::IsChart() const
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if ( !xObjRef.is() )
return false;
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
SvGlobalName aObjClsId( xObjRef->getClassID() );
if(
SvGlobalName(SO3_SCH_CLASSID_30) == aObjClsId
|| SvGlobalName(SO3_SCH_CLASSID_40) == aObjClsId
|| SvGlobalName(SO3_SCH_CLASSID_50) == aObjClsId
|| SvGlobalName(SO3_SCH_CLASSID_60) == aObjClsId)
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
return sal_True;
}
return sal_False;
}
// -----------------------------------------------------------------------------
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
Rectangle SdrOle2Obj::GetVisibleArea()
{
Rectangle aRect;
if( xObjRef.is() )
{
//TODO/LATER: possible optimization: allow to do that in loaded state
svt::EmbeddedObjectRef::TryRunningState( xObjRef.GetObject() );
awt::Size aSize = xObjRef->getVisualAreaSize( GetAspect() );
aRect.SetSize( Size( aSize.Width, aSize.Height ) );
}
return aRect;
}
/// #110015# sets the visible area at the SvInPlaceObject and SvEmbeddedInfoObject
void SdrOle2Obj::SetVisibleArea( const Rectangle& rVisArea )
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
if( xObjRef.is() )
{
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
//TODO/LATER: possible optimization: allow to do that in loaded state
svt::EmbeddedObjectRef::TryRunningState( xObjRef.GetObject() );
awt::Size aSize;
aSize.Width = rVisArea.GetWidth();
aSize.Height = rVisArea.GetHeight();
xObjRef->setVisualAreaSize( GetAspect(), aSize );
//TODO/LATER: should we continue hacking?!
//if( pModel && (!pModel->GetPersist()->IsEnableSetModified()) )
// xInplace->SetModified(FALSE);
}
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
/*
if(pModel && mpImpl->aPersistName.Len() )
{
SvPersist* pPers = pModel->GetPersist();
if (pPers)
{
SvInfoObject* pInfo = pPers->Find(mpImpl->aPersistName);
SvEmbeddedInfoObject * pEmbed = PTR_CAST(SvEmbeddedInfoObject, pInfo );
if( pEmbed )
pEmbed->SetInfoVisArea( rVisArea );
}
INTEGRATION: CWS mav09 (1.42.58); FILE MERGED 2004/09/08 10:22:11 mav 1.42.58.25: #i27773# do not try to retrieve object if there is no persist name 2004/09/07 15:19:37 mav 1.42.58.24: #i27773# paint embedded objects 2004/09/03 11:13:03 mba 1.42.58.23: #i27773#: use one single method to clear on SdrOleObject 2004/09/01 14:29:39 mba 1.42.58.22: #i27773#: COM-Objects on Linux must work in Loaded state 2004/08/30 17:06:32 mav 1.42.58.21: #i27773# chart update 2004/07/15 12:17:08 mba 1.42.58.20: #i27773#: cleaning up todos 2004/07/06 16:19:29 mba 1.42.58.19: #i27773#: work on TODOs 2004/07/06 16:12:00 mav 1.42.58.18: #i27773# shading of outplace activated objects 2004/07/02 08:44:36 mba 1.42.58.17: #i27773#: some ToDos 2004/06/10 16:47:05 mba 1.42.58.16: #i27773#: some fixed to make InPlace Editing work; fixed for MS import 2004/06/02 11:48:59 mba 1.42.58.15: #i27773#: SetObjRef shouldn't close objects, the control is taken over by the caller 2004/06/01 08:11:48 mba 1.42.58.14: #i27773#: new embedding API 2004/05/28 16:18:27 mba 1.42.58.13: #27773#: Maintain ViewAspect on SdrOleObject 2004/05/19 14:28:52 mav 1.42.58.12: #i27773# resolve resync problems 2004/05/17 20:56:53 mav 1.42.58.11: RESYNC: (1.43-1.44); FILE MERGED 2004/05/16 17:29:05 mba 1.42.58.10: #i27773#: new EmbeddedObjectContainer 2004/05/10 08:08:23 mba 1.42.58.9: #i27773#: some work done for proper object sharing 2004/05/06 16:48:35 mba 1.42.58.8: #i27773#: always use graphic objects instead of MetaFiles 2004/05/05 12:02:19 mba 1.42.58.7: #i27773#: retrieve new Metafile after OLE object has been saved 2004/05/04 14:04:34 mba 1.42.58.6: #i27773#: remove so3 2004/04/29 20:16:33 mav 1.42.58.5: RESYNC: (1.42-1.43); FILE MERGED 2004/04/26 11:55:37 mba 1.42.58.4: #i27773#: new embedding API 2004/04/23 17:01:50 mba 1.42.58.3: #i27773#: work with new embedding API 2004/04/21 14:45:29 mba 1.42.58.2: #i27773#: new storage and embedding API 2004/04/14 14:10:53 mba 1.42.58.1: #i27773#: remove so3; new storage API
2004-10-04 16:54:47 +00:00
}*/
}
// eof