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

1231 lines
48 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
/*************************************************************************
*
* 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 $
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
*
* $Revision: 1.32 $
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
*
* last change: $Author: ihi $ $Date: 2007-04-16 16:23:47 $
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
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.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
*
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2005 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
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 library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
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 library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
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 along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
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"
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
#ifndef _DBA_COREDATAACCESS_DATASOURCE_HXX_
#include "datasource.hxx"
#endif
#ifndef _DBA_COREDATAACCESS_DATABASEDOCUMENT_HXX_
#include "databasedocument.hxx"
#endif
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
#ifndef DBACCESS_SHARED_DBASTRINGS_HRC
#include "dbastrings.hrc"
#endif
#include <comphelper/documentconstants.hxx>
#include <comphelper/enumhelper.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
#ifndef _COM_SUN_STAR_EMBED_XTRANSACTEDOBJECT_HPP_
#include <com/sun/star/embed/XTransactedObject.hpp>
#endif
#ifndef _COM_SUN_STAR_IO_XACTIVEDATASOURCE_HPP_
#include <com/sun/star/io/XActiveDataSource.hpp>
#endif
#ifndef _COM_SUN_STAR_IO_XSEEKABLE_HPP_
#include <com/sun/star/io/XSeekable.hpp>
#endif
#ifndef _COM_SUN_STAR_TASK_XSTATUSINDICATOR_HPP_
#include <com/sun/star/task/XStatusIndicator.hpp>
#endif
#ifndef _COM_SUN_STAR_TASK_XSTATUSINDICATORFACTORY_HPP_
#include <com/sun/star/task/XStatusIndicatorFactory.hpp>
#endif
#ifndef _COM_SUN_STAR_DOCUMENT_XEXPORTER_HPP_
#include <com/sun/star/document/XExporter.hpp>
#endif
#ifndef _COM_SUN_STAR_DOCUMENT_XFILTER_HPP_
#include <com/sun/star/document/XFilter.hpp>
#endif
#ifndef _COM_SUN_STAR_TASK_ERRORCODEIOEXCEPTION_HPP_
#include <com/sun/star/task/ErrorCodeIOException.hpp>
#endif
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
#ifndef _COM_SUN_STAR_XML_SAX_XDOCUMENTHANDLER_HPP_
#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
#endif
#ifndef _DBA_COREDATAACCESS_DOCUMENTCONTAINER_HXX_
#include "documentcontainer.hxx"
#endif
#ifndef _DBA_COREDATAACCESS_DATABASECONTEXT_HXX_
#include "databasecontext.hxx"
#endif
#ifndef _URLOBJ_HXX
#include <tools/urlobj.hxx>
#endif
#ifndef _ERRCODE_HXX
#include <tools/errcode.hxx>
#endif
#ifndef _COMPHELPER_MEDIADESCRIPTOR_HXX_
#include <comphelper/mediadescriptor.hxx>
#endif
#ifndef _COM_SUN_STAR_UI_XUICONFIGURATIONSTORAGE_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
#endif
#ifndef _COM_SUN_STAR_EMBED_XTRANSACTIONBROADCASTER_HPP_
#include <com/sun/star/embed/XTransactionBroadcaster.hpp>
#endif
#ifndef _COM_SUN_STAR_EMBED_XEMBEDPERSIST_HPP_
#include <com/sun/star/embed/XEmbedPersist.hpp>
#endif
#ifndef _COM_SUN_STAR_EMBED_ENTRYINITMODES_HPP_
#include <com/sun/star/embed/EntryInitModes.hpp>
#endif
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
#ifndef _COM_SUN_STAR_VIEW_XSELECTIONSUPPLIER_HPP_
#include <com/sun/star/view/XSelectionSupplier.hpp>
#endif
#ifndef _COM_SUN_STAR_DOCUMENT_XIMPORTER_HPP_
#include <com/sun/star/document/XImporter.hpp>
#endif
#ifndef _TOOLS_DEBUG_HXX
#include <tools/debug.hxx>
#endif
#ifndef _CPPUHELPER_EXC_HLP_HXX_
#include <cppuhelper/exc_hlp.hxx>
#endif
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
#ifndef BOOST_BIND_HPP_INCLUDED
#include <boost/bind.hpp>
#endif
namespace css = ::com::sun::star;
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;
using namespace ::cppu;
using namespace ::osl;
namespace css = ::com::sun::star;
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
{
//........................................................................
//============================================================
//= ODatabaseContext
//============================================================
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 OMultiInstanceAutoRegistration< 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
}
//--------------------------------------------------------------------------
Reference< XInterface > ODatabaseDocument_CreateInstance(const Reference< XMultiServiceFactory >& _rxFactory)
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
{
ODatabaseContext* pContext = NULL;
try
{
Reference<XUnoTunnel> xUnoTunnel(_rxFactory->createInstance(SERVICE_SDB_DATABASECONTEXT),UNO_QUERY);
if ( xUnoTunnel.is() )
pContext = reinterpret_cast<ODatabaseContext*>(xUnoTunnel->getSomething(ODatabaseContext::getUnoTunnelImplementationId()));
}
catch(Exception)
{
}
::rtl::Reference<ODatabaseModelImpl> pImpl(new ODatabaseModelImpl(_rxFactory));
pImpl->m_pDBContext = pContext;
Reference< XModel > xModel( pImpl->createNewModel_deliverOwnership() );
return xModel.get();
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() )
,m_aDocEventListeners( getMutex() )
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 );
}
osl_decrementInterlockedCount( &m_refCount );
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()
{
DBG_DTOR(ODatabaseDocument,NULL);
if ( !ODatabaseDocument_OfficeDocument::rBHelper.bInDispose && !ODatabaseDocument_OfficeDocument::rBHelper.bDisposed )
{
acquire();
dispose();
}
}
// -----------------------------------------------------------------------------
// local functions
// -----------------------------------------------------------------------------
void lcl_stripLoadArguments( ::comphelper::MediaDescriptor& _rDescriptor, Sequence< PropertyValue >& _rArgs )
{
_rDescriptor.erase( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "StatusIndicator" ) ) );
_rDescriptor.erase( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "InteractionHandler" ) ) );
_rDescriptor.erase( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Model" ) ) );
_rDescriptor >> _rArgs;
}
// -----------------------------------------------------------------------------
void lcl_extractAndStartStatusIndicator( const ::comphelper::MediaDescriptor& _rDescriptor, Reference< XStatusIndicator >& _rxStatusIndicator,
Sequence< Any >& _rCallArgs )
{
try
{
_rxStatusIndicator = _rDescriptor.getUnpackedValueOrDefault( _rDescriptor.PROP_STATUSINDICATOR(), _rxStatusIndicator );
if ( _rxStatusIndicator.is() )
{
_rxStatusIndicator->start( ::rtl::OUString(), (sal_Int32)1000000 );
sal_Int32 nLength = _rCallArgs.getLength();
_rCallArgs.realloc( nLength + 1 );
_rCallArgs[ nLength ] <<= _rxStatusIndicator;
}
}
catch( const Exception& )
{
OSL_ENSURE( sal_False, "lcl_extractAndStartStatusIndicator: caught an 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
// -----------------------------------------------------------------------------
// XModel
// ATTENTION: The Application controller attaches the same resource to force a reload.
sal_Bool SAL_CALL ODatabaseDocument::attachResource( const ::rtl::OUString& _rURL, const Sequence< PropertyValue >& _aArguments ) 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
{
ModelMethodGuard aGuard( *this );
OSL_ENSURE(m_pImpl.is(),"Impl is NULL");
try
{
m_pImpl->clearConnections();
m_pImpl->disposeStorages();
if ( m_pImpl->m_bOwnStorage )
::comphelper::disposeComponent(m_pImpl->m_xStorage);
clearObjectContainer( m_xForms);
clearObjectContainer( m_xReports);
clearObjectContainer( m_pImpl->m_xTableDefinitions);
clearObjectContainer( m_pImpl->m_xCommandDefinitions);
m_pImpl->m_aContainer.clear();
m_pImpl->lateInit();
}
catch(const Exception&)
{
m_pImpl->m_xStorage = NULL;
}
m_pImpl->m_bDocumentReadOnly = sal_False;
::comphelper::MediaDescriptor aDescriptor( _aArguments );
lcl_stripLoadArguments( aDescriptor, m_pImpl->m_aArgs );
m_pImpl->m_sFileURL = _rURL;
m_pImpl->m_sRealFileURL = aDescriptor.getUnpackedValueOrDefault(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "SalvagedFile" ) ), _rURL );
if ( !m_pImpl->m_sRealFileURL.getLength() )
m_pImpl->m_sRealFileURL = m_pImpl->m_sFileURL;
if ( !m_pImpl->m_sName.getLength() )
m_pImpl->m_sName = m_pImpl->m_sRealFileURL;
m_pImpl->getStorage();
try
{
Sequence<Any> aFilterArgs;
Reference<XStatusIndicator> xStatusIndicator;
lcl_extractAndStartStatusIndicator( aDescriptor, xStatusIndicator, aFilterArgs );
Reference<XImporter> xImporter(
m_pImpl->m_xServiceFactory->createInstanceWithArguments(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.sdb.DBFilter" ) ),
aFilterArgs
),
UNO_QUERY
);
if ( xImporter.is() )
{
Reference<XComponent> xComponent(*this,UNO_QUERY);
xImporter->setTargetDocument(xComponent);
Reference<XFilter> xFilter(xImporter,UNO_QUERY);
xFilter->filter(_aArguments);
if ( xStatusIndicator.is() )
xStatusIndicator->end();
}
else
return sal_False;
}
catch(const RuntimeException& e)
{
throw e;
}
catch(const Exception&)
{
return sal_False;
}
if ( m_pImpl->m_pDBContext && m_pImpl->m_sRealFileURL.getLength() )
{
m_pImpl->m_pDBContext->registerPrivate(m_pImpl->m_sRealFileURL,m_pImpl);
m_pImpl->setModified(sal_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
return sal_True;
}
// -----------------------------------------------------------------------------
::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
{
ModelMethodGuard aGuard( *this );
OSL_ENSURE(m_pImpl.is(),"Impl is NULL");
return m_pImpl->m_sRealFileURL;
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
{
ModelMethodGuard aGuard( *this );
OSL_ENSURE(m_pImpl.is(),"Impl is NULL");
return m_pImpl->m_aArgs;
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
{
ModelMethodGuard aGuard( *this );
OSL_ENSURE(m_pImpl.is(),"Impl is NULL");
m_pImpl->m_aControllers.push_back(_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
}
// -----------------------------------------------------------------------------
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
{
ModelMethodGuard aGuard( *this );
OSL_ENSURE(m_pImpl.is(),"Impl is NULL");
ControllerArray::iterator pos = ::std::find( m_pImpl->m_aControllers.begin(), m_pImpl->m_aControllers.end(), _xController );
OSL_ENSURE( pos != m_pImpl->m_aControllers.end(), "ODatabaseDocument::disconnectController: don't know this controller!" );
if ( pos != m_pImpl->m_aControllers.end() )
m_pImpl->m_aControllers.erase( pos );
if ( m_pImpl->m_xCurrentController == _xController )
m_pImpl->m_xCurrentController = NULL;
if ( m_pImpl->m_aControllers.empty() )
{
// 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
}
// -----------------------------------------------------------------------------
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
{
ModelMethodGuard aGuard( *this );
OSL_ENSURE(m_pImpl.is(),"Impl is NULL");
++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
}
// -----------------------------------------------------------------------------
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
{
ModelMethodGuard aGuard( *this );
OSL_ENSURE(m_pImpl.is(),"Impl is NULL");
--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
}
// -----------------------------------------------------------------------------
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
{
ModelMethodGuard aGuard( *this );
OSL_ENSURE(m_pImpl.is(),"Impl is NULL");
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
}
// -----------------------------------------------------------------------------
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
{
ModelMethodGuard aGuard( *this );
OSL_ENSURE(m_pImpl.is(),"Impl is NULL");
return m_pImpl->m_xCurrentController.is() ? m_pImpl->m_xCurrentController : ( m_pImpl->m_aControllers.empty() ? Reference< XController >() : *m_pImpl->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
}
// -----------------------------------------------------------------------------
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
{
ModelMethodGuard aGuard( *this );
OSL_ENSURE(m_pImpl.is(),"Impl is NULL");
m_pImpl->m_xCurrentController = _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
{
ModelMethodGuard aGuard( *this );
OSL_ENSURE(m_pImpl.is(),"Impl is NULL");
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
{
ModelMethodGuard aGuard( *this );
OSL_ENSURE(m_pImpl.is(),"Impl is NULL");
return m_pImpl->m_sRealFileURL.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
{
ModelMethodGuard aGuard( *this );
OSL_ENSURE(m_pImpl.is(),"Impl is NULL");
return m_pImpl->m_sRealFileURL;
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
{
ModelMethodGuard aGuard( *this );
OSL_ENSURE(m_pImpl.is(),"Impl is NULL");
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
{
ModelMethodGuard aGuard( *this );
OSL_ENSURE(m_pImpl.is(),"Impl is NULL");
if ( m_pImpl->m_sFileURL == m_pImpl->m_sRealFileURL )
store( m_pImpl->m_sFileURL, m_pImpl->m_aArgs );
else
storeAsURL( m_pImpl->m_sRealFileURL, m_pImpl->m_aArgs );
impl_notifyEvent( "OnSaveDone", 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
}
// -----------------------------------------------------------------------------
void ODatabaseDocument::store(const ::rtl::OUString& _rURL
,const Sequence< PropertyValue >& _rArguments)
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(m_pImpl.is(),"Impl is NULL");
if ( 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
throw IOException();
m_pImpl->commitStorages();
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> xMyStorage = m_pImpl->getStorage();
OSL_ENSURE( xMyStorage.is(), "ODatabaseDocument::storeToURL: no own storage?" );
if ( !xMyStorage.is() )
{
IOException aError;
aError.Message = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Internal error: no source storage available." ) );
aError.Context = *this;
throw IOException( aError );
}
writeStorage(_rURL,_rArguments,xMyStorage);
m_pImpl->commitRootStorage();
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
setModified(sal_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
}
// -----------------------------------------------------------------------------
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
{
ModelMethodGuard aGuard( *this );
OSL_ENSURE(m_pImpl.is(),"Impl is NULL");
Reference< XSingleServiceFactory > xStorageFactory( m_pImpl->createStorageFactory() );
if ( !xStorageFactory.is() )
throw RuntimeException();
// don't use _rURL - we might be recovering/salvaging a file currently ...
// #i45314# / 2005-03-21 / frank.schoenheit@sun.com
::comphelper::MediaDescriptor aDescriptor( _rArguments );
sal_Bool bLocationChanged = ( _rURL != m_pImpl->m_sFileURL );
if ( bLocationChanged )
{
Sequence<Any> aParam(2);
aParam[0] <<= _rURL;
aParam[1] <<= ElementModes::READWRITE | ElementModes::TRUNCATE;
Reference<XStorage> xStorage;
::rtl::OUString sOriginalExceptionType;
::rtl::OUString sOriginalExceptionMessage;
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
{
xStorage.set(xStorageFactory->createInstanceWithArguments( aParam ),UNO_QUERY);
}
catch ( const Exception& e )
{
Any aException( ::cppu::getCaughtException() );
sOriginalExceptionType = aException.getValueTypeName();
sOriginalExceptionMessage = e.Message;
}
if ( !xStorage.is() )
{
// TODO: localize this
::rtl::OUString sMessage = ::rtl::OUString::createFromAscii( "Could not store the database document to '" );
sMessage += _rURL;
sMessage += ::rtl::OUString::createFromAscii( "'." );
if ( sOriginalExceptionMessage.getLength() )
{
sMessage += ::rtl::OUString::createFromAscii( "\noriginal error message: " );
sMessage += sOriginalExceptionMessage;
}
if ( sOriginalExceptionType.getLength() )
{
sMessage += ::rtl::OUString::createFromAscii( "\noriginal error type: " );
sMessage += sOriginalExceptionType;
}
throw IOException( sMessage, *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_pImpl->isEmbeddedDatabase() )
m_pImpl->clearConnections();
m_pImpl->commitEmbeddedStorage();
Reference<XStorage> xMyStorage = m_pImpl->getStorage();
if ( xMyStorage.is() )
{
m_pImpl->commitStorages();
xMyStorage->copyToStorage( xStorage );
}
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_pImpl->disposeStorages();
m_pImpl->m_xStorage = xStorage;
if ( m_pImpl->m_bOwnStorage )
::comphelper::disposeComponent(xMyStorage);
else
m_pImpl->m_bOwnStorage = 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
m_pImpl->m_bDocumentReadOnly = sal_False;
if ( _rURL != m_pImpl->m_sRealFileURL )
{
if ( m_pImpl->m_pDBContext )
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_pImpl->m_sRealFileURL.getLength() )
m_pImpl->m_pDBContext->nameChangePrivate(m_pImpl->m_sRealFileURL,_rURL);
else
m_pImpl->m_pDBContext->registerPrivate(_rURL,m_pImpl);
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
}
INetURLObject aURL( _rURL );
if( aURL.GetProtocol() != INET_PROT_NOT_VALID )
m_pImpl->m_sName = _rURL;
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_pImpl->m_sRealFileURL = m_pImpl->m_sFileURL = _rURL;
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
}
lcl_stripLoadArguments( aDescriptor, m_pImpl->m_aArgs );
store(m_pImpl->m_sFileURL,_rArguments);
impl_notifyEvent( "OnSaveAsDone", 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 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::storeToURL( 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
{
ModelMethodGuard aGuard( *this );
OSL_ENSURE(m_pImpl.is(),"Impl is NULL");
Reference< XSingleServiceFactory > xStorageFactory( m_pImpl->createStorageFactory() );
Sequence<Any> aParam(2);
aParam[0] <<= _rURL;
aParam[1] <<= ElementModes::READWRITE | ElementModes::TRUNCATE;
Reference<XStorage> xStorage;
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 ( xStorageFactory.is() )
xStorage = xStorage.query( xStorageFactory->createInstanceWithArguments( aParam ) );
OSL_ENSURE( xStorage.is(), "ODatabaseDocument::storeToURL: no storage factory!" );
if ( !xStorage.is() )
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
{
IOException aError;
aError.Message = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Could not create a target storage." ) );
aError.Context = *this;
throw IOException( aError );
}
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> xMyStorage = m_pImpl->getStorage();
OSL_ENSURE( xMyStorage.is(), "ODatabaseDocument::storeToURL: no own storage?" );
if ( !xMyStorage.is() )
{
IOException aError;
aError.Message = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Internal error: no source storage available." ) );
aError.Context = *this;
throw IOException( aError );
}
m_pImpl->commitEmbeddedStorage();
xMyStorage->copyToStorage( xStorage );
writeStorage(_rURL,_rArguments,xStorage);
try
{
Reference<XTransactedObject> xTransact(xStorage,UNO_QUERY);
if ( xTransact.is() )
xTransact->commit();
}
catch(Exception)
{
OSL_ENSURE(0,"Exception Caught: Could not store database!");
throw IOException();
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
{
::connectivity::checkDisposed(ODatabaseDocument_OfficeDocument::rBHelper.bDisposed);
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);
}
// -----------------------------------------------------------------------------
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
{
::connectivity::checkDisposed(ODatabaseDocument_OfficeDocument::rBHelper.bDisposed);
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);
}
// -----------------------------------------------------------------------------
// 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
{
ModelMethodGuard aGuard( *this );
OSL_ENSURE(m_pImpl.is(),"Impl is NULL");
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
}
// -----------------------------------------------------------------------------
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
{
ModelMethodGuard aGuard( *this );
if ( m_pImpl->m_bModified == _bModified )
return;
m_pImpl->m_bModified = _bModified;
lang::EventObject aEvt( *this );
aGuard.clear();
m_aModifyListeners.notifyEach( &XModifyListener::modified, aEvt );
aGuard.reset();
impl_notifyEvent( "OnModifyChanged", 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
}
// ::com::sun::star::document::XEventBroadcaster
void SAL_CALL ODatabaseDocument::addEventListener(const css::uno::Reference< css::document::XEventListener >& _xListener ) throw (css::uno::RuntimeException)
{
::connectivity::checkDisposed(ODatabaseDocument_OfficeDocument::rBHelper.bDisposed);
m_aDocEventListeners.addInterface(_xListener);
}
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::removeEventListener( const css::uno::Reference< css::document::XEventListener >& _xListener ) throw (css::uno::RuntimeException)
{
::connectivity::checkDisposed(ODatabaseDocument_OfficeDocument::rBHelper.bDisposed);
m_aDocEventListeners.removeInterface(_xListener);
}
// -----------------------------------------------------------------------------
// ::com::sun::star::document::XEventListener
void SAL_CALL ODatabaseDocument::notifyEvent( const css::document::EventObject& aEvent ) throw (css::uno::RuntimeException)
{
ModelMethodGuard aGuard( *this );
// used only to forward external events (e.g. for doc creation) from the frame loader
// to the global event broadcaster and all other interested doc event listener.
impl_notifyEvent( aEvent.EventName, 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
// ::com::sun::star::view::XPrintable
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 >();
}
// -----------------------------------------------------------------------------
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
}
// -----------------------------------------------------------------------------
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
}
// -----------------------------------------------------------------------------
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 )
{
ModelMethodGuard aGuard( *this );
OSL_POSTCOND( m_pImpl.is(), "ODatabaseDocument::impl_getDocumentContainer_throw: Impl is NULL" );
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() )
{
if ( !m_pImpl->m_aContainer[ _eType ].get() )
{
m_pImpl->m_aContainer[ _eType ] = TContentPtr( new ODefinitionContainer_Impl );
m_pImpl->m_aContainer[ _eType ]->m_pDataSource = m_pImpl.get();
m_pImpl->m_aContainer[ _eType ]->m_aProps.aTitle = ::rtl::OUString::createFromAscii( bFormsContainer ? "forms" : "reports" );
}
rContainerRef = xContainer = new ODocumentContainer( m_pImpl->m_xServiceFactory, *this, m_pImpl->m_aContainer[ _eType ], bFormsContainer );
impl_reparent_nothrow( xContainer );
}
return xContainer;
}
// -----------------------------------------------------------------------------
void ODatabaseDocument::impl_closeControllerFrames( 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
{
::std::vector< Reference< XController> > aCopy = m_pImpl->m_aControllers;
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
::std::vector< Reference< XController> >::iterator aIter = aCopy.begin();
::std::vector< Reference< XController> >::iterator aEnd = aCopy.end();
for ( ;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() )
{
try
{
Reference< XCloseable> xFrame( (*aIter)->getFrame(), UNO_QUERY );
if ( xFrame.is() )
xFrame->close( _bDeliverOwnership );
}
catch( const CloseVetoException& ) { throw; }
catch( const Exception& )
{
OSL_ENSURE( sal_False, "ODatabaseDocument::impl_closeControllerFrames: caught an unexpected 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
}
}
}
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::close( sal_Bool _bDeliverOwnership ) throw (::com::sun::star::util::CloseVetoException, RuntimeException)
{
ModelMethodGuard aGuard( *this );
lang::EventObject aEvent( *this );
{
aGuard.clear();
m_aCloseListener.forEach< XCloseListener >(
boost::bind( &XCloseListener::queryClosing, _1, boost::cref( aEvent ), boost::cref( _bDeliverOwnership ) ) );
aGuard.reset();
}
impl_closeControllerFrames( _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
{
aGuard.clear();
m_aCloseListener.notifyEach( &XCloseListener::notifyClosing, aEvent );
aGuard.reset();
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
}
dispose();
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
{
::connectivity::checkDisposed(ODatabaseDocument_OfficeDocument::rBHelper.bDisposed);
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
{
::connectivity::checkDisposed(ODatabaseDocument_OfficeDocument::rBHelper.bDisposed);
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
{
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
{
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
}
// -----------------------------------------------------------------------------
sal_Bool ODatabaseDocument::WriteThroughComponent(
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
const Reference<XComponent> & xComponent,
const sal_Char* pStreamName,
const sal_Char* pServiceName,
const Sequence<Any> & rArguments,
const Sequence<PropertyValue> & rMediaDesc,
sal_Bool bPlainStream
,const Reference<XStorage>& _xStorageToSaveTo)
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( NULL != pStreamName, "Need stream name!" );
OSL_ENSURE( NULL != pServiceName, "Need service name!" );
Reference<XStorage> xMyStorage = _xStorageToSaveTo;
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 );
Reference<XStream> xStream = xMyStorage->openStreamElement( sStreamName,ElementModes::READWRITE | ElementModes::TRUNCATE );
if ( !xStream.is() )
return sal_False;
Reference<XOutputStream> xOutputStream = xStream->getOutputStream();
OSL_ENSURE(xOutputStream.is(), "Can't create output stream in package!");
if ( ! xOutputStream.is() )
return sal_False;
Reference<XPropertySet> xStreamProp(xOutputStream,UNO_QUERY);
OSL_ENSURE(xStreamProp.is(),"No valid preoperty set for the output stream!");
Reference<XSeekable> xSeek(xStreamProp,UNO_QUERY);
if ( xSeek.is() )
{
OSL_TRACE("Length of stream %i",(int)xSeek->getPosition());
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
xSeek->seek(0);
}
String aPropName( String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM("MediaType") ) );
::rtl::OUString aMime( RTL_CONSTASCII_USTRINGPARAM("text/xml") );
Any aAny;
aAny <<= aMime;
xStreamProp->setPropertyValue( aPropName, aAny );
if( bPlainStream )
{
sal_Bool bFalse = sal_False;
aAny.setValue( &bFalse, ::getBooleanCppuType() );
xStreamProp->setPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Compressed") ), aAny );
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
{
sal_Bool bTrue = sal_True;
aAny.setValue( &bTrue, ::getBooleanCppuType() );
xStreamProp->setPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Encrypted") ), aAny );
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
}
// set buffer and create outputstream
// write the stuff
sal_Bool bRet = WriteThroughComponent(
xOutputStream, xComponent,
pServiceName, rArguments, rMediaDesc );
// finally, commit stream.
return bRet;
}
sal_Bool ODatabaseDocument::WriteThroughComponent(
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
const Reference<XOutputStream> & xOutputStream,
const Reference<XComponent> & xComponent,
const sal_Char* pServiceName,
const Sequence<Any> & rArguments,
const Sequence<PropertyValue> & 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
{
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
Reference< XActiveDataSource > xSaxWriter(
m_pImpl->m_xServiceFactory->createInstance(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.sax.Writer"))),
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
UNO_QUERY );
OSL_ENSURE( xSaxWriter.is(), "can't instantiate XML com.sun.star.xml.sax.Writer" );
if(!xSaxWriter.is())
return sal_False;
// connect XML writer to output stream
xSaxWriter->setOutputStream( xOutputStream );
// prepare arguments (prepend doc handler to given arguments)
Reference<XDocumentHandler> xDocHandler( xSaxWriter,UNO_QUERY);
Sequence<Any> aArgs( 1 + rArguments.getLength() );
aArgs[0] <<= xDocHandler;
for(sal_Int32 i = 0; i < rArguments.getLength(); i++)
aArgs[i+1] = rArguments[i];
// get filter component
Reference< XExporter > xExporter(
m_pImpl->m_xServiceFactory->createInstanceWithArguments(
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::createFromAscii(pServiceName), aArgs), UNO_QUERY);
OSL_ENSURE( xExporter.is(),
"can't instantiate export filter component" );
if( !xExporter.is() )
return sal_False;
// connect model and filter
xExporter->setSourceDocument( xComponent );
// filter!
Reference<XFilter> xFilter( xExporter, UNO_QUERY );
return xFilter->filter( rMediaDesc );
}
// -----------------------------------------------------------------------------
void ODatabaseDocument::writeStorage(const ::rtl::OUString& _rURL
,const Sequence< PropertyValue >& _rArguments
,const Reference<XStorage>& _xStorageToSaveTo)
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
{
// create XStatusIndicator
Reference<XStatusIndicator> xStatusIndicator;
Sequence< Any > aDelegatorArguments;
::comphelper::MediaDescriptor aDescriptor( _rArguments );
lcl_extractAndStartStatusIndicator( aDescriptor, xStatusIndicator, 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
// properties
Sequence < PropertyValue > aProps( _rURL.getLength() ? 1 : 0 );
if( _rURL.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
{
PropertyValue *pProps = aProps.getArray();
pProps->Name = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("FileName") );
(pProps++)->Value <<= _rURL;
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
}
// export sub streams for package, else full stream into a file
sal_Bool bWarn = sal_False, bErr = sal_False;
String sWarnFile, sErrFile;
Reference<XPropertySet> xProp(_xStorageToSaveTo,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 ( xProp.is() )
{
static const ::rtl::OUString sPropName = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("MediaType"));
Any aAny;
aAny <<= 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
xProp->setPropertyValue( sPropName, aAny );
}
Reference<XComponent> xCom(static_cast<OWeakObject*>(this),UNO_QUERY);
if( !bErr )
{
if( !WriteThroughComponent(
xCom, "settings.xml",
"com.sun.star.comp.sdb.XMLSettingsExporter",
aDelegatorArguments, aProps, sal_True,_xStorageToSaveTo ) )
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( !bWarn )
{
bWarn = sal_True;
sWarnFile = String( RTL_CONSTASCII_STRINGPARAM("settings.xml"),
RTL_TEXTENCODING_ASCII_US );
}
}
}
if ( !bErr )
{
if( !WriteThroughComponent(
xCom, "content.xml",
"com.sun.star.comp.sdb.DBExportFilter",
aDelegatorArguments, aProps, sal_True,_xStorageToSaveTo ) )
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
{
bErr = sal_True;
sErrFile = String( RTL_CONSTASCII_STRINGPARAM("content.xml"),
RTL_TEXTENCODING_ASCII_US );
}
}
if ( xStatusIndicator.is() )
xStatusIndicator->end();
}
// -----------------------------------------------------------------------------
Reference< ::com::sun::star::ui::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
{
ModelMethodGuard aGuard( *this );
OSL_ENSURE(m_pImpl.is(),"Impl is NULL");
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() )
{
m_xUIConfigurationManager = Reference< ::com::sun::star::ui::XUIConfigurationManager >(
m_pImpl->m_xServiceFactory->createInstance(
::rtl::OUString::createFromAscii( "com.sun.star.ui.UIConfigurationManager" )),
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
UNO_QUERY );
Reference< ::com::sun::star::ui::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 aMediaTypeProp( RTL_CONSTASCII_USTRINGPARAM( "MediaType" ));
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( aMediaTypeProp );
if ( !( a >>= aMediaType ) || ( aMediaType.getLength() == 0 ))
{
a <<= aUIConfigMediaType;
xPropSet->setPropertyValue( aMediaTypeProp, a );
}
}
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
{
ModelMethodGuard 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
}
// -----------------------------------------------------------------------------
void ODatabaseDocument::impl_notifyEvent( const ::rtl::OUString& _sEventName, ::osl::ClearableMutexGuard& _rGuard )
{
try
{
css::document::EventObject aEvt(*this, _sEventName);
_rGuard.clear();
m_aDocEventListeners.notifyEach( &css::document::XEventListener::notifyEvent, aEvt );
}
catch(Exception&)
{
}
}
//------------------------------------------------------------------------------
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;
}
DBG_ASSERT( m_pImpl->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
Reference< XModel > xHoldAlive( this );
{
{
::osl::ClearableMutexGuard aGuard( getMutex() );
impl_notifyEvent( "OnUnload", aGuard );
}
css::lang::EventObject aDisposeEvent(static_cast<XWeak*>(this));
m_aModifyListeners.disposeAndClear( aDisposeEvent );
m_aCloseListener.disposeAndClear( aDisposeEvent );
m_aDocEventListeners.disposeAndClear( aDisposeEvent );
m_xUIConfigurationManager = NULL;
clearObjectContainer( m_xForms);
clearObjectContainer( m_xReports);
m_pImpl->modelIsDisposing( ODatabaseModelImpl::ResetModelAccess() );
// now, at the latest, the controller array should be empty. Controllers are
// expected to listen for our disposal, and disconnect then
DBG_ASSERT( m_pImpl->m_aControllers.empty(), "ODatabaseDocument::disposing: there still are controllers!" );
}
m_pImpl.clear();
}
// -----------------------------------------------------------------------------
// XComponent
void SAL_CALL ODatabaseDocument::dispose( ) throw (RuntimeException)
{
::cppu::WeakComponentImplHelperBase::dispose();
}
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::addEventListener( const Reference< css::lang::XEventListener >& _xListener ) throw (RuntimeException)
{
::cppu::WeakComponentImplHelperBase::addEventListener(_xListener);
}
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::removeEventListener( const Reference< css::lang::XEventListener >& _xListener ) throw (RuntimeException)
{
::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< XMultiServiceFactory >& _rxFactory)
{
return ODatabaseDocument_CreateInstance(_rxFactory);
}
//------------------------------------------------------------------------------
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)
{
ModelMethodGuard aGuard( *this );
OSL_ENSURE(m_pImpl.is(),"Impl is NULL");
return m_pImpl->getDataSource();
}
// -----------------------------------------------------------------------------
void SAL_CALL ODatabaseDocument::disposing( const ::com::sun::star::lang::EventObject& Source ) throw(RuntimeException)
{
if ( m_pImpl.is() )
m_pImpl->disposing(Source);
}
//------------------------------------------------------------------
Reference< XInterface > ODatabaseDocument::getThis()
{
return *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)
{
ModelMethodGuard aGuard( *this );
uno::Sequence< Any> aController(m_pImpl->m_aControllers.size());
::std::transform(m_pImpl->m_aControllers.begin(),m_pImpl->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< XController > SAL_CALL ODatabaseDocument::createDefaultViewController( const Reference< XFrame >& /*Frame*/, Reference< ::com::sun::star::awt::XWindow >& /*ComponentWindow*/ ) throw (IllegalArgumentException, Exception, RuntimeException)
{
return Reference< XController >();
}
// -----------------------------------------------------------------------------
Reference< XController > SAL_CALL ODatabaseDocument::createViewController( const ::rtl::OUString& /*ViewName*/, const Sequence< PropertyValue >& /*Arguments*/, const Reference< XFrame >& /*Frame*/, Reference< ::com::sun::star::awt::XWindow >& /*ComponentWindow*/ ) throw (IllegalArgumentException, Exception, RuntimeException)
{
return Reference< 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
//........................................................................
} // namespace dbaccess
//........................................................................