diff options
author | Oliver Bolte <obo@openoffice.org> | 2004-05-28 14:17:32 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2004-05-28 14:17:32 +0000 |
commit | a237e16324bba99ee93eeac382e54effdbde3599 (patch) | |
tree | 9bcb630def73b41b5f71746f34fbf3004dcb01d6 /ucb/source/ucp/tdoc/tdoc_storage.hxx | |
parent | 4b50fee3a484234d93aa424c8ef21ed573374885 (diff) |
INTEGRATION: CWS tdocfixes1 (1.2.14); FILE MERGED
2004/05/18 14:52:18 kso 1.2.14.4: #116171# - Adapted to src680 m39 XStorage API changes.
Issue number:
Submitted by:
Reviewed by:
2004/05/18 12:09:43 kso 1.2.14.3: RESYNC: (1.2-1.3); FILE MERGED
2004/05/14 10:22:56 kso 1.2.14.2: #116171# - Value of property "Storage" now always is a clone.
Issue number:
Submitted by:
Reviewed by:
2004/05/12 12:33:12 kso 1.2.14.1: #i27499# - Added support for XActiveDataStreamer to 'open' command.
Issue number:
Submitted by:
Reviewed by:
Diffstat (limited to 'ucb/source/ucp/tdoc/tdoc_storage.hxx')
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_storage.hxx | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/ucb/source/ucp/tdoc/tdoc_storage.hxx b/ucb/source/ucp/tdoc/tdoc_storage.hxx index 9e45cd314fe3..07c6ecc7da2e 100644 --- a/ucb/source/ucp/tdoc/tdoc_storage.hxx +++ b/ucb/source/ucp/tdoc/tdoc_storage.hxx @@ -2,9 +2,9 @@ * * $RCSfile: tdoc_storage.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: hr $ $Date: 2004-05-10 17:40:24 $ + * last change: $Author: obo $ $Date: 2004-05-28 15:17:32 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -74,8 +74,7 @@ namespace tdoc_ucp { enum StorageAccessMode { - READ, // storage might be writable as well - READ_ONLY, // storage must not be writable + READ, // Note: might be writable as well READ_WRITE_NOCREATE, READ_WRITE_CREATE }; @@ -117,13 +116,26 @@ namespace tdoc_ucp { com::sun::star::uno::Reference< com::sun::star::io::XOutputStream > createOutputStream( const rtl::OUString & rUri, - const rtl::OUString & rPassword ) + const rtl::OUString & rPassword, + bool bTruncate ) throw ( com::sun::star::embed::InvalidStorageException, com::sun::star::lang::IllegalArgumentException, com::sun::star::io::IOException, com::sun::star::embed::StorageWrappedTargetException, com::sun::star::packages::WrongPasswordException, com::sun::star::uno::RuntimeException ); + + com::sun::star::uno::Reference< com::sun::star::io::XStream > + createStream( const rtl::OUString & rUri, + const rtl::OUString & rPassword, + bool bTruncate ) + throw ( com::sun::star::embed::InvalidStorageException, + com::sun::star::lang::IllegalArgumentException, + com::sun::star::io::IOException, + com::sun::star::embed::StorageWrappedTargetException, + com::sun::star::packages::WrongPasswordException, + com::sun::star::uno::RuntimeException ); + private: friend class Storage; @@ -154,7 +166,8 @@ namespace tdoc_ucp { com::sun::star::embed::XStorage > & xParentStorage, const rtl::OUString & rPassword, const rtl::OUString & rUri, - StorageAccessMode eMode ) + StorageAccessMode eMode, + bool bTruncate /* ignored for read-only streams */ ) throw ( com::sun::star::embed::InvalidStorageException, com::sun::star::lang::IllegalArgumentException, com::sun::star::io::IOException, |