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

1895 lines
75 KiB
C++
Raw Normal View History

INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
*
* Copyright 2008 by Sun Microsystems, Inc.
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
*
* OpenOffice.org - a multi-platform office productivity suite
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
*
* $RCSfile: databasedocument.cxx,v $
2008-10-16 06:57:26 +00:00
* $Revision: 1.40.6.21 $
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
*
* This file is part of OpenOffice.org.
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +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.
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +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).
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +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.
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
*
************************************************************************/
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_dbaccess.hxx"
CWS-TOOLING: integrate CWS dba32g 2009-09-09 07:53:55 +0200 oj r275964 : replace strlen with rtl_str_getLength 2009-09-07 20:59:10 +0200 fs r275913 : disable the CopyTableWizard test until issue 104869 is fixed 2009-09-07 12:17:31 +0200 oj r275885 : #i104810# remove de as lang 2009-09-05 22:26:21 +0200 fs r275857 : protect StateChanged against re-entrance 2009-09-05 22:25:52 +0200 fs r275856 : don't attempt to classify the parent of a form as control 2009-09-05 22:25:29 +0200 fs r275855 : protect against re-entrance 2009-09-05 00:11:40 +0200 fs r275835 : #i10000# 2009-09-04 23:25:50 +0200 fs r275834 : #i10000# 2009-09-04 23:23:47 +0200 fs r275833 : #i10000# 2009-09-04 21:49:37 +0200 fs r275830 : #i10000# correct wrong conflict resolution 2009-09-04 20:59:51 +0200 fs r275829 : CWS-TOOLING: rebase CWS dba32g to trunk@275801 (milestone: DEV300:m57) 2009-09-04 11:08:32 +0200 oj r275791 : #i104780# new version 1.2.0 2009-09-03 22:29:21 +0200 fs r275775 : OSL_TRACE doesn't need \n anymore 2009-09-03 08:33:21 +0200 fs r275743 : CWS-TOOLING: rebase CWS dba32g to trunk@275331 (milestone: DEV300:m56) 2009-09-02 13:48:12 +0200 fs r275708 : removed useless include 2009-09-02 13:45:43 +0200 fs r275707 : more since tags, which are used across offapi/udkapi 2009-09-02 13:23:04 +0200 fs r275705 : should *not* have the dtor, copy ctor, and assignment operator compiler-generated, else we run into trouble as soon as the compiler creates different versions of our singleton member's static data in different libraries 2009-09-02 12:32:45 +0200 fs r275704 : AutoIncrementIsPrimaryKey is a driver setting, not a data source setting 2009-09-02 11:42:49 +0200 fs r275701 : URL meta data are meta data which are valid for all connections of this type, not per-data-source properties. Settings them as data source properties is a hack. 2009-09-02 08:43:34 +0200 fs r275696 : 3.x.x is not a valid 'since' tag 2009-09-01 16:05:24 +0200 fs r275665 : #i104686# don't treat controls bound to read-only columns as required 2009-09-01 13:10:22 +0200 fs r275657 : #i104574# use PageUp/Down to scroll through the complete page 2009-09-01 07:04:48 +0200 oj r275641 : #i104104# correct line ends 2009-08-31 15:52:34 +0200 fs r275612 : #i104410# 2009-08-31 12:29:05 +0200 fs r275596 : #i104364# 2009-08-31 12:28:56 +0200 fs r275595 : #i104364# 2009-08-31 11:43:09 +0200 fs r275593 : #i104649# JavaDriverClassPath is also a known JDBC-bridge setting 2009-08-31 11:41:37 +0200 fs r275592 : #i104649# 2009-08-28 21:48:27 +0200 fs r275552 : during #i96862#: renamed the configuration data which controls availability of certain DBA-related UI 2009-08-28 21:48:17 +0200 fs r275551 : #i96862# do not show the 'Create a new database' option when a) no embedded/dBase driver is installed or b) the configuration requests to hide the option 2009-08-28 21:47:19 +0200 fs r275550 : during #i96862#: renamed the configuration data which controls availability of certain DBA-related UI 2009-08-28 21:46:41 +0200 fs r275549 : #i96862# renamed and extended the configuration data which controls availability of certain DBA-related UI 2009-08-28 15:10:19 +0200 fs r275535 : #i96862# if no embedded driver is installed, use dBase for creating new DBs. If no dBase driver is installed, too, do not offer the 'Create new database' option 2009-08-28 14:03:04 +0200 fs r275532 : #i104454# allow multiple fields to display the same column 2009-08-28 13:14:00 +0200 fs r275528 : #i104584# driver meta data do not belong into a data source's settings 2009-08-28 13:09:57 +0200 fs r275527 : properly chech the MySQL type buttons (else next/back in the wizard leads to state with two buttons checked) 2009-08-28 13:09:17 +0200 fs r275526 : #i104584# driver meta data do not belong into a data source's settings 2009-08-28 13:07:18 +0200 fs r275525 : BooleanComparisonMode is a property, or a feature - but not a driver meta data 2009-08-28 11:00:31 +0200 fs r275521 : #i104580# 2009-08-28 10:40:05 +0200 fs r275519 : #i104577# correct assertion: If the template node type is ANY, then any value type is allowed 2009-08-28 10:09:30 +0200 fs r275518 : #i104575# implement Named Pipe UI 2009-08-28 10:09:07 +0200 fs r275517 : pass the trigger-event to IWindowOperator::operateOn / work with VclWindowEvents, not VclSimpleEvents 2009-08-27 14:27:36 +0200 fs r275484 : ImplPosTabPage: respect mbEmptyViewMargin for WINDOWALIGN_LEFT 2009-08-27 13:43:56 +0200 fs r275480 : merging latest changes from CWS dba32f herein 2009-08-27 13:23:07 +0200 fs r275475 : #i103882# 2009-08-27 11:56:55 +0200 fs r275466 : #i104544# SetState: Do not call Update at the window which we just set text for. It should (sic\!) not be needed, but causes trouble 2009-08-27 11:55:34 +0200 fs r275465 : #i104544# do not allow re-entrance for impl_ensureControl_nothrow Actually, this is part of the fix only. I also removed the code which triggered this re-entrance (from the grid control implementation), but to ensure it won't happen, again, I added some safety herein. 2009-08-27 10:14:11 +0200 fs r275459 : preparations for supporting a 'NamedPipe' parameter for the MySQL Connector/OOo 2009-08-27 10:13:21 +0200 fs r275458 : preparations for supporting a 'NamedPipe' setting for the MySQL Connector/OOo 2009-08-27 10:11:14 +0200 fs r275456 : outsourced the MySQLNative settings into a dedicated class, to not duplicate all the code in two tab page implementations 2009-08-26 14:18:13 +0200 fs r275422 : #i10000# 2009-08-26 13:26:36 +0200 fs r275419 : ignore output paths 2009-08-26 13:23:38 +0200 fs r275417 : support the LocalSocket property for the MySQL native driver 2009-08-26 13:17:05 +0200 fs r275416 : some re-factoring, to outsource the tab page for setting up the MySQLNative connection, into a dedicated class (needed later) 2009-08-26 13:15:15 +0200 fs r275415 : support a NoThousandSep property for NumericFormatters - I'm tired of correcting this at runtime, instead of controlling it in the resource 2009-08-26 11:45:08 +0200 fs r275410 : oops, 'flat' shouldn't have got lost 2009-08-26 09:38:57 +0200 fs r275398 : #i102631# when saving the document fails, ensure that the interaction handler really can handle/display the error 2009-08-26 09:37:05 +0200 fs r275397 : #i102631# don't let non-IO/RuntimeExceptions escape from DatabaseDocument::store*, wrap them into an IOException 2009-08-26 09:35:39 +0200 fs r275395 : let the default interaction handler implement XInteractionHandler2 2009-08-25 13:51:34 +0200 fs r275352 : #i102631# createTempFile: pass URL through FileHelper.getOOoCompatibleFileURL 2009-08-25 13:49:23 +0200 fs r275351 : #i102631# createTempFileURL: immediately delete the file implicitly created by createTempFile, we really only need the URL 2009-08-24 14:49:07 +0200 fs r275318 : #i10000# 2009-08-24 14:36:03 +0200 fs r275315 : properly terminate message with 0 character 2009-08-24 14:35:45 +0200 fs r275314 : trace method concepts in non-pro, if special flag is enabled 2009-08-24 14:24:17 +0200 fs r275312 : #i98973# filter some more events for grid control columns 2009-08-24 14:15:23 +0200 fs r275311 : #i98973# implement XComboBox for combo box cells 2009-08-24 13:39:24 +0200 fs r275308 : #i98973# do not display the 'actionPerformed' event for grid combo box columns 2009-08-24 12:52:03 +0200 fs r275303 : #i98973# implement XCheckBox and XButton for check box cells 2009-08-24 11:56:05 +0200 oj r275300 : #i104447# wrong default for orientation 2009-08-24 10:51:21 +0200 fs r275296 : in the script selector dialog, interpret a double click onto a function as OK 2009-08-24 10:50:56 +0200 fs r275295 : localize some to-be-displayed names, consolidate some code regarding form/control naming 2009-08-21 14:28:05 +0200 fs r275255 : #i98973# implement KeyListeners 2009-08-21 14:27:20 +0200 fs r275254 : #i98973# move the conversion VCL[Mouse|Key]Event->Awt[Mouse|Key]Event from vclxwindow.cxx to VCLUnoHelper 2009-08-21 14:08:50 +0200 fs r275248 : #i98973# implement Mouse- and MouseMotion-broadcasting 2009-08-21 13:31:08 +0200 fs r275244 : #i98973# implement text and change listeners at text cells 2009-08-21 12:47:38 +0200 fs r275234 : #i104399# some refactoring: If the MySQL Connector/OOo is installed, it registers for the sdbc:mysqlc: protocol (now known as DST_MYSQL_NATIVE_DIRECT). However, we do not want to display this in the UI, instead we display "MySQL" only, which collects DST_MYSQL_ODBC, DST_MYSQL_JDBC, and DST_MYSQL_NATIVE. 2009-08-21 12:45:18 +0200 fs r275232 : #i104399# also register for the sdbc:mysql:mysqlc protocol, decide at runtime (depending on the availability of sdbc:mysqlc:), whether it is really accepted. This prevents that the C/OOo extension needs to register *our* implementation name for the sdbc:mysql:mysqlc: protocol, which would be somewhat weird 2009-08-20 16:18:48 +0200 fs r275190 : merging the latest changes from CWS dba32f (which this CWS was created from) 2009-08-19 20:19:59 +0200 fs r275160 : add some spacing between the radios 2009-08-19 14:50:15 +0200 fs r275150 : #i98973# slightly refactoring the grid cell implementations, to prepare for proper events being fired. Implement focus events for the moment, more to come. 2009-08-19 10:53:38 +0200 fs r275142 : #i99936# initialize newly created models 2009-08-18 23:03:48 +0200 fs r275132 : merging latest changes from CWS dba32f 2009-08-18 15:14:08 +0200 fs r275110 : #i102819# SetColumnPos: SCROLL_CLIP is deadly here
2009-09-14 11:18:01 +00:00
#include "core_resource.hxx"
#include "core_resource.hrc"
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
#include "datasource.hxx"
#include "databasedocument.hxx"
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
#include "dbastrings.hrc"
#include "module_dba.hxx"
2008-10-16 06:57:26 +00:00
#include "documenteventexecutor.hxx"
#include "databasecontext.hxx"
#include "documentcontainer.hxx"
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
#include <comphelper/documentconstants.hxx>
#include <comphelper/namedvaluecollection.hxx>
#include <comphelper/enumhelper.hxx>
#include <comphelper/numberedcollection.hxx>
2008-10-01 12:28:29 +00:00
#include <comphelper/genericpropertyset.hxx>
#include <comphelper/property.hxx>
#include <svtools/saveopt.hxx>
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
#include <framework/titlehelper.hxx>
2008-10-16 06:57:26 +00:00
/** === begin UNO includes === **/
#include <com/sun/star/document/XExporter.hpp>
#include <com/sun/star/document/XFilter.hpp>
#include <com/sun/star/document/XImporter.hpp>
#include <com/sun/star/embed/EntryInitModes.hpp>
#include <com/sun/star/embed/XEmbedPersist.hpp>
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
#include <com/sun/star/embed/XTransactedObject.hpp>
2008-10-16 06:57:26 +00:00
#include <com/sun/star/embed/XTransactionBroadcaster.hpp>
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
#include <com/sun/star/io/XActiveDataSource.hpp>
#include <com/sun/star/io/XSeekable.hpp>
2008-10-16 06:57:26 +00:00
#include <com/sun/star/script/provider/XScriptProviderFactory.hpp>
#include <com/sun/star/task/ErrorCodeIOException.hpp>
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
#include <com/sun/star/task/XStatusIndicator.hpp>
#include <com/sun/star/task/XStatusIndicatorFactory.hpp>
#include <com/sun/star/ui/XUIConfigurationStorage.hpp>
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
#include <com/sun/star/view/XSelectionSupplier.hpp>
2008-10-16 06:57:26 +00:00
#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
/** === end UNO includes === **/
#include <comphelper/documentconstants.hxx>
#include <comphelper/interaction.hxx>
2008-10-16 06:57:26 +00:00
#include <comphelper/enumhelper.hxx>
#include <comphelper/mediadescriptor.hxx>
#include <comphelper/namedvaluecollection.hxx>
#include <comphelper/numberedcollection.hxx>
#include <comphelper/storagehelper.hxx>
#include <cppuhelper/exc_hlp.hxx>
2008-10-16 06:57:26 +00:00
#include <framework/titlehelper.hxx>
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
#include <tools/errcode.hxx>
#include <tools/urlobj.hxx>
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
#include <boost/bind.hpp>
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
#include <algorithm>
#include <functional>
CWS-TOOLING: integrate CWS rtlcontrols 2008-12-11 21:08:49 +0100 fs r265367 : CONTEXT_WRITING_MODE is transient 2008-12-11 21:08:00 +0100 fs r265365 : REGISTER_PROP_3 2008-12-11 20:53:44 +0100 fs r265362 : ContextWritingMode is not MAYBEVOID 2008-12-11 15:29:08 +0100 fs r265315 : prevent a deadlock during complex.dbaccess.DatabaseDocument test 2008-12-11 15:01:13 +0100 fs r265304 : manual RESYNC to m37 2008-12-10 20:04:38 +0100 pl r265230 : #i30631# fix a snafu in mirroring 2008-12-10 19:14:45 +0100 pl r265229 : #i30631# rework PaintToDevice for RTL controls 2008-12-05 10:19:13 +0100 fs r264893 : #i10000# ImplInitSettings => ImplInitWindow (ImplInitSettings clashed with base classes ImplInitSettings on unxsols4) 2008-12-03 12:55:24 +0100 fs r264768 : #i100000# 2008-12-03 07:11:48 +0100 fs r264741 : #i10000# 2008-12-02 10:37:51 +0100 fs r264670 : CWS-TOOLING: rebase CWS rtlcontrols to trunk@264325 (milestone: DEV300:m36) 2008-12-02 09:27:50 +0100 fs r264660 : merge from trunk 2008-11-25 10:28:36 +0100 ama r264277 : Fix #i94572# 2008-11-24 11:46:48 +0100 fs r264218 : #i30631# proper context writing mode 2008-11-24 09:38:04 +0100 fs r264204 : #i30631# (approved by PL) 2008-11-24 09:35:47 +0100 fs r264203 : #i30631# Context/WritingMode 2008-11-24 09:33:36 +0100 fs r264202 : #i30631# Context/WritingMode 2008-11-24 09:31:53 +0100 fs r264200 : #i30631# RTL 2008-11-19 08:51:48 +0100 fs r263963 : #i10000# 2008-11-18 20:58:11 +0100 fs r263878 : #i10000# 2008-11-18 15:30:44 +0100 fs r263778 : migrate the CWS from CVS to SVN the CVS changes contained in this change set are the ones between the following two CVS tags: CWS_DEV300_RTLCONTROLS_ANCHOR CWS_DEV300_RTLCONTROLS_PRE_MIGRATION 2008-11-18 12:29:04 +0100 ama r263762 : Fix #i94572#: Context direction for drawing objects 2008-11-18 12:25:50 +0100 ama r263761 : Fix #i94572#: Context direction for drawing objects 2008-11-18 12:02:30 +0100 ama r263759 : Fix #i94572#: Context direction for drawing objects
2008-12-16 13:30:53 +00:00
#include <list>
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
2008-10-01 12:28:29 +00:00
#define MAP_LEN(x) x, sizeof(x) - 1
#define MAP_LEN(x) x, sizeof(x) - 1
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::frame;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::document;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::util;
using namespace ::com::sun::star::embed;
using namespace ::com::sun::star::task;
using namespace ::com::sun::star::view;
using namespace ::com::sun::star::sdbc;
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
using namespace ::com::sun::star;
using namespace ::com::sun::star::xml::sax;
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
using namespace ::com::sun::star::script;
using namespace ::com::sun::star::script::provider;
using namespace ::com::sun::star::ui;
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
using namespace ::cppu;
using namespace ::osl;
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
using ::com::sun::star::awt::XWindow;
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
//........................................................................
namespace dbaccess
{
//........................................................................
//============================================================
2008-10-16 06:57:26 +00:00
//= ViewMonitor
//============================================================
//--------------------------------------------------------------------------
bool ViewMonitor::onControllerConnected( const Reference< XController >& _rxController )
{
bool bFirstControllerEver = ( m_bEverHadController == false );
m_bEverHadController = true;
m_xLastConnectedController = _rxController;
m_bLastIsFirstEverController = bFirstControllerEver;
return bFirstControllerEver;
}
//--------------------------------------------------------------------------
void ViewMonitor::onSetCurrentController( const Reference< XController >& _rxController )
{
// we interpret this as "loading the document (including UI) is finished",
// if and only if this is the controller which was last connected, and it was the
// first controller ever connected
bool bLoadFinished = ( _rxController == m_xLastConnectedController ) && m_bLastIsFirstEverController;
// notify the respective events
if ( bLoadFinished )
m_rEventNotifier.notifyDocumentEventAsync( m_bIsNewDocument ? "OnNew" : "OnLoad" );
}
//============================================================
//= ODatabaseDocument
//============================================================
DBG_NAME(ODatabaseDocument)
//--------------------------------------------------------------------------
extern "C" void SAL_CALL createRegistryInfo_ODatabaseDocument()
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
static ::dba::OAutoRegistration< ODatabaseDocument > aAutoRegistration;
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
//--------------------------------------------------------------------------
ODatabaseDocument::ODatabaseDocument(const ::rtl::Reference<ODatabaseModelImpl>& _pImpl )
:ModelDependentComponent( _pImpl )
,ODatabaseDocument_OfficeDocument( getMutex() )
,m_aModifyListeners( getMutex() )
,m_aCloseListener( getMutex() )
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
,m_aStorageListeners( getMutex() )
,m_pEventContainer( new DocumentEvents( *this, getMutex(), _pImpl->getDocumentEvents() ) )
2008-10-16 06:57:26 +00:00
,m_pEventExecutor( NULL ) // initialized below, ref-count-protected
,m_aEventNotifier( *this, getMutex() )
,m_aViewMonitor( m_aEventNotifier )
,m_eInitState( NotInitialized )
,m_bClosing( false )
,m_bAllowDocumentScripting( false )
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
DBG_CTOR(ODatabaseDocument,NULL);
osl_incrementInterlockedCount( &m_refCount );
{
impl_reparent_nothrow( m_xForms );
impl_reparent_nothrow( m_xReports );
impl_reparent_nothrow( m_pImpl->m_xTableDefinitions );
impl_reparent_nothrow( m_pImpl->m_xCommandDefinitions );
2008-10-16 06:57:26 +00:00
m_pEventExecutor = new DocumentEventExecutor( m_pImpl->m_aContext, this );
}
osl_decrementInterlockedCount( &m_refCount );
2008-10-16 06:57:26 +00:00
// if there previously was a document instance for the same Impl which was already initialized,
// then consider ourself initialized, too.
// #i94840#
if ( m_pImpl->hadInitializedDocument() )
{
2008-10-16 06:57:26 +00:00
impl_setInitialized();
m_bAllowDocumentScripting = ( m_pImpl->determineEmbeddedMacros() != ODatabaseModelImpl::eSubDocumentMacros );
}
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
//--------------------------------------------------------------------------
ODatabaseDocument::~ODatabaseDocument()
{
DBG_DTOR(ODatabaseDocument,NULL);
if ( !ODatabaseDocument_OfficeDocument::rBHelper.bInDispose && !ODatabaseDocument_OfficeDocument::rBHelper.bDisposed )
{
acquire();
dispose();
}
2008-10-16 06:57:26 +00:00
delete m_pEventContainer, m_pEventContainer = NULL;
}
// -----------------------------------------------------------------------------
Any SAL_CALL ODatabaseDocument::queryInterface( const Type& _rType ) throw (RuntimeException)
{
2008-04-08 11:46:07 +00:00
// strip XEmbeddedScripts and XScriptInvocationContext if we have any form/report
// which already contains macros. In this case, the database document itself is not
// allowed to contain macros, too.
if ( !m_bAllowDocumentScripting
2008-04-08 11:46:07 +00:00
&& ( _rType.equals( XEmbeddedScripts::static_type() )
|| _rType.equals( XScriptInvocationContext::static_type() )
)
)
return Any();
Any aReturn = ODatabaseDocument_OfficeDocument::queryInterface(_rType);
if (!aReturn.hasValue())
aReturn = ODatabaseDocument_Title::queryInterface(_rType);
return aReturn;
}
//------------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::acquire( ) throw ()
{
ODatabaseDocument_OfficeDocument::acquire();
}
//------------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::release( ) throw ()
{
ODatabaseDocument_OfficeDocument::release();
}
//------------------------------------------------------------------------------
Sequence< Type > SAL_CALL ODatabaseDocument::getTypes( ) throw (RuntimeException)
{
2008-04-08 11:46:07 +00:00
Sequence< Type > aTypes = ::comphelper::concatSequences(
ODatabaseDocument_OfficeDocument::getTypes(),
ODatabaseDocument_Title::getTypes()
);
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
// strip XEmbeddedScripts and XScriptInvocationContext if we have any form/report
// which already contains macros. In this case, the database document itself is not
// allowed to contain macros, too.
if ( !m_bAllowDocumentScripting )
{
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
Sequence< Type > aStrippedTypes( aTypes.getLength() );
Type* pStripTo( aStrippedTypes.getArray() );
// strip XEmbeddedScripts, and immediately re-assign to aTypes
aTypes = Sequence< Type >(
pStripTo,
::std::remove_copy_if(
aTypes.getConstArray(),
aTypes.getConstArray() + aTypes.getLength(),
pStripTo,
::std::bind2nd( ::std::equal_to< Type >(), XEmbeddedScripts::static_type() )
) - pStripTo
);
// strip XScriptInvocationContext, and immediately re-assign to aTypes
aTypes = Sequence< Type >(
pStripTo,
::std::remove_copy_if(
aTypes.getConstArray(),
aTypes.getConstArray() + aTypes.getLength(),
pStripTo,
::std::bind2nd( ::std::equal_to< Type >(), XScriptInvocationContext::static_type() )
) - pStripTo
);
}
return aTypes;
}
2008-04-08 11:46:07 +00:00
//------------------------------------------------------------------------------
Sequence< sal_Int8 > SAL_CALL ODatabaseDocument::getImplementationId( ) throw (RuntimeException)
{
static ::cppu::OImplementationId * pId = 0;
if (! pId)
{
::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
if (! pId)
{
static ::cppu::OImplementationId aId;
pId = &aId;
}
}
return pId->getImplementationId();
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
// -----------------------------------------------------------------------------
// local functions
// -----------------------------------------------------------------------------
namespace
{
// -----------------------------------------------------------------------------
Reference< XStatusIndicator > lcl_extractStatusIndicator( const ::comphelper::NamedValueCollection& _rArguments )
{
Reference< XStatusIndicator > xStatusIndicator;
return _rArguments.getOrDefault( "StatusIndicator", xStatusIndicator );
}
// -----------------------------------------------------------------------------
static void lcl_triggerStatusIndicator_throw( const ::comphelper::NamedValueCollection& _rArguments, DocumentGuard& _rGuard, const bool _bStart )
{
Reference< XStatusIndicator > xStatusIndicator( lcl_extractStatusIndicator( _rArguments ) );
if ( !xStatusIndicator.is() )
return;
_rGuard.clear();
try
{
if ( _bStart )
xStatusIndicator->start( ::rtl::OUString(), (sal_Int32)1000000 );
else
xStatusIndicator->end();
}
catch( const Exception& )
{
DBG_UNHANDLED_EXCEPTION();
}
_rGuard.reset();
// note that |reset| can throw a DisposedException
}
// -----------------------------------------------------------------------------
static void lcl_extractStatusIndicator( const ::comphelper::NamedValueCollection& _rArguments, Sequence< Any >& _rCallArgs )
{
Reference< XStatusIndicator > xStatusIndicator( lcl_extractStatusIndicator( _rArguments ) );
if ( !xStatusIndicator.is() )
return;
sal_Int32 nLength = _rCallArgs.getLength();
_rCallArgs.realloc( nLength + 1 );
_rCallArgs[ nLength ] <<= xStatusIndicator;
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
// -----------------------------------------------------------------------------
static void lcl_extractAndStartStatusIndicator( const ::comphelper::NamedValueCollection& _rArguments, Reference< XStatusIndicator >& _rxStatusIndicator,
Sequence< Any >& _rCallArgs )
{
_rxStatusIndicator = lcl_extractStatusIndicator( _rArguments );
if ( !_rxStatusIndicator.is() )
return;
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
try
{
_rxStatusIndicator->start( ::rtl::OUString(), (sal_Int32)1000000 );
sal_Int32 nLength = _rCallArgs.getLength();
_rCallArgs.realloc( nLength + 1 );
_rCallArgs[ nLength ] <<= _rxStatusIndicator;
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
}
catch( const Exception& )
{
DBG_UNHANDLED_EXCEPTION();
}
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
// -----------------------------------------------------------------------------
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
static Sequence< PropertyValue > lcl_appendFileNameToDescriptor( const Sequence< PropertyValue >& _rDescriptor, const ::rtl::OUString _rURL )
{
::comphelper::NamedValueCollection aMediaDescriptor( _rDescriptor );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
if ( _rURL.getLength() )
{
aMediaDescriptor.put( "FileName", _rURL );
aMediaDescriptor.put( "URL", _rURL );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
}
return aMediaDescriptor.getPropertyValues();
}
}
2008-10-16 06:57:26 +00:00
// -----------------------------------------------------------------------------
void ODatabaseDocument::impl_setInitialized()
{
m_eInitState = Initialized;
// start event notifications
m_aEventNotifier.onDocumentInitialized();
}
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// -----------------------------------------------------------------------------
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
void ODatabaseDocument::impl_reset_nothrow()
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
try
{
m_pImpl->clearConnections();
m_pImpl->disposeStorages();
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
m_pImpl->resetRootStroage();
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
clearObjectContainer( m_xForms );
clearObjectContainer( m_xReports );
clearObjectContainer( m_pImpl->m_xTableDefinitions );
clearObjectContainer( m_pImpl->m_xCommandDefinitions );
2008-10-16 06:57:26 +00:00
m_eInitState = NotInitialized;
m_pImpl->reset();
}
catch(const Exception&)
{
DBG_UNHANDLED_EXCEPTION();
}
m_pImpl->m_bDocumentReadOnly = sal_False;
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
// -----------------------------------------------------------------------------
void ODatabaseDocument::impl_import_nolck_throw( const ::comphelper::ComponentContext _rContext, const Reference< XInterface >& _rxTargetComponent,
const ::comphelper::NamedValueCollection& _rResource )
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
{
2008-10-16 06:57:26 +00:00
Sequence< Any > aFilterArgs;
Reference< XStatusIndicator > xStatusIndicator;
lcl_extractAndStartStatusIndicator( _rResource, xStatusIndicator, aFilterArgs );
/** property map for import info set */
comphelper::PropertyMapEntry aExportInfoMap[] =
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
{
{ MAP_LEN( "BaseURI"), 0,&::getCppuType( (::rtl::OUString *)0 ),beans::PropertyAttribute::MAYBEVOID, 0 },
{ MAP_LEN( "StreamName"), 0,&::getCppuType( (::rtl::OUString *)0 ),beans::PropertyAttribute::MAYBEVOID, 0 },
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
{ NULL, 0, 0, NULL, 0, 0 }
};
uno::Reference< beans::XPropertySet > xInfoSet( comphelper::GenericPropertySet_CreateInstance( new comphelper::PropertySetInfo( aExportInfoMap ) ) );
xInfoSet->setPropertyValue(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("BaseURI")), uno::makeAny(_rResource.getOrDefault("URL",::rtl::OUString())));
xInfoSet->setPropertyValue(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("StreamName")), uno::makeAny(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("content.xml"))));
const sal_Int32 nCount = aFilterArgs.getLength();
aFilterArgs.realloc(nCount + 1);
aFilterArgs[nCount] <<= xInfoSet;
2008-10-16 06:57:26 +00:00
Reference< XImporter > xImporter(
_rContext.createComponentWithArguments( "com.sun.star.comp.sdb.DBFilter", aFilterArgs ),
UNO_QUERY_THROW );
Reference< XComponent > xComponent( _rxTargetComponent, UNO_QUERY_THROW );
2008-10-16 06:57:26 +00:00
xImporter->setTargetDocument( xComponent );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
2008-10-16 06:57:26 +00:00
Reference< XFilter > xFilter( xImporter, UNO_QUERY_THROW );
xFilter->filter( ODatabaseModelImpl::stripLoadArguments( _rResource ) );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
2008-10-16 06:57:26 +00:00
if ( xStatusIndicator.is() )
xStatusIndicator->end();
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
}
// -----------------------------------------------------------------------------
2008-10-16 06:57:26 +00:00
void SAL_CALL ODatabaseDocument::initNew( ) throw (DoubleInitializationException, IOException, Exception, RuntimeException)
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
{
2008-10-16 06:57:26 +00:00
// SYNCHRONIZED ->
DocumentGuard aGuard( *this, DocumentGuard::InitMethod );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
impl_reset_nothrow();
2008-10-16 06:57:26 +00:00
impl_setInitializing();
// create a temporary storage
Reference< XStorage > xTempStor( ::comphelper::OStorageHelper::GetTemporaryStorage(
m_pImpl->m_aContext.getLegacyServiceFactory() ) );
// store therein
impl_storeToStorage_throw( xTempStor, Sequence< PropertyValue >(), aGuard );
2008-10-16 06:57:26 +00:00
// let the impl know we're now based on this storage
m_pImpl->switchToStorage( xTempStor );
// for the newly created document, allow document-wide scripting
m_bAllowDocumentScripting = true;
2008-10-16 06:57:26 +00:00
impl_setInitialized();
m_aEventNotifier.notifyDocumentEventAsync( "OnTitleChanged" );
impl_setModified_nothrow( sal_False, aGuard );
// <- SYNCHRONIZED
m_aEventNotifier.notifyDocumentEvent( "OnCreate" );
impl_notifyStorageChange_nolck_nothrow( xTempStor );
}
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::load( const Sequence< PropertyValue >& _Arguments ) throw (DoubleInitializationException, IOException, Exception, RuntimeException)
{
// SYNCHRONIZED ->
DocumentGuard aGuard( *this, DocumentGuard::InitMethod );
impl_reset_nothrow();
::comphelper::NamedValueCollection aResource( _Arguments );
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 ( aResource.has( "FileName" ) && !aResource.has( "URL" ) )
// FileName is the compatibility name for URL, so we might have clients passing
// a FileName only. However, some of our code works with the URL only, so ensure
// we have one.
aResource.put( "URL", aResource.get( "FileName" ) );
if ( aResource.has( "URL" ) && !aResource.has( "FileName" ) )
// similar ... just in case there is legacy code which expects a FileName only
aResource.put( "FileName", aResource.get( "URL" ) );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
// now that somebody (perhaps) told us an macro execution mode, remember it as
// ImposedMacroExecMode
m_pImpl->setImposedMacroExecMode(
aResource.getOrDefault( "MacroExecutionMode", m_pImpl->getImposedMacroExecMode() ) );
2008-10-16 06:57:26 +00:00
impl_setInitializing();
try
{
aGuard.clear();
impl_import_nolck_throw( m_pImpl->m_aContext, *this, aResource );
aGuard.reset();
2008-10-16 06:57:26 +00:00
}
catch( const Exception& )
{
impl_reset_nothrow();
throw;
}
// tell our view monitor that the document has been loaded - this way it will fire the proper
// event (OnLoad instead of OnCreate) later on
2008-10-16 06:57:26 +00:00
m_aViewMonitor.onLoadedDocument();
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
2008-10-16 06:57:26 +00:00
// note that we do *not* call impl_setInitialized() here: The initialization is only complete
// when the XModel::attachResource has been called, not sooner.
impl_setModified_nothrow( sal_False, aGuard );
// <- SYNCHRONIZED
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
2008-10-16 06:57:26 +00:00
// -----------------------------------------------------------------------------
// XModel
sal_Bool SAL_CALL ODatabaseDocument::attachResource( const ::rtl::OUString& _rURL, const Sequence< PropertyValue >& _rArguments ) throw (RuntimeException)
{
DocumentGuard aGuard( *this, DocumentGuard::MethodUsedDuringInit );
if ( ( _rURL == getURL() )
&& ( _rArguments.getLength() == 1 )
&& ( _rArguments[0].Name.compareToAscii( "BreakMacroSignature" ) == 0 )
)
{
2008-10-16 06:57:26 +00:00
// this is a BAD hack of the Basic importer code ... there should be a dedicated API for this,
// not this bad mis-using of existing interfaces
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
return sal_False;
2008-10-16 06:57:26 +00:00
// (we do not support macro signatures, so we can ignore this call)
}
m_pImpl->attachResource( _rURL, _rArguments );
if ( impl_isInitializing() )
{ // this means we've just been loaded, and this is the attachResource call which follows
// the load call.
impl_setInitialized();
// determine whether the document as a whole, or sub documents, have macros. Especially the latter
// controls the availability of our XEmbeddedScripts and XScriptInvocationContext interfaces, and we
// should know this before anybody actually uses the object.
m_bAllowDocumentScripting = ( m_pImpl->determineEmbeddedMacros() != ODatabaseModelImpl::eSubDocumentMacros );
2008-10-16 06:57:26 +00:00
m_aEventNotifier.notifyDocumentEvent( "OnLoadFinished" );
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
return sal_True;
}
2008-10-16 06:57:26 +00:00
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// -----------------------------------------------------------------------------
::rtl::OUString SAL_CALL ODatabaseDocument::getURL( ) throw (RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this, DocumentGuard::MethodWithoutInit );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
return m_pImpl->getURL();
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
2008-10-16 06:57:26 +00:00
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// -----------------------------------------------------------------------------
Sequence< PropertyValue > SAL_CALL ODatabaseDocument::getArgs( ) throw (RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this, DocumentGuard::MethodWithoutInit );
return m_pImpl->getResource();
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
2008-10-16 06:57:26 +00:00
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::connectController( const Reference< XController >& _xController ) throw (RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
m_aControllers.push_back( _xController );
2008-10-16 06:57:26 +00:00
m_aEventNotifier.notifyDocumentEventAsync( "OnViewCreated", Reference< XController2 >( _xController, UNO_QUERY ) );
bool bFirstControllerEver = m_aViewMonitor.onControllerConnected( _xController );
if ( !bFirstControllerEver )
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
return;
2008-10-16 06:57:26 +00:00
// check/adjust our macro mode.
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
m_pImpl->checkMacrosOnLoading();
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::disconnectController( const Reference< XController >& _xController ) throw (RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
bool bNotifyViewClosed = false;
bool bLastControllerGone = false;
bool bIsClosing = false;
// SYNCHRONIZED ->
{
DocumentGuard aGuard( *this );
Controllers::iterator pos = ::std::find( m_aControllers.begin(), m_aControllers.end(), _xController );
OSL_ENSURE( pos != m_aControllers.end(), "ODatabaseDocument::disconnectController: don't know this controller!" );
if ( pos != m_aControllers.end() )
{
m_aControllers.erase( pos );
bNotifyViewClosed = true;
}
2008-10-16 06:57:26 +00:00
if ( m_xCurrentController == _xController )
m_xCurrentController = NULL;
2008-10-16 06:57:26 +00:00
bLastControllerGone = m_aControllers.empty();
bIsClosing = m_bClosing;
}
// <- SYNCHRONIZED
2008-10-16 06:57:26 +00:00
if ( bNotifyViewClosed )
m_aEventNotifier.notifyDocumentEvent( "OnViewClosed", Reference< XController2 >( _xController, UNO_QUERY ) );
2008-10-16 06:57:26 +00:00
if ( bLastControllerGone && !bIsClosing )
{
// if this was the last view, close the document as a whole
// #i51157# / 2006-03-16 / frank.schoenheit@sun.com
try
{
close( sal_True );
}
catch( const CloseVetoException& )
{
// okay, somebody vetoed and took ownership
}
}
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
2008-10-16 06:57:26 +00:00
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::lockControllers( ) throw (RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
++m_pImpl->m_nControllerLockCount;
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
2008-10-16 06:57:26 +00:00
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::unlockControllers( ) throw (RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
--m_pImpl->m_nControllerLockCount;
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
2008-10-16 06:57:26 +00:00
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// -----------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseDocument::hasControllersLocked( ) throw (RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
return m_pImpl->m_nControllerLockCount != 0;
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
2008-10-16 06:57:26 +00:00
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// -----------------------------------------------------------------------------
Reference< XController > SAL_CALL ODatabaseDocument::getCurrentController() throw (RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
return m_xCurrentController.is() ? m_xCurrentController : ( m_aControllers.empty() ? Reference< XController >() : *m_aControllers.begin() );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
2008-10-16 06:57:26 +00:00
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::setCurrentController( const Reference< XController >& _xController ) throw (NoSuchElementException, RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
m_xCurrentController = _xController;
2008-10-16 06:57:26 +00:00
m_aViewMonitor.onSetCurrentController( _xController );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
// -----------------------------------------------------------------------------
Reference< XInterface > SAL_CALL ODatabaseDocument::getCurrentSelection( ) throw (RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
Reference< XInterface > xRet;
Reference< XSelectionSupplier > xDocView( getCurrentController(), UNO_QUERY );
if ( xDocView.is() )
xRet.set(xDocView->getSelection(),UNO_QUERY);
return xRet;
}
// -----------------------------------------------------------------------------
// XStorable
sal_Bool SAL_CALL ODatabaseDocument::hasLocation( ) throw (RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
return getLocation().getLength() > 0;
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
// -----------------------------------------------------------------------------
::rtl::OUString SAL_CALL ODatabaseDocument::getLocation( ) throw (RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this, DocumentGuard::MethodWithoutInit );
return m_pImpl->getURL();
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
// -----------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseDocument::isReadonly( ) throw (RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this, DocumentGuard::MethodWithoutInit );
return m_pImpl->m_bDocumentReadOnly;
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::store( ) throw (IOException, RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
2008-10-16 06:57:26 +00:00
if ( m_pImpl->getDocFileLocation() == m_pImpl->getURL() )
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
if ( m_pImpl->m_bDocumentReadOnly )
throw IOException();
2008-10-16 06:57:26 +00:00
impl_storeAs_throw( m_pImpl->getURL(), m_pImpl->getResource(), SAVE, aGuard );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// -----------------------------------------------------------------------------
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
void ODatabaseDocument::impl_storeAs_throw( const ::rtl::OUString& _rURL, const Sequence< PropertyValue>& _rArguments,
CWS-TOOLING: integrate CWS dba32g 2009-09-09 07:53:55 +0200 oj r275964 : replace strlen with rtl_str_getLength 2009-09-07 20:59:10 +0200 fs r275913 : disable the CopyTableWizard test until issue 104869 is fixed 2009-09-07 12:17:31 +0200 oj r275885 : #i104810# remove de as lang 2009-09-05 22:26:21 +0200 fs r275857 : protect StateChanged against re-entrance 2009-09-05 22:25:52 +0200 fs r275856 : don't attempt to classify the parent of a form as control 2009-09-05 22:25:29 +0200 fs r275855 : protect against re-entrance 2009-09-05 00:11:40 +0200 fs r275835 : #i10000# 2009-09-04 23:25:50 +0200 fs r275834 : #i10000# 2009-09-04 23:23:47 +0200 fs r275833 : #i10000# 2009-09-04 21:49:37 +0200 fs r275830 : #i10000# correct wrong conflict resolution 2009-09-04 20:59:51 +0200 fs r275829 : CWS-TOOLING: rebase CWS dba32g to trunk@275801 (milestone: DEV300:m57) 2009-09-04 11:08:32 +0200 oj r275791 : #i104780# new version 1.2.0 2009-09-03 22:29:21 +0200 fs r275775 : OSL_TRACE doesn't need \n anymore 2009-09-03 08:33:21 +0200 fs r275743 : CWS-TOOLING: rebase CWS dba32g to trunk@275331 (milestone: DEV300:m56) 2009-09-02 13:48:12 +0200 fs r275708 : removed useless include 2009-09-02 13:45:43 +0200 fs r275707 : more since tags, which are used across offapi/udkapi 2009-09-02 13:23:04 +0200 fs r275705 : should *not* have the dtor, copy ctor, and assignment operator compiler-generated, else we run into trouble as soon as the compiler creates different versions of our singleton member's static data in different libraries 2009-09-02 12:32:45 +0200 fs r275704 : AutoIncrementIsPrimaryKey is a driver setting, not a data source setting 2009-09-02 11:42:49 +0200 fs r275701 : URL meta data are meta data which are valid for all connections of this type, not per-data-source properties. Settings them as data source properties is a hack. 2009-09-02 08:43:34 +0200 fs r275696 : 3.x.x is not a valid 'since' tag 2009-09-01 16:05:24 +0200 fs r275665 : #i104686# don't treat controls bound to read-only columns as required 2009-09-01 13:10:22 +0200 fs r275657 : #i104574# use PageUp/Down to scroll through the complete page 2009-09-01 07:04:48 +0200 oj r275641 : #i104104# correct line ends 2009-08-31 15:52:34 +0200 fs r275612 : #i104410# 2009-08-31 12:29:05 +0200 fs r275596 : #i104364# 2009-08-31 12:28:56 +0200 fs r275595 : #i104364# 2009-08-31 11:43:09 +0200 fs r275593 : #i104649# JavaDriverClassPath is also a known JDBC-bridge setting 2009-08-31 11:41:37 +0200 fs r275592 : #i104649# 2009-08-28 21:48:27 +0200 fs r275552 : during #i96862#: renamed the configuration data which controls availability of certain DBA-related UI 2009-08-28 21:48:17 +0200 fs r275551 : #i96862# do not show the 'Create a new database' option when a) no embedded/dBase driver is installed or b) the configuration requests to hide the option 2009-08-28 21:47:19 +0200 fs r275550 : during #i96862#: renamed the configuration data which controls availability of certain DBA-related UI 2009-08-28 21:46:41 +0200 fs r275549 : #i96862# renamed and extended the configuration data which controls availability of certain DBA-related UI 2009-08-28 15:10:19 +0200 fs r275535 : #i96862# if no embedded driver is installed, use dBase for creating new DBs. If no dBase driver is installed, too, do not offer the 'Create new database' option 2009-08-28 14:03:04 +0200 fs r275532 : #i104454# allow multiple fields to display the same column 2009-08-28 13:14:00 +0200 fs r275528 : #i104584# driver meta data do not belong into a data source's settings 2009-08-28 13:09:57 +0200 fs r275527 : properly chech the MySQL type buttons (else next/back in the wizard leads to state with two buttons checked) 2009-08-28 13:09:17 +0200 fs r275526 : #i104584# driver meta data do not belong into a data source's settings 2009-08-28 13:07:18 +0200 fs r275525 : BooleanComparisonMode is a property, or a feature - but not a driver meta data 2009-08-28 11:00:31 +0200 fs r275521 : #i104580# 2009-08-28 10:40:05 +0200 fs r275519 : #i104577# correct assertion: If the template node type is ANY, then any value type is allowed 2009-08-28 10:09:30 +0200 fs r275518 : #i104575# implement Named Pipe UI 2009-08-28 10:09:07 +0200 fs r275517 : pass the trigger-event to IWindowOperator::operateOn / work with VclWindowEvents, not VclSimpleEvents 2009-08-27 14:27:36 +0200 fs r275484 : ImplPosTabPage: respect mbEmptyViewMargin for WINDOWALIGN_LEFT 2009-08-27 13:43:56 +0200 fs r275480 : merging latest changes from CWS dba32f herein 2009-08-27 13:23:07 +0200 fs r275475 : #i103882# 2009-08-27 11:56:55 +0200 fs r275466 : #i104544# SetState: Do not call Update at the window which we just set text for. It should (sic\!) not be needed, but causes trouble 2009-08-27 11:55:34 +0200 fs r275465 : #i104544# do not allow re-entrance for impl_ensureControl_nothrow Actually, this is part of the fix only. I also removed the code which triggered this re-entrance (from the grid control implementation), but to ensure it won't happen, again, I added some safety herein. 2009-08-27 10:14:11 +0200 fs r275459 : preparations for supporting a 'NamedPipe' parameter for the MySQL Connector/OOo 2009-08-27 10:13:21 +0200 fs r275458 : preparations for supporting a 'NamedPipe' setting for the MySQL Connector/OOo 2009-08-27 10:11:14 +0200 fs r275456 : outsourced the MySQLNative settings into a dedicated class, to not duplicate all the code in two tab page implementations 2009-08-26 14:18:13 +0200 fs r275422 : #i10000# 2009-08-26 13:26:36 +0200 fs r275419 : ignore output paths 2009-08-26 13:23:38 +0200 fs r275417 : support the LocalSocket property for the MySQL native driver 2009-08-26 13:17:05 +0200 fs r275416 : some re-factoring, to outsource the tab page for setting up the MySQLNative connection, into a dedicated class (needed later) 2009-08-26 13:15:15 +0200 fs r275415 : support a NoThousandSep property for NumericFormatters - I'm tired of correcting this at runtime, instead of controlling it in the resource 2009-08-26 11:45:08 +0200 fs r275410 : oops, 'flat' shouldn't have got lost 2009-08-26 09:38:57 +0200 fs r275398 : #i102631# when saving the document fails, ensure that the interaction handler really can handle/display the error 2009-08-26 09:37:05 +0200 fs r275397 : #i102631# don't let non-IO/RuntimeExceptions escape from DatabaseDocument::store*, wrap them into an IOException 2009-08-26 09:35:39 +0200 fs r275395 : let the default interaction handler implement XInteractionHandler2 2009-08-25 13:51:34 +0200 fs r275352 : #i102631# createTempFile: pass URL through FileHelper.getOOoCompatibleFileURL 2009-08-25 13:49:23 +0200 fs r275351 : #i102631# createTempFileURL: immediately delete the file implicitly created by createTempFile, we really only need the URL 2009-08-24 14:49:07 +0200 fs r275318 : #i10000# 2009-08-24 14:36:03 +0200 fs r275315 : properly terminate message with 0 character 2009-08-24 14:35:45 +0200 fs r275314 : trace method concepts in non-pro, if special flag is enabled 2009-08-24 14:24:17 +0200 fs r275312 : #i98973# filter some more events for grid control columns 2009-08-24 14:15:23 +0200 fs r275311 : #i98973# implement XComboBox for combo box cells 2009-08-24 13:39:24 +0200 fs r275308 : #i98973# do not display the 'actionPerformed' event for grid combo box columns 2009-08-24 12:52:03 +0200 fs r275303 : #i98973# implement XCheckBox and XButton for check box cells 2009-08-24 11:56:05 +0200 oj r275300 : #i104447# wrong default for orientation 2009-08-24 10:51:21 +0200 fs r275296 : in the script selector dialog, interpret a double click onto a function as OK 2009-08-24 10:50:56 +0200 fs r275295 : localize some to-be-displayed names, consolidate some code regarding form/control naming 2009-08-21 14:28:05 +0200 fs r275255 : #i98973# implement KeyListeners 2009-08-21 14:27:20 +0200 fs r275254 : #i98973# move the conversion VCL[Mouse|Key]Event->Awt[Mouse|Key]Event from vclxwindow.cxx to VCLUnoHelper 2009-08-21 14:08:50 +0200 fs r275248 : #i98973# implement Mouse- and MouseMotion-broadcasting 2009-08-21 13:31:08 +0200 fs r275244 : #i98973# implement text and change listeners at text cells 2009-08-21 12:47:38 +0200 fs r275234 : #i104399# some refactoring: If the MySQL Connector/OOo is installed, it registers for the sdbc:mysqlc: protocol (now known as DST_MYSQL_NATIVE_DIRECT). However, we do not want to display this in the UI, instead we display "MySQL" only, which collects DST_MYSQL_ODBC, DST_MYSQL_JDBC, and DST_MYSQL_NATIVE. 2009-08-21 12:45:18 +0200 fs r275232 : #i104399# also register for the sdbc:mysql:mysqlc protocol, decide at runtime (depending on the availability of sdbc:mysqlc:), whether it is really accepted. This prevents that the C/OOo extension needs to register *our* implementation name for the sdbc:mysql:mysqlc: protocol, which would be somewhat weird 2009-08-20 16:18:48 +0200 fs r275190 : merging the latest changes from CWS dba32f (which this CWS was created from) 2009-08-19 20:19:59 +0200 fs r275160 : add some spacing between the radios 2009-08-19 14:50:15 +0200 fs r275150 : #i98973# slightly refactoring the grid cell implementations, to prepare for proper events being fired. Implement focus events for the moment, more to come. 2009-08-19 10:53:38 +0200 fs r275142 : #i99936# initialize newly created models 2009-08-18 23:03:48 +0200 fs r275132 : merging latest changes from CWS dba32f 2009-08-18 15:14:08 +0200 fs r275110 : #i102819# SetColumnPos: SCROLL_CLIP is deadly here
2009-09-14 11:18:01 +00:00
const StoreType _eType, DocumentGuard& _rGuard ) throw ( IOException, RuntimeException )
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
OSL_PRECOND( ( _eType == SAVE ) || ( _eType == SAVE_AS ),
"ODatabaseDocument::impl_storeAs_throw: you introduced a new type which cannot be handled here!" );
// if we're in the process of initializing the document (which effectively means it is an implicit
// initialization triggered in storeAsURL), the we do not notify events, since to an observer, the SaveAs
// should not be noticable
bool bIsInitializationProcess = impl_isInitializing();
if ( !bIsInitializationProcess )
{
_rGuard.clear();
m_aEventNotifier.notifyDocumentEvent( _eType == SAVE ? "OnSave" : "OnSaveAs", NULL, makeAny( _rURL ) );
_rGuard.reset();
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
Reference< XStorage > xNewRootStorage;
// will be non-NULL if our storage changed
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
2008-10-16 06:57:26 +00:00
try
{
2008-10-16 06:57:26 +00:00
ModifyLock aLock( *this );
// ignore all changes of our "modified" state during storing
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
2008-10-16 06:57:26 +00:00
sal_Bool bLocationChanged = ( _rURL != m_pImpl->getDocFileLocation() );
if ( bLocationChanged )
{
// create storage for target URL
Reference< XStorage > xTargetStorage( impl_createStorageFor_throw( _rURL ) );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
2008-10-16 06:57:26 +00:00
if ( m_pImpl->isEmbeddedDatabase() )
m_pImpl->clearConnections();
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
2008-10-16 06:57:26 +00:00
// commit everything
m_pImpl->commitEmbeddedStorage();
m_pImpl->commitStorages();
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
2008-10-16 06:57:26 +00:00
// copy own storage to target storage
Reference< XStorage > xCurrentStorage( m_pImpl->getRootStorage() );
if ( xCurrentStorage.is() )
xCurrentStorage->copyToStorage( xTargetStorage );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
2008-10-16 06:57:26 +00:00
m_pImpl->disposeStorages();
2008-10-16 06:57:26 +00:00
xNewRootStorage = m_pImpl->switchToStorage( xTargetStorage );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
2008-10-16 06:57:26 +00:00
m_pImpl->m_bDocumentReadOnly = sal_False;
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
2008-10-16 06:57:26 +00:00
// store to current storage
Reference< XStorage > xCurrentStorage( m_pImpl->getOrCreateRootStorage(), UNO_QUERY_THROW );
Sequence< PropertyValue > aMediaDescriptor( lcl_appendFileNameToDescriptor( _rArguments, _rURL ) );
impl_storeToStorage_throw( xCurrentStorage, aMediaDescriptor, _rGuard );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
2008-10-16 06:57:26 +00:00
// success - tell our impl
m_pImpl->attachResource( _rURL, aMediaDescriptor );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
2008-10-16 06:57:26 +00:00
// if we are in an initialization process, then this is finished, now that we stored the document
if ( bIsInitializationProcess )
impl_setInitialized();
}
catch( const Exception& )
{
CWS-TOOLING: integrate CWS dba32g 2009-09-09 07:53:55 +0200 oj r275964 : replace strlen with rtl_str_getLength 2009-09-07 20:59:10 +0200 fs r275913 : disable the CopyTableWizard test until issue 104869 is fixed 2009-09-07 12:17:31 +0200 oj r275885 : #i104810# remove de as lang 2009-09-05 22:26:21 +0200 fs r275857 : protect StateChanged against re-entrance 2009-09-05 22:25:52 +0200 fs r275856 : don't attempt to classify the parent of a form as control 2009-09-05 22:25:29 +0200 fs r275855 : protect against re-entrance 2009-09-05 00:11:40 +0200 fs r275835 : #i10000# 2009-09-04 23:25:50 +0200 fs r275834 : #i10000# 2009-09-04 23:23:47 +0200 fs r275833 : #i10000# 2009-09-04 21:49:37 +0200 fs r275830 : #i10000# correct wrong conflict resolution 2009-09-04 20:59:51 +0200 fs r275829 : CWS-TOOLING: rebase CWS dba32g to trunk@275801 (milestone: DEV300:m57) 2009-09-04 11:08:32 +0200 oj r275791 : #i104780# new version 1.2.0 2009-09-03 22:29:21 +0200 fs r275775 : OSL_TRACE doesn't need \n anymore 2009-09-03 08:33:21 +0200 fs r275743 : CWS-TOOLING: rebase CWS dba32g to trunk@275331 (milestone: DEV300:m56) 2009-09-02 13:48:12 +0200 fs r275708 : removed useless include 2009-09-02 13:45:43 +0200 fs r275707 : more since tags, which are used across offapi/udkapi 2009-09-02 13:23:04 +0200 fs r275705 : should *not* have the dtor, copy ctor, and assignment operator compiler-generated, else we run into trouble as soon as the compiler creates different versions of our singleton member's static data in different libraries 2009-09-02 12:32:45 +0200 fs r275704 : AutoIncrementIsPrimaryKey is a driver setting, not a data source setting 2009-09-02 11:42:49 +0200 fs r275701 : URL meta data are meta data which are valid for all connections of this type, not per-data-source properties. Settings them as data source properties is a hack. 2009-09-02 08:43:34 +0200 fs r275696 : 3.x.x is not a valid 'since' tag 2009-09-01 16:05:24 +0200 fs r275665 : #i104686# don't treat controls bound to read-only columns as required 2009-09-01 13:10:22 +0200 fs r275657 : #i104574# use PageUp/Down to scroll through the complete page 2009-09-01 07:04:48 +0200 oj r275641 : #i104104# correct line ends 2009-08-31 15:52:34 +0200 fs r275612 : #i104410# 2009-08-31 12:29:05 +0200 fs r275596 : #i104364# 2009-08-31 12:28:56 +0200 fs r275595 : #i104364# 2009-08-31 11:43:09 +0200 fs r275593 : #i104649# JavaDriverClassPath is also a known JDBC-bridge setting 2009-08-31 11:41:37 +0200 fs r275592 : #i104649# 2009-08-28 21:48:27 +0200 fs r275552 : during #i96862#: renamed the configuration data which controls availability of certain DBA-related UI 2009-08-28 21:48:17 +0200 fs r275551 : #i96862# do not show the 'Create a new database' option when a) no embedded/dBase driver is installed or b) the configuration requests to hide the option 2009-08-28 21:47:19 +0200 fs r275550 : during #i96862#: renamed the configuration data which controls availability of certain DBA-related UI 2009-08-28 21:46:41 +0200 fs r275549 : #i96862# renamed and extended the configuration data which controls availability of certain DBA-related UI 2009-08-28 15:10:19 +0200 fs r275535 : #i96862# if no embedded driver is installed, use dBase for creating new DBs. If no dBase driver is installed, too, do not offer the 'Create new database' option 2009-08-28 14:03:04 +0200 fs r275532 : #i104454# allow multiple fields to display the same column 2009-08-28 13:14:00 +0200 fs r275528 : #i104584# driver meta data do not belong into a data source's settings 2009-08-28 13:09:57 +0200 fs r275527 : properly chech the MySQL type buttons (else next/back in the wizard leads to state with two buttons checked) 2009-08-28 13:09:17 +0200 fs r275526 : #i104584# driver meta data do not belong into a data source's settings 2009-08-28 13:07:18 +0200 fs r275525 : BooleanComparisonMode is a property, or a feature - but not a driver meta data 2009-08-28 11:00:31 +0200 fs r275521 : #i104580# 2009-08-28 10:40:05 +0200 fs r275519 : #i104577# correct assertion: If the template node type is ANY, then any value type is allowed 2009-08-28 10:09:30 +0200 fs r275518 : #i104575# implement Named Pipe UI 2009-08-28 10:09:07 +0200 fs r275517 : pass the trigger-event to IWindowOperator::operateOn / work with VclWindowEvents, not VclSimpleEvents 2009-08-27 14:27:36 +0200 fs r275484 : ImplPosTabPage: respect mbEmptyViewMargin for WINDOWALIGN_LEFT 2009-08-27 13:43:56 +0200 fs r275480 : merging latest changes from CWS dba32f herein 2009-08-27 13:23:07 +0200 fs r275475 : #i103882# 2009-08-27 11:56:55 +0200 fs r275466 : #i104544# SetState: Do not call Update at the window which we just set text for. It should (sic\!) not be needed, but causes trouble 2009-08-27 11:55:34 +0200 fs r275465 : #i104544# do not allow re-entrance for impl_ensureControl_nothrow Actually, this is part of the fix only. I also removed the code which triggered this re-entrance (from the grid control implementation), but to ensure it won't happen, again, I added some safety herein. 2009-08-27 10:14:11 +0200 fs r275459 : preparations for supporting a 'NamedPipe' parameter for the MySQL Connector/OOo 2009-08-27 10:13:21 +0200 fs r275458 : preparations for supporting a 'NamedPipe' setting for the MySQL Connector/OOo 2009-08-27 10:11:14 +0200 fs r275456 : outsourced the MySQLNative settings into a dedicated class, to not duplicate all the code in two tab page implementations 2009-08-26 14:18:13 +0200 fs r275422 : #i10000# 2009-08-26 13:26:36 +0200 fs r275419 : ignore output paths 2009-08-26 13:23:38 +0200 fs r275417 : support the LocalSocket property for the MySQL native driver 2009-08-26 13:17:05 +0200 fs r275416 : some re-factoring, to outsource the tab page for setting up the MySQLNative connection, into a dedicated class (needed later) 2009-08-26 13:15:15 +0200 fs r275415 : support a NoThousandSep property for NumericFormatters - I'm tired of correcting this at runtime, instead of controlling it in the resource 2009-08-26 11:45:08 +0200 fs r275410 : oops, 'flat' shouldn't have got lost 2009-08-26 09:38:57 +0200 fs r275398 : #i102631# when saving the document fails, ensure that the interaction handler really can handle/display the error 2009-08-26 09:37:05 +0200 fs r275397 : #i102631# don't let non-IO/RuntimeExceptions escape from DatabaseDocument::store*, wrap them into an IOException 2009-08-26 09:35:39 +0200 fs r275395 : let the default interaction handler implement XInteractionHandler2 2009-08-25 13:51:34 +0200 fs r275352 : #i102631# createTempFile: pass URL through FileHelper.getOOoCompatibleFileURL 2009-08-25 13:49:23 +0200 fs r275351 : #i102631# createTempFileURL: immediately delete the file implicitly created by createTempFile, we really only need the URL 2009-08-24 14:49:07 +0200 fs r275318 : #i10000# 2009-08-24 14:36:03 +0200 fs r275315 : properly terminate message with 0 character 2009-08-24 14:35:45 +0200 fs r275314 : trace method concepts in non-pro, if special flag is enabled 2009-08-24 14:24:17 +0200 fs r275312 : #i98973# filter some more events for grid control columns 2009-08-24 14:15:23 +0200 fs r275311 : #i98973# implement XComboBox for combo box cells 2009-08-24 13:39:24 +0200 fs r275308 : #i98973# do not display the 'actionPerformed' event for grid combo box columns 2009-08-24 12:52:03 +0200 fs r275303 : #i98973# implement XCheckBox and XButton for check box cells 2009-08-24 11:56:05 +0200 oj r275300 : #i104447# wrong default for orientation 2009-08-24 10:51:21 +0200 fs r275296 : in the script selector dialog, interpret a double click onto a function as OK 2009-08-24 10:50:56 +0200 fs r275295 : localize some to-be-displayed names, consolidate some code regarding form/control naming 2009-08-21 14:28:05 +0200 fs r275255 : #i98973# implement KeyListeners 2009-08-21 14:27:20 +0200 fs r275254 : #i98973# move the conversion VCL[Mouse|Key]Event->Awt[Mouse|Key]Event from vclxwindow.cxx to VCLUnoHelper 2009-08-21 14:08:50 +0200 fs r275248 : #i98973# implement Mouse- and MouseMotion-broadcasting 2009-08-21 13:31:08 +0200 fs r275244 : #i98973# implement text and change listeners at text cells 2009-08-21 12:47:38 +0200 fs r275234 : #i104399# some refactoring: If the MySQL Connector/OOo is installed, it registers for the sdbc:mysqlc: protocol (now known as DST_MYSQL_NATIVE_DIRECT). However, we do not want to display this in the UI, instead we display "MySQL" only, which collects DST_MYSQL_ODBC, DST_MYSQL_JDBC, and DST_MYSQL_NATIVE. 2009-08-21 12:45:18 +0200 fs r275232 : #i104399# also register for the sdbc:mysql:mysqlc protocol, decide at runtime (depending on the availability of sdbc:mysqlc:), whether it is really accepted. This prevents that the C/OOo extension needs to register *our* implementation name for the sdbc:mysql:mysqlc: protocol, which would be somewhat weird 2009-08-20 16:18:48 +0200 fs r275190 : merging the latest changes from CWS dba32f (which this CWS was created from) 2009-08-19 20:19:59 +0200 fs r275160 : add some spacing between the radios 2009-08-19 14:50:15 +0200 fs r275150 : #i98973# slightly refactoring the grid cell implementations, to prepare for proper events being fired. Implement focus events for the moment, more to come. 2009-08-19 10:53:38 +0200 fs r275142 : #i99936# initialize newly created models 2009-08-18 23:03:48 +0200 fs r275132 : merging latest changes from CWS dba32f 2009-08-18 15:14:08 +0200 fs r275110 : #i102819# SetColumnPos: SCROLL_CLIP is deadly here
2009-09-14 11:18:01 +00:00
Any aError = ::cppu::getCaughtException();
2008-10-16 06:57:26 +00:00
// notify the failure
if ( !bIsInitializationProcess )
m_aEventNotifier.notifyDocumentEventAsync( _eType == SAVE ? "OnSaveFailed" : "OnSaveAsFailed", NULL, makeAny( _rURL ) );
CWS-TOOLING: integrate CWS dba32g 2009-09-09 07:53:55 +0200 oj r275964 : replace strlen with rtl_str_getLength 2009-09-07 20:59:10 +0200 fs r275913 : disable the CopyTableWizard test until issue 104869 is fixed 2009-09-07 12:17:31 +0200 oj r275885 : #i104810# remove de as lang 2009-09-05 22:26:21 +0200 fs r275857 : protect StateChanged against re-entrance 2009-09-05 22:25:52 +0200 fs r275856 : don't attempt to classify the parent of a form as control 2009-09-05 22:25:29 +0200 fs r275855 : protect against re-entrance 2009-09-05 00:11:40 +0200 fs r275835 : #i10000# 2009-09-04 23:25:50 +0200 fs r275834 : #i10000# 2009-09-04 23:23:47 +0200 fs r275833 : #i10000# 2009-09-04 21:49:37 +0200 fs r275830 : #i10000# correct wrong conflict resolution 2009-09-04 20:59:51 +0200 fs r275829 : CWS-TOOLING: rebase CWS dba32g to trunk@275801 (milestone: DEV300:m57) 2009-09-04 11:08:32 +0200 oj r275791 : #i104780# new version 1.2.0 2009-09-03 22:29:21 +0200 fs r275775 : OSL_TRACE doesn't need \n anymore 2009-09-03 08:33:21 +0200 fs r275743 : CWS-TOOLING: rebase CWS dba32g to trunk@275331 (milestone: DEV300:m56) 2009-09-02 13:48:12 +0200 fs r275708 : removed useless include 2009-09-02 13:45:43 +0200 fs r275707 : more since tags, which are used across offapi/udkapi 2009-09-02 13:23:04 +0200 fs r275705 : should *not* have the dtor, copy ctor, and assignment operator compiler-generated, else we run into trouble as soon as the compiler creates different versions of our singleton member's static data in different libraries 2009-09-02 12:32:45 +0200 fs r275704 : AutoIncrementIsPrimaryKey is a driver setting, not a data source setting 2009-09-02 11:42:49 +0200 fs r275701 : URL meta data are meta data which are valid for all connections of this type, not per-data-source properties. Settings them as data source properties is a hack. 2009-09-02 08:43:34 +0200 fs r275696 : 3.x.x is not a valid 'since' tag 2009-09-01 16:05:24 +0200 fs r275665 : #i104686# don't treat controls bound to read-only columns as required 2009-09-01 13:10:22 +0200 fs r275657 : #i104574# use PageUp/Down to scroll through the complete page 2009-09-01 07:04:48 +0200 oj r275641 : #i104104# correct line ends 2009-08-31 15:52:34 +0200 fs r275612 : #i104410# 2009-08-31 12:29:05 +0200 fs r275596 : #i104364# 2009-08-31 12:28:56 +0200 fs r275595 : #i104364# 2009-08-31 11:43:09 +0200 fs r275593 : #i104649# JavaDriverClassPath is also a known JDBC-bridge setting 2009-08-31 11:41:37 +0200 fs r275592 : #i104649# 2009-08-28 21:48:27 +0200 fs r275552 : during #i96862#: renamed the configuration data which controls availability of certain DBA-related UI 2009-08-28 21:48:17 +0200 fs r275551 : #i96862# do not show the 'Create a new database' option when a) no embedded/dBase driver is installed or b) the configuration requests to hide the option 2009-08-28 21:47:19 +0200 fs r275550 : during #i96862#: renamed the configuration data which controls availability of certain DBA-related UI 2009-08-28 21:46:41 +0200 fs r275549 : #i96862# renamed and extended the configuration data which controls availability of certain DBA-related UI 2009-08-28 15:10:19 +0200 fs r275535 : #i96862# if no embedded driver is installed, use dBase for creating new DBs. If no dBase driver is installed, too, do not offer the 'Create new database' option 2009-08-28 14:03:04 +0200 fs r275532 : #i104454# allow multiple fields to display the same column 2009-08-28 13:14:00 +0200 fs r275528 : #i104584# driver meta data do not belong into a data source's settings 2009-08-28 13:09:57 +0200 fs r275527 : properly chech the MySQL type buttons (else next/back in the wizard leads to state with two buttons checked) 2009-08-28 13:09:17 +0200 fs r275526 : #i104584# driver meta data do not belong into a data source's settings 2009-08-28 13:07:18 +0200 fs r275525 : BooleanComparisonMode is a property, or a feature - but not a driver meta data 2009-08-28 11:00:31 +0200 fs r275521 : #i104580# 2009-08-28 10:40:05 +0200 fs r275519 : #i104577# correct assertion: If the template node type is ANY, then any value type is allowed 2009-08-28 10:09:30 +0200 fs r275518 : #i104575# implement Named Pipe UI 2009-08-28 10:09:07 +0200 fs r275517 : pass the trigger-event to IWindowOperator::operateOn / work with VclWindowEvents, not VclSimpleEvents 2009-08-27 14:27:36 +0200 fs r275484 : ImplPosTabPage: respect mbEmptyViewMargin for WINDOWALIGN_LEFT 2009-08-27 13:43:56 +0200 fs r275480 : merging latest changes from CWS dba32f herein 2009-08-27 13:23:07 +0200 fs r275475 : #i103882# 2009-08-27 11:56:55 +0200 fs r275466 : #i104544# SetState: Do not call Update at the window which we just set text for. It should (sic\!) not be needed, but causes trouble 2009-08-27 11:55:34 +0200 fs r275465 : #i104544# do not allow re-entrance for impl_ensureControl_nothrow Actually, this is part of the fix only. I also removed the code which triggered this re-entrance (from the grid control implementation), but to ensure it won't happen, again, I added some safety herein. 2009-08-27 10:14:11 +0200 fs r275459 : preparations for supporting a 'NamedPipe' parameter for the MySQL Connector/OOo 2009-08-27 10:13:21 +0200 fs r275458 : preparations for supporting a 'NamedPipe' setting for the MySQL Connector/OOo 2009-08-27 10:11:14 +0200 fs r275456 : outsourced the MySQLNative settings into a dedicated class, to not duplicate all the code in two tab page implementations 2009-08-26 14:18:13 +0200 fs r275422 : #i10000# 2009-08-26 13:26:36 +0200 fs r275419 : ignore output paths 2009-08-26 13:23:38 +0200 fs r275417 : support the LocalSocket property for the MySQL native driver 2009-08-26 13:17:05 +0200 fs r275416 : some re-factoring, to outsource the tab page for setting up the MySQLNative connection, into a dedicated class (needed later) 2009-08-26 13:15:15 +0200 fs r275415 : support a NoThousandSep property for NumericFormatters - I'm tired of correcting this at runtime, instead of controlling it in the resource 2009-08-26 11:45:08 +0200 fs r275410 : oops, 'flat' shouldn't have got lost 2009-08-26 09:38:57 +0200 fs r275398 : #i102631# when saving the document fails, ensure that the interaction handler really can handle/display the error 2009-08-26 09:37:05 +0200 fs r275397 : #i102631# don't let non-IO/RuntimeExceptions escape from DatabaseDocument::store*, wrap them into an IOException 2009-08-26 09:35:39 +0200 fs r275395 : let the default interaction handler implement XInteractionHandler2 2009-08-25 13:51:34 +0200 fs r275352 : #i102631# createTempFile: pass URL through FileHelper.getOOoCompatibleFileURL 2009-08-25 13:49:23 +0200 fs r275351 : #i102631# createTempFileURL: immediately delete the file implicitly created by createTempFile, we really only need the URL 2009-08-24 14:49:07 +0200 fs r275318 : #i10000# 2009-08-24 14:36:03 +0200 fs r275315 : properly terminate message with 0 character 2009-08-24 14:35:45 +0200 fs r275314 : trace method concepts in non-pro, if special flag is enabled 2009-08-24 14:24:17 +0200 fs r275312 : #i98973# filter some more events for grid control columns 2009-08-24 14:15:23 +0200 fs r275311 : #i98973# implement XComboBox for combo box cells 2009-08-24 13:39:24 +0200 fs r275308 : #i98973# do not display the 'actionPerformed' event for grid combo box columns 2009-08-24 12:52:03 +0200 fs r275303 : #i98973# implement XCheckBox and XButton for check box cells 2009-08-24 11:56:05 +0200 oj r275300 : #i104447# wrong default for orientation 2009-08-24 10:51:21 +0200 fs r275296 : in the script selector dialog, interpret a double click onto a function as OK 2009-08-24 10:50:56 +0200 fs r275295 : localize some to-be-displayed names, consolidate some code regarding form/control naming 2009-08-21 14:28:05 +0200 fs r275255 : #i98973# implement KeyListeners 2009-08-21 14:27:20 +0200 fs r275254 : #i98973# move the conversion VCL[Mouse|Key]Event->Awt[Mouse|Key]Event from vclxwindow.cxx to VCLUnoHelper 2009-08-21 14:08:50 +0200 fs r275248 : #i98973# implement Mouse- and MouseMotion-broadcasting 2009-08-21 13:31:08 +0200 fs r275244 : #i98973# implement text and change listeners at text cells 2009-08-21 12:47:38 +0200 fs r275234 : #i104399# some refactoring: If the MySQL Connector/OOo is installed, it registers for the sdbc:mysqlc: protocol (now known as DST_MYSQL_NATIVE_DIRECT). However, we do not want to display this in the UI, instead we display "MySQL" only, which collects DST_MYSQL_ODBC, DST_MYSQL_JDBC, and DST_MYSQL_NATIVE. 2009-08-21 12:45:18 +0200 fs r275232 : #i104399# also register for the sdbc:mysql:mysqlc protocol, decide at runtime (depending on the availability of sdbc:mysqlc:), whether it is really accepted. This prevents that the C/OOo extension needs to register *our* implementation name for the sdbc:mysql:mysqlc: protocol, which would be somewhat weird 2009-08-20 16:18:48 +0200 fs r275190 : merging the latest changes from CWS dba32f (which this CWS was created from) 2009-08-19 20:19:59 +0200 fs r275160 : add some spacing between the radios 2009-08-19 14:50:15 +0200 fs r275150 : #i98973# slightly refactoring the grid cell implementations, to prepare for proper events being fired. Implement focus events for the moment, more to come. 2009-08-19 10:53:38 +0200 fs r275142 : #i99936# initialize newly created models 2009-08-18 23:03:48 +0200 fs r275132 : merging latest changes from CWS dba32f 2009-08-18 15:14:08 +0200 fs r275110 : #i102819# SetColumnPos: SCROLL_CLIP is deadly here
2009-09-14 11:18:01 +00:00
if ( aError.isExtractableTo( ::cppu::UnoType< IOException >::get() )
|| aError.isExtractableTo( ::cppu::UnoType< RuntimeException >::get() )
)
{
// allowed to leave
throw;
}
Exception aExcept;
aError >>= aExcept;
::rtl::OUString sErrorMessage = ResourceManager::loadString(
RID_STR_ERROR_WHILE_SAVING,
"$except$", aError.getValueTypeName(),
"$message$", aExcept.Message
);
throw IOException( sErrorMessage, *this );
2008-10-16 06:57:26 +00:00
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
// notify the document event
2008-10-16 06:57:26 +00:00
if ( !bIsInitializationProcess )
m_aEventNotifier.notifyDocumentEventAsync( _eType == SAVE ? "OnSaveDone" : "OnSaveAsDone", NULL, makeAny( _rURL ) );
// reset our "modified" flag, and clear the guard
impl_setModified_nothrow( sal_False, _rGuard );
// <- SYNCHRONIZED
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
// notify storage listeners
2008-10-16 06:57:26 +00:00
if ( xNewRootStorage.is() )
impl_notifyStorageChange_nolck_nothrow( xNewRootStorage );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// -----------------------------------------------------------------------------
Reference< XStorage > ODatabaseDocument::impl_createStorageFor_throw( const ::rtl::OUString& _rURL ) const
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
Sequence<Any> aParam(2);
aParam[0] <<= _rURL;
aParam[1] <<= ElementModes::READWRITE | ElementModes::TRUNCATE;
Reference< XSingleServiceFactory > xStorageFactory( m_pImpl->createStorageFactory(), UNO_SET_THROW );
return Reference< XStorage >( xStorageFactory->createInstanceWithArguments( aParam ), UNO_QUERY_THROW );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// -----------------------------------------------------------------------------
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
void SAL_CALL ODatabaseDocument::storeAsURL( const ::rtl::OUString& _rURL, const Sequence< PropertyValue >& _rArguments ) throw (IOException, RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
// SYNCHRONIZED ->
DocumentGuard aGuard( *this, DocumentGuard::MethodWithoutInit );
// Normally, a document initialization is done via XLoadable::load or XLoadable::initNew. For convenience
// reasons, and to not break existing API clients, it's allowed to call storeAsURL without having initialized
// the document, in which case the initialization will be done implicitly.
bool bImplicitInitialization = !impl_isInitialized();
// implicit initialization while another initialization is just running is not possible
if ( bImplicitInitialization && impl_isInitializing() )
throw DoubleInitializationException();
2008-10-16 06:57:26 +00:00
if ( bImplicitInitialization )
impl_setInitializing();
try
{
impl_storeAs_throw( _rURL, _rArguments, SAVE_AS, aGuard );
// <- SYNCHRONIZED
// impl_storeAs_throw cleared the lock on our mutex, but the below lines need this lock
// SYNCHRONIZED ->
aGuard.reset();
// our title might have changed, potentially at least
// Sadly, we cannot check this: Calling getTitle here and now would not deliver
// an up-to-date result, as the call is delegated to our TitleHelper instance, which itself
// updates its title only if it gets the OnSaveAsDone event (which was sent asynchronously
// by impl_storeAs_throw). So, we simply notify always, and also asynchronously
m_aEventNotifier.notifyDocumentEventAsync( "OnTitleChanged" );
}
catch( const Exception& )
{
impl_reset_nothrow();
throw;
}
if ( bImplicitInitialization )
m_bAllowDocumentScripting = true;
2008-10-16 06:57:26 +00:00
aGuard.clear();
// <- SYNCHRONIZED
if ( bImplicitInitialization )
m_aEventNotifier.notifyDocumentEvent( "OnCreate" );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
}
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
// -----------------------------------------------------------------------------
void ODatabaseDocument::impl_storeToStorage_throw( const Reference< XStorage >& _rxTargetStorage, const Sequence< PropertyValue >& _rMediaDescriptor,
DocumentGuard& _rDocGuard ) const
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
{
if ( !_rxTargetStorage.is() )
throw IllegalArgumentException( ::rtl::OUString(), *const_cast< ODatabaseDocument* >( this ), 1 );
if ( !m_pImpl.is() )
throw DisposedException( ::rtl::OUString(), *const_cast< ODatabaseDocument* >( this ) );
try
{
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
// commit everything
m_pImpl->commitEmbeddedStorage();
m_pImpl->commitStorages();
// copy own storage to target storage
2008-10-16 06:57:26 +00:00
if ( impl_isInitialized() )
{
Reference< XStorage > xCurrentStorage( m_pImpl->getOrCreateRootStorage(), UNO_QUERY_THROW );
if ( xCurrentStorage != _rxTargetStorage )
xCurrentStorage->copyToStorage( _rxTargetStorage );
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
// write into target storage
2008-03-11 08:43:41 +00:00
::comphelper::NamedValueCollection aWriteArgs( _rMediaDescriptor );
lcl_triggerStatusIndicator_throw( aWriteArgs, _rDocGuard, true );
impl_writeStorage_throw( _rxTargetStorage, aWriteArgs );
lcl_triggerStatusIndicator_throw( aWriteArgs, _rDocGuard, false );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
// commit target storage
OSL_VERIFY( ODatabaseModelImpl::commitStorageIfWriteable( _rxTargetStorage ) );
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
catch( const IOException& ) { throw; }
catch( const RuntimeException& ) { throw; }
catch ( const Exception& e )
{
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
throw IOException( e.Message, *const_cast< ODatabaseDocument* >( this ) );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::storeToURL( const ::rtl::OUString& _rURL, const Sequence< PropertyValue >& _rArguments ) throw (IOException, RuntimeException)
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
ModifyLock aLock( *this );
2008-10-16 06:57:26 +00:00
{
aGuard.clear();
m_aEventNotifier.notifyDocumentEvent( "OnSaveTo", NULL, makeAny( _rURL ) );
aGuard.reset();
}
try
{
// create storage for target URL
Reference< XStorage > xTargetStorage( impl_createStorageFor_throw( _rURL ) );
// extend media descriptor with URL
Sequence< PropertyValue > aMediaDescriptor( lcl_appendFileNameToDescriptor( _rArguments, _rURL ) );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
2008-10-16 06:57:26 +00:00
// store to this storage
impl_storeToStorage_throw( xTargetStorage, aMediaDescriptor, aGuard );
2008-10-16 06:57:26 +00:00
}
catch( const Exception& )
{
CWS-TOOLING: integrate CWS dba32g 2009-09-09 07:53:55 +0200 oj r275964 : replace strlen with rtl_str_getLength 2009-09-07 20:59:10 +0200 fs r275913 : disable the CopyTableWizard test until issue 104869 is fixed 2009-09-07 12:17:31 +0200 oj r275885 : #i104810# remove de as lang 2009-09-05 22:26:21 +0200 fs r275857 : protect StateChanged against re-entrance 2009-09-05 22:25:52 +0200 fs r275856 : don't attempt to classify the parent of a form as control 2009-09-05 22:25:29 +0200 fs r275855 : protect against re-entrance 2009-09-05 00:11:40 +0200 fs r275835 : #i10000# 2009-09-04 23:25:50 +0200 fs r275834 : #i10000# 2009-09-04 23:23:47 +0200 fs r275833 : #i10000# 2009-09-04 21:49:37 +0200 fs r275830 : #i10000# correct wrong conflict resolution 2009-09-04 20:59:51 +0200 fs r275829 : CWS-TOOLING: rebase CWS dba32g to trunk@275801 (milestone: DEV300:m57) 2009-09-04 11:08:32 +0200 oj r275791 : #i104780# new version 1.2.0 2009-09-03 22:29:21 +0200 fs r275775 : OSL_TRACE doesn't need \n anymore 2009-09-03 08:33:21 +0200 fs r275743 : CWS-TOOLING: rebase CWS dba32g to trunk@275331 (milestone: DEV300:m56) 2009-09-02 13:48:12 +0200 fs r275708 : removed useless include 2009-09-02 13:45:43 +0200 fs r275707 : more since tags, which are used across offapi/udkapi 2009-09-02 13:23:04 +0200 fs r275705 : should *not* have the dtor, copy ctor, and assignment operator compiler-generated, else we run into trouble as soon as the compiler creates different versions of our singleton member's static data in different libraries 2009-09-02 12:32:45 +0200 fs r275704 : AutoIncrementIsPrimaryKey is a driver setting, not a data source setting 2009-09-02 11:42:49 +0200 fs r275701 : URL meta data are meta data which are valid for all connections of this type, not per-data-source properties. Settings them as data source properties is a hack. 2009-09-02 08:43:34 +0200 fs r275696 : 3.x.x is not a valid 'since' tag 2009-09-01 16:05:24 +0200 fs r275665 : #i104686# don't treat controls bound to read-only columns as required 2009-09-01 13:10:22 +0200 fs r275657 : #i104574# use PageUp/Down to scroll through the complete page 2009-09-01 07:04:48 +0200 oj r275641 : #i104104# correct line ends 2009-08-31 15:52:34 +0200 fs r275612 : #i104410# 2009-08-31 12:29:05 +0200 fs r275596 : #i104364# 2009-08-31 12:28:56 +0200 fs r275595 : #i104364# 2009-08-31 11:43:09 +0200 fs r275593 : #i104649# JavaDriverClassPath is also a known JDBC-bridge setting 2009-08-31 11:41:37 +0200 fs r275592 : #i104649# 2009-08-28 21:48:27 +0200 fs r275552 : during #i96862#: renamed the configuration data which controls availability of certain DBA-related UI 2009-08-28 21:48:17 +0200 fs r275551 : #i96862# do not show the 'Create a new database' option when a) no embedded/dBase driver is installed or b) the configuration requests to hide the option 2009-08-28 21:47:19 +0200 fs r275550 : during #i96862#: renamed the configuration data which controls availability of certain DBA-related UI 2009-08-28 21:46:41 +0200 fs r275549 : #i96862# renamed and extended the configuration data which controls availability of certain DBA-related UI 2009-08-28 15:10:19 +0200 fs r275535 : #i96862# if no embedded driver is installed, use dBase for creating new DBs. If no dBase driver is installed, too, do not offer the 'Create new database' option 2009-08-28 14:03:04 +0200 fs r275532 : #i104454# allow multiple fields to display the same column 2009-08-28 13:14:00 +0200 fs r275528 : #i104584# driver meta data do not belong into a data source's settings 2009-08-28 13:09:57 +0200 fs r275527 : properly chech the MySQL type buttons (else next/back in the wizard leads to state with two buttons checked) 2009-08-28 13:09:17 +0200 fs r275526 : #i104584# driver meta data do not belong into a data source's settings 2009-08-28 13:07:18 +0200 fs r275525 : BooleanComparisonMode is a property, or a feature - but not a driver meta data 2009-08-28 11:00:31 +0200 fs r275521 : #i104580# 2009-08-28 10:40:05 +0200 fs r275519 : #i104577# correct assertion: If the template node type is ANY, then any value type is allowed 2009-08-28 10:09:30 +0200 fs r275518 : #i104575# implement Named Pipe UI 2009-08-28 10:09:07 +0200 fs r275517 : pass the trigger-event to IWindowOperator::operateOn / work with VclWindowEvents, not VclSimpleEvents 2009-08-27 14:27:36 +0200 fs r275484 : ImplPosTabPage: respect mbEmptyViewMargin for WINDOWALIGN_LEFT 2009-08-27 13:43:56 +0200 fs r275480 : merging latest changes from CWS dba32f herein 2009-08-27 13:23:07 +0200 fs r275475 : #i103882# 2009-08-27 11:56:55 +0200 fs r275466 : #i104544# SetState: Do not call Update at the window which we just set text for. It should (sic\!) not be needed, but causes trouble 2009-08-27 11:55:34 +0200 fs r275465 : #i104544# do not allow re-entrance for impl_ensureControl_nothrow Actually, this is part of the fix only. I also removed the code which triggered this re-entrance (from the grid control implementation), but to ensure it won't happen, again, I added some safety herein. 2009-08-27 10:14:11 +0200 fs r275459 : preparations for supporting a 'NamedPipe' parameter for the MySQL Connector/OOo 2009-08-27 10:13:21 +0200 fs r275458 : preparations for supporting a 'NamedPipe' setting for the MySQL Connector/OOo 2009-08-27 10:11:14 +0200 fs r275456 : outsourced the MySQLNative settings into a dedicated class, to not duplicate all the code in two tab page implementations 2009-08-26 14:18:13 +0200 fs r275422 : #i10000# 2009-08-26 13:26:36 +0200 fs r275419 : ignore output paths 2009-08-26 13:23:38 +0200 fs r275417 : support the LocalSocket property for the MySQL native driver 2009-08-26 13:17:05 +0200 fs r275416 : some re-factoring, to outsource the tab page for setting up the MySQLNative connection, into a dedicated class (needed later) 2009-08-26 13:15:15 +0200 fs r275415 : support a NoThousandSep property for NumericFormatters - I'm tired of correcting this at runtime, instead of controlling it in the resource 2009-08-26 11:45:08 +0200 fs r275410 : oops, 'flat' shouldn't have got lost 2009-08-26 09:38:57 +0200 fs r275398 : #i102631# when saving the document fails, ensure that the interaction handler really can handle/display the error 2009-08-26 09:37:05 +0200 fs r275397 : #i102631# don't let non-IO/RuntimeExceptions escape from DatabaseDocument::store*, wrap them into an IOException 2009-08-26 09:35:39 +0200 fs r275395 : let the default interaction handler implement XInteractionHandler2 2009-08-25 13:51:34 +0200 fs r275352 : #i102631# createTempFile: pass URL through FileHelper.getOOoCompatibleFileURL 2009-08-25 13:49:23 +0200 fs r275351 : #i102631# createTempFileURL: immediately delete the file implicitly created by createTempFile, we really only need the URL 2009-08-24 14:49:07 +0200 fs r275318 : #i10000# 2009-08-24 14:36:03 +0200 fs r275315 : properly terminate message with 0 character 2009-08-24 14:35:45 +0200 fs r275314 : trace method concepts in non-pro, if special flag is enabled 2009-08-24 14:24:17 +0200 fs r275312 : #i98973# filter some more events for grid control columns 2009-08-24 14:15:23 +0200 fs r275311 : #i98973# implement XComboBox for combo box cells 2009-08-24 13:39:24 +0200 fs r275308 : #i98973# do not display the 'actionPerformed' event for grid combo box columns 2009-08-24 12:52:03 +0200 fs r275303 : #i98973# implement XCheckBox and XButton for check box cells 2009-08-24 11:56:05 +0200 oj r275300 : #i104447# wrong default for orientation 2009-08-24 10:51:21 +0200 fs r275296 : in the script selector dialog, interpret a double click onto a function as OK 2009-08-24 10:50:56 +0200 fs r275295 : localize some to-be-displayed names, consolidate some code regarding form/control naming 2009-08-21 14:28:05 +0200 fs r275255 : #i98973# implement KeyListeners 2009-08-21 14:27:20 +0200 fs r275254 : #i98973# move the conversion VCL[Mouse|Key]Event->Awt[Mouse|Key]Event from vclxwindow.cxx to VCLUnoHelper 2009-08-21 14:08:50 +0200 fs r275248 : #i98973# implement Mouse- and MouseMotion-broadcasting 2009-08-21 13:31:08 +0200 fs r275244 : #i98973# implement text and change listeners at text cells 2009-08-21 12:47:38 +0200 fs r275234 : #i104399# some refactoring: If the MySQL Connector/OOo is installed, it registers for the sdbc:mysqlc: protocol (now known as DST_MYSQL_NATIVE_DIRECT). However, we do not want to display this in the UI, instead we display "MySQL" only, which collects DST_MYSQL_ODBC, DST_MYSQL_JDBC, and DST_MYSQL_NATIVE. 2009-08-21 12:45:18 +0200 fs r275232 : #i104399# also register for the sdbc:mysql:mysqlc protocol, decide at runtime (depending on the availability of sdbc:mysqlc:), whether it is really accepted. This prevents that the C/OOo extension needs to register *our* implementation name for the sdbc:mysql:mysqlc: protocol, which would be somewhat weird 2009-08-20 16:18:48 +0200 fs r275190 : merging the latest changes from CWS dba32f (which this CWS was created from) 2009-08-19 20:19:59 +0200 fs r275160 : add some spacing between the radios 2009-08-19 14:50:15 +0200 fs r275150 : #i98973# slightly refactoring the grid cell implementations, to prepare for proper events being fired. Implement focus events for the moment, more to come. 2009-08-19 10:53:38 +0200 fs r275142 : #i99936# initialize newly created models 2009-08-18 23:03:48 +0200 fs r275132 : merging latest changes from CWS dba32f 2009-08-18 15:14:08 +0200 fs r275110 : #i102819# SetColumnPos: SCROLL_CLIP is deadly here
2009-09-14 11:18:01 +00:00
Any aError = ::cppu::getCaughtException();
m_aEventNotifier.notifyDocumentEventAsync( "OnSaveToFailed", NULL, aError );
if ( aError.isExtractableTo( ::cppu::UnoType< IOException >::get() )
|| aError.isExtractableTo( ::cppu::UnoType< RuntimeException >::get() )
)
{
// allowed to leave
throw;
}
Exception aExcept;
aError >>= aExcept;
::rtl::OUString sErrorMessage = ResourceManager::loadString(
RID_STR_ERROR_WHILE_SAVING,
"$except$", aError.getValueTypeName(),
"$message$", aExcept.Message
);
throw IOException( sErrorMessage, *this );
2008-10-16 06:57:26 +00:00
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
2008-10-16 06:57:26 +00:00
m_aEventNotifier.notifyDocumentEventAsync( "OnSaveToDone", NULL, makeAny( _rURL ) );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
}
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// -----------------------------------------------------------------------------
// XModifyBroadcaster
void SAL_CALL ODatabaseDocument::addModifyListener( const Reference< XModifyListener >& _xListener ) throw (RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
m_aModifyListeners.addInterface(_xListener);
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::removeModifyListener( const Reference< XModifyListener >& _xListener ) throw (RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
m_aModifyListeners.removeInterface(_xListener);
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// -----------------------------------------------------------------------------
// XModifiable
sal_Bool SAL_CALL ODatabaseDocument::isModified( ) throw (RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
return m_pImpl->m_bModified;
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::setModified( sal_Bool _bModified ) throw (PropertyVetoException, RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this, DocumentGuard::MethodWithoutInit );
if ( impl_isInitialized() )
impl_setModified_nothrow( _bModified, aGuard );
// it's allowed to call setModified without the document being initialized already. In this case,
// we simply ignore the call - when the initialization is finished, the respective code will set
// a proper "modified" flag
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
// -----------------------------------------------------------------------------
2008-10-16 06:57:26 +00:00
void ODatabaseDocument::impl_setModified_nothrow( sal_Bool _bModified, DocumentGuard& _rGuard )
{
2008-10-16 06:57:26 +00:00
// SYNCHRONIZED ->
bool bModifiedChanged = ( m_pImpl->m_bModified != _bModified ) && ( !m_pImpl->isModifyLocked() );
2008-10-16 06:57:26 +00:00
if ( bModifiedChanged )
{
m_pImpl->m_bModified = _bModified;
m_aEventNotifier.notifyDocumentEventAsync( "OnModifyChanged" );
}
_rGuard.clear();
2008-10-16 06:57:26 +00:00
// <- SYNCHRONIZED
2008-10-16 06:57:26 +00:00
if ( bModifiedChanged )
{
lang::EventObject aEvent( *this );
m_aModifyListeners.notifyEach( &XModifyListener::modified, aEvent );
}
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
// -----------------------------------------------------------------------------
// ::com::sun::star::document::XEventBroadcaster
2008-10-16 06:57:26 +00:00
void SAL_CALL ODatabaseDocument::addEventListener(const uno::Reference< document::XEventListener >& _Listener ) throw (uno::RuntimeException)
{
m_aEventNotifier.addLegacyEventListener( _Listener );
}
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::removeEventListener( const uno::Reference< document::XEventListener >& _Listener ) throw (uno::RuntimeException)
{
m_aEventNotifier.removeLegacyEventListener( _Listener );
}
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::addDocumentEventListener( const Reference< XDocumentEventListener >& _Listener ) throw (RuntimeException)
{
2008-10-16 06:57:26 +00:00
m_aEventNotifier.addDocumentEventListener( _Listener );
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
// -----------------------------------------------------------------------------
2008-10-16 06:57:26 +00:00
void SAL_CALL ODatabaseDocument::removeDocumentEventListener( const Reference< XDocumentEventListener >& _Listener ) throw (RuntimeException)
{
2008-10-16 06:57:26 +00:00
m_aEventNotifier.removeDocumentEventListener( _Listener );
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
// -----------------------------------------------------------------------------
2008-10-16 06:57:26 +00:00
void SAL_CALL ODatabaseDocument::notifyDocumentEvent( const ::rtl::OUString& _EventName, const Reference< XController2 >& _ViewController, const Any& _Supplement ) throw (IllegalArgumentException, NoSupportException, RuntimeException)
{
2008-10-16 06:57:26 +00:00
if ( !_EventName.getLength() )
throw IllegalArgumentException( ::rtl::OUString(), *this, 1 );
// SYNCHRONIZED ->
DocumentGuard aGuard( *this );
if ( !DocumentEvents::needsSynchronousNotification( _EventName ) )
{
m_aEventNotifier.notifyDocumentEventAsync( _EventName, _ViewController, _Supplement );
return;
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
aGuard.clear();
2008-10-16 06:57:26 +00:00
// <- SYNCHRONIZED
m_aEventNotifier.notifyDocumentEvent( _EventName, _ViewController, _Supplement );
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
// -----------------------------------------------------------------------------
Sequence< PropertyValue > SAL_CALL ODatabaseDocument::getPrinter( ) throw (RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
DBG_ERROR( "ODatabaseDocument::getPrinter: not supported!" );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
return Sequence< PropertyValue >();
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::setPrinter( const Sequence< PropertyValue >& /*aPrinter*/ ) throw (IllegalArgumentException, RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
DBG_ERROR( "ODatabaseDocument::setPrinter: not supported!" );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::print( const Sequence< PropertyValue >& /*xOptions*/ ) throw (IllegalArgumentException, RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
DBG_ERROR( "ODatabaseDocument::print: not supported!" );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// -----------------------------------------------------------------------------
void ODatabaseDocument::impl_reparent_nothrow( const WeakReference< XNameAccess >& _rxContainer )
{
Reference< XChild > xChild( _rxContainer.get(), UNO_QUERY );
if ( xChild.is() )
xChild->setParent( *this );
}
// -----------------------------------------------------------------------------
void ODatabaseDocument::clearObjectContainer( WeakReference< XNameAccess >& _rxContainer)
{
Reference< XNameAccess > xContainer = _rxContainer;
::comphelper::disposeComponent( xContainer );
Reference< XChild > xChild( _rxContainer.get(),UNO_QUERY );
if ( xChild.is() )
xChild->setParent( NULL );
_rxContainer = Reference< XNameAccess >();
}
// -----------------------------------------------------------------------------
Reference< XNameAccess > ODatabaseDocument::impl_getDocumentContainer_throw( ODatabaseModelImpl::ObjectType _eType )
{
if ( ( _eType != ODatabaseModelImpl::E_FORM ) && ( _eType != ODatabaseModelImpl::E_REPORT ) )
throw IllegalArgumentException();
bool bFormsContainer = _eType == ODatabaseModelImpl::E_FORM;
WeakReference< XNameAccess >& rContainerRef( bFormsContainer ? m_xForms : m_xReports );
Reference< XNameAccess > xContainer = rContainerRef;
if ( !xContainer.is() )
{
TContentPtr& rContainerData( m_pImpl->getObjectContainer( _eType ) );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
rContainerRef = xContainer = new ODocumentContainer( m_pImpl->m_aContext.getLegacyServiceFactory(), *this, rContainerData, bFormsContainer );
impl_reparent_nothrow( xContainer );
}
return xContainer;
}
// -----------------------------------------------------------------------------
void ODatabaseDocument::impl_closeControllerFrames_nolck_throw( sal_Bool _bDeliverOwnership )
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
Controllers aCopy = m_aControllers;
CWS-TOOLING: integrate CWS dbaperf2 2009-06-22 11:04:36 +0200 msc r273202 : #100000# fix to run this test 2009-06-22 09:41:04 +0200 msc r273200 : #100000# correct case 2009-06-22 09:02:42 +0200 msc r273199 : new SRB 2009-06-22 08:53:26 +0200 msc r273198 : #100000 2009-06-15 12:36:32 +0200 oj r272976 : test 2009-06-12 14:23:23 +0200 msc r272918 : #101587# unused feature was removed 2009-06-12 06:45:17 +0200 oj r272903 : use GUI instead of OS 2009-06-11 09:12:30 +0200 oj r272845 : remove unused dep 2009-06-11 09:11:09 +0200 oj r272844 : ColumnAliasInOrderBy not supported 2009-06-11 08:27:00 +0200 oj r272843 : CWS-TOOLING: rebase CWS dbaperf2 to trunk@272827 (milestone: DEV300:m50) 2009-06-10 15:30:17 +0200 msc r272822 : #100000 2009-06-10 15:27:40 +0200 msc r272820 : #102515# new function for the database type list 2009-06-10 15:26:09 +0200 msc r272818 : move file to dbaccess/tools/dbcreatetools.inc 2009-06-10 15:20:10 +0200 msc r272816 : #102515# new function for the database type list 2009-06-10 12:34:46 +0200 oj r272803 : #i101587# check extension 2009-06-10 11:53:45 +0200 oj r272800 : remove unused code 2009-06-09 09:57:25 +0200 oj r272752 : #i101587# EscapeDateTime moved into features section 2009-06-09 09:56:26 +0200 oj r272751 : enable finish 2009-06-08 11:50:37 +0200 oj r272726 : #i102588# move convert tzo saveDataSource 2009-06-05 11:54:20 +0200 jsk r272676 : #i102515# - NEW: Functions to retrieve Database names from API 2009-06-05 10:52:22 +0200 jsk r272671 : NEW: Functions to retrieve Database names from API 2009-06-05 09:36:54 +0200 oj r272666 : handle win and unx differently 2009-06-05 09:36:28 +0200 oj r272665 : handle win and unx differently 2009-06-04 13:41:56 +0200 oj r272625 : #i101268# make use of stringbuffer instead of oustring 2009-06-04 10:18:14 +0200 oj r272612 : add SAL_DLLPUBLIC_EXPORT 2009-05-28 10:56:33 +0200 oj r272381 : #i101587# create langpacks 2009-05-28 10:41:59 +0200 oj r272380 : #i101587# create langpacks 2009-05-28 10:29:30 +0200 oj r272379 : #i101587# create langpacks 2009-05-07 10:11:46 +0200 oj r271635 : fix compile warnings 2009-05-07 07:01:31 +0200 oj r271619 : change type from int32 to PathID 2009-05-07 06:53:19 +0200 oj r271618 : add all 2009-05-06 14:57:02 +0200 oj r271595 : add missing lib 2009-05-06 14:56:54 +0200 oj r271594 : no used anymore 2009-05-06 14:56:08 +0200 oj r271593 : no used anymore 2009-05-06 14:54:25 +0200 oj r271592 : no used anymore 2009-05-06 14:45:59 +0200 oj r271591 : add missing lib 2009-05-06 14:41:54 +0200 oj r271590 : change wnt 2009-05-06 14:22:21 +0200 oj r271589 : #i101587# use config for the drivers 2009-05-06 14:21:39 +0200 oj r271588 : #i101587# add new set for metadata and config data for driver 2009-05-06 14:19:36 +0200 oj r271587 : #i101587# handle metadata and props of driver 2009-05-06 10:11:11 +0200 oj r271570 : #i101587# correct wrong use of reference 2009-05-06 09:24:33 +0200 oj r271567 : #i101587# add new set for metadata 2009-05-06 08:52:06 +0200 oj r271563 : #i101587# add driver configuration 2009-05-06 08:51:04 +0200 oj r271562 : #i101587# add driver configuration 2009-05-04 10:24:41 +0200 oj r271442 : CWS-TOOLING: rebase CWS dbaperf2 to trunk@271427 (milestone: DEV300:m47) 2009-04-28 07:06:22 +0200 oj r271303 : compile error 2009-04-27 14:12:48 +0200 oj r271270 : #i101268# make use of stringbuffer instead of oustring 2009-04-27 14:12:27 +0200 oj r271269 : #i101268# make use of stringbuffer instead of oustring 2009-04-27 09:30:10 +0200 oj r271255 : use string buffer when possible 2009-04-24 11:56:01 +0200 oj r271207 : #i101268# remove end() call from loop 2009-04-23 14:24:03 +0200 oj r271171 : add dep 2009-04-23 13:25:25 +0200 oj r271164 : #i101268# add config entries for database drivers 2009-04-23 13:07:13 +0200 oj r271161 : #i101268# add config entries for database drivers 2009-04-23 13:06:33 +0200 oj r271160 : #i101268# add parent url pattern entry for driver node 2009-04-23 13:05:39 +0200 oj r271159 : #i101268# add config entry for driver node 2009-04-23 13:04:09 +0200 oj r271157 : #i101268# add config entry for driver node 2009-04-23 06:41:32 +0200 oj r271142 : #i101268# add new configuration file Drivers 2009-04-22 13:49:19 +0200 oj r271103 : convert EOL 2009-04-22 13:29:17 +0200 oj r271101 : #i101268# use of driver configuration entries for features and properties 2009-04-22 13:28:08 +0200 oj r271100 : #i101268# use of driver configuration entries for features and properties 2009-04-22 13:15:26 +0200 oj r271098 : #i101268# add new configuration file Drivers 2009-04-22 13:14:43 +0200 oj r271097 : #i101268# use of driver configuration entries for features and properties
2009-07-03 12:24:35 +00:00
Controllers::iterator aEnd = aCopy.end();
for ( Controllers::iterator aIter = aCopy.begin(); aIter != aEnd ; ++aIter )
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
if ( !aIter->is() )
continue;
try
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
Reference< XCloseable> xFrame( (*aIter)->getFrame(), UNO_QUERY );
if ( xFrame.is() )
xFrame->close( _bDeliverOwnership );
}
catch( const CloseVetoException& ) { throw; }
catch( const Exception& )
{
DBG_UNHANDLED_EXCEPTION();
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
}
}
// -----------------------------------------------------------------------------
struct DisposeControllerFrame : public ::std::unary_function< Reference< XController >, void >
{
void operator()( const Reference< XController >& _rxController ) const
{
try
{
if ( !_rxController.is() )
return;
Reference< XFrame > xFrame( _rxController->getFrame() );
::comphelper::disposeComponent( xFrame );
}
catch( const Exception& )
{
DBG_UNHANDLED_EXCEPTION();
}
};
};
// -----------------------------------------------------------------------------
void ODatabaseDocument::impl_disposeControllerFrames_nothrow()
{
Controllers aCopy;
aCopy.swap( m_aControllers ); // ensure m_aControllers is empty afterwards
::std::for_each( aCopy.begin(), aCopy.end(), DisposeControllerFrame() );
}
// -----------------------------------------------------------------------------
2008-10-16 06:57:26 +00:00
void SAL_CALL ODatabaseDocument::close( sal_Bool _bDeliverOwnership ) throw (CloseVetoException, RuntimeException)
{
2008-10-16 06:57:26 +00:00
// nearly everything below can/must be done without our mutex locked, the below is just for
// the checks for being disposed and the like
// SYNCHRONIZED ->
{
DocumentGuard aGuard( *this );
m_bClosing = true;
}
// <- SYNCHRONIZED
2008-10-16 06:57:26 +00:00
try
{
// allow listeners to veto
lang::EventObject aEvent( *this );
m_aCloseListener.forEach< XCloseListener >(
boost::bind( &XCloseListener::queryClosing, _1, boost::cref( aEvent ), boost::cref( _bDeliverOwnership ) ) );
2008-10-16 06:57:26 +00:00
// notify that we're going to unload
m_aEventNotifier.notifyDocumentEvent( "OnPrepareUnload" );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
2008-10-16 06:57:26 +00:00
impl_closeControllerFrames_nolck_throw( _bDeliverOwnership );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
2008-10-16 06:57:26 +00:00
m_aCloseListener.notifyEach( &XCloseListener::notifyClosing, (const lang::EventObject&)aEvent );
dispose();
}
catch ( const Exception& )
{
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
::osl::MutexGuard aGuard( m_aMutex );
2008-10-16 06:57:26 +00:00
m_bClosing = false;
throw;
}
2008-10-16 06:57:26 +00:00
// SYNCHRONIZED ->
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
::osl::MutexGuard aGuard( m_aMutex );
2008-10-16 06:57:26 +00:00
m_bClosing = false;
// <- SYNCHRONIZED
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::addCloseListener( const Reference< ::com::sun::star::util::XCloseListener >& Listener ) throw (RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
m_aCloseListener.addInterface(Listener);
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::removeCloseListener( const Reference< ::com::sun::star::util::XCloseListener >& Listener ) throw (RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
m_aCloseListener.removeInterface(Listener);
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
// -----------------------------------------------------------------------------
Reference< XNameAccess > SAL_CALL ODatabaseDocument::getFormDocuments( ) throw (RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this, DocumentGuard::MethodUsedDuringInit );
return impl_getDocumentContainer_throw( ODatabaseModelImpl::E_FORM );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
// -----------------------------------------------------------------------------
Reference< XNameAccess > SAL_CALL ODatabaseDocument::getReportDocuments( ) throw (RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this, DocumentGuard::MethodUsedDuringInit );
return impl_getDocumentContainer_throw( ODatabaseModelImpl::E_REPORT );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// -----------------------------------------------------------------------------
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
void ODatabaseDocument::WriteThroughComponent( const Reference< XComponent >& xComponent, const sal_Char* pStreamName,
const sal_Char* pServiceName, const Sequence< Any >& _rArguments, const Sequence< PropertyValue >& rMediaDesc,
const Reference<XStorage>& _xStorageToSaveTo ) const
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
OSL_ENSURE( pStreamName, "Need stream name!" );
OSL_ENSURE( pServiceName, "Need service name!" );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// open stream
::rtl::OUString sStreamName = ::rtl::OUString::createFromAscii( pStreamName );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
Reference< XStream > xStream = _xStorageToSaveTo->openStreamElement( sStreamName, ElementModes::READWRITE | ElementModes::TRUNCATE );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
if ( !xStream.is() )
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
return;
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
Reference< XOutputStream > xOutputStream( xStream->getOutputStream() );
OSL_ENSURE( xOutputStream.is(), "Can't create output stream in package!" );
if ( !xOutputStream.is() )
return;
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
Reference< XSeekable > xSeek( xOutputStream, UNO_QUERY );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
if ( xSeek.is() )
xSeek->seek(0);
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
Reference< XPropertySet > xStreamProp( xOutputStream, UNO_QUERY_THROW );
xStreamProp->setPropertyValue( INFO_MEDIATYPE, makeAny( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "text/xml" ) ) ) );
xStreamProp->setPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Compressed" ) ), makeAny( (sal_Bool)sal_True ) );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// write the stuff
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
WriteThroughComponent( xOutputStream, xComponent, pServiceName, _rArguments, rMediaDesc );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
void ODatabaseDocument::WriteThroughComponent( const Reference< XOutputStream >& xOutputStream,
const Reference< XComponent >& xComponent, const sal_Char* pServiceName, const Sequence< Any >& _rArguments,
const Sequence< PropertyValue >& rMediaDesc ) const
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
OSL_ENSURE( xOutputStream.is(), "I really need an output stream!" );
OSL_ENSURE( xComponent.is(), "Need component!" );
OSL_ENSURE( NULL != pServiceName, "Need component name!" );
// get component
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
Reference< XActiveDataSource > xSaxWriter;
OSL_VERIFY( m_pImpl->m_aContext.createComponent( "com.sun.star.xml.sax.Writer", xSaxWriter ) );
if ( !xSaxWriter.is() )
return;
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// connect XML writer to output stream
xSaxWriter->setOutputStream( xOutputStream );
// prepare arguments (prepend doc handler to given arguments)
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
Reference< XDocumentHandler > xDocHandler( xSaxWriter,UNO_QUERY);
Sequence<Any> aArgs( 1 + _rArguments.getLength() );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
aArgs[0] <<= xDocHandler;
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
for ( sal_Int32 i = 0; i < _rArguments.getLength(); ++i )
aArgs[ i+1 ] = _rArguments[i];
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// get filter component
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
Reference< XExporter > xExporter;
OSL_VERIFY( m_pImpl->m_aContext.createComponentWithArguments( pServiceName, aArgs, xExporter ) );
if ( !xExporter.is() )
return;
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// connect model and filter
xExporter->setSourceDocument( xComponent );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
// filter
Reference< XFilter > xFilter( xExporter, UNO_QUERY_THROW );
xFilter->filter( rMediaDesc );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// -----------------------------------------------------------------------------
void ODatabaseDocument::impl_writeStorage_throw( const Reference< XStorage >& _rxTargetStorage, const ::comphelper::NamedValueCollection& _rMediaDescriptor ) const
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
// extract status indicator
Sequence< Any > aDelegatorArguments;
lcl_extractStatusIndicator( _rMediaDescriptor, aDelegatorArguments );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
2008-10-01 12:28:29 +00:00
/** property map for export info set */
comphelper::PropertyMapEntry aExportInfoMap[] =
{
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
{ MAP_LEN( "BaseURI"), 0,&::getCppuType( (::rtl::OUString *)0 ),beans::PropertyAttribute::MAYBEVOID, 0 },
2008-10-01 12:28:29 +00:00
{ MAP_LEN( "StreamName"), 0,&::getCppuType( (::rtl::OUString *)0 ),beans::PropertyAttribute::MAYBEVOID, 0 },
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
{ MAP_LEN( "UsePrettyPrinting" ), 0, &::getCppuType((sal_Bool*)0), beans::PropertyAttribute::MAYBEVOID, 0},
2008-10-01 12:28:29 +00:00
{ NULL, 0, 0, NULL, 0, 0 }
};
uno::Reference< beans::XPropertySet > xInfoSet( comphelper::GenericPropertySet_CreateInstance( new comphelper::PropertySetInfo( aExportInfoMap ) ) );
SvtSaveOptions aSaveOpt;
xInfoSet->setPropertyValue(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("UsePrettyPrinting")), uno::makeAny(aSaveOpt.IsPrettyPrinting()));
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 ( aSaveOpt.IsSaveRelFSys() )
xInfoSet->setPropertyValue(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("BaseURI")), uno::makeAny(_rMediaDescriptor.getOrDefault("URL",::rtl::OUString())));
2008-10-01 12:28:29 +00:00
sal_Int32 nArgsLen = aDelegatorArguments.getLength();
aDelegatorArguments.realloc(nArgsLen+1);
aDelegatorArguments[nArgsLen++] <<= xInfoSet;
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
Reference< XPropertySet > xProp( _rxTargetStorage, UNO_QUERY_THROW );
xProp->setPropertyValue( INFO_MEDIATYPE, makeAny( (rtl::OUString)MIMETYPE_OASIS_OPENDOCUMENT_DATABASE ) );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
Reference< XComponent > xComponent( *const_cast< ODatabaseDocument* >( this ), UNO_QUERY_THROW );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
Sequence< PropertyValue > aMediaDescriptor;
_rMediaDescriptor >>= aMediaDescriptor;
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
2008-10-01 12:28:29 +00:00
xInfoSet->setPropertyValue(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("StreamName")), uno::makeAny(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("settings.xml"))));
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
WriteThroughComponent( xComponent, "settings.xml", "com.sun.star.comp.sdb.XMLSettingsExporter",
aDelegatorArguments, aMediaDescriptor, _rxTargetStorage );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
2008-10-01 12:28:29 +00:00
xInfoSet->setPropertyValue(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("StreamName")), uno::makeAny(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("content.xml"))));
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
WriteThroughComponent( xComponent, "content.xml", "com.sun.star.comp.sdb.DBExportFilter",
aDelegatorArguments, aMediaDescriptor, _rxTargetStorage );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
m_pImpl->storeLibraryContainersTo( _rxTargetStorage );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
// -----------------------------------------------------------------------------
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
Reference< XUIConfigurationManager > SAL_CALL ODatabaseDocument::getUIConfigurationManager( ) throw (RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
if ( !m_xUIConfigurationManager.is() )
{
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
m_pImpl->m_aContext.createComponent( "com.sun.star.ui.UIConfigurationManager", m_xUIConfigurationManager );
Reference< XUIConfigurationStorage > xUIConfigStorage( m_xUIConfigurationManager, UNO_QUERY );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
if ( xUIConfigStorage.is() )
{
rtl::OUString aUIConfigFolderName( RTL_CONSTASCII_USTRINGPARAM( "Configurations2" ));
Reference< XStorage > xConfigStorage;
// First try to open with READWRITE and then READ
xConfigStorage = getDocumentSubStorage( aUIConfigFolderName, ElementModes::READWRITE );
if ( xConfigStorage.is() )
{
rtl::OUString aUIConfigMediaType( RTL_CONSTASCII_USTRINGPARAM( "application/vnd.sun.xml.ui.configuration" ));
rtl::OUString aMediaType;
Reference< XPropertySet > xPropSet( xConfigStorage, UNO_QUERY );
Any a = xPropSet->getPropertyValue( INFO_MEDIATYPE );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
if ( !( a >>= aMediaType ) || ( aMediaType.getLength() == 0 ))
{
a <<= aUIConfigMediaType;
xPropSet->setPropertyValue( INFO_MEDIATYPE, a );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
}
else
xConfigStorage = getDocumentSubStorage( aUIConfigFolderName, ElementModes::READ );
// initialize ui configuration manager with document substorage
xUIConfigStorage->setStorage( xConfigStorage );
}
}
return m_xUIConfigurationManager;
}
// -----------------------------------------------------------------------------
Reference< XStorage > SAL_CALL ODatabaseDocument::getDocumentSubStorage( const ::rtl::OUString& aStorageName, sal_Int32 nMode ) throw (RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
Reference< XDocumentSubStorageSupplier > xStorageAccess( m_pImpl->getDocumentSubStorageSupplier() );
return xStorageAccess->getDocumentSubStorage( aStorageName, nMode );
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
// -----------------------------------------------------------------------------
Sequence< ::rtl::OUString > SAL_CALL ODatabaseDocument::getDocumentSubStoragesNames( ) throw (::com::sun::star::io::IOException, RuntimeException)
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
{
Reference< XDocumentSubStorageSupplier > xStorageAccess( m_pImpl->getDocumentSubStorageSupplier() );
return xStorageAccess->getDocumentSubStoragesNames();
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
//------------------------------------------------------------------------------
void ODatabaseDocument::impl_notifyStorageChange_nolck_nothrow( const Reference< XStorage >& _rxNewRootStorage )
{
Reference< XInterface > xMe( *const_cast< ODatabaseDocument* >( this ) );
m_aStorageListeners.forEach< XStorageChangeListener >(
boost::bind( &XStorageChangeListener::notifyStorageChange, _1, boost::cref( xMe ), boost::cref( _rxNewRootStorage ) ) );
}
//------------------------------------------------------------------------------
void ODatabaseDocument::disposing()
{
if ( !m_pImpl.is() )
{
// this means that we're already disposed
DBG_ASSERT( ODatabaseDocument_OfficeDocument::rBHelper.bDisposed, "ODatabaseDocument::disposing: no impl anymore, but not yet disposed!" );
return;
}
2008-10-16 06:57:26 +00:00
if ( impl_isInitialized() )
m_aEventNotifier.notifyDocumentEvent( "OnUnload" );
Reference< XModel > xHoldAlive( this );
m_aEventNotifier.disposing();
lang::EventObject aDisposeEvent(static_cast<XWeak*>(this));
m_aModifyListeners.disposeAndClear( aDisposeEvent );
m_aCloseListener.disposeAndClear( aDisposeEvent );
m_aStorageListeners.disposeAndClear( aDisposeEvent );
CWS-TOOLING: integrate CWS rtlcontrols 2008-12-11 21:08:49 +0100 fs r265367 : CONTEXT_WRITING_MODE is transient 2008-12-11 21:08:00 +0100 fs r265365 : REGISTER_PROP_3 2008-12-11 20:53:44 +0100 fs r265362 : ContextWritingMode is not MAYBEVOID 2008-12-11 15:29:08 +0100 fs r265315 : prevent a deadlock during complex.dbaccess.DatabaseDocument test 2008-12-11 15:01:13 +0100 fs r265304 : manual RESYNC to m37 2008-12-10 20:04:38 +0100 pl r265230 : #i30631# fix a snafu in mirroring 2008-12-10 19:14:45 +0100 pl r265229 : #i30631# rework PaintToDevice for RTL controls 2008-12-05 10:19:13 +0100 fs r264893 : #i10000# ImplInitSettings => ImplInitWindow (ImplInitSettings clashed with base classes ImplInitSettings on unxsols4) 2008-12-03 12:55:24 +0100 fs r264768 : #i100000# 2008-12-03 07:11:48 +0100 fs r264741 : #i10000# 2008-12-02 10:37:51 +0100 fs r264670 : CWS-TOOLING: rebase CWS rtlcontrols to trunk@264325 (milestone: DEV300:m36) 2008-12-02 09:27:50 +0100 fs r264660 : merge from trunk 2008-11-25 10:28:36 +0100 ama r264277 : Fix #i94572# 2008-11-24 11:46:48 +0100 fs r264218 : #i30631# proper context writing mode 2008-11-24 09:38:04 +0100 fs r264204 : #i30631# (approved by PL) 2008-11-24 09:35:47 +0100 fs r264203 : #i30631# Context/WritingMode 2008-11-24 09:33:36 +0100 fs r264202 : #i30631# Context/WritingMode 2008-11-24 09:31:53 +0100 fs r264200 : #i30631# RTL 2008-11-19 08:51:48 +0100 fs r263963 : #i10000# 2008-11-18 20:58:11 +0100 fs r263878 : #i10000# 2008-11-18 15:30:44 +0100 fs r263778 : migrate the CWS from CVS to SVN the CVS changes contained in this change set are the ones between the following two CVS tags: CWS_DEV300_RTLCONTROLS_ANCHOR CWS_DEV300_RTLCONTROLS_PRE_MIGRATION 2008-11-18 12:29:04 +0100 ama r263762 : Fix #i94572#: Context direction for drawing objects 2008-11-18 12:25:50 +0100 ama r263761 : Fix #i94572#: Context direction for drawing objects 2008-11-18 12:02:30 +0100 ama r263759 : Fix #i94572#: Context direction for drawing objects
2008-12-16 13:30:53 +00:00
// this is the list of objects which we currently hold as member. Upon resetting
// those members, we can (potentially) release the last reference to them, in which
// case they will be deleted - if they're C++ implementations, that is :).
// Some of those implementations are offending enough to require the SolarMutex, which
// means we should not release the last reference while our own mutex is locked ...
::std::list< Reference< XInterface > > aKeepAlive;
2008-10-16 06:57:26 +00:00
// SYNCHRONIZED ->
CWS-TOOLING: integrate CWS rtlcontrols 2008-12-11 21:08:49 +0100 fs r265367 : CONTEXT_WRITING_MODE is transient 2008-12-11 21:08:00 +0100 fs r265365 : REGISTER_PROP_3 2008-12-11 20:53:44 +0100 fs r265362 : ContextWritingMode is not MAYBEVOID 2008-12-11 15:29:08 +0100 fs r265315 : prevent a deadlock during complex.dbaccess.DatabaseDocument test 2008-12-11 15:01:13 +0100 fs r265304 : manual RESYNC to m37 2008-12-10 20:04:38 +0100 pl r265230 : #i30631# fix a snafu in mirroring 2008-12-10 19:14:45 +0100 pl r265229 : #i30631# rework PaintToDevice for RTL controls 2008-12-05 10:19:13 +0100 fs r264893 : #i10000# ImplInitSettings => ImplInitWindow (ImplInitSettings clashed with base classes ImplInitSettings on unxsols4) 2008-12-03 12:55:24 +0100 fs r264768 : #i100000# 2008-12-03 07:11:48 +0100 fs r264741 : #i10000# 2008-12-02 10:37:51 +0100 fs r264670 : CWS-TOOLING: rebase CWS rtlcontrols to trunk@264325 (milestone: DEV300:m36) 2008-12-02 09:27:50 +0100 fs r264660 : merge from trunk 2008-11-25 10:28:36 +0100 ama r264277 : Fix #i94572# 2008-11-24 11:46:48 +0100 fs r264218 : #i30631# proper context writing mode 2008-11-24 09:38:04 +0100 fs r264204 : #i30631# (approved by PL) 2008-11-24 09:35:47 +0100 fs r264203 : #i30631# Context/WritingMode 2008-11-24 09:33:36 +0100 fs r264202 : #i30631# Context/WritingMode 2008-11-24 09:31:53 +0100 fs r264200 : #i30631# RTL 2008-11-19 08:51:48 +0100 fs r263963 : #i10000# 2008-11-18 20:58:11 +0100 fs r263878 : #i10000# 2008-11-18 15:30:44 +0100 fs r263778 : migrate the CWS from CVS to SVN the CVS changes contained in this change set are the ones between the following two CVS tags: CWS_DEV300_RTLCONTROLS_ANCHOR CWS_DEV300_RTLCONTROLS_PRE_MIGRATION 2008-11-18 12:29:04 +0100 ama r263762 : Fix #i94572#: Context direction for drawing objects 2008-11-18 12:25:50 +0100 ama r263761 : Fix #i94572#: Context direction for drawing objects 2008-11-18 12:02:30 +0100 ama r263759 : Fix #i94572#: Context direction for drawing objects
2008-12-16 13:30:53 +00:00
::osl::ClearableMutexGuard aGuard( m_aMutex );
2008-10-16 06:57:26 +00:00
DBG_ASSERT( m_aControllers.empty(), "ODatabaseDocument::disposing: there still are controllers!" );
// normally, nobody should explicitly dispose, but only XCloseable::close the document. And upon
// closing, our controllers are closed, too
CWS-TOOLING: integrate CWS rtlcontrols 2008-12-11 21:08:49 +0100 fs r265367 : CONTEXT_WRITING_MODE is transient 2008-12-11 21:08:00 +0100 fs r265365 : REGISTER_PROP_3 2008-12-11 20:53:44 +0100 fs r265362 : ContextWritingMode is not MAYBEVOID 2008-12-11 15:29:08 +0100 fs r265315 : prevent a deadlock during complex.dbaccess.DatabaseDocument test 2008-12-11 15:01:13 +0100 fs r265304 : manual RESYNC to m37 2008-12-10 20:04:38 +0100 pl r265230 : #i30631# fix a snafu in mirroring 2008-12-10 19:14:45 +0100 pl r265229 : #i30631# rework PaintToDevice for RTL controls 2008-12-05 10:19:13 +0100 fs r264893 : #i10000# ImplInitSettings => ImplInitWindow (ImplInitSettings clashed with base classes ImplInitSettings on unxsols4) 2008-12-03 12:55:24 +0100 fs r264768 : #i100000# 2008-12-03 07:11:48 +0100 fs r264741 : #i10000# 2008-12-02 10:37:51 +0100 fs r264670 : CWS-TOOLING: rebase CWS rtlcontrols to trunk@264325 (milestone: DEV300:m36) 2008-12-02 09:27:50 +0100 fs r264660 : merge from trunk 2008-11-25 10:28:36 +0100 ama r264277 : Fix #i94572# 2008-11-24 11:46:48 +0100 fs r264218 : #i30631# proper context writing mode 2008-11-24 09:38:04 +0100 fs r264204 : #i30631# (approved by PL) 2008-11-24 09:35:47 +0100 fs r264203 : #i30631# Context/WritingMode 2008-11-24 09:33:36 +0100 fs r264202 : #i30631# Context/WritingMode 2008-11-24 09:31:53 +0100 fs r264200 : #i30631# RTL 2008-11-19 08:51:48 +0100 fs r263963 : #i10000# 2008-11-18 20:58:11 +0100 fs r263878 : #i10000# 2008-11-18 15:30:44 +0100 fs r263778 : migrate the CWS from CVS to SVN the CVS changes contained in this change set are the ones between the following two CVS tags: CWS_DEV300_RTLCONTROLS_ANCHOR CWS_DEV300_RTLCONTROLS_PRE_MIGRATION 2008-11-18 12:29:04 +0100 ama r263762 : Fix #i94572#: Context direction for drawing objects 2008-11-18 12:25:50 +0100 ama r263761 : Fix #i94572#: Context direction for drawing objects 2008-11-18 12:02:30 +0100 ama r263759 : Fix #i94572#: Context direction for drawing objects
2008-12-16 13:30:53 +00:00
aKeepAlive.push_back( m_xUIConfigurationManager );
2008-10-16 06:57:26 +00:00
m_xUIConfigurationManager = NULL;
2008-10-16 06:57:26 +00:00
clearObjectContainer( m_xForms );
clearObjectContainer( m_xReports );
2008-10-16 06:57:26 +00:00
// reset the macro mode: in case the our impl struct stays alive (e.g. because our DataSource
// object still exists), and somebody subsequently re-opens the document, we want to have
// the security warning, again.
m_pImpl->resetMacroExecutionMode();
2008-10-16 06:57:26 +00:00
// similar argueing for our ViewMonitor
m_aViewMonitor.reset();
2008-10-16 06:57:26 +00:00
// tell our Impl to forget us
m_pImpl->modelIsDisposing( impl_isInitialized(), ODatabaseModelImpl::ResetModelAccess() );
2008-10-16 06:57:26 +00:00
// now, at the latest, the controller array should be empty. Controllers are
// expected to listen for our disposal, and disconnect then
DBG_ASSERT( m_aControllers.empty(), "ODatabaseDocument::disposing: there still are controllers!" );
impl_disposeControllerFrames_nothrow();
CWS-TOOLING: integrate CWS rtlcontrols 2008-12-11 21:08:49 +0100 fs r265367 : CONTEXT_WRITING_MODE is transient 2008-12-11 21:08:00 +0100 fs r265365 : REGISTER_PROP_3 2008-12-11 20:53:44 +0100 fs r265362 : ContextWritingMode is not MAYBEVOID 2008-12-11 15:29:08 +0100 fs r265315 : prevent a deadlock during complex.dbaccess.DatabaseDocument test 2008-12-11 15:01:13 +0100 fs r265304 : manual RESYNC to m37 2008-12-10 20:04:38 +0100 pl r265230 : #i30631# fix a snafu in mirroring 2008-12-10 19:14:45 +0100 pl r265229 : #i30631# rework PaintToDevice for RTL controls 2008-12-05 10:19:13 +0100 fs r264893 : #i10000# ImplInitSettings => ImplInitWindow (ImplInitSettings clashed with base classes ImplInitSettings on unxsols4) 2008-12-03 12:55:24 +0100 fs r264768 : #i100000# 2008-12-03 07:11:48 +0100 fs r264741 : #i10000# 2008-12-02 10:37:51 +0100 fs r264670 : CWS-TOOLING: rebase CWS rtlcontrols to trunk@264325 (milestone: DEV300:m36) 2008-12-02 09:27:50 +0100 fs r264660 : merge from trunk 2008-11-25 10:28:36 +0100 ama r264277 : Fix #i94572# 2008-11-24 11:46:48 +0100 fs r264218 : #i30631# proper context writing mode 2008-11-24 09:38:04 +0100 fs r264204 : #i30631# (approved by PL) 2008-11-24 09:35:47 +0100 fs r264203 : #i30631# Context/WritingMode 2008-11-24 09:33:36 +0100 fs r264202 : #i30631# Context/WritingMode 2008-11-24 09:31:53 +0100 fs r264200 : #i30631# RTL 2008-11-19 08:51:48 +0100 fs r263963 : #i10000# 2008-11-18 20:58:11 +0100 fs r263878 : #i10000# 2008-11-18 15:30:44 +0100 fs r263778 : migrate the CWS from CVS to SVN the CVS changes contained in this change set are the ones between the following two CVS tags: CWS_DEV300_RTLCONTROLS_ANCHOR CWS_DEV300_RTLCONTROLS_PRE_MIGRATION 2008-11-18 12:29:04 +0100 ama r263762 : Fix #i94572#: Context direction for drawing objects 2008-11-18 12:25:50 +0100 ama r263761 : Fix #i94572#: Context direction for drawing objects 2008-11-18 12:02:30 +0100 ama r263759 : Fix #i94572#: Context direction for drawing objects
2008-12-16 13:30:53 +00:00
aKeepAlive.push_back( m_xModuleManager );
2008-10-16 06:57:26 +00:00
m_xModuleManager.clear();
CWS-TOOLING: integrate CWS rtlcontrols 2008-12-11 21:08:49 +0100 fs r265367 : CONTEXT_WRITING_MODE is transient 2008-12-11 21:08:00 +0100 fs r265365 : REGISTER_PROP_3 2008-12-11 20:53:44 +0100 fs r265362 : ContextWritingMode is not MAYBEVOID 2008-12-11 15:29:08 +0100 fs r265315 : prevent a deadlock during complex.dbaccess.DatabaseDocument test 2008-12-11 15:01:13 +0100 fs r265304 : manual RESYNC to m37 2008-12-10 20:04:38 +0100 pl r265230 : #i30631# fix a snafu in mirroring 2008-12-10 19:14:45 +0100 pl r265229 : #i30631# rework PaintToDevice for RTL controls 2008-12-05 10:19:13 +0100 fs r264893 : #i10000# ImplInitSettings => ImplInitWindow (ImplInitSettings clashed with base classes ImplInitSettings on unxsols4) 2008-12-03 12:55:24 +0100 fs r264768 : #i100000# 2008-12-03 07:11:48 +0100 fs r264741 : #i10000# 2008-12-02 10:37:51 +0100 fs r264670 : CWS-TOOLING: rebase CWS rtlcontrols to trunk@264325 (milestone: DEV300:m36) 2008-12-02 09:27:50 +0100 fs r264660 : merge from trunk 2008-11-25 10:28:36 +0100 ama r264277 : Fix #i94572# 2008-11-24 11:46:48 +0100 fs r264218 : #i30631# proper context writing mode 2008-11-24 09:38:04 +0100 fs r264204 : #i30631# (approved by PL) 2008-11-24 09:35:47 +0100 fs r264203 : #i30631# Context/WritingMode 2008-11-24 09:33:36 +0100 fs r264202 : #i30631# Context/WritingMode 2008-11-24 09:31:53 +0100 fs r264200 : #i30631# RTL 2008-11-19 08:51:48 +0100 fs r263963 : #i10000# 2008-11-18 20:58:11 +0100 fs r263878 : #i10000# 2008-11-18 15:30:44 +0100 fs r263778 : migrate the CWS from CVS to SVN the CVS changes contained in this change set are the ones between the following two CVS tags: CWS_DEV300_RTLCONTROLS_ANCHOR CWS_DEV300_RTLCONTROLS_PRE_MIGRATION 2008-11-18 12:29:04 +0100 ama r263762 : Fix #i94572#: Context direction for drawing objects 2008-11-18 12:25:50 +0100 ama r263761 : Fix #i94572#: Context direction for drawing objects 2008-11-18 12:02:30 +0100 ama r263759 : Fix #i94572#: Context direction for drawing objects
2008-12-16 13:30:53 +00:00
aKeepAlive.push_back( m_xTitleHelper );
2008-10-16 06:57:26 +00:00
m_xTitleHelper.clear();
m_pImpl.clear();
CWS-TOOLING: integrate CWS rtlcontrols 2008-12-11 21:08:49 +0100 fs r265367 : CONTEXT_WRITING_MODE is transient 2008-12-11 21:08:00 +0100 fs r265365 : REGISTER_PROP_3 2008-12-11 20:53:44 +0100 fs r265362 : ContextWritingMode is not MAYBEVOID 2008-12-11 15:29:08 +0100 fs r265315 : prevent a deadlock during complex.dbaccess.DatabaseDocument test 2008-12-11 15:01:13 +0100 fs r265304 : manual RESYNC to m37 2008-12-10 20:04:38 +0100 pl r265230 : #i30631# fix a snafu in mirroring 2008-12-10 19:14:45 +0100 pl r265229 : #i30631# rework PaintToDevice for RTL controls 2008-12-05 10:19:13 +0100 fs r264893 : #i10000# ImplInitSettings => ImplInitWindow (ImplInitSettings clashed with base classes ImplInitSettings on unxsols4) 2008-12-03 12:55:24 +0100 fs r264768 : #i100000# 2008-12-03 07:11:48 +0100 fs r264741 : #i10000# 2008-12-02 10:37:51 +0100 fs r264670 : CWS-TOOLING: rebase CWS rtlcontrols to trunk@264325 (milestone: DEV300:m36) 2008-12-02 09:27:50 +0100 fs r264660 : merge from trunk 2008-11-25 10:28:36 +0100 ama r264277 : Fix #i94572# 2008-11-24 11:46:48 +0100 fs r264218 : #i30631# proper context writing mode 2008-11-24 09:38:04 +0100 fs r264204 : #i30631# (approved by PL) 2008-11-24 09:35:47 +0100 fs r264203 : #i30631# Context/WritingMode 2008-11-24 09:33:36 +0100 fs r264202 : #i30631# Context/WritingMode 2008-11-24 09:31:53 +0100 fs r264200 : #i30631# RTL 2008-11-19 08:51:48 +0100 fs r263963 : #i10000# 2008-11-18 20:58:11 +0100 fs r263878 : #i10000# 2008-11-18 15:30:44 +0100 fs r263778 : migrate the CWS from CVS to SVN the CVS changes contained in this change set are the ones between the following two CVS tags: CWS_DEV300_RTLCONTROLS_ANCHOR CWS_DEV300_RTLCONTROLS_PRE_MIGRATION 2008-11-18 12:29:04 +0100 ama r263762 : Fix #i94572#: Context direction for drawing objects 2008-11-18 12:25:50 +0100 ama r263761 : Fix #i94572#: Context direction for drawing objects 2008-11-18 12:02:30 +0100 ama r263759 : Fix #i94572#: Context direction for drawing objects
2008-12-16 13:30:53 +00:00
aGuard.clear();
2008-10-16 06:57:26 +00:00
// <- SYNCHRONIZED
CWS-TOOLING: integrate CWS rtlcontrols 2008-12-11 21:08:49 +0100 fs r265367 : CONTEXT_WRITING_MODE is transient 2008-12-11 21:08:00 +0100 fs r265365 : REGISTER_PROP_3 2008-12-11 20:53:44 +0100 fs r265362 : ContextWritingMode is not MAYBEVOID 2008-12-11 15:29:08 +0100 fs r265315 : prevent a deadlock during complex.dbaccess.DatabaseDocument test 2008-12-11 15:01:13 +0100 fs r265304 : manual RESYNC to m37 2008-12-10 20:04:38 +0100 pl r265230 : #i30631# fix a snafu in mirroring 2008-12-10 19:14:45 +0100 pl r265229 : #i30631# rework PaintToDevice for RTL controls 2008-12-05 10:19:13 +0100 fs r264893 : #i10000# ImplInitSettings => ImplInitWindow (ImplInitSettings clashed with base classes ImplInitSettings on unxsols4) 2008-12-03 12:55:24 +0100 fs r264768 : #i100000# 2008-12-03 07:11:48 +0100 fs r264741 : #i10000# 2008-12-02 10:37:51 +0100 fs r264670 : CWS-TOOLING: rebase CWS rtlcontrols to trunk@264325 (milestone: DEV300:m36) 2008-12-02 09:27:50 +0100 fs r264660 : merge from trunk 2008-11-25 10:28:36 +0100 ama r264277 : Fix #i94572# 2008-11-24 11:46:48 +0100 fs r264218 : #i30631# proper context writing mode 2008-11-24 09:38:04 +0100 fs r264204 : #i30631# (approved by PL) 2008-11-24 09:35:47 +0100 fs r264203 : #i30631# Context/WritingMode 2008-11-24 09:33:36 +0100 fs r264202 : #i30631# Context/WritingMode 2008-11-24 09:31:53 +0100 fs r264200 : #i30631# RTL 2008-11-19 08:51:48 +0100 fs r263963 : #i10000# 2008-11-18 20:58:11 +0100 fs r263878 : #i10000# 2008-11-18 15:30:44 +0100 fs r263778 : migrate the CWS from CVS to SVN the CVS changes contained in this change set are the ones between the following two CVS tags: CWS_DEV300_RTLCONTROLS_ANCHOR CWS_DEV300_RTLCONTROLS_PRE_MIGRATION 2008-11-18 12:29:04 +0100 ama r263762 : Fix #i94572#: Context direction for drawing objects 2008-11-18 12:25:50 +0100 ama r263761 : Fix #i94572#: Context direction for drawing objects 2008-11-18 12:02:30 +0100 ama r263759 : Fix #i94572#: Context direction for drawing objects
2008-12-16 13:30:53 +00:00
aKeepAlive.clear();
}
// -----------------------------------------------------------------------------
// XComponent
void SAL_CALL ODatabaseDocument::dispose( ) throw (RuntimeException)
{
::cppu::WeakComponentImplHelperBase::dispose();
}
// -----------------------------------------------------------------------------
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
void SAL_CALL ODatabaseDocument::addEventListener( const Reference< lang::XEventListener >& _xListener ) throw (RuntimeException)
{
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
::cppu::WeakComponentImplHelperBase::addEventListener( _xListener );
}
// -----------------------------------------------------------------------------
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
void SAL_CALL ODatabaseDocument::removeEventListener( const Reference< lang::XEventListener >& _xListener ) throw (RuntimeException)
{
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
::cppu::WeakComponentImplHelperBase::removeEventListener( _xListener );
}
// XServiceInfo
//------------------------------------------------------------------------------
rtl::OUString ODatabaseDocument::getImplementationName( ) throw(RuntimeException)
{
return getImplementationName_static();
}
//------------------------------------------------------------------------------
rtl::OUString ODatabaseDocument::getImplementationName_static( ) throw(RuntimeException)
{
return rtl::OUString::createFromAscii("com.sun.star.comp.dba.ODatabaseDocument");
}
//------------------------------------------------------------------------------
Sequence< ::rtl::OUString > ODatabaseDocument::getSupportedServiceNames( ) throw (RuntimeException)
{
return getSupportedServiceNames_static();
}
//------------------------------------------------------------------------------
Reference< XInterface > ODatabaseDocument::Create( const Reference< XComponentContext >& _rxContext )
{
::comphelper::ComponentContext aContext( _rxContext );
Reference< XUnoTunnel > xDBContextTunnel( aContext.createComponent( (::rtl::OUString)SERVICE_SDB_DATABASECONTEXT ), UNO_QUERY_THROW );
ODatabaseContext* pContext = reinterpret_cast< ODatabaseContext* >( xDBContextTunnel->getSomething( ODatabaseContext::getUnoTunnelImplementationId() ) );
::rtl::Reference<ODatabaseModelImpl> pImpl( new ODatabaseModelImpl( aContext.getLegacyServiceFactory(), *pContext ) );
2008-10-16 06:57:26 +00:00
Reference< XModel > xModel( pImpl->createNewModel_deliverOwnership( false ) );
return xModel.get();
}
//------------------------------------------------------------------------------
Sequence< ::rtl::OUString > ODatabaseDocument::getSupportedServiceNames_static( ) throw (RuntimeException)
{
Sequence< ::rtl::OUString > aSNS( 2 );
aSNS[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdb.OfficeDatabaseDocument"));
aSNS[1] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.document.OfficeDocument"));
return aSNS;
}
//------------------------------------------------------------------------------
sal_Bool ODatabaseDocument::supportsService( const ::rtl::OUString& _rServiceName ) throw (RuntimeException)
{
return ::comphelper::findValue(getSupportedServiceNames(), _rServiceName, sal_True).getLength() != 0;
}
// -----------------------------------------------------------------------------
Reference< XDataSource > SAL_CALL ODatabaseDocument::getDataSource() throw (RuntimeException)
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this, DocumentGuard::MethodWithoutInit );
return m_pImpl->getOrCreateDataSource();
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::loadFromStorage( const Reference< XStorage >& /*xStorage*/, const Sequence< PropertyValue >& /*aMediaDescriptor*/ ) throw (IllegalArgumentException, DoubleInitializationException, IOException, Exception, RuntimeException)
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
throw Exception(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Embedding of database documents is not supported." ) ),
// TODO: resource
*this
);
}
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::storeToStorage( const Reference< XStorage >& _rxStorage, const Sequence< PropertyValue >& _rMediaDescriptor ) throw (IllegalArgumentException, IOException, Exception, RuntimeException)
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
impl_storeToStorage_throw( _rxStorage, _rMediaDescriptor, aGuard );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
}
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::switchToStorage( const Reference< XStorage >& _rxNewRootStorage ) throw (IllegalArgumentException, IOException, Exception, RuntimeException)
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
Reference< XStorage > xNewRootStorage( m_pImpl->switchToStorage( _rxNewRootStorage ) );
aGuard.clear();
impl_notifyStorageChange_nolck_nothrow( xNewRootStorage );
}
// -----------------------------------------------------------------------------
Reference< XStorage > SAL_CALL ODatabaseDocument::getDocumentStorage( ) throw (IOException, Exception, RuntimeException)
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
return m_pImpl->getOrCreateRootStorage();
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
}
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::addStorageChangeListener( const Reference< XStorageChangeListener >& _Listener ) throw (RuntimeException)
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
m_aStorageListeners.addInterface( _Listener );
}
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::removeStorageChangeListener( const Reference< XStorageChangeListener >& _Listener ) throw (RuntimeException)
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
m_aStorageListeners.addInterface( _Listener );
}
// -----------------------------------------------------------------------------
Reference< XStorageBasedLibraryContainer > SAL_CALL ODatabaseDocument::getBasicLibraries() throw (RuntimeException)
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this, DocumentGuard::MethodUsedDuringInit );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
return m_pImpl->getLibraryContainer( true );
}
// -----------------------------------------------------------------------------
Reference< XStorageBasedLibraryContainer > SAL_CALL ODatabaseDocument::getDialogLibraries() throw (RuntimeException)
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
return m_pImpl->getLibraryContainer( false );
}
// -----------------------------------------------------------------------------
::sal_Bool SAL_CALL ODatabaseDocument::getAllowMacroExecution() throw (RuntimeException)
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
return m_pImpl->adjustMacroMode_AutoReject();
}
// -----------------------------------------------------------------------------
Reference< XEmbeddedScripts > SAL_CALL ODatabaseDocument::getScriptContainer() throw (RuntimeException)
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
return this;
}
// -----------------------------------------------------------------------------
Reference< provider::XScriptProvider > SAL_CALL ODatabaseDocument::getScriptProvider( ) throw (RuntimeException)
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
Reference< XScriptProvider > xScriptProvider( m_xScriptProvider );
if ( !xScriptProvider.is() )
{
Reference < XScriptProviderFactory > xFactory(
m_pImpl->m_aContext.getSingleton( "com.sun.star.script.provider.theMasterScriptProviderFactory" ), UNO_QUERY_THROW );
Any aScriptProviderContext;
if ( m_bAllowDocumentScripting )
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
aScriptProviderContext <<= Reference< XModel >( this );
xScriptProvider.set( xFactory->createScriptProvider( aScriptProviderContext ), UNO_SET_THROW );
m_xScriptProvider = xScriptProvider;
}
return xScriptProvider;
}
2008-10-16 06:57:26 +00:00
// -----------------------------------------------------------------------------
Reference< XNameReplace > SAL_CALL ODatabaseDocument::getEvents( ) throw (RuntimeException)
{
DocumentGuard aGuard( *this, DocumentGuard::MethodUsedDuringInit );
return m_pEventContainer;
}
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::disposing( const ::com::sun::star::lang::EventObject& Source ) throw(RuntimeException)
{
if ( m_pImpl.is() )
m_pImpl->disposing(Source);
}
//------------------------------------------------------------------
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
Reference< XInterface > ODatabaseDocument::getThis() const
{
INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED 2008/02/26 14:05:34 fs 1.36.2.16: additional comment 2008/02/26 14:07:44 fs 1.36.2.15.2.2: additional comment 2008/02/14 12:18:07 fs 1.36.2.15.2.1: #i49133# re-enable the macros in DBDocs, which had been temporarily disable to finalize CWS odbmacros2 2008/02/14 08:36:45 fs 1.36.2.15: typo 2008/02/14 08:22:19 fs 1.36.2.14: temporarily disable scripting support for database documents, so we have an intermediate version of the CWS which we can integrate 2008/02/06 21:43:37 fs 1.36.2.13: some less ModifyLocks 2008/02/06 08:33:02 fs 1.36.2.12: #i49133# when we have an interaction handler, then use it when storing the document fails 2008/02/04 13:07:08 fs 1.36.2.11: RESYNC: (1.36-1.37); FILE MERGED 2008/01/26 21:18:31 fs 1.36.2.10: slight code re-arrangement 2008/01/24 10:06:42 fs 1.36.2.9: #i49133# don't support XEmbeddedScripts and XScriptInvocationContext if we already have forms/reports with macros 2008/01/02 21:29:39 fs 1.36.2.8: #i49133# let the DatabaODatabaseModelImpl be an XModifyListener at the document storage (via ::sfx2::DocumentStorageModifyListener) 2007/12/17 12:41:39 fs 1.36.2.7: #i49133# implement XScriptInvocationContext 2007/12/10 14:16:39 fs 1.36.2.6: #i49133# cache the script provider as weak ref, sounds cheaper 2007/12/10 14:03:09 fs 1.36.2.5: #i49133# implement XScriptProviderSupplier 2007/12/10 08:04:12 fs 1.36.2.4: recognize (and properly handle) empty salvage URLs 2007/12/06 20:34:30 fs 1.36.2.3: impl_storeAs_throw: don't expect an existing storage 2007/12/06 20:17:16 fs 1.36.2.2: impl_storeAs_throw: don't expect an existing storage 2007/12/06 13:32:54 fs 1.36.2.1: #i49133# support Script/DialogLibraryContainers in database documents, implement XEmbeddedScripts/XStorageBasedDocument
2008-03-06 16:58:17 +00:00
return *const_cast< ODatabaseDocument* >( this );
}
// -----------------------------------------------------------------------------
struct CreateAny : public ::std::unary_function< Reference<XController>, Any>
{
Any operator() (const Reference<XController>& lhs) const
{
return makeAny(lhs);
}
};
// XModel2
Reference< XEnumeration > SAL_CALL ODatabaseDocument::getControllers( ) throw (RuntimeException)
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
uno::Sequence< Any> aController( m_aControllers.size() );
::std::transform( m_aControllers.begin(), m_aControllers.end(), aController.getArray(), CreateAny() );
return new ::comphelper::OAnyEnumeration(aController);
}
// -----------------------------------------------------------------------------
Sequence< ::rtl::OUString > SAL_CALL ODatabaseDocument::getAvailableViewControllerNames( ) throw (RuntimeException)
{
Sequence< ::rtl::OUString > aNames(1);
aNames[0] = SERVICE_SDB_APPLICATIONCONTROLLER;
return aNames;
}
// -----------------------------------------------------------------------------
Reference< XController2 > SAL_CALL ODatabaseDocument::createDefaultViewController( const Reference< XFrame >& _Frame ) throw (IllegalArgumentException, Exception, RuntimeException)
{
return createViewController(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Default" ) ),
Sequence< PropertyValue >(),
_Frame
);
}
// -----------------------------------------------------------------------------
Reference< XController2 > SAL_CALL ODatabaseDocument::createViewController( const ::rtl::OUString& _ViewName, const Sequence< PropertyValue >& _Arguments, const Reference< XFrame >& _Frame ) throw (IllegalArgumentException, Exception, RuntimeException)
{
if ( !_ViewName.equalsAscii( "Default" ) && !_ViewName.equalsAscii( "Preview" ) )
throw IllegalArgumentException( ::rtl::OUString(), *this, 1 );
if ( !_Frame.is() )
throw IllegalArgumentException( ::rtl::OUString(), *this, 3 );
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
::comphelper::ComponentContext aContext( m_pImpl->m_aContext );
aGuard.clear();
Reference< XController2 > xController;
aContext.createComponent( "org.openoffice.comp.dbu.OApplicationController", xController );
::comphelper::NamedValueCollection aInitArgs( _Arguments );
aInitArgs.put( "Frame", _Frame );
if ( _ViewName.equalsAscii( "Preview" ) )
aInitArgs.put( "Preview", sal_Bool( sal_True ) );
Reference< XInitialization > xInitController( xController, UNO_QUERY_THROW );
xInitController->initialize( aInitArgs.getWrappedPropertyValues() );
return xController;
}
// -----------------------------------------------------------------------------
//=============================================================================
2008-04-08 11:46:07 +00:00
Reference< XTitle > ODatabaseDocument::impl_getTitleHelper_throw()
{
if ( ! m_xTitleHelper.is ())
{
2008-04-08 11:46:07 +00:00
Reference< XUntitledNumbers > xDesktop(
m_pImpl->m_aContext.createComponent( "com.sun.star.frame.Desktop" ),
UNO_QUERY_THROW );
uno::Reference< frame::XModel > xThis (getThis(), uno::UNO_QUERY_THROW);
2008-04-08 11:46:07 +00:00
::framework::TitleHelper* pHelper = new ::framework::TitleHelper(m_pImpl->m_aContext.getLegacyServiceFactory());
m_xTitleHelper.set(static_cast< ::cppu::OWeakObject* >(pHelper), uno::UNO_QUERY_THROW);
pHelper->setOwner (xThis );
pHelper->connectWithUntitledNumbers (xDesktop);
}
return m_xTitleHelper;
}
//=============================================================================
uno::Reference< frame::XUntitledNumbers > ODatabaseDocument::impl_getUntitledHelper_throw(const uno::Reference< uno::XInterface >& _xComponent)
{
if ( !m_xModuleManager.is() )
2008-04-08 11:46:07 +00:00
m_xModuleManager.set( m_pImpl->m_aContext.createComponent( "com.sun.star.frame.ModuleManager" ), UNO_QUERY_THROW );
::rtl::OUString sModuleId;
try
{
sModuleId = m_xModuleManager->identify( _xComponent );
}
catch(uno::Exception)
{
// ni
}
uno::Reference< frame::XUntitledNumbers > xNumberedControllers;
TNumberedController::iterator aFind = m_aNumberedControllers.find(sModuleId);
if ( aFind == m_aNumberedControllers.end() )
{
uno::Reference< frame::XModel > xThis(static_cast< frame::XModel* >(this), uno::UNO_QUERY_THROW);
::comphelper::NumberedCollection* pHelper = new ::comphelper::NumberedCollection();
xNumberedControllers.set(static_cast< ::cppu::OWeakObject* >(pHelper), uno::UNO_QUERY_THROW);
pHelper->setOwner (xThis);
//pHelper->setUntitledPrefix (::rtl::OUString::createFromAscii(" : "));
m_aNumberedControllers.insert(TNumberedController::value_type(sModuleId,xNumberedControllers));
}
else
xNumberedControllers = aFind->second;
return xNumberedControllers;
}
//=============================================================================
// css.frame.XTitle
::rtl::OUString SAL_CALL ODatabaseDocument::getTitle()
throw (uno::RuntimeException)
{
// SYNCHRONIZED ->
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this, DocumentGuard::MethodUsedDuringInit );
return impl_getTitleHelper_throw()->getTitle();
}
//=============================================================================
// css.frame.XTitle
void SAL_CALL ODatabaseDocument::setTitle( const ::rtl::OUString& sTitle )
throw (uno::RuntimeException)
{
// SYNCHRONIZED ->
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
impl_getTitleHelper_throw()->setTitle( sTitle );
m_aEventNotifier.notifyDocumentEventAsync( "OnTitleChanged" );
// <- SYNCHRONIZED
}
//=============================================================================
// css.frame.XTitleChangeBroadcaster
void SAL_CALL ODatabaseDocument::addTitleChangeListener( const uno::Reference< frame::XTitleChangeListener >& xListener )
throw (uno::RuntimeException)
{
// SYNCHRONIZED ->
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
2008-10-16 06:57:26 +00:00
uno::Reference< frame::XTitleChangeBroadcaster > xBroadcaster( impl_getTitleHelper_throw(), uno::UNO_QUERY_THROW );
xBroadcaster->addTitleChangeListener( xListener );
}
//=============================================================================
// css.frame.XTitleChangeBroadcaster
void SAL_CALL ODatabaseDocument::removeTitleChangeListener( const uno::Reference< frame::XTitleChangeListener >& xListener )
throw (uno::RuntimeException)
{
// SYNCHRONIZED ->
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
2008-10-16 06:57:26 +00:00
uno::Reference< frame::XTitleChangeBroadcaster > xBroadcaster( impl_getTitleHelper_throw(), uno::UNO_QUERY_THROW );
xBroadcaster->removeTitleChangeListener( xListener );
}
//=============================================================================
// css.frame.XUntitledNumbers
::sal_Int32 SAL_CALL ODatabaseDocument::leaseNumber( const uno::Reference< uno::XInterface >& xComponent )
throw (lang::IllegalArgumentException,
uno::RuntimeException )
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
return impl_getUntitledHelper_throw(xComponent)->leaseNumber (xComponent);
}
//=============================================================================
// css.frame.XUntitledNumbers
void SAL_CALL ODatabaseDocument::releaseNumber( ::sal_Int32 nNumber )
throw (lang::IllegalArgumentException,
uno::RuntimeException )
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
impl_getUntitledHelper_throw()->releaseNumber (nNumber);
}
//=============================================================================
// css.frame.XUntitledNumbers
void SAL_CALL ODatabaseDocument::releaseNumberForComponent( const uno::Reference< uno::XInterface >& xComponent )
throw (lang::IllegalArgumentException,
uno::RuntimeException )
{
2008-10-16 06:57:26 +00:00
DocumentGuard aGuard( *this );
impl_getUntitledHelper_throw(xComponent)->releaseNumberForComponent (xComponent);
}
//=============================================================================
// css.frame.XUntitledNumbers
::rtl::OUString SAL_CALL ODatabaseDocument::getUntitledPrefix() throw (uno::RuntimeException)
{
return ::rtl::OUString();/*RTL_CONSTASCII_USTRINGPARAM(" : "));*/
}
//------------------------------------------------------------------
INTEGRATION: CWS insight01 (1.1.2); FILE ADDED 2004/07/16 10:25:35 oj 1.1.2.28: close listener -> frame 2004/07/09 13:05:51 oj 1.1.2.27: #i24598# ongoind work 2004/07/09 12:46:12 oj 1.1.2.26: #i24598# ongoind work 2004/07/02 10:04:49 oj 1.1.2.25: #i30226# add controller, model behavior 2004/06/04 11:38:01 oj 1.1.2.24: use inputsteam if available 2004/06/03 08:49:35 oj 1.1.2.23: merge to m40 2004/06/02 07:44:21 oj 1.1.2.22: embedded api change 2004/05/25 11:34:07 oj 1.1.2.21: first check if the own storage is available, when not throw exception 2004/05/06 06:23:29 oj 1.1.2.20: #i12497# allow to append ASC, DESC to index creation 2004/05/05 07:03:04 oj 1.1.2.19: #i28638# make use of the status indicator in the media descriptor 2004/04/13 06:35:09 oj 1.1.2.18: ongoing work 2004/04/01 13:18:06 oj 1.1.2.17: saveas corrected 2004/04/01 08:56:05 oj 1.1.2.16: set mimetype 2004/03/31 10:03:37 oj 1.1.2.15: correct storage handling 2004/03/30 12:54:42 oj 1.1.2.14: share storage 2004/03/12 11:55:20 oj 1.1.2.13: #111075# implement commit 2004/03/11 09:06:21 oj 1.1.2.12: #111075# changes for closing 2004/03/05 07:13:14 oj 1.1.2.11: #111090# changes for the new prop dialogs 2004/02/26 11:37:23 oj 1.1.2.10: #i24171# correct saveas mechanism 2004/02/23 14:50:19 oj 1.1.2.9: #111075# set the document context 2004/02/12 16:16:02 oj 1.1.2.8: #111075# fix refcount problem 2004/01/22 14:22:39 oj 1.1.2.7: #i24598# parent handling changed 2004/01/21 13:09:23 oj 1.1.2.6: #111075# ongoing work 2003/12/17 09:46:41 oj 1.1.2.5: #111075# ongoing work 2003/11/26 12:14:30 oj 1.1.2.4: #111075# ongoing work 2003/11/17 09:39:09 oj 1.1.2.3: #111075# ongoning work 2003/11/05 11:36:22 oj 1.1.2.2: #111075# ongoing work 2003/10/24 06:22:53 oj 1.1.2.1: #i21643# initial revision of the import filter
2004-08-02 14:09:11 +00:00
//........................................................................
} // namespace dbaccess
//........................................................................