Files
libreoffice/dbaccess/source/core/dataaccess/documentdefinition.cxx

2120 lines
85 KiB
C++
Raw Normal View History

2000-09-18 23:16:46 +00:00
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2000-09-18 23:16:46 +00:00
*
* Copyright 2008 by Sun Microsystems, Inc.
2000-09-18 23:16:46 +00:00
*
* OpenOffice.org - a multi-platform office productivity suite
2000-09-18 23:16:46 +00:00
*
* $RCSfile: documentdefinition.cxx,v $
2008-10-01 12:28:29 +00:00
* $Revision: 1.64.20.2 $
2000-09-18 23:16:46 +00:00
*
* This file is part of OpenOffice.org.
2000-09-18 23:16:46 +00:00
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
2000-09-18 23:16:46 +00:00
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
2000-09-18 23:16:46 +00:00
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
2000-09-18 23:16:46 +00:00
*
************************************************************************/
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_dbaccess.hxx"
2000-09-18 23:16:46 +00:00
#ifndef _DBA_COREDATAACCESS_DOCUMENTDEFINITION_HXX_
#include "documentdefinition.hxx"
#endif
2000-10-25 06:42:28 +00:00
#ifndef DBACCESS_SHARED_DBASTRINGS_HRC
#include "dbastrings.hrc"
2000-09-18 23:16:46 +00:00
#endif
#ifndef DBACORE_SDBCORETOOLS_HXX
#include "sdbcoretools.hxx"
#endif
2000-09-18 23:16:46 +00:00
#ifndef _TOOLS_DEBUG_HXX
#include <tools/debug.hxx>
#endif
#ifndef TOOLS_DIAGNOSE_EX_H
#include <tools/diagnose_ex.h>
#endif
2000-10-11 10:21:40 +00:00
#ifndef _COMPHELPER_PROPERTY_HXX_
#include <comphelper/property.hxx>
2000-09-18 23:16:46 +00:00
#endif
2000-10-11 10:21:40 +00:00
#ifndef _COMPHELPER_SEQUENCE_HXX_
#include <comphelper/sequence.hxx>
2000-09-18 23:16:46 +00:00
#endif
#ifndef _COMPHELPER_MEDIADESCRIPTOR_HXX_
#include <comphelper/mediadescriptor.hxx>
#endif
#ifndef COMPHELPER_NAMEDVALUECOLLECTION_HXX
#include <comphelper/namedvaluecollection.hxx>
#endif
#ifndef _COMPHELPER_CLASSIDS_HXX
#include <comphelper/classids.hxx>
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
#endif
#include <com/sun/star/frame/XUntitledNumbers.hpp>
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
#ifndef _COM_SUN_STAR_AWT_XTOPWINDOW_HPP_
#include <com/sun/star/awt/XTopWindow.hpp>
#endif
#ifndef _COM_SUN_STAR_AWT_SIZE_HPP_
#include <com/sun/star/awt/Size.hpp>
#endif
2000-09-18 23:16:46 +00:00
#ifndef _COM_SUN_STAR_LANG_DISPOSEDEXCEPTION_HPP_
#include <com/sun/star/lang/DisposedException.hpp>
#endif
2000-10-25 06:42:28 +00:00
#ifndef _COM_SUN_STAR_BEANS_PROPERTYATTRIBUTE_HPP_
#include <com/sun/star/beans/PropertyAttribute.hpp>
#endif
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
#ifndef _COM_SUN_STAR_FRAME_XMODEL_HPP_
#include <com/sun/star/frame/XModel.hpp>
#endif
#include <com/sun/star/frame/XTitle.hpp>
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
#ifndef _COM_SUN_STAR_FRAME_XCONTROLLER_HPP_
#include <com/sun/star/frame/XController.hpp>
#endif
#ifndef _COM_SUN_STAR_TASK_XJOBEXECUTOR_HPP_
#include <com/sun/star/task/XJobExecutor.hpp>
#endif
#ifndef _COM_SUN_STAR_FRAME_XDISPATCHPROVIDERINTERCEPTION_HPP_
#include <com/sun/star/frame/XDispatchProviderInterception.hpp>
#endif
#ifndef _COM_SUN_STAR_FRAME_XFRAMESSUPPLIER_HPP_
#include <com/sun/star/frame/XFramesSupplier.hpp>
#endif
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
#ifndef _COM_SUN_STAR_UCB_INSERTCOMMANDARGUMENT_HPP_
#include <com/sun/star/ucb/InsertCommandArgument.hpp>
#endif
#include <com/sun/star/report/XReportDefinition.hpp>
#include <com/sun/star/report/XReportEngine.hpp>
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
#ifndef _COM_SUN_STAR_UCB_OPENMODE_HPP_
#include <com/sun/star/ucb/OpenMode.hpp>
#endif
#ifndef _COM_SUN_STAR_XEMBEDOBJECTFACTORY_HPP_
#include <com/sun/star/embed/XEmbedObjectFactory.hpp>
#endif
#ifndef _COM_SUN_STAR_XEMBEDOBJECTCREATOR_HPP_
#include <com/sun/star/embed/XEmbedObjectCreator.hpp>
#endif
#ifndef _COM_SUN_STAR_EMBED_ASPECTS_HPP_
#include <com/sun/star/embed/Aspects.hpp>
#endif
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
#ifndef _UCBHELPER_CANCELCOMMANDEXECUTION_HXX_
#include <ucbhelper/cancelcommandexecution.hxx>
#endif
#ifndef _COM_SUN_STAR_UCB_UNSUPPORTEDDATASINKEXCEPTION_HPP_
#include <com/sun/star/ucb/UnsupportedDataSinkException.hpp>
#endif
#ifndef _COM_SUN_STAR_UCB_UNSUPPORTEDOPENMODEEXCEPTION_HPP_
#include <com/sun/star/ucb/UnsupportedOpenModeException.hpp>
#endif
#ifndef _COM_SUN_STAR_ELEMENTMODES_HPP_
#include <com/sun/star/embed/ElementModes.hpp>
#endif
#ifndef _COM_SUN_STAR_XEMBEDPERSIST_HPP_
#include <com/sun/star/embed/XEmbedPersist.hpp>
#endif
#ifndef _COM_SUN_STAR_EMBEDSTATES_HPP_
#include <com/sun/star/embed/EmbedStates.hpp>
#endif
#ifndef _COM_SUN_STAR_XCOMPONENTSUPPLIER_HPP_
#include <com/sun/star/embed/XComponentSupplier.hpp>
#endif
#ifndef _COM_SUN_STAR_ENTRYINITMODES_HPP_
#include <com/sun/star/embed/EntryInitModes.hpp>
#endif
#ifndef _COM_SUN_STAR_UCB_MISSINGPROPERTIESEXCEPTION_HPP_
#include <com/sun/star/ucb/MissingPropertiesException.hpp>
#endif
#ifndef _COM_SUN_STAR_UCB_MISSINGINPUTSTREAMEXCEPTION_HPP_
#include <com/sun/star/ucb/MissingInputStreamException.hpp>
#endif
#ifndef _COM_SUN_STAR_UCB_OPENCOMMANDARGUMENT2_HPP_
#include <com/sun/star/ucb/OpenCommandArgument2.hpp>
#endif
#ifndef _COM_SUN_STAR_UTIL_XCLOSEBROADCASTER_HPP_
#include <com/sun/star/util/XCloseBroadcaster.hpp>
#endif
#ifndef _COM_SUN_STAR_FRAME_XMODULE_HPP_
#include <com/sun/star/frame/XModule.hpp>
#endif
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
#ifndef _COM_SUN_STAR_DATATRANSFER_DATAFLAVOR_HPP_
#include <com/sun/star/datatransfer/DataFlavor.hpp>
#endif
#ifndef _COM_SUN_STAR_DATATRANSFER_XTRANSFERABLE_HPP_
#include <com/sun/star/datatransfer/XTransferable.hpp>
#endif
#ifndef _COM_SUN_STAR_CONTAINER_XNAMECONTAINER_HPP_
#include <com/sun/star/container/XNameContainer.hpp>
#endif
#ifndef _COM_SUN_STAR_XTRANSACTEDOBJECT_HPP_
#include <com/sun/star/embed/XTransactedObject.hpp>
#endif
#ifndef _COM_SUN_STAR_EMBED_XCOMMONEMBEDPERSIST_HPP_
#include <com/sun/star/embed/XCommonEmbedPersist.hpp>
#endif
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
#ifndef DBA_INTERCEPT_HXX
#include "intercept.hxx"
#endif
#ifndef _COM_SUN_STAR_SDB_ERRORCONDITION_HPP_
#include <com/sun/star/sdb/ErrorCondition.hpp>
#endif
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
#ifndef _COM_SUN_STAR_SDB_XINTERACTIONDOCUMENTSAVE_HPP_
#include <com/sun/star/sdb/XInteractionDocumentSave.hpp>
#endif
#ifndef _COM_SUN_STAR_TASK_XINTERACTIONHANDLER_HPP_
#include <com/sun/star/task/XInteractionHandler.hpp>
#endif
#ifndef _COM_SUN_STAR_SDB_DOCUMENTSAVEREQUEST_HPP_
#include <com/sun/star/sdb/DocumentSaveRequest.hpp>
#endif
#ifndef _COM_SUN_STAR_DOCUMENT_XDOCUMENTPROPERTIESSUPPLIER_HPP_
#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
#endif
#ifndef _COM_SUN_STAR_DOCUMENT_MACROEXECMODE_HPP_
#include <com/sun/star/document/MacroExecMode.hpp>
#endif
#ifndef _COM_SUN_STAR_DRAWING_XDRAWPAGESUPPLIER_HPP_
#include <com/sun/star/drawing/XDrawPageSupplier.hpp>
#endif
#ifndef _COM_SUN_STAR_CONTAINER_XINDEXCONTAINER_HPP_
#include <com/sun/star/container/XIndexContainer.hpp>
#endif
#ifndef _COM_SUN_STAR_FORM_XFORMSSUPPLIER_HPP_
#include <com/sun/star/form/XFormsSupplier.hpp>
#endif
#ifndef _COM_SUN_STAR_FORM_XFORM_HPP_
#include <com/sun/star/form/XForm.hpp>
#endif
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
#ifndef _COMPHELPER_INTERACTION_HXX_
#include <comphelper/interaction.hxx>
#endif
#ifndef _CONNECTIVITY_DBTOOLS_HXX_
#include <connectivity/dbtools.hxx>
#endif
#ifndef _SV_SVAPP_HXX
#include <vcl/svapp.hxx>
#endif
#ifndef _VOS_MUTEX_HXX_
#include <vos/mutex.hxx>
#endif
#ifndef _COM_SUN_STAR_VIEW_XVIEWSETTINGSSUPPLIER_HPP_
#include <com/sun/star/view/XViewSettingsSupplier.hpp>
#endif
#ifndef _DBA_CORE_RESOURCE_HXX_
#include "core_resource.hxx"
#endif
#ifndef _DBA_CORE_RESOURCE_HRC_
#include "core_resource.hrc"
#endif
#ifndef _DBA_COREDATAACCESS_DATASOURCE_HXX_
#include "datasource.hxx"
#endif
#ifndef _COM_SUN_STAR_EMBED_XSTATECHANGEBROADCASTER_HPP_
#include <com/sun/star/embed/XStateChangeBroadcaster.hpp>
#endif
#ifndef _COM_SUN_STAR_TASK_XINTERACTIONAPPROVE_HPP_
#include <com/sun/star/task/XInteractionApprove.hpp>
#endif
#ifndef _COM_SUN_STAR_TASK_XINTERACTIONDISAPPROVE_HPP_
#include <com/sun/star/task/XInteractionDisapprove.hpp>
#endif
2005-03-16 14:49:18 +00:00
#ifndef _COM_SUN_STAR_FRAME_XLAYOUTMANAGER_HPP_
#include <com/sun/star/frame/XLayoutManager.hpp>
#endif
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
#ifndef _CPPUHELPER_COMPBASE1_HXX_
#include <cppuhelper/compbase1.hxx>
#endif
#include <cppuhelper/exc_hlp.hxx>
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
#ifndef _COM_SUN_STAR_FRAME_FRAMESEARCHFLAG_HPP_
#include <com/sun/star/frame/FrameSearchFlag.hpp>
#endif
#ifndef _COMPHELPER_SEQUENCEASHASHMAP_HXX_
#include <comphelper/sequenceashashmap.hxx>
#endif
#ifndef _COMPHELPER_MIMECONFIGHELPER_HXX_
#include <comphelper/mimeconfighelper.hxx>
#endif
#ifndef _COMPHELPER_STORAGEHELPER_HXX
#include <comphelper/storagehelper.hxx>
#endif
#ifndef _COM_SUN_STAR_CONTAINER_XCONTENTENUMERATIONACCESS_HPP_
#include <com/sun/star/container/XContentEnumerationAccess.hpp>
#endif
#include <com/sun/star/io/WrongFormatException.hpp>
#include <com/sun/star/sdb/application/XDatabaseDocumentUI.hpp>
#include <com/sun/star/sdb/application/DatabaseObject.hpp>
2000-09-18 23:16:46 +00:00
using namespace ::com::sun::star;
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
using namespace ::com::sun::star::view;
2000-09-18 23:16:46 +00:00
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::util;
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
using namespace ::com::sun::star::ucb;
2000-09-18 23:16:46 +00:00
using namespace ::com::sun::star::beans;
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::embed;
using namespace ::com::sun::star::frame;
using namespace ::com::sun::star::document;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::datatransfer;
using namespace ::com::sun::star::task;
using namespace ::com::sun::star::form;
using namespace ::com::sun::star::drawing;
2000-09-18 23:16:46 +00:00
using namespace ::osl;
2000-10-11 10:21:40 +00:00
using namespace ::comphelper;
2000-09-18 23:16:46 +00:00
using namespace ::cppu;
namespace css = ::com::sun::star;
using ::com::sun::star::sdb::application::XDatabaseDocumentUI;
namespace DatabaseObject = ::com::sun::star::sdb::application::DatabaseObject;
#define DEFAULT_WIDTH 10000
#define DEFAULT_HEIGHT 7500
//........................................................................
namespace dbaccess
{
//........................................................................
typedef ::boost::optional< bool > optional_bool;
//==================================================================
// OEmbedObjectHolder
//==================================================================
typedef ::cppu::WeakComponentImplHelper1< ::com::sun::star::embed::XStateChangeListener > TEmbedObjectHolder;
class OEmbedObjectHolder : public ::comphelper::OBaseMutex
,public TEmbedObjectHolder
{
Reference< XEmbeddedObject > m_xBroadCaster;
ODocumentDefinition* m_pDefinition;
bool m_bInStateChange;
bool m_bInChangingState;
protected:
virtual void SAL_CALL disposing();
public:
OEmbedObjectHolder(const Reference< XEmbeddedObject >& _xBroadCaster,ODocumentDefinition* _pDefinition)
: TEmbedObjectHolder(m_aMutex)
,m_xBroadCaster(_xBroadCaster)
,m_pDefinition(_pDefinition)
,m_bInStateChange(false)
,m_bInChangingState(false)
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
{
osl_incrementInterlockedCount( &m_refCount );
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
{
if ( m_xBroadCaster.is() )
m_xBroadCaster->addStateChangeListener(this);
}
osl_decrementInterlockedCount( &m_refCount );
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
virtual void SAL_CALL changingState( const ::com::sun::star::lang::EventObject& aEvent, ::sal_Int32 nOldState, ::sal_Int32 nNewState ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL stateChanged( const ::com::sun::star::lang::EventObject& aEvent, ::sal_Int32 nOldState, ::sal_Int32 nNewState ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException);
};
//------------------------------------------------------------------
void SAL_CALL OEmbedObjectHolder::disposing()
{
if ( m_xBroadCaster.is() )
m_xBroadCaster->removeStateChangeListener(this);
m_xBroadCaster = NULL;
m_pDefinition = NULL;
}
//------------------------------------------------------------------
void SAL_CALL OEmbedObjectHolder::changingState( const ::com::sun::star::lang::EventObject& /*aEvent*/, ::sal_Int32 nOldState, ::sal_Int32 nNewState ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException)
{
if ( !m_bInChangingState && nNewState == EmbedStates::RUNNING && nOldState == EmbedStates::ACTIVE && m_pDefinition )
{
m_bInChangingState = true;
//m_pDefinition->save(sal_False);
m_bInChangingState = false;
}
}
//------------------------------------------------------------------
void SAL_CALL OEmbedObjectHolder::stateChanged( const ::com::sun::star::lang::EventObject& aEvent, ::sal_Int32 nOldState, ::sal_Int32 nNewState ) throw (::com::sun::star::uno::RuntimeException)
{
if ( !m_bInStateChange && nNewState == EmbedStates::RUNNING && nOldState == EmbedStates::ACTIVE && m_pDefinition )
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
{
m_bInStateChange = true;
Reference<XInterface> xInt(static_cast< ::cppu::OWeakObject* >(m_pDefinition),UNO_QUERY);
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
{
Reference<XEmbeddedObject> xEmbeddedObject(aEvent.Source,UNO_QUERY);
if ( xEmbeddedObject.is() )
xEmbeddedObject->changeState(EmbedStates::LOADED);
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
m_bInStateChange = false;
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
}
//------------------------------------------------------------------
void SAL_CALL OEmbedObjectHolder::disposing( const ::com::sun::star::lang::EventObject& /*Source*/ ) throw (::com::sun::star::uno::RuntimeException)
{
m_xBroadCaster = NULL;
}
//==================================================================
// OEmbeddedClientHelper
//==================================================================
typedef ::cppu::WeakImplHelper1 < XEmbeddedClient
> EmbeddedClientHelper_BASE;
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
class OEmbeddedClientHelper : public EmbeddedClientHelper_BASE
{
ODocumentDefinition* m_pClient;
public:
OEmbeddedClientHelper(ODocumentDefinition* _pClient) :m_pClient(_pClient) {}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
virtual void SAL_CALL saveObject( ) throw (ObjectSaveVetoException, Exception, RuntimeException)
{
}
virtual void SAL_CALL onShowWindow( sal_Bool /*bVisible*/ ) throw (RuntimeException)
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
{
}
// XComponentSupplier
virtual Reference< ::com::sun::star::util::XCloseable > SAL_CALL getComponent( ) throw (RuntimeException)
{
return Reference< css::util::XCloseable >();
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
// XEmbeddedClient
virtual void SAL_CALL visibilityChanged( ::sal_Bool /*bVisible*/ ) throw (WrongStateException, RuntimeException)
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
{
}
inline void resetClient(ODocumentDefinition* _pClient) { m_pClient = _pClient; }
};
//==================================================================
// LifetimeCoupler
//==================================================================
typedef ::cppu::WeakImplHelper1 < css::lang::XEventListener
> LifetimeCoupler_Base;
/** helper class which couples the lifetime of a component to the lifetim
of another component
Instances of this class are constructed with two components. The first is
simply held by reference, and thus kept alive. The second one is observed
for <code>disposing</code> calls - if they occur, i.e. if the component dies,
the reference to the first component is cleared.
This way, you can ensure that a certain component is kept alive as long
as a second component is not disposed.
*/
class LifetimeCoupler : public LifetimeCoupler_Base
{
private:
Reference< XInterface > m_xClient;
public:
inline static void couple( const Reference< XInterface >& _rxClient, const Reference< XComponent >& _rxActor )
{
Reference< css::lang::XEventListener > xEnsureDelete( new LifetimeCoupler( _rxClient, _rxActor ) );
}
private:
inline LifetimeCoupler( const Reference< XInterface >& _rxClient, const Reference< XComponent >& _rxActor )
:m_xClient( _rxClient )
{
DBG_ASSERT( _rxActor.is(), "LifetimeCoupler::LifetimeCoupler: this will crash!" );
osl_incrementInterlockedCount( &m_refCount );
{
_rxActor->addEventListener( this );
}
osl_decrementInterlockedCount( &m_refCount );
DBG_ASSERT( m_refCount, "LifetimeCoupler::LifetimeCoupler: the actor is not holding us by hard ref - this won't work!" );
}
virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) throw (RuntimeException);
protected:
};
//------------------------------------------------------------------
void SAL_CALL LifetimeCoupler::disposing( const css::lang::EventObject& /*Source*/ ) throw (RuntimeException)
{
m_xClient.clear();
}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
//==================================================================
// ODocumentSaveContinuation
//==================================================================
class ODocumentSaveContinuation : public OInteraction< XInteractionDocumentSave >
{
::rtl::OUString m_sName;
Reference<XContent> m_xParentContainer;
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
public:
ODocumentSaveContinuation() { }
inline Reference<XContent> getContent() const { return m_xParentContainer; }
inline ::rtl::OUString getName() const { return m_sName; }
// XInteractionDocumentSave
virtual void SAL_CALL setName( const ::rtl::OUString& _sName,const Reference<XContent>& _xParent) throw(RuntimeException);
};
//------------------------------------------------------------------
void SAL_CALL ODocumentSaveContinuation::setName( const ::rtl::OUString& _sName,const Reference<XContent>& _xParent) throw(RuntimeException)
{
m_sName = _sName;
m_xParentContainer = _xParent;
}
::rtl::OUString ODocumentDefinition::GetDocumentServiceFromMediaType( const Reference< XStorage >& xStorage
,const ::rtl::OUString& sEntName
,const Reference< XMultiServiceFactory >& _xORB
,Sequence< sal_Int8 >& _rClassId
)
{
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
::rtl::OUString sResult;
try
{
if ( xStorage->isStorageElement( sEntName ) )
{
// the object must be based on storage
Reference< XPropertySet > xPropSet( xStorage->openStorageElement( sEntName, ElementModes::READ ), UNO_QUERY_THROW );
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
::rtl::OUString aMediaType;
try {
Any aAny = xPropSet->getPropertyValue( INFO_MEDIATYPE );
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
aAny >>= aMediaType;
}
catch ( Exception& )
{
}
::comphelper::MimeConfigurationHelper aConfigHelper(_xORB);
sResult = aConfigHelper.GetDocServiceNameFromMediaType(aMediaType);
_rClassId = aConfigHelper.GetSequenceClassIDRepresentation(aConfigHelper.GetExplicitlyRegisteredObjClassID(aMediaType));
if ( !_rClassId.getLength() && sResult.getLength() )
{
Reference< XNameAccess > xObjConfig = aConfigHelper.GetObjConfiguration();
if ( xObjConfig.is() )
{
try
{
Sequence< ::rtl::OUString > aClassIDs = xObjConfig->getElementNames();
for ( sal_Int32 nInd = 0; nInd < aClassIDs.getLength(); nInd++ )
{
Reference< XNameAccess > xObjectProps;
::rtl::OUString aEntryDocName;
if ( ( xObjConfig->getByName( aClassIDs[nInd] ) >>= xObjectProps ) && xObjectProps.is()
&& ( xObjectProps->getByName(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ObjectDocumentServiceName"))
) >>= aEntryDocName )
&& aEntryDocName.equals( sResult ) )
{
_rClassId = aConfigHelper.GetSequenceClassIDRepresentation(aClassIDs[nInd]);
break;
}
}
}
catch( Exception& )
{}
}
}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
::comphelper::disposeComponent( xPropSet );
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
}
catch ( Exception& )
{
DBG_UNHANDLED_EXCEPTION();
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
return sResult;
}
// -----------------------------------------------------------------------------
//==========================================================================
//= ODocumentDefinition
//==========================================================================
DBG_NAME(ODocumentDefinition)
2000-09-18 23:16:46 +00:00
//--------------------------------------------------------------------------
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
ODocumentDefinition::ODocumentDefinition(const Reference< XInterface >& _rxContainer
, const Reference< XMultiServiceFactory >& _xORB
,const TContentPtr& _pImpl
, sal_Bool _bForm
, const Sequence< sal_Int8 >& _aClassID
,const Reference<XConnection>& _xConnection
)
:OContentHelper(_xORB,_rxContainer,_pImpl)
CWS-TOOLING: integrate CWS dba31e 2008-11-19 12:36:23 +0100 msc r263980 : i96104 2008-11-19 12:31:19 +0100 msc r263979 : i96104 2008-11-19 12:21:55 +0100 msc r263977 : i96104 2008-11-19 12:18:53 +0100 msc r263976 : i96104 2008-11-18 09:09:45 +0100 oj r263746 : disable color entry when area is set 2008-11-18 08:37:52 +0100 oj r263741 : #remove sub report entry 2008-11-17 11:20:25 +0100 fs r263708 : #i10000# 2008-11-17 11:06:52 +0100 fs r263706 : minimal version now is 3.1 2008-11-12 22:25:59 +0100 fs r263621 : #i96150# 2008-11-12 22:20:02 +0100 fs r263620 : rebased to m34 2008-11-12 21:39:41 +0100 fs r263618 : MANUAL REBASE: rebase CWS dba31d to DEV300_m34 2008-11-12 13:54:58 +0100 fs r263597 : #i96134# MediaDescriptor.URL is to be preferred over MediaDescriptor.FileName. Nonetheless, ensure both are handled 2008-11-12 13:53:40 +0100 fs r263596 : #i96134# re-enabled the code for #i41897#, a better fix is to come 2008-11-12 12:48:21 +0100 fs r263585 : #i96134# disable saving URLs of file-base databases relatively 2008-11-11 16:11:11 +0100 msc r263566 : #i96104# 2008-11-05 09:09:47 +0100 oj r263342 : #i88727# color noe added 2008-11-05 08:41:43 +0100 oj r263341 : #i77916# zoom added 2008-11-04 21:24:15 +0100 fs r263339 : disposing: call disposeAndClear without own mutex locked - some of our listeners insist on locking the SolarMutex, which sometimes led to deadlocks on the complex test cases 2008-11-04 21:23:15 +0100 fs r263338 : remove SolarMutex locking - this happned in CWS dba31c (in the CVS version), which this CWS was created from, but seems to got lost during resync 2008-11-04 20:49:50 +0100 fs r263335 : docu formatting 2008-11-04 20:06:39 +0100 fs r263334 : #i95826# use m_aMutex, not a DocumentGuard (wrongly resolved merge conflicts) 2008-11-04 17:36:29 +0100 fs r263332 : #i92688# properly revoke as XEventListener from m_xActiveController when disposing 2008-11-04 14:49:34 +0100 fs r263324 : #i92322# enable Input Required if EmptyIsNULL does not exist at the control 2008-10-31 11:10:04 +0100 oj r262857 : merge from cvs to svn 2008-10-31 09:46:45 +0100 oj r262853 : merge from cvs to svn 2008-10-31 08:46:37 +0100 oj r262849 : merge from cvs to svn 2008-10-31 08:44:24 +0100 oj r262848 : merge from cvs to svn 2008-10-31 08:43:33 +0100 oj r262847 : merge from cvs to svn 2008-10-31 08:42:28 +0100 oj r262846 : merge from cvs to svn 2008-10-31 08:41:58 +0100 oj r262845 : merge from cvs to svn 2008-10-31 08:41:32 +0100 oj r262844 : merge from cvs to svn 2008-10-28 12:19:50 +0100 oj r262733 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:19:42 +0100 oj r262732 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:19:36 +0100 oj r262731 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:19:31 +0100 oj r262730 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:19:22 +0100 oj r262729 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:19:18 +0100 oj r262728 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:19:10 +0100 oj r262727 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:19:06 +0100 oj r262726 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:19:05 +0100 oj r262725 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:19:01 +0100 oj r262724 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:18:50 +0100 oj r262723 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:18:41 +0100 oj r262722 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:18:40 +0100 oj r262721 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:18:27 +0100 oj r262720 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:18:10 +0100 oj r262719 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:18:01 +0100 oj r262718 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:17:39 +0100 oj r262717 : #iXXXXX#: migrate CWS dba31e to SVN
2008-12-01 12:31:27 +00:00
,OPropertyStateContainer(OContentHelper::rBHelper)
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
,m_pInterceptor(NULL)
,m_bForm(_bForm)
,m_bOpenInDesign(sal_False)
,m_bInExecute(sal_False)
,m_pClientHelper(NULL)
2000-09-18 23:16:46 +00:00
{
DBG_CTOR(ODocumentDefinition, NULL);
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
registerProperties();
if ( _aClassID.getLength() )
loadEmbeddedObject( _xConnection, _aClassID, Sequence< PropertyValue >(), false, false );
2000-09-18 23:16:46 +00:00
}
//--------------------------------------------------------------------------
ODocumentDefinition::~ODocumentDefinition()
{
DBG_DTOR(ODocumentDefinition, NULL);
CWS-TOOLING: integrate CWS dba31e 2008-11-19 12:36:23 +0100 msc r263980 : i96104 2008-11-19 12:31:19 +0100 msc r263979 : i96104 2008-11-19 12:21:55 +0100 msc r263977 : i96104 2008-11-19 12:18:53 +0100 msc r263976 : i96104 2008-11-18 09:09:45 +0100 oj r263746 : disable color entry when area is set 2008-11-18 08:37:52 +0100 oj r263741 : #remove sub report entry 2008-11-17 11:20:25 +0100 fs r263708 : #i10000# 2008-11-17 11:06:52 +0100 fs r263706 : minimal version now is 3.1 2008-11-12 22:25:59 +0100 fs r263621 : #i96150# 2008-11-12 22:20:02 +0100 fs r263620 : rebased to m34 2008-11-12 21:39:41 +0100 fs r263618 : MANUAL REBASE: rebase CWS dba31d to DEV300_m34 2008-11-12 13:54:58 +0100 fs r263597 : #i96134# MediaDescriptor.URL is to be preferred over MediaDescriptor.FileName. Nonetheless, ensure both are handled 2008-11-12 13:53:40 +0100 fs r263596 : #i96134# re-enabled the code for #i41897#, a better fix is to come 2008-11-12 12:48:21 +0100 fs r263585 : #i96134# disable saving URLs of file-base databases relatively 2008-11-11 16:11:11 +0100 msc r263566 : #i96104# 2008-11-05 09:09:47 +0100 oj r263342 : #i88727# color noe added 2008-11-05 08:41:43 +0100 oj r263341 : #i77916# zoom added 2008-11-04 21:24:15 +0100 fs r263339 : disposing: call disposeAndClear without own mutex locked - some of our listeners insist on locking the SolarMutex, which sometimes led to deadlocks on the complex test cases 2008-11-04 21:23:15 +0100 fs r263338 : remove SolarMutex locking - this happned in CWS dba31c (in the CVS version), which this CWS was created from, but seems to got lost during resync 2008-11-04 20:49:50 +0100 fs r263335 : docu formatting 2008-11-04 20:06:39 +0100 fs r263334 : #i95826# use m_aMutex, not a DocumentGuard (wrongly resolved merge conflicts) 2008-11-04 17:36:29 +0100 fs r263332 : #i92688# properly revoke as XEventListener from m_xActiveController when disposing 2008-11-04 14:49:34 +0100 fs r263324 : #i92322# enable Input Required if EmptyIsNULL does not exist at the control 2008-10-31 11:10:04 +0100 oj r262857 : merge from cvs to svn 2008-10-31 09:46:45 +0100 oj r262853 : merge from cvs to svn 2008-10-31 08:46:37 +0100 oj r262849 : merge from cvs to svn 2008-10-31 08:44:24 +0100 oj r262848 : merge from cvs to svn 2008-10-31 08:43:33 +0100 oj r262847 : merge from cvs to svn 2008-10-31 08:42:28 +0100 oj r262846 : merge from cvs to svn 2008-10-31 08:41:58 +0100 oj r262845 : merge from cvs to svn 2008-10-31 08:41:32 +0100 oj r262844 : merge from cvs to svn 2008-10-28 12:19:50 +0100 oj r262733 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:19:42 +0100 oj r262732 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:19:36 +0100 oj r262731 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:19:31 +0100 oj r262730 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:19:22 +0100 oj r262729 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:19:18 +0100 oj r262728 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:19:10 +0100 oj r262727 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:19:06 +0100 oj r262726 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:19:05 +0100 oj r262725 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:19:01 +0100 oj r262724 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:18:50 +0100 oj r262723 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:18:41 +0100 oj r262722 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:18:40 +0100 oj r262721 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:18:27 +0100 oj r262720 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:18:10 +0100 oj r262719 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:18:01 +0100 oj r262718 : #iXXXXX#: migrate CWS dba31e to SVN 2008-10-28 12:17:39 +0100 oj r262717 : #iXXXXX#: migrate CWS dba31e to SVN
2008-12-01 12:31:27 +00:00
if ( !OContentHelper::rBHelper.bInDispose && !OContentHelper::rBHelper.bDisposed )
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
{
acquire();
dispose();
}
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
if ( m_pInterceptor )
{
m_pInterceptor->dispose();
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
m_pInterceptor->release();
m_pInterceptor = NULL;
}
}
// -----------------------------------------------------------------------------
void ODocumentDefinition::closeObject()
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
::osl::MutexGuard aGuard(m_aMutex);
if ( m_xEmbeddedObject.is() )
{
try
{
Reference< com::sun::star::util::XCloseable> xCloseable(m_xEmbeddedObject,UNO_QUERY);
if ( xCloseable.is() )
xCloseable->close(sal_True);
}
catch(Exception)
{
}
m_xEmbeddedObject = NULL;
if ( m_pClientHelper )
{
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
m_pClientHelper->resetClient(NULL);
m_pClientHelper->release();
m_pClientHelper = NULL;
}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
2000-09-18 23:16:46 +00:00
}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
// -----------------------------------------------------------------------------
void SAL_CALL ODocumentDefinition::disposing()
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
OContentHelper::disposing();
::osl::MutexGuard aGuard(m_aMutex);
closeObject();
::comphelper::disposeComponent(m_xListener);
m_xDesktop = NULL;
2000-09-18 23:16:46 +00:00
}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
// -----------------------------------------------------------------------------
IMPLEMENT_TYPEPROVIDER3(ODocumentDefinition,OContentHelper,OPropertyStateContainer,ODocumentDefinition_Base);
IMPLEMENT_FORWARD_XINTERFACE3( ODocumentDefinition,OContentHelper,OPropertyStateContainer,ODocumentDefinition_Base)
IMPLEMENT_SERVICE_INFO1(ODocumentDefinition,"com.sun.star.comp.dba.ODocumentDefinition",SERVICE_SDB_DOCUMENTDEFINITION)
2000-09-18 23:16:46 +00:00
//--------------------------------------------------------------------------
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
void ODocumentDefinition::registerProperties()
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
registerProperty(PROPERTY_NAME, PROPERTY_ID_NAME, PropertyAttribute::BOUND | PropertyAttribute::READONLY | PropertyAttribute::CONSTRAINED,
&m_pImpl->m_aProps.aTitle, ::getCppuType(&m_pImpl->m_aProps.aTitle));
registerProperty(PROPERTY_AS_TEMPLATE, PROPERTY_ID_AS_TEMPLATE, PropertyAttribute::BOUND | PropertyAttribute::READONLY | PropertyAttribute::CONSTRAINED,
&m_pImpl->m_aProps.bAsTemplate, ::getCppuType(&m_pImpl->m_aProps.bAsTemplate));
registerProperty(PROPERTY_PERSISTENT_NAME, PROPERTY_ID_PERSISTENT_NAME, PropertyAttribute::BOUND | PropertyAttribute::READONLY | PropertyAttribute::CONSTRAINED,
&m_pImpl->m_aProps.sPersistentName, ::getCppuType(&m_pImpl->m_aProps.sPersistentName));
registerProperty(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsForm")), PROPERTY_ID_IS_FORM, PropertyAttribute::BOUND | PropertyAttribute::READONLY | PropertyAttribute::CONSTRAINED,
&m_bForm, ::getCppuType(&m_bForm));
2000-09-18 23:16:46 +00:00
}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
// -----------------------------------------------------------------------------
Reference< XPropertySetInfo > SAL_CALL ODocumentDefinition::getPropertySetInfo( ) throw(RuntimeException)
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
Reference<XPropertySetInfo> xInfo( createPropertySetInfo( getInfoHelper() ) );
return xInfo;
2000-09-18 23:16:46 +00:00
}
//--------------------------------------------------------------------------
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
IPropertyArrayHelper& ODocumentDefinition::getInfoHelper()
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
return *getArrayHelper();
2000-09-18 23:16:46 +00:00
}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
2000-09-18 23:16:46 +00:00
//--------------------------------------------------------------------------
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
IPropertyArrayHelper* ODocumentDefinition::createArrayHelper( ) const
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
Sequence< Property > aProps;
describeProperties(aProps);
return new OPropertyArrayHelper(aProps);
2000-09-18 23:16:46 +00:00
}
class OExecuteImpl
{
sal_Bool& m_rbSet;
public:
OExecuteImpl(sal_Bool& _rbSet) : m_rbSet(_rbSet){ m_rbSet=sal_True; }
~OExecuteImpl(){ m_rbSet = sal_False; }
};
// -----------------------------------------------------------------------------
namespace
{
bool lcl_extractOpenMode( const Any& _rValue, sal_Int32& _out_rMode )
{
OpenCommandArgument aOpenCommand;
if ( _rValue >>= aOpenCommand )
_out_rMode = aOpenCommand.Mode;
else
{
OpenCommandArgument2 aOpenCommand2;
if ( _rValue >>= aOpenCommand2 )
_out_rMode = aOpenCommand2.Mode;
else
return false;
}
return true;
}
}
// -----------------------------------------------------------------------------
void ODocumentDefinition::impl_removeFrameFromDesktop_throw( const Reference< XFrame >& _rxFrame )
{
if ( !m_xDesktop.is() )
m_xDesktop.set( m_aContext.createComponent( (::rtl::OUString)SERVICE_FRAME_DESKTOP ), UNO_QUERY_THROW );
Reference< XFrames > xFrames( m_xDesktop->getFrames(), UNO_QUERY_THROW );
xFrames->remove( _rxFrame );
}
// -----------------------------------------------------------------------------
void ODocumentDefinition::impl_onActivateEmbeddedObject()
{
try
{
Reference< XModel > xModel( getComponent(), UNO_QUERY );
Reference< XController > xController( xModel.is() ? xModel->getCurrentController() : Reference< XController >() );
if ( !xController.is() )
return;
if ( !m_xListener.is() )
// it's the first time the embedded object has been activated
// create an OEmbedObjectHolder
m_xListener = new OEmbedObjectHolder(m_xEmbeddedObject,this);
Reference< XFrame > xFrame( xController->getFrame() );
if ( xFrame.is() )
{
// raise the window to top (especially necessary if this is not the first activation)
Reference< XTopWindow > xTopWindow( xFrame->getContainerWindow(), UNO_QUERY_THROW );
xTopWindow->toFront();
// remove the frame from the desktop's frame collection because we need full control of it.
impl_removeFrameFromDesktop_throw( xFrame );
}
// ensure that we ourself are kept alive as long as the embedded object's frame is
// opened
LifetimeCoupler::couple( *this, Reference< XComponent >( xFrame, UNO_QUERY_THROW ) );
// init the edit view
if ( m_bOpenInDesign )
impl_initObjectEditView( xController );
}
catch( const RuntimeException& )
{
DBG_UNHANDLED_EXCEPTION();
}
}
// -----------------------------------------------------------------------------
namespace
{
// =========================================================================
// = PreserveVisualAreaSize
// =========================================================================
/** stack-guard for preserving the size of the VisArea of an XModel
*/
class PreserveVisualAreaSize
{
private:
Reference< XVisualObject > m_xVisObject;
::com::sun::star::awt::Size m_aOriginalSize;
public:
inline PreserveVisualAreaSize( const Reference< XModel >& _rxModel )
:m_xVisObject( _rxModel, UNO_QUERY )
{
if ( m_xVisObject.is() )
{
try
{
m_aOriginalSize = m_xVisObject->getVisualAreaSize( Aspects::MSOLE_CONTENT );
}
catch ( Exception& )
{
DBG_ERROR( "PreserveVisualAreaSize::PreserveVisualAreaSize: caught an exception!" );
}
}
}
inline ~PreserveVisualAreaSize()
{
if ( m_xVisObject.is() && m_aOriginalSize.Width && m_aOriginalSize.Height )
{
try
{
m_xVisObject->setVisualAreaSize( Aspects::MSOLE_CONTENT, m_aOriginalSize );
}
catch ( Exception& )
{
DBG_ERROR( "PreserveVisualAreaSize::~PreserveVisualAreaSize: caught an exception!" );
}
}
}
};
// =========================================================================
// = LayoutManagerLock
// =========================================================================
/** helper class for stack-usage which during its lifetime locks a layout manager
*/
class LayoutManagerLock
{
private:
Reference< XLayoutManager > m_xLayoutManager;
public:
inline LayoutManagerLock( const Reference< XController >& _rxController )
{
DBG_ASSERT( _rxController.is(), "LayoutManagerLock::LayoutManagerLock: this will crash!" );
Reference< XFrame > xFrame( _rxController->getFrame() );
try
{
Reference< XPropertySet > xPropSet( xFrame, UNO_QUERY_THROW );
m_xLayoutManager.set(
xPropSet->getPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "LayoutManager" ) ) ),
UNO_QUERY_THROW );
m_xLayoutManager->lock();
}
catch( Exception& )
{
DBG_ERROR( "LayoutManagerLock::LayoutManagerLock: caught an exception!" );
}
}
inline ~LayoutManagerLock()
{
try
{
// unlock the layout manager
if ( m_xLayoutManager.is() )
m_xLayoutManager->unlock();
}
catch( Exception& )
{
DBG_ERROR( "LayoutManagerLock::~LayoutManagerLock: caught an exception!" );
}
}
};
}
// -----------------------------------------------------------------------------
void ODocumentDefinition::impl_initObjectEditView( const Reference< XController >& _rxController )
{
if ( !m_bForm )
// currently, only forms need to be initialized
return;
try
{
Reference< XViewSettingsSupplier > xSettingsSupplier( _rxController, UNO_QUERY_THROW );
Reference< XPropertySet > xViewSettings( xSettingsSupplier->getViewSettings(), UNO_QUERY_THROW );
// The visual area size can be changed by the setting of the following properties
// so it should be restored later
PreserveVisualAreaSize aPreserveVisAreaSize( _rxController->getModel() );
// Layout manager should not layout while the size is still not restored
// so it will stay locked for this time
LayoutManagerLock aLockLayout( _rxController );
// setting of the visual properties
xViewSettings->setPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ShowRulers")),makeAny(sal_True));
xViewSettings->setPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ShowVertRuler")),makeAny(sal_True));
xViewSettings->setPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ShowHoriRuler")),makeAny(sal_True));
xViewSettings->setPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsRasterVisible")),makeAny(sal_True));
xViewSettings->setPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsSnapToRaster")),makeAny(sal_True));
xViewSettings->setPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ShowOnlineLayout")),makeAny(sal_True));
xViewSettings->setPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("RasterSubdivisionX")),makeAny(sal_Int32(5)));
xViewSettings->setPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("RasterSubdivisionY")),makeAny(sal_Int32(5)));
Reference< XModifiable > xModifiable( _rxController->getModel(), UNO_QUERY_THROW );
xModifiable->setModified( sal_False );
}
catch( const Exception& )
{
DBG_UNHANDLED_EXCEPTION();
}
}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
// -----------------------------------------------------------------------------
void ODocumentDefinition::onCommandOpenSomething( const Any& _rOpenArgument, const bool _bActivate,
const Reference< XCommandEnvironment >& _rxEnvironment, Any& _out_rComponent, ::osl::ClearableMutexGuard & _aGuard )
2000-09-18 23:16:46 +00:00
{
OExecuteImpl aExecuteGuard(m_bInExecute);
Reference< XConnection > xConnection;
sal_Int32 nOpenMode = OpenMode::DOCUMENT;
::comphelper::NamedValueCollection aDocumentArgs;
// for the document, default to the interaction handler as used for loading the DB doc
// This might be overwritten below, when examining _rOpenArgument.
2008-10-16 06:57:26 +00:00
::comphelper::NamedValueCollection aDBDocArgs( m_pImpl->m_pDataSource->getResource() );
aDocumentArgs.put( "InteractionHandler", aDBDocArgs.getOrDefault( "InteractionHandler", Reference< XInteractionHandler >() ) );
::boost::optional< sal_Int16 > aDocumentMacroMode;
if ( !lcl_extractOpenMode( _rOpenArgument, nOpenMode ) )
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
{
Sequence< PropertyValue > aArguments;
if ( _rOpenArgument >>= aArguments )
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
{
const PropertyValue* pIter = aArguments.getConstArray();
const PropertyValue* pEnd = pIter + aArguments.getLength();
for ( ;pIter != pEnd; ++pIter )
{
if ( pIter->Name == PROPERTY_ACTIVE_CONNECTION )
{
xConnection.set( pIter->Value, UNO_QUERY );
continue;
}
if ( lcl_extractOpenMode( pIter->Value, nOpenMode ) )
continue;
if ( pIter->Name.equalsAscii( "MacroExecutionMode" ) )
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
{
sal_Int16 nMacroExecMode( !aDocumentMacroMode ? MacroExecMode::USE_CONFIG : *aDocumentMacroMode );
OSL_VERIFY( pIter->Value >>= nMacroExecMode );
aDocumentMacroMode.reset( nMacroExecMode );
continue;
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
// unknown argument -> pass to the loaded document
aDocumentArgs.put( pIter->Name, pIter->Value );
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
}
}
bool bExecuteDBDocMacros = m_pImpl->m_pDataSource->checkMacrosOnLoading();
// Note that this call implies the user might be asked for the macro execution mode.
// Normally, this would happen when the database document is loaded, and subsequent calls
// will simply use the user's decision from this point in time.
// However, it is possible to programmatically load forms/reports, without actually
// loading the database document into a frame. In this case, the user will be asked
// here and now.
// #i87741# / 2008-05-05 / frank.schoenheit@sun.com
// allow the command arguments to downgrade the macro execution mode, but not to upgrade
// it
if ( ( m_pImpl->m_pDataSource->getImposedMacroExecMode() == MacroExecMode::USE_CONFIG )
&& bExecuteDBDocMacros
)
{
// while loading the whole database document, USE_CONFIG, was passed.
// Additionally, *by now* executing macros from the DB doc is allowed (this is what bExecuteDBDocMacros
// indicates). This means either one of:
// 1. The DB doc or one of the sub docs contained macros and
// 1a. the user explicitly allowed executing them
// 1b. the configuration allows executing them without asking the user
// 2. Neither the DB doc nor the sub docs contained macros, thus macro
// execution was silently enabled, assuming that any macro will be a
// user-created macro
//
// The problem with this: If the to-be-opened sub document has macros embedded in
// the content.xml (which is valid ODF, but normally not produced by OOo itself),
// then this has not been detected while loading the database document - it would
// be too expensive, as it effectively would require loading all forms/reports.
//
// So, in such a case, and with 2. above, we would silently execute those macros,
// regardless of the global security settings - which would be a security issue, of
// course.
if ( !m_pImpl->m_pDataSource->hasAnyObjectWithMacros() )
{
// this is case 2. from above (not *exactly*, but sufficiently)
// So, pass a USE_CONFIG to the to-be-loaded document. This means that
// the user will be prompted with a security message upon opening this
// sub document, in case the settings require this, *and* the document
// contains scripts in the content.xml. But this is better than the security
// issue we had before ...
aDocumentMacroMode.reset( MacroExecMode::USE_CONFIG );
}
}
if ( !aDocumentMacroMode )
{
// nobody so far felt responsible for setting it
// => use the DBDoc-wide macro exec mode for the document, too
aDocumentMacroMode.reset( bExecuteDBDocMacros ? MacroExecMode::ALWAYS_EXECUTE_NO_WARN : MacroExecMode::NEVER_EXECUTE );
}
aDocumentArgs.put( "MacroExecutionMode", *aDocumentMacroMode );
2000-09-18 23:16:46 +00:00
if ( xConnection.is() )
m_xLastKnownConnection = xConnection;
if ( ( nOpenMode == OpenMode::ALL )
|| ( nOpenMode == OpenMode::FOLDERS )
|| ( nOpenMode == OpenMode::DOCUMENTS )
|| ( nOpenMode == OpenMode::DOCUMENT_SHARE_DENY_NONE )
|| ( nOpenMode == OpenMode::DOCUMENT_SHARE_DENY_WRITE )
)
{
// not supported
ucbhelper::cancelCommandExecution(
makeAny( UnsupportedOpenModeException(
rtl::OUString(),
static_cast< cppu::OWeakObject * >( this ),
sal_Int16( nOpenMode ) ) ),
_rxEnvironment );
// Unreachable
DBG_ERROR( "unreachable" );
}
OSL_ENSURE( m_pImpl->m_aProps.sPersistentName.getLength(),
"ODocumentDefinition::onCommandOpenSomething: no persistent name - cannot load!" );
if ( !m_pImpl->m_aProps.sPersistentName.getLength() )
return;
// embedded objects themself do not support the hidden flag. We implement support for
// it by changing the STATE to RUNNING only, instead of ACTIVE.
bool bOpenHidden = aDocumentArgs.getOrDefault( "Hidden", false );
aDocumentArgs.remove( "Hidden" );
loadEmbeddedObject( xConnection, Sequence< sal_Int8 >(), aDocumentArgs.getPropertyValues(), false, !m_bOpenInDesign );
OSL_ENSURE( m_xEmbeddedObject.is(), "ODocumentDefinition::onCommandOpenSomething: what's this?" );
if ( !m_xEmbeddedObject.is() )
return;
Reference< XModel > xModel( getComponent(), UNO_QUERY );
Reference< report::XReportDefinition > xReportDefinition(xModel,UNO_QUERY);
Reference< XModule > xModule( xModel, UNO_QUERY );
if ( xModule.is() )
{
if ( m_bForm )
xModule->setIdentifier( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.sdb.FormDesign" ) ) );
else if ( !xReportDefinition.is() )
xModule->setIdentifier( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.sdb.TextReportDesign" ) ) );
updateDocumentTitle();
}
bool bIsAliveNewStyleReport = ( !m_bOpenInDesign && xReportDefinition.is() );
if ( bIsAliveNewStyleReport )
{
// we are in ReadOnly mode
// we would like to open the Writer or Calc with the report direct, without design it.
Reference< report::XReportEngine > xReportEngine( m_aContext.createComponent( "com.sun.star.comp.report.OReportEngineJFree" ), UNO_QUERY_THROW );
xReportEngine->setReportDefinition(xReportDefinition);
xReportEngine->setActiveConnection(m_xLastKnownConnection);
if ( bOpenHidden )
_out_rComponent <<= xReportEngine->createDocumentModel( );
else
_out_rComponent <<= xReportEngine->createDocumentAlive(NULL);
return;
}
if ( _bActivate && !bOpenHidden )
{
m_xEmbeddedObject->changeState( EmbedStates::ACTIVE );
impl_onActivateEmbeddedObject();
}
// LLA: Alle fillReportData() calls pr<70>fen, sollte es welche geben, die danach noch viel machen
// LLA: sollten wir einen _aGuard Pointer <20>bergeben, sonst erstmal als Referenz
fillReportData(_aGuard);
_out_rComponent <<= xModel;
}
// -----------------------------------------------------------------------------
Any SAL_CALL ODocumentDefinition::execute( const Command& aCommand, sal_Int32 CommandId, const Reference< XCommandEnvironment >& Environment ) throw (Exception, CommandAbortedException, RuntimeException)
{
Any aRet;
::osl::ClearableMutexGuard aGuard(m_aMutex);
if ( !m_bInExecute )
{
sal_Bool bOpen = aCommand.Name.equalsAscii( "open" );
sal_Bool bOpenInDesign = aCommand.Name.equalsAscii( "openDesign" );
sal_Bool bOpenForMail = aCommand.Name.equalsAscii( "openForMail" );
if ( bOpen || bOpenInDesign || bOpenForMail )
{
bool bActivateObject = true;
if ( bOpenForMail )
{
OSL_ENSURE( false, "ODocumentDefinition::execute: 'openForMail' should not be used anymore - use the 'Hidden' parameter instead!" );
bActivateObject = false;
}
// if the object is already opened, do nothing
// #i89509# / 2008-05-22 / frank.schoenheit@sun.com
if ( m_xEmbeddedObject.is() )
{
sal_Int32 nCurrentState = m_xEmbeddedObject->getCurrentState();
bool bIsActive = ( nCurrentState == EmbedStates::ACTIVE );
// exception: new-style reports always create a new document when "open" is executed
Reference< report::XReportDefinition > xReportDefinition( getComponent(), UNO_QUERY );
bool bIsAliveNewStyleReport = ( xReportDefinition.is() && ( bOpen || bOpenForMail ) );
if ( bIsActive && !bIsAliveNewStyleReport )
{
impl_onActivateEmbeddedObject();
return makeAny( getComponent() );
}
}
// m_bOpenInDesign = bOpenInDesign;
// onCommandOpenSomething( aCommand.Argument, !bOpenForMail, Environment, aRet, aGuard );
m_bOpenInDesign = bOpenInDesign || bOpenForMail;
onCommandOpenSomething( aCommand.Argument, bActivateObject, Environment, aRet, aGuard );
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
else if ( aCommand.Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "copyTo" ) ) )
{
Sequence<Any> aIni;
aCommand.Argument >>= aIni;
if ( aIni.getLength() != 2 )
{
OSL_ENSURE( sal_False, "Wrong argument type!" );
ucbhelper::cancelCommandExecution(
makeAny( IllegalArgumentException(
rtl::OUString(),
static_cast< cppu::OWeakObject * >( this ),
-1 ) ),
Environment );
// Unreachable
}
Reference< XStorage> xStorage(aIni[0],UNO_QUERY);
::rtl::OUString sPersistentName;
aIni[1] >>= sPersistentName;
loadEmbeddedObject( true );
Reference<XEmbedPersist> xPersist(m_xEmbeddedObject,UNO_QUERY);
if ( xPersist.is() )
{
xPersist->storeToEntry(xStorage,sPersistentName,Sequence<PropertyValue>(),Sequence<PropertyValue>());
xPersist->storeOwn();
m_xEmbeddedObject->changeState(EmbedStates::LOADED);
}
else
throw CommandAbortedException();
}
else if ( aCommand.Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "preview" ) ) )
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
{
onCommandPreview(aRet);
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
else if ( aCommand.Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "insert" ) ) )
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
{
Sequence<Any> aIni;
aCommand.Argument >>= aIni;
if ( aIni.getLength() > 0 && aIni.getLength() < 2 )
{
OSL_ENSURE( sal_False, "Wrong argument type!" );
ucbhelper::cancelCommandExecution(
makeAny( IllegalArgumentException(
rtl::OUString(),
static_cast< cppu::OWeakObject * >( this ),
-1 ) ),
Environment );
// Unreachable
}
::rtl::OUString sURL;
aIni[0] >>= sURL;
onCommandInsert( sURL, Environment );
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
else if ( aCommand.Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "getdocumentinfo" ) ) // compatibility
|| aCommand.Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "getDocumentInfo" ) )
)
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
{
onCommandGetDocumentProperties( aRet );
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
else if ( aCommand.Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "delete" ) ) )
{
//////////////////////////////////////////////////////////////////
// delete
//////////////////////////////////////////////////////////////////
closeObject();
Reference< XStorage> xStorage = getContainerStorage();
if ( xStorage.is() )
xStorage->removeElement(m_pImpl->m_aProps.sPersistentName);
dispose();
}
else if ( ( aCommand.Name.compareToAscii( "storeOwn" ) == 0 ) // compatibility
|| ( aCommand.Name.compareToAscii( "store" ) == 0 )
)
{
impl_store_throw();
}
else if ( ( aCommand.Name.compareToAscii( "shutdown" ) == 0 ) // compatibility
|| ( aCommand.Name.compareToAscii( "close" ) == 0 )
)
{
aRet <<= impl_close_throw();
}
else
{
aRet = OContentHelper::execute(aCommand,CommandId,Environment);
}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
return aRet;
2000-09-18 23:16:46 +00:00
}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
// -----------------------------------------------------------------------------
namespace
{
void lcl_resetChildFormsToEmptyDataSource( const Reference< XIndexAccess>& _rxFormsContainer )
{
OSL_PRECOND( _rxFormsContainer.is(), "lcl_resetChildFormsToEmptyDataSource: illegal call!" );
sal_Int32 count = _rxFormsContainer->getCount();
for ( sal_Int32 i = 0; i < count; ++i )
{
Reference< XForm > xForm( _rxFormsContainer->getByIndex( i ), UNO_QUERY );
if ( !xForm.is() )
continue;
// if the element is a form, reset its DataSourceName property to an empty string
try
{
Reference< XPropertySet > xFormProps( xForm, UNO_QUERY_THROW );
xFormProps->setPropertyValue( PROPERTY_DATASOURCENAME, makeAny( ::rtl::OUString() ) );
}
catch( const Exception& )
{
DBG_UNHANDLED_EXCEPTION();
}
// if the element is a container itself, step down the component hierarchy
Reference< XIndexAccess > xContainer( xForm, UNO_QUERY );
if ( xContainer.is() )
lcl_resetChildFormsToEmptyDataSource( xContainer );
}
}
void lcl_resetFormsToEmptyDataSource( const Reference< XEmbeddedObject>& _rxEmbeddedObject )
{
try
{
Reference< XComponentSupplier > xCompProv( _rxEmbeddedObject, UNO_QUERY_THROW );
Reference< XDrawPageSupplier > xSuppPage( xCompProv->getComponent(), UNO_QUERY_THROW );
// if this interface does not exist, then either getComponent returned NULL,
// or the document is a multi-page document. The latter is allowed, but currently
// simply not handled by this code, as it would not normally happen.
Reference< XFormsSupplier > xSuppForms( xSuppPage->getDrawPage(), UNO_QUERY_THROW );
Reference< XIndexAccess > xForms( xSuppForms->getForms(), UNO_QUERY_THROW );
lcl_resetChildFormsToEmptyDataSource( xForms );
}
catch( const Exception& )
{
DBG_UNHANDLED_EXCEPTION();
}
}
}
// -----------------------------------------------------------------------------
void ODocumentDefinition::onCommandInsert( const ::rtl::OUString& _sURL, const Reference< XCommandEnvironment >& Environment )
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
throw( Exception )
{
osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex );
// Check, if all required properties were set.
if ( !_sURL.getLength() || m_xEmbeddedObject.is() )
{
OSL_ENSURE( sal_False, "Content::onCommandInsert - property value missing!" );
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
Sequence< rtl::OUString > aProps( 1 );
aProps[ 0 ] = PROPERTY_URL;
ucbhelper::cancelCommandExecution(
makeAny( MissingPropertiesException(
rtl::OUString(),
static_cast< cppu::OWeakObject * >( this ),
aProps ) ),
Environment );
// Unreachable
}
if ( !m_xEmbeddedObject.is() )
{
Reference< XStorage> xStorage = getContainerStorage();
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
if ( xStorage.is() )
{
Reference< XEmbedObjectCreator> xEmbedFactory( m_aContext.createComponent( "com.sun.star.embed.EmbeddedObjectCreator" ), UNO_QUERY );
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
if ( xEmbedFactory.is() )
{
Sequence<PropertyValue> aEmpty,aMediaDesc(1);
aMediaDesc[0].Name = PROPERTY_URL;
aMediaDesc[0].Value <<= _sURL;
m_xEmbeddedObject.set(xEmbedFactory->createInstanceInitFromMediaDescriptor( xStorage
,m_pImpl->m_aProps.sPersistentName
,aMediaDesc
,aEmpty),UNO_QUERY);
lcl_resetFormsToEmptyDataSource( m_xEmbeddedObject );
// #i57669# / 2005-12-01 / frank.schoenheit@sun.com
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
Reference<XEmbedPersist> xPersist(m_xEmbeddedObject,UNO_QUERY);
if ( xPersist.is() )
{
xPersist->storeOwn();
}
try
{
Reference< com::sun::star::util::XCloseable> xCloseable(m_xEmbeddedObject,UNO_QUERY);
if ( xCloseable.is() )
xCloseable->close(sal_True);
}
catch(Exception)
{
}
m_xEmbeddedObject = NULL;
}
}
}
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
// @@@
// storeData();
2000-10-25 06:42:28 +00:00
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
aGuard.clear();
// inserted();
}
// -----------------------------------------------------------------------------
sal_Bool ODocumentDefinition::save(sal_Bool _bApprove)
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
// default handling: instantiate an interaction handler and let it handle the parameter request
if ( !m_bOpenInDesign )
return sal_False;
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
try
{
{
::vos::OGuard aSolarGuard(Application::GetSolarMutex());
// the request
Reference<XNameAccess> xName(m_xParentContainer,UNO_QUERY);
DocumentSaveRequest aRequest;
aRequest.Name = m_pImpl->m_aProps.aTitle;
if ( !aRequest.Name.getLength() )
{
if ( m_bForm )
aRequest.Name = DBACORE_RESSTRING( RID_STR_FORM );
else
aRequest.Name = DBACORE_RESSTRING( RID_STR_REPORT );
aRequest.Name = ::dbtools::createUniqueName(xName,aRequest.Name);
}
else if ( xName->hasByName(aRequest.Name) )
aRequest.Name = ::dbtools::createUniqueName(xName,aRequest.Name);
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
aRequest.Content.set(m_xParentContainer,UNO_QUERY);
OInteractionRequest* pRequest = new OInteractionRequest(makeAny(aRequest));
Reference< XInteractionRequest > xRequest(pRequest);
// some knittings
// two continuations allowed: OK and Cancel
ODocumentSaveContinuation* pDocuSave = NULL;
if ( !m_pImpl->m_aProps.aTitle.getLength() )
{
pDocuSave = new ODocumentSaveContinuation;
pRequest->addContinuation(pDocuSave);
}
OInteraction< XInteractionApprove >* pApprove = NULL;
if ( _bApprove )
{
pApprove = new OInteraction< XInteractionApprove >;
pRequest->addContinuation(pApprove);
}
OInteraction< XInteractionDisapprove >* pDisApprove = new OInteraction< XInteractionDisapprove >;
pRequest->addContinuation(pDisApprove);
OInteractionAbort* pAbort = new OInteractionAbort;
pRequest->addContinuation(pAbort);
// create the handler, let it handle the request
Reference< XInteractionHandler > xHandler( m_aContext.createComponent( (::rtl::OUString)SERVICE_SDB_INTERACTION_HANDLER ), UNO_QUERY );
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
if ( xHandler.is() )
xHandler->handle(xRequest);
if ( pAbort->wasSelected() )
return sal_False;
if ( pDisApprove->wasSelected() )
return sal_True;
if ( pDocuSave && pDocuSave->wasSelected() )
{
::osl::MutexGuard aGuard(m_aMutex);
Reference<XNameContainer> xNC(pDocuSave->getContent(),UNO_QUERY);
if ( xNC.is() )
{
m_pImpl->m_aProps.aTitle = pDocuSave->getName();
Reference< XContent> xContent = this;
xNC->insertByName(pDocuSave->getName(),makeAny(xContent));
updateDocumentTitle();
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
}
}
::osl::MutexGuard aGuard(m_aMutex);
Reference<XEmbedPersist> xPersist(m_xEmbeddedObject,UNO_QUERY);
if ( xPersist.is() )
{
xPersist->storeOwn();
notifyDataSourceModified();
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
}
catch(Exception&)
{
OSL_ENSURE(0,"ODocumentDefinition::save: caught an Exception (tried to let the InteractionHandler handle it)!");
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
return sal_True;
2000-09-18 23:16:46 +00:00
}
// -----------------------------------------------------------------------------
sal_Bool ODocumentDefinition::saveAs()
{
// default handling: instantiate an interaction handler and let it handle the parameter request
if ( !m_bOpenInDesign )
return sal_False;
{
osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex );
if ( !m_pImpl->m_aProps.aTitle.getLength() )
{
aGuard.clear();
return save(sal_False); // (sal_False) : we don't want an approve dialog
}
}
try
{
{
::vos::OGuard aSolarGuard(Application::GetSolarMutex());
// the request
Reference<XNameAccess> xName(m_xParentContainer,UNO_QUERY);
DocumentSaveRequest aRequest;
aRequest.Name = m_pImpl->m_aProps.aTitle;
aRequest.Content.set(m_xParentContainer,UNO_QUERY);
OInteractionRequest* pRequest = new OInteractionRequest(makeAny(aRequest));
Reference< XInteractionRequest > xRequest(pRequest);
// some knittings
// two continuations allowed: OK and Cancel
ODocumentSaveContinuation* pDocuSave = new ODocumentSaveContinuation;
pRequest->addContinuation(pDocuSave);
OInteraction< XInteractionDisapprove >* pDisApprove = new OInteraction< XInteractionDisapprove >;
pRequest->addContinuation(pDisApprove);
OInteractionAbort* pAbort = new OInteractionAbort;
pRequest->addContinuation(pAbort);
// create the handler, let it handle the request
Reference< XInteractionHandler > xHandler(m_aContext.createComponent(::rtl::OUString(SERVICE_SDB_INTERACTION_HANDLER)), UNO_QUERY);
if ( xHandler.is() )
xHandler->handle(xRequest);
if ( pAbort->wasSelected() )
return sal_False;
if ( pDisApprove->wasSelected() )
return sal_True;
if ( pDocuSave->wasSelected() )
{
::osl::MutexGuard aGuard(m_aMutex);
Reference<XNameContainer> xNC(pDocuSave->getContent(),UNO_QUERY);
if ( xNC.is() )
{
try
{
Reference< XStorage> xStorage = getContainerStorage();
const static ::rtl::OUString sBaseName(RTL_CONSTASCII_USTRINGPARAM("Obj"));
// -----------------------------------------------------------------------------
Reference<XNameAccess> xElements(xStorage,UNO_QUERY_THROW);
::rtl::OUString sPersistentName = ::dbtools::createUniqueName(xElements,sBaseName);
xStorage->copyElementTo(m_pImpl->m_aProps.sPersistentName,xStorage,sPersistentName);
::rtl::OUString sOldName = m_pImpl->m_aProps.aTitle;
rename(pDocuSave->getName());
updateDocumentTitle();
Sequence< Any > aArguments(3);
PropertyValue aValue;
// set as folder
aValue.Name = PROPERTY_NAME;
aValue.Value <<= sOldName;
aArguments[0] <<= aValue;
aValue.Name = PROPERTY_PERSISTENT_NAME;
aValue.Value <<= sPersistentName;
aArguments[1] <<= aValue;
aValue.Name = PROPERTY_AS_TEMPLATE;
aValue.Value <<= m_pImpl->m_aProps.bAsTemplate;
aArguments[2] <<= aValue;
Reference< XMultiServiceFactory > xORB( m_xParentContainer, UNO_QUERY_THROW );
Reference< XInterface > xComponent( xORB->createInstanceWithArguments( SERVICE_SDB_DOCUMENTDEFINITION, aArguments ) );
Reference< XNameContainer > xNameContainer( m_xParentContainer, UNO_QUERY_THROW );
xNameContainer->insertByName( sOldName, makeAny( xComponent ) );
}
catch(Exception&)
{
DBG_UNHANDLED_EXCEPTION();
}
}
}
}
}
catch(Exception&)
{
OSL_ENSURE(0,"ODocumentDefinition::save: caught an Exception (tried to let the InteractionHandler handle it)!");
}
return sal_True;
}
namespace
{
// .........................................................................
void lcl_putLoadArgs( ::comphelper::NamedValueCollection& _io_rArgs, const optional_bool _bSuppressMacros, const optional_bool _bReadOnly )
{
if ( !!_bSuppressMacros )
{
if ( *_bSuppressMacros )
{
// if we're to suppress macros, do exactly this
_io_rArgs.put( "MacroExecutionMode", MacroExecMode::NEVER_EXECUTE );
}
else
{
// otherwise, put the setting only if not already present
if ( !_io_rArgs.has( "MacroExecutionMode" ) )
{
_io_rArgs.put( "MacroExecutionMode", MacroExecMode::USE_CONFIG );
}
}
}
if ( !!_bReadOnly )
_io_rArgs.put( "ReadOnly", *_bReadOnly );
}
}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
// -----------------------------------------------------------------------------
namespace
{
Reference< XFrame > lcl_getDatabaseDocumentFrame( ODatabaseModelImpl& _rImpl )
{
Reference< XModel > xDatabaseDocumentModel( _rImpl.getModel_noCreate() );
Reference< XController > xDatabaseDocumentController;
if ( xDatabaseDocumentModel.is() )
xDatabaseDocumentController = xDatabaseDocumentModel->getCurrentController();
Reference< XFrame > xFrame;
if ( xDatabaseDocumentController.is() )
xFrame = xDatabaseDocumentController->getFrame();
return xFrame;
}
}
// -----------------------------------------------------------------------------
sal_Bool ODocumentDefinition::objectSupportsEmbeddedScripts() const
{
2008-10-16 06:57:26 +00:00
bool bAllowDocumentMacros = !m_pImpl->m_pDataSource || m_pImpl->m_pDataSource->hasAnyObjectWithMacros();
// if *any* of the objects of the database document already has macros, we continue to allow it
// to have them, until the user did a migration.
// If there are no macros, yet, we don't allow to create them
return bAllowDocumentMacros;
}
// -----------------------------------------------------------------------------
Sequence< PropertyValue > ODocumentDefinition::fillLoadArgs( const Reference< XConnection>& _xConnection, const bool _bSuppressMacros, const bool _bReadOnly,
const Sequence< PropertyValue >& _rAdditionalArgs, Sequence< PropertyValue >& _out_rEmbeddedObjectDescriptor )
{
// .........................................................................
// (re-)create interceptor, and put it into the descriptor of the embedded object
if ( m_pInterceptor )
{
m_pInterceptor->dispose();
m_pInterceptor->release();
m_pInterceptor = NULL;
}
m_pInterceptor = new OInterceptor( this ,_bReadOnly);
m_pInterceptor->acquire();
Reference<XDispatchProviderInterceptor> xInterceptor = m_pInterceptor;
::comphelper::NamedValueCollection aEmbeddedDescriptor;
aEmbeddedDescriptor.put( "OutplaceDispatchInterceptor", xInterceptor );
// .........................................................................
// create the OutplaceFrameProperties, and put them into the descriptor of the embedded object
::comphelper::NamedValueCollection OutplaceFrameProperties;
OutplaceFrameProperties.put( "TopWindow", (sal_Bool)sal_True );
Reference< XFrame > xParentFrame;
if ( m_pImpl->m_pDataSource )
xParentFrame = lcl_getDatabaseDocumentFrame( *m_pImpl->m_pDataSource );
if ( !xParentFrame.is() )
{ // i87957 we need a parent frame
if ( !m_xDesktop.is() )
m_xDesktop.set( m_aContext.createComponent( (::rtl::OUString)SERVICE_FRAME_DESKTOP ), UNO_QUERY_THROW );
xParentFrame.set(m_xDesktop,uno::UNO_QUERY);
}
OSL_ENSURE( xParentFrame.is(), "ODocumentDefinition::fillLoadArgs: no parent frame!" );
if ( xParentFrame.is() )
OutplaceFrameProperties.put( "ParentFrame", xParentFrame );
aEmbeddedDescriptor.put( "OutplaceFrameProperties", OutplaceFrameProperties.getNamedValues() );
// .........................................................................
// tell the embedded object to have (or not have) script support
aEmbeddedDescriptor.put( "EmbeddedScriptSupport", (sal_Bool)objectSupportsEmbeddedScripts() );
// .........................................................................
// pass the descriptor of the embedded object to the caller
aEmbeddedDescriptor >>= _out_rEmbeddedObjectDescriptor;
// .........................................................................
::comphelper::NamedValueCollection aMediaDesc( _rAdditionalArgs );
// .........................................................................
// create the ComponentData, and put it into the document's media descriptor
{
::comphelper::NamedValueCollection aComponentData;
aComponentData.put( "ActiveConnection", _xConnection );
aComponentData.put( "ApplyFormDesignMode", !_bReadOnly );
aMediaDesc.put( "ComponentData", aComponentData.getPropertyValues() );
}
2008-10-01 12:28:29 +00:00
if ( m_pImpl->m_aProps.aTitle.getLength() )
aMediaDesc.put( "DocumentTitle", m_pImpl->m_aProps.aTitle );
// .........................................................................
// put the common load arguments into the document's media descriptor
lcl_putLoadArgs( aMediaDesc, optional_bool( _bSuppressMacros ), optional_bool( _bReadOnly ) );
return aMediaDesc.getPropertyValues();
}
// -----------------------------------------------------------------------------
void ODocumentDefinition::loadEmbeddedObject( const Reference< XConnection >& _xConnection, const Sequence< sal_Int8 >& _aClassID,
const Sequence< PropertyValue >& _rAdditionalArgs, const bool _bSuppressMacros, const bool _bReadOnly )
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
{
if ( !m_xEmbeddedObject.is() )
{
Reference< XStorage> xStorage = getContainerStorage();
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
if ( xStorage.is() )
{
Reference< XEmbedObjectFactory> xEmbedFactory( m_aContext.createComponent( "com.sun.star.embed.OOoEmbeddedObjectFactory" ), UNO_QUERY );
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
if ( xEmbedFactory.is() )
{
::rtl::OUString sDocumentService;
sal_Bool bSetSize = sal_False;
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
sal_Int32 nEntryConnectionMode = EntryInitModes::DEFAULT_INIT;
Sequence< sal_Int8 > aClassID = _aClassID;
if ( aClassID.getLength() )
{
nEntryConnectionMode = EntryInitModes::TRUNCATE_INIT;
bSetSize = sal_True;
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
else
{
sDocumentService = GetDocumentServiceFromMediaType( xStorage, m_pImpl->m_aProps.sPersistentName, m_aContext.getLegacyServiceFactory(), aClassID );
// check if we are not a form and
// the com.sun.star.report.pentaho.SOReportJobFactory is not present.
if ( !m_bForm && !sDocumentService.equalsAscii("com.sun.star.text.TextDocument"))
{
// we seems to be a new report, check if report extension is present.
Reference< XContentEnumerationAccess > xEnumAccess( m_aContext.getLegacyServiceFactory(), UNO_QUERY );
const ::rtl::OUString sReportEngineServiceName = ::dbtools::getDefaultReportEngineServiceName(m_aContext.getLegacyServiceFactory());
Reference< XEnumeration > xEnumDrivers = xEnumAccess->createContentEnumeration(sReportEngineServiceName);
if ( !xEnumDrivers.is() || !xEnumDrivers->hasMoreElements() )
{
com::sun::star::io::WrongFormatException aWFE;
aWFE.Message = ::rtl::OUString::createFromAscii("Extension not present.");
throw aWFE;
}
}
if ( !aClassID.getLength() )
{
if ( m_bForm )
aClassID = MimeConfigurationHelper::GetSequenceClassID(SO3_SW_CLASSID);
else
{
aClassID = MimeConfigurationHelper::GetSequenceClassID(SO3_RPT_CLASSID_90);
}
}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
OSL_ENSURE( aClassID.getLength(),"No Class ID" );
Sequence< PropertyValue > aEmbeddedObjectDescriptor;
Sequence< PropertyValue > aLoadArgs( fillLoadArgs(
_xConnection, _bSuppressMacros, _bReadOnly, _rAdditionalArgs, aEmbeddedObjectDescriptor ) );
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
m_xEmbeddedObject.set(xEmbedFactory->createInstanceUserInit(aClassID
,sDocumentService
,xStorage
,m_pImpl->m_aProps.sPersistentName
,nEntryConnectionMode
,aLoadArgs
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
,aEmbeddedObjectDescriptor
),UNO_QUERY);
if ( m_xEmbeddedObject.is() )
{
if ( !m_pClientHelper )
{
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
m_pClientHelper = new OEmbeddedClientHelper(this);
m_pClientHelper->acquire();
}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
Reference<XEmbeddedClient> xClient = m_pClientHelper;
m_xEmbeddedObject->setClientSite(xClient);
m_xEmbeddedObject->changeState(EmbedStates::RUNNING);
if ( bSetSize )
{
::com::sun::star::awt::Size aSize( DEFAULT_WIDTH, DEFAULT_HEIGHT );
m_xEmbeddedObject->setVisualAreaSize(Aspects::MSOLE_CONTENT,aSize);
}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
}
}
}
else
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
{
sal_Int32 nCurrentState = m_xEmbeddedObject->getCurrentState();
if ( nCurrentState == EmbedStates::LOADED )
{
if ( !m_pClientHelper )
{
m_pClientHelper = new OEmbeddedClientHelper(this);
m_pClientHelper->acquire();
}
Reference<XEmbeddedClient> xClient = m_pClientHelper;
m_xEmbeddedObject->setClientSite(xClient);
Sequence< PropertyValue > aEmbeddedObjectDescriptor;
Sequence< PropertyValue > aLoadArgs( fillLoadArgs(
_xConnection, _bSuppressMacros, _bReadOnly, _rAdditionalArgs, aEmbeddedObjectDescriptor ) );
Reference<XCommonEmbedPersist> xCommon(m_xEmbeddedObject,UNO_QUERY);
OSL_ENSURE(xCommon.is(),"unsupported interface!");
if ( xCommon.is() )
xCommon->reload( aLoadArgs, aEmbeddedObjectDescriptor );
m_xEmbeddedObject->changeState(EmbedStates::RUNNING);
}
else
{
OSL_ENSURE( ( nCurrentState == EmbedStates::RUNNING ) || ( nCurrentState == EmbedStates::ACTIVE ),
"ODocumentDefinition::loadEmbeddedObject: unexpected state!" );
// if the document was already loaded (which means the embedded object is in state RUNNING or ACTIVE),
// then just re-set some model parameters
try
{
Reference< XModel > xModel( getComponent(), UNO_QUERY_THROW );
Sequence< PropertyValue > aArgs = xModel->getArgs();
::comphelper::NamedValueCollection aMediaDesc( aArgs );
lcl_putLoadArgs( aMediaDesc, optional_bool(), optional_bool() );
// don't put _bSuppressMacros and _bReadOnly here - if the document was already
// loaded, we should not tamper with its settings.
// #i88977# / 2008-05-05 / frank.schoenheit@sun.com
// #i86872# / 2008-03-13 / frank.schoenheit@sun.com
aMediaDesc >>= aArgs;
xModel->attachResource( xModel->getURL(), aArgs );
}
catch( const Exception& )
{
DBG_UNHANDLED_EXCEPTION();
}
}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
// set the OfficeDatabaseDocument instance as parent of the embedded document
// #i40358# / 2005-01-19 / frank.schoenheit@sun.com
Reference< XChild > xDepdendDocAsChild( getComponent(), UNO_QUERY );
if ( xDepdendDocAsChild.is() )
{
try
{
if ( !xDepdendDocAsChild->getParent().is() )
{ // first encounter
xDepdendDocAsChild->setParent( getDataSource( m_xParentContainer ) );
}
}
catch( const Exception& )
{
DBG_UNHANDLED_EXCEPTION();
}
}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
// -----------------------------------------------------------------------------
void ODocumentDefinition::onCommandPreview(Any& _rImage)
2000-09-18 23:16:46 +00:00
{
loadEmbeddedObjectForPreview();
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
if ( m_xEmbeddedObject.is() )
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
try
{
Reference<XTransferable> xTransfer(getComponent(),UNO_QUERY);
if ( xTransfer.is() )
{
DataFlavor aFlavor;
aFlavor.MimeType = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("image/png"));
aFlavor.HumanPresentableName = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Portable Network Graphics"));
aFlavor.DataType = ::getCppuType(static_cast< const Sequence < sal_Int8 >* >(NULL));
_rImage = xTransfer->getTransferData( aFlavor );
}
}
catch( Exception )
{
}
2000-09-18 23:16:46 +00:00
}
}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
// -----------------------------------------------------------------------------
void ODocumentDefinition::getPropertyDefaultByHandle( sal_Int32 /*_nHandle*/, Any& _rDefault ) const
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
{
_rDefault.clear();
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
// -----------------------------------------------------------------------------
void ODocumentDefinition::onCommandGetDocumentProperties( Any& _rProps )
2000-09-18 23:16:46 +00:00
{
loadEmbeddedObjectForPreview();
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
if ( m_xEmbeddedObject.is() )
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
try
{
Reference<XDocumentPropertiesSupplier> xDocSup(
getComponent(), UNO_QUERY );
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
if ( xDocSup.is() )
_rProps <<= xDocSup->getDocumentProperties();
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
catch( const Exception& )
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
{
DBG_UNHANDLED_EXCEPTION();
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
2000-09-18 23:16:46 +00:00
}
}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
// -----------------------------------------------------------------------------
Reference< ::com::sun::star::util::XCloseable> ODocumentDefinition::getComponent() throw (RuntimeException)
{
OSL_ENSURE(m_xEmbeddedObject.is(),"Illegal call for embeddedObject");
Reference< ::com::sun::star::util::XCloseable> xComp;
if ( m_xEmbeddedObject.is() )
{
int nOldState = m_xEmbeddedObject->getCurrentState();
int nState = nOldState;
if ( nOldState == EmbedStates::LOADED )
{
m_xEmbeddedObject->changeState( EmbedStates::RUNNING );
nState = EmbedStates::RUNNING;
}
2000-09-18 23:16:46 +00:00
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
if ( nState == EmbedStates::ACTIVE || nState == EmbedStates::RUNNING )
{
Reference<XComponentSupplier> xCompProv(m_xEmbeddedObject,UNO_QUERY);
if ( xCompProv.is() )
{
xComp = xCompProv->getComponent();
OSL_ENSURE(xComp.is(),"No valid component");
}
}
}
return xComp;
}
// -----------------------------------------------------------------------------
namespace
{
Reference< XDatabaseDocumentUI > lcl_getDatabaseDocumentUI( ODatabaseModelImpl& _rModelImpl )
{
Reference< XDatabaseDocumentUI > xUI;
Reference< XModel > xModel( _rModelImpl.getModel_noCreate() );
if ( xModel.is() )
xUI.set( xModel->getCurrentController(), UNO_QUERY );
return xUI;
}
}
// -----------------------------------------------------------------------------
Reference< XComponent > ODocumentDefinition::impl_openUI_nolck_throw( bool _bForEditing )
{
::osl::ClearableMutexGuard aGuard( m_aMutex );
if ( !m_pImpl || !m_pImpl->m_pDataSource )
throw DisposedException();
Reference< XDatabaseDocumentUI > xUI( lcl_getDatabaseDocumentUI( *m_pImpl->m_pDataSource ) );
if ( !xUI.is() )
{
// no XDatabaseDocumentUI -> just execute the respective command
m_bOpenInDesign = _bForEditing;
Any aComponent;
onCommandOpenSomething( Any(), true, NULL, aComponent, aGuard );
Reference< XComponent > xComponent;
OSL_VERIFY( aComponent >>= xComponent );
return xComponent;
}
Reference< XComponent > xComponent;
try
{
::rtl::OUString sName( m_pImpl->m_aProps.aTitle );
sal_Int32 nObjectType = m_bForm ? DatabaseObject::FORM : DatabaseObject::REPORT;
aGuard.clear();
xComponent = xUI->loadComponent(
nObjectType, sName, _bForEditing
);
}
catch( RuntimeException& ) { throw; }
catch( const Exception& )
{
throw WrappedTargetException(
::rtl::OUString(), *this, ::cppu::getCaughtException() );
}
return xComponent;
}
// -----------------------------------------------------------------------------
void ODocumentDefinition::impl_store_throw()
{
Reference<XEmbedPersist> xPersist( m_xEmbeddedObject, UNO_QUERY );
if ( xPersist.is() )
{
xPersist->storeOwn();
notifyDataSourceModified();
}
}
// -----------------------------------------------------------------------------
bool ODocumentDefinition::impl_close_throw()
{
bool bSuccess = prepareClose();
if ( bSuccess && m_xEmbeddedObject.is() )
{
m_xEmbeddedObject->changeState( EmbedStates::LOADED );
bSuccess = m_xEmbeddedObject->getCurrentState() == EmbedStates::LOADED;
}
return bSuccess;
}
// -----------------------------------------------------------------------------
Reference< XComponent > SAL_CALL ODocumentDefinition::open( ) throw (WrappedTargetException, RuntimeException)
{
return impl_openUI_nolck_throw( false );
}
// -----------------------------------------------------------------------------
Reference< XComponent > SAL_CALL ODocumentDefinition::openDesign( ) throw (WrappedTargetException, RuntimeException)
{
return impl_openUI_nolck_throw( true );
}
// -----------------------------------------------------------------------------
void SAL_CALL ODocumentDefinition::store( ) throw (WrappedTargetException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
try
{
impl_store_throw();
}
catch( RuntimeException& ) { throw; }
catch( const Exception& )
{
throw WrappedTargetException(
::rtl::OUString(), *this, ::cppu::getCaughtException() );
}
}
// -----------------------------------------------------------------------------
::sal_Bool SAL_CALL ODocumentDefinition::close( ) throw (WrappedTargetException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
sal_Bool bSuccess = sal_False;
try
{
bSuccess = impl_close_throw();
}
catch( RuntimeException& ) { throw; }
catch( const Exception& )
{
throw WrappedTargetException(
::rtl::OUString(), *this, ::cppu::getCaughtException() );
}
return bSuccess;
}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
// -----------------------------------------------------------------------------
void SAL_CALL ODocumentDefinition::rename( const ::rtl::OUString& _rNewName ) throw (SQLException, ElementExistException, RuntimeException)
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
try
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
osl::ClearableGuard< osl::Mutex > aGuard(m_aMutex);
if ( _rNewName.equals( m_pImpl->m_aProps.aTitle ) )
return;
// document definitions are organized in a hierarchical way, so reject names
// which contain a /, as this is reserved for hierarchy level separation
if ( _rNewName.indexOf( '/' ) != -1 )
m_aErrorHelper.raiseException( ErrorCondition::DB_OBJECT_NAME_WITH_SLASHES, *this );
sal_Int32 nHandle = PROPERTY_ID_NAME;
Any aOld = makeAny( m_pImpl->m_aProps.aTitle );
Any aNew = makeAny( _rNewName );
aGuard.clear();
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
fire(&nHandle, &aNew, &aOld, 1, sal_True );
m_pImpl->m_aProps.aTitle = _rNewName;
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
fire(&nHandle, &aNew, &aOld, 1, sal_False );
::osl::ClearableGuard< ::osl::Mutex > aGuard2( m_aMutex );
if ( m_xEmbeddedObject.is() && m_xEmbeddedObject->getCurrentState() == EmbedStates::ACTIVE )
updateDocumentTitle();
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
}
catch(const PropertyVetoException&)
{
throw ElementExistException(_rNewName,*this);
2000-09-18 23:16:46 +00:00
}
}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
// -----------------------------------------------------------------------------
Reference< XStorage> ODocumentDefinition::getContainerStorage() const
2000-09-18 23:16:46 +00:00
{
return m_pImpl->m_pDataSource
? m_pImpl->m_pDataSource->getStorage( ODatabaseModelImpl::getObjectContainerStorageName( m_bForm ? ODatabaseModelImpl::E_FORM : ODatabaseModelImpl::E_REPORT ) )
: Reference< XStorage>();
2000-09-18 23:16:46 +00:00
}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
// -----------------------------------------------------------------------------
sal_Bool ODocumentDefinition::isModified()
2000-09-18 23:16:46 +00:00
{
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
osl::ClearableGuard< osl::Mutex > aGuard(m_aMutex);
sal_Bool bRet = sal_False;
if ( m_xEmbeddedObject.is() )
{
Reference<XModifiable> xModel(getComponent(),UNO_QUERY);
bRet = xModel.is() && xModel->isModified();
}
return bRet;
2000-09-18 23:16:46 +00:00
}
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
// -----------------------------------------------------------------------------
bool ODocumentDefinition::prepareClose()
{
if ( !m_xEmbeddedObject.is() )
return true;
try
{
// suspend the controller. Embedded objects are not allowed to raise
// own UI at their own discretion, instead, this has always to be triggered
// by the embedding component. Thus, we do the suspend call here.
// #i49370# / 2005-06-09 / frank.schoenheit@sun.com
Reference< XModel > xModel( getComponent(), UNO_QUERY );
Reference< XController > xController;
if ( xModel.is() )
xController = xModel->getCurrentController();
OSL_ENSURE( xController.is() || ( m_xEmbeddedObject->getCurrentState() < EmbedStates::ACTIVE ),
"ODocumentDefinition::prepareClose: no controller!" );
if ( !xController.is() )
// document has not yet been activated, i.e. has no UI, yet
return true;
sal_Bool bCouldSuspend = xController->suspend( sal_True );
if ( !bCouldSuspend )
// controller vetoed the closing
return false;
if ( isModified() )
{
Reference< XFrame > xFrame( xController->getFrame() );
if ( xFrame.is() )
{
Reference< XTopWindow > xTopWindow( xFrame->getContainerWindow(), UNO_QUERY_THROW );
xTopWindow->toFront();
}
if ( !save( sal_True ) )
{
if ( bCouldSuspend )
// revert suspension
xController->suspend( sal_False );
// saving failed or was cancelled
return false;
}
}
}
catch( const Exception& )
{
DBG_UNHANDLED_EXCEPTION();
}
return true;
}
// -----------------------------------------------------------------------------
void ODocumentDefinition::fillReportData(::osl::ClearableMutexGuard & _aGuard)
2000-09-18 23:16:46 +00:00
{
if ( !m_bForm && m_pImpl->m_aProps.bAsTemplate && !m_bOpenInDesign ) // open a report in alive mode, so we need to fill it
2000-09-18 23:16:46 +00:00
{
Sequence<Any> aArgs(2);
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
PropertyValue aValue;
aValue.Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TextDocument"));
aValue.Value <<= getComponent();
aArgs[0] <<= aValue;
aValue.Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ActiveConnection"));
aValue.Value <<= m_xLastKnownConnection;
aArgs[1] <<= aValue;
Reference< XJobExecutor > xExecuteable( m_aContext.createComponentWithArguments( "com.sun.star.wizards.report.CallReportWizard", aArgs ), UNO_QUERY );
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
if ( xExecuteable.is() )
{
_aGuard.clear();
INTEGRATION: CWS insight01 (1.10.126); FILE MERGED 2004/07/27 13:26:05 oj 1.10.126.45: new prop 2004/07/27 09:27:02 oj 1.10.126.44: fill report 2004/07/22 10:35:21 oj 1.10.126.43: #i30199# AsTemplate for a component inserted 2004/07/16 12:34:06 oj 1.10.126.42: #i31520# make sure that the name doesn't contain any / 2004/07/09 13:12:29 oj 1.10.126.41: #i30416# correct emb obj handling documentdefinition.cxx 2004/07/01 13:23:22 oj 1.10.126.40: bring window to front when object already exists 2004/07/01 12:33:19 oj 1.10.126.39: bring window to front when object already exists 2004/07/01 11:36:38 oj 1.10.126.38: #i30368# new element to componentData added 2004/06/30 13:22:33 oj 1.10.126.37: #i30401# handle document save 2004/06/11 09:54:09 oj 1.10.126.36: embedded obj changes 2004/06/10 15:43:41 oj 1.10.126.35: embedded obj changes 2004/06/10 11:07:58 oj 1.10.126.34: embedded obj changes 2004/06/04 12:49:38 oj 1.10.126.33: merge 2004/06/03 10:56:43 oj 1.10.126.32: throw missing 2004/06/03 08:49:36 oj 1.10.126.31: merge to m40 2004/06/02 07:44:22 oj 1.10.126.30: embedded api change 2004/04/26 06:37:19 oj 1.10.126.29: fix edit and open 2004/04/15 11:40:36 oj 1.10.126.28: make use of createInstanceUserInit 2004/04/13 12:32:37 oj 1.10.126.27: open only forms in a design mode 2004/04/13 06:35:10 oj 1.10.126.26: ongoing work 2004/03/31 10:03:36 oj 1.10.126.25: correct storage handling 2004/03/30 12:54:40 oj 1.10.126.24: share storage 2004/03/29 09:55:48 oj 1.10.126.23: set document title and read only mode 2004/03/19 07:45:42 oj 1.10.126.22: #111075# ongoing work 2004/03/17 12:52:32 oj 1.10.126.21: #111075# renaming of objects 2004/03/16 14:21:51 oj 1.10.126.20: #111075# change rename handling 2004/03/16 11:07:21 oj 1.10.126.19: #111075# set non existing name when create new object 2004/03/12 14:21:47 oj 1.10.126.18: #111075# ongoing changes 2004/03/12 11:55:21 oj 1.10.126.17: #111075# implement commit 2004/03/11 11:22:01 oj 1.10.126.16: #111075# changes for closing 2004/03/11 09:06:20 oj 1.10.126.15: #111075# changes for closing 2004/02/27 09:11:51 oj 1.10.126.14: #i24209# check if column and table are defaulted 2004/02/23 14:50:20 oj 1.10.126.13: #111075# set the document context 2004/02/20 14:39:55 oj 1.10.126.12: #111075# ongoing work 2004/02/20 11:32:30 oj 1.10.126.11: #i25414# extend the datadescriptor for database location and connection resource 2004/02/17 11:13:09 oj 1.10.126.10: #111075# ongoing work 2004/02/16 07:22:19 oj 1.10.126.9: #111075# linux changes 2004/02/12 16:15:26 oj 1.10.126.8: #111075# fix refcount problem 2004/01/22 14:22:42 oj 1.10.126.7: #i24598# parent handling changed 2004/01/07 13:54:36 oj 1.10.126.6: #111075# ongoing work 2003/12/17 09:46:38 oj 1.10.126.5: #111075# ongoing work 2003/11/26 12:14:31 oj 1.10.126.4: #111075# ongoing work 2003/11/17 09:39:12 oj 1.10.126.3: #111075# ongoning work 2003/11/05 11:36:23 oj 1.10.126.2: #111075# ongoing work 2003/10/24 06:27:29 oj 1.10.126.1: #i21643# import filter changes
2004-08-02 14:10:37 +00:00
xExecuteable->trigger(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("fill")));
2000-09-18 23:16:46 +00:00
}
}
}
// -----------------------------------------------------------------------------
void ODocumentDefinition::updateDocumentTitle()
{
::rtl::OUString sName = m_pImpl->m_aProps.aTitle;
if ( m_pImpl->m_pDataSource )
{
if ( !sName.getLength() )
{
if ( m_bForm )
sName = DBACORE_RESSTRING( RID_STR_FORM );
else
sName = DBACORE_RESSTRING( RID_STR_REPORT );
Reference< XUntitledNumbers > xUntitledProvider(m_pImpl->m_pDataSource->getModel_noCreate(), UNO_QUERY );
if ( xUntitledProvider.is() )
sName += ::rtl::OUString::valueOf( xUntitledProvider->leaseNumber(getComponent()) );
}
Reference< XTitle > xDatabaseDocumentModel(m_pImpl->m_pDataSource->getModel_noCreate(),uno::UNO_QUERY);
if ( xDatabaseDocumentModel.is() )
sName = xDatabaseDocumentModel->getTitle() + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" : ")) + sName;
}
Reference< XTitle> xTitle(getComponent(),UNO_QUERY);
if ( xTitle.is() )
xTitle->setTitle(sName);
}
//........................................................................
} // namespace dbaccess
//........................................................................
2000-09-18 23:16:46 +00:00