xref: /aoo42x/main/svl/source/fsstor/fsstorage.hxx (revision 39a19a47)
1*39a19a47SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*39a19a47SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*39a19a47SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*39a19a47SAndrew Rist  * distributed with this work for additional information
6*39a19a47SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*39a19a47SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*39a19a47SAndrew Rist  * "License"); you may not use this file except in compliance
9*39a19a47SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*39a19a47SAndrew Rist  *
11*39a19a47SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*39a19a47SAndrew Rist  *
13*39a19a47SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*39a19a47SAndrew Rist  * software distributed under the License is distributed on an
15*39a19a47SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*39a19a47SAndrew Rist  * KIND, either express or implied.  See the License for the
17*39a19a47SAndrew Rist  * specific language governing permissions and limitations
18*39a19a47SAndrew Rist  * under the License.
19*39a19a47SAndrew Rist  *
20*39a19a47SAndrew Rist  *************************************************************/
21*39a19a47SAndrew Rist 
22*39a19a47SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef __XSTORAGE_HXX_
25cdf0e10cSrcweir #define __XSTORAGE_HXX_
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <com/sun/star/uno/Sequence.hxx>
28cdf0e10cSrcweir #include <com/sun/star/embed/XStorage.hpp>
29cdf0e10cSrcweir #include <com/sun/star/embed/XHierarchicalStorageAccess.hpp>
30cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySet.hpp>
31cdf0e10cSrcweir #include <com/sun/star/beans/PropertyValue.hpp>
32cdf0e10cSrcweir #include <com/sun/star/io/XStream.hpp>
33cdf0e10cSrcweir #include <com/sun/star/lang/XSingleServiceFactory.hpp>
34cdf0e10cSrcweir #include <com/sun/star/lang/XMultiServiceFactory.hpp>
35cdf0e10cSrcweir #include <com/sun/star/lang/XTypeProvider.hpp>
36cdf0e10cSrcweir #include <com/sun/star/lang/XComponent.hpp>
37cdf0e10cSrcweir #include <com/sun/star/packages/NoEncryptionException.hpp>
38cdf0e10cSrcweir #include <cppuhelper/weak.hxx>
39cdf0e10cSrcweir #include <cppuhelper/interfacecontainer.h>
40cdf0e10cSrcweir 
41cdf0e10cSrcweir #include <ucbhelper/content.hxx>
42cdf0e10cSrcweir 
43cdf0e10cSrcweir struct FSStorage_Impl;
44cdf0e10cSrcweir class FSStorage	: public ::com::sun::star::lang::XTypeProvider
45cdf0e10cSrcweir 				, public ::com::sun::star::embed::XStorage
46cdf0e10cSrcweir 				, public ::com::sun::star::embed::XHierarchicalStorageAccess
47cdf0e10cSrcweir 				, public ::com::sun::star::beans::XPropertySet
48cdf0e10cSrcweir 				, public ::cppu::OWeakObject
49cdf0e10cSrcweir {
50cdf0e10cSrcweir 	::osl::Mutex m_aMutex;
51cdf0e10cSrcweir 	FSStorage_Impl* m_pImpl;
52cdf0e10cSrcweir 
53cdf0e10cSrcweir protected:
54cdf0e10cSrcweir 
55cdf0e10cSrcweir public:
56cdf0e10cSrcweir 
57cdf0e10cSrcweir 	FSStorage(	const ::ucbhelper::Content& aContent,
58cdf0e10cSrcweir 				sal_Int32 nMode,
59cdf0e10cSrcweir 				::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > xProperties,
60cdf0e10cSrcweir 				::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xFactory );
61cdf0e10cSrcweir 
62cdf0e10cSrcweir 	virtual ~FSStorage();
63cdf0e10cSrcweir 
64cdf0e10cSrcweir 	::ucbhelper::Content* GetContent();
65cdf0e10cSrcweir 
66cdf0e10cSrcweir 	void CopyStreamToSubStream( const ::rtl::OUString& aSourceURL,
67cdf0e10cSrcweir 								const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xDest,
68cdf0e10cSrcweir 								const ::rtl::OUString& aNewEntryName );
69cdf0e10cSrcweir 
70cdf0e10cSrcweir 	void CopyContentToStorage_Impl( ::ucbhelper::Content* pContent,
71cdf0e10cSrcweir 									const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xDest );
72cdf0e10cSrcweir 
73cdf0e10cSrcweir 	static sal_Bool MakeFolderNoUI( const String& rFolder, sal_Bool bNewOnly );
74cdf0e10cSrcweir 
75cdf0e10cSrcweir 	//____________________________________________________________________________________________________
76cdf0e10cSrcweir 	//	XInterface
77cdf0e10cSrcweir 	//____________________________________________________________________________________________________
78cdf0e10cSrcweir 
79cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& rType )
80cdf0e10cSrcweir 		throw( ::com::sun::star::uno::RuntimeException );
81cdf0e10cSrcweir 
82cdf0e10cSrcweir     virtual void SAL_CALL acquire() throw();
83cdf0e10cSrcweir 
84cdf0e10cSrcweir     virtual void SAL_CALL release() throw();
85cdf0e10cSrcweir 
86cdf0e10cSrcweir 	//____________________________________________________________________________________________________
87cdf0e10cSrcweir 	//	XTypeProvider
88cdf0e10cSrcweir 	//____________________________________________________________________________________________________
89cdf0e10cSrcweir 
90cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes()
91cdf0e10cSrcweir 		throw( ::com::sun::star::uno::RuntimeException );
92cdf0e10cSrcweir 
93cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId()
94cdf0e10cSrcweir 		throw( ::com::sun::star::uno::RuntimeException );
95cdf0e10cSrcweir 
96cdf0e10cSrcweir 	//____________________________________________________________________________________________________
97cdf0e10cSrcweir 	//	XStorage
98cdf0e10cSrcweir 	//____________________________________________________________________________________________________
99cdf0e10cSrcweir 
100cdf0e10cSrcweir     virtual void SAL_CALL copyToStorage( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xDest )
101cdf0e10cSrcweir 		throw ( ::com::sun::star::embed::InvalidStorageException,
102cdf0e10cSrcweir 				::com::sun::star::lang::IllegalArgumentException,
103cdf0e10cSrcweir 				::com::sun::star::io::IOException,
104cdf0e10cSrcweir 				::com::sun::star::embed::StorageWrappedTargetException,
105cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
106cdf0e10cSrcweir 
107cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > SAL_CALL openStreamElement(
108cdf0e10cSrcweir 			const ::rtl::OUString& aStreamName, sal_Int32 nOpenMode )
109cdf0e10cSrcweir 		throw ( ::com::sun::star::embed::InvalidStorageException,
110cdf0e10cSrcweir 				::com::sun::star::lang::IllegalArgumentException,
111cdf0e10cSrcweir 				::com::sun::star::packages::WrongPasswordException,
112cdf0e10cSrcweir 				::com::sun::star::io::IOException,
113cdf0e10cSrcweir 				::com::sun::star::embed::StorageWrappedTargetException,
114cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
115cdf0e10cSrcweir 
116cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > SAL_CALL openEncryptedStreamElement(
117cdf0e10cSrcweir 			const ::rtl::OUString& aStreamName, sal_Int32 nOpenMode, const ::rtl::OUString& aPass )
118cdf0e10cSrcweir 		throw ( ::com::sun::star::embed::InvalidStorageException,
119cdf0e10cSrcweir 				::com::sun::star::lang::IllegalArgumentException,
120cdf0e10cSrcweir 				::com::sun::star::packages::NoEncryptionException,
121cdf0e10cSrcweir 				::com::sun::star::packages::WrongPasswordException,
122cdf0e10cSrcweir 				::com::sun::star::io::IOException,
123cdf0e10cSrcweir 				::com::sun::star::embed::StorageWrappedTargetException,
124cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
125cdf0e10cSrcweir 
126cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > SAL_CALL openStorageElement(
127cdf0e10cSrcweir 			const ::rtl::OUString& aStorName, sal_Int32 nStorageMode )
128cdf0e10cSrcweir 		throw ( ::com::sun::star::embed::InvalidStorageException,
129cdf0e10cSrcweir 				::com::sun::star::lang::IllegalArgumentException,
130cdf0e10cSrcweir 				::com::sun::star::io::IOException,
131cdf0e10cSrcweir 				::com::sun::star::embed::StorageWrappedTargetException,
132cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
133cdf0e10cSrcweir 
134cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > SAL_CALL cloneStreamElement(
135cdf0e10cSrcweir 			const ::rtl::OUString& aStreamName )
136cdf0e10cSrcweir 		throw ( ::com::sun::star::embed::InvalidStorageException,
137cdf0e10cSrcweir 				::com::sun::star::lang::IllegalArgumentException,
138cdf0e10cSrcweir 				::com::sun::star::packages::WrongPasswordException,
139cdf0e10cSrcweir 				::com::sun::star::io::IOException,
140cdf0e10cSrcweir 				::com::sun::star::embed::StorageWrappedTargetException,
141cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
142cdf0e10cSrcweir 
143cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > SAL_CALL cloneEncryptedStreamElement(
144cdf0e10cSrcweir 			const ::rtl::OUString& aStreamName, const ::rtl::OUString& aPass )
145cdf0e10cSrcweir 		throw ( ::com::sun::star::embed::InvalidStorageException,
146cdf0e10cSrcweir 				::com::sun::star::lang::IllegalArgumentException,
147cdf0e10cSrcweir 				::com::sun::star::packages::NoEncryptionException,
148cdf0e10cSrcweir 				::com::sun::star::packages::WrongPasswordException,
149cdf0e10cSrcweir 				::com::sun::star::io::IOException,
150cdf0e10cSrcweir 				::com::sun::star::embed::StorageWrappedTargetException,
151cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
152cdf0e10cSrcweir 
153cdf0e10cSrcweir     virtual void SAL_CALL copyLastCommitTo(
154cdf0e10cSrcweir 			const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xTargetStorage )
155cdf0e10cSrcweir 		throw ( ::com::sun::star::embed::InvalidStorageException,
156cdf0e10cSrcweir 				::com::sun::star::lang::IllegalArgumentException,
157cdf0e10cSrcweir 				::com::sun::star::io::IOException,
158cdf0e10cSrcweir 				::com::sun::star::embed::StorageWrappedTargetException,
159cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
160cdf0e10cSrcweir 
161cdf0e10cSrcweir     virtual void SAL_CALL copyStorageElementLastCommitTo(
162cdf0e10cSrcweir 			const ::rtl::OUString& aStorName,
163cdf0e10cSrcweir 			const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xTargetStorage )
164cdf0e10cSrcweir 		throw ( ::com::sun::star::embed::InvalidStorageException,
165cdf0e10cSrcweir 				::com::sun::star::lang::IllegalArgumentException,
166cdf0e10cSrcweir 				::com::sun::star::io::IOException,
167cdf0e10cSrcweir 				::com::sun::star::embed::StorageWrappedTargetException,
168cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
169cdf0e10cSrcweir 
170cdf0e10cSrcweir     virtual sal_Bool SAL_CALL isStreamElement( const ::rtl::OUString& aElementName )
171cdf0e10cSrcweir 		throw ( ::com::sun::star::container::NoSuchElementException,
172cdf0e10cSrcweir 				::com::sun::star::lang::IllegalArgumentException,
173cdf0e10cSrcweir 				::com::sun::star::embed::InvalidStorageException,
174cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
175cdf0e10cSrcweir 
176cdf0e10cSrcweir     virtual sal_Bool SAL_CALL isStorageElement( const ::rtl::OUString& aElementName )
177cdf0e10cSrcweir 		throw ( ::com::sun::star::container::NoSuchElementException,
178cdf0e10cSrcweir 				::com::sun::star::lang::IllegalArgumentException,
179cdf0e10cSrcweir 				::com::sun::star::embed::InvalidStorageException,
180cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
181cdf0e10cSrcweir 
182cdf0e10cSrcweir     virtual void SAL_CALL removeElement( const ::rtl::OUString& aElementName )
183cdf0e10cSrcweir 		throw ( ::com::sun::star::embed::InvalidStorageException,
184cdf0e10cSrcweir 				::com::sun::star::lang::IllegalArgumentException,
185cdf0e10cSrcweir 				::com::sun::star::container::NoSuchElementException,
186cdf0e10cSrcweir 				::com::sun::star::io::IOException,
187cdf0e10cSrcweir 				::com::sun::star::embed::StorageWrappedTargetException,
188cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
189cdf0e10cSrcweir 
190cdf0e10cSrcweir     virtual void SAL_CALL renameElement( const ::rtl::OUString& rEleName, const ::rtl::OUString& rNewName )
191cdf0e10cSrcweir 		throw ( ::com::sun::star::embed::InvalidStorageException,
192cdf0e10cSrcweir 				::com::sun::star::lang::IllegalArgumentException,
193cdf0e10cSrcweir 				::com::sun::star::container::NoSuchElementException,
194cdf0e10cSrcweir 				::com::sun::star::container::ElementExistException,
195cdf0e10cSrcweir 				::com::sun::star::io::IOException,
196cdf0e10cSrcweir 				::com::sun::star::embed::StorageWrappedTargetException,
197cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
198cdf0e10cSrcweir 
199cdf0e10cSrcweir     virtual void SAL_CALL copyElementTo(	const ::rtl::OUString& aElementName,
200cdf0e10cSrcweir 										const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xDest,
201cdf0e10cSrcweir 										const ::rtl::OUString& aNewName )
202cdf0e10cSrcweir 		throw ( ::com::sun::star::embed::InvalidStorageException,
203cdf0e10cSrcweir 				::com::sun::star::lang::IllegalArgumentException,
204cdf0e10cSrcweir 				::com::sun::star::container::NoSuchElementException,
205cdf0e10cSrcweir 				::com::sun::star::container::ElementExistException,
206cdf0e10cSrcweir 				::com::sun::star::io::IOException,
207cdf0e10cSrcweir 				::com::sun::star::embed::StorageWrappedTargetException,
208cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
209cdf0e10cSrcweir 
210cdf0e10cSrcweir     virtual void SAL_CALL moveElementTo(	const ::rtl::OUString& aElementName,
211cdf0e10cSrcweir 										const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xDest,
212cdf0e10cSrcweir 										const ::rtl::OUString& rNewName )
213cdf0e10cSrcweir 		throw ( ::com::sun::star::embed::InvalidStorageException,
214cdf0e10cSrcweir 				::com::sun::star::lang::IllegalArgumentException,
215cdf0e10cSrcweir 				::com::sun::star::container::NoSuchElementException,
216cdf0e10cSrcweir 				::com::sun::star::container::ElementExistException,
217cdf0e10cSrcweir 				::com::sun::star::io::IOException,
218cdf0e10cSrcweir 				::com::sun::star::embed::StorageWrappedTargetException,
219cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
220cdf0e10cSrcweir 
221cdf0e10cSrcweir 	//____________________________________________________________________________________________________
222cdf0e10cSrcweir 	//	XNameAccess
223cdf0e10cSrcweir 	//____________________________________________________________________________________________________
224cdf0e10cSrcweir 
225cdf0e10cSrcweir     virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName )
226cdf0e10cSrcweir 		throw ( ::com::sun::star::container::NoSuchElementException,
227cdf0e10cSrcweir 				::com::sun::star::lang::WrappedTargetException,
228cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
229cdf0e10cSrcweir 
230cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames()
231cdf0e10cSrcweir 		throw ( ::com::sun::star::uno::RuntimeException );
232cdf0e10cSrcweir 
233cdf0e10cSrcweir     virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName )
234cdf0e10cSrcweir 		throw ( ::com::sun::star::uno::RuntimeException );
235cdf0e10cSrcweir 
236cdf0e10cSrcweir     virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
237cdf0e10cSrcweir 		throw ( ::com::sun::star::uno::RuntimeException );
238cdf0e10cSrcweir 
239cdf0e10cSrcweir     virtual sal_Bool SAL_CALL hasElements()
240cdf0e10cSrcweir 		throw ( ::com::sun::star::uno::RuntimeException );
241cdf0e10cSrcweir 
242cdf0e10cSrcweir 	//____________________________________________________________________________________________________
243cdf0e10cSrcweir 	//	XComponent
244cdf0e10cSrcweir 	//____________________________________________________________________________________________________
245cdf0e10cSrcweir 
246cdf0e10cSrcweir     virtual void SAL_CALL dispose()
247cdf0e10cSrcweir 		throw ( ::com::sun::star::uno::RuntimeException );
248cdf0e10cSrcweir 
249cdf0e10cSrcweir     virtual void SAL_CALL addEventListener(
250cdf0e10cSrcweir 			const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener )
251cdf0e10cSrcweir 		throw ( ::com::sun::star::uno::RuntimeException );
252cdf0e10cSrcweir 
253cdf0e10cSrcweir     virtual void SAL_CALL removeEventListener(
254cdf0e10cSrcweir 			const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener )
255cdf0e10cSrcweir 		throw ( ::com::sun::star::uno::RuntimeException );
256cdf0e10cSrcweir 
257cdf0e10cSrcweir 	//____________________________________________________________________________________________________
258cdf0e10cSrcweir 	//	XPropertySet
259cdf0e10cSrcweir 	//____________________________________________________________________________________________________
260cdf0e10cSrcweir 
261cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo()
262cdf0e10cSrcweir 		throw ( ::com::sun::star::uno::RuntimeException );
263cdf0e10cSrcweir 
264cdf0e10cSrcweir     virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue )
265cdf0e10cSrcweir 		throw ( ::com::sun::star::beans::UnknownPropertyException,
266cdf0e10cSrcweir 				::com::sun::star::beans::PropertyVetoException,
267cdf0e10cSrcweir 				::com::sun::star::lang::IllegalArgumentException,
268cdf0e10cSrcweir 				::com::sun::star::lang::WrappedTargetException,
269cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
270cdf0e10cSrcweir 
271cdf0e10cSrcweir     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName )
272cdf0e10cSrcweir 		throw ( ::com::sun::star::beans::UnknownPropertyException,
273cdf0e10cSrcweir 				::com::sun::star::lang::WrappedTargetException,
274cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
275cdf0e10cSrcweir 
276cdf0e10cSrcweir     virtual void SAL_CALL addPropertyChangeListener(
277cdf0e10cSrcweir 			const ::rtl::OUString& aPropertyName,
278cdf0e10cSrcweir 			const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener )
279cdf0e10cSrcweir 		throw ( ::com::sun::star::beans::UnknownPropertyException,
280cdf0e10cSrcweir 				::com::sun::star::lang::WrappedTargetException,
281cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
282cdf0e10cSrcweir 
283cdf0e10cSrcweir     virtual void SAL_CALL removePropertyChangeListener(
284cdf0e10cSrcweir 			const ::rtl::OUString& aPropertyName,
285cdf0e10cSrcweir 			const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener )
286cdf0e10cSrcweir 		throw ( ::com::sun::star::beans::UnknownPropertyException,
287cdf0e10cSrcweir 				::com::sun::star::lang::WrappedTargetException,
288cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
289cdf0e10cSrcweir 
290cdf0e10cSrcweir     virtual void SAL_CALL addVetoableChangeListener(
291cdf0e10cSrcweir 			const ::rtl::OUString& PropertyName,
292cdf0e10cSrcweir 			const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener )
293cdf0e10cSrcweir 		throw ( ::com::sun::star::beans::UnknownPropertyException,
294cdf0e10cSrcweir 				::com::sun::star::lang::WrappedTargetException,
295cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
296cdf0e10cSrcweir 
297cdf0e10cSrcweir     virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener )
298cdf0e10cSrcweir 		throw ( ::com::sun::star::beans::UnknownPropertyException,
299cdf0e10cSrcweir 				::com::sun::star::lang::WrappedTargetException,
300cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
301cdf0e10cSrcweir 
302cdf0e10cSrcweir 	//____________________________________________________________________________________________________
303cdf0e10cSrcweir 	//	XHierarchicalStorageAccess
304cdf0e10cSrcweir 	//____________________________________________________________________________________________________
305cdf0e10cSrcweir 
306cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::embed::XExtendedStorageStream > SAL_CALL openStreamElementByHierarchicalName( const ::rtl::OUString& sStreamPath, ::sal_Int32 nOpenMode )
307cdf0e10cSrcweir 		throw ( ::com::sun::star::embed::InvalidStorageException,
308cdf0e10cSrcweir 				::com::sun::star::lang::IllegalArgumentException,
309cdf0e10cSrcweir 				::com::sun::star::packages::WrongPasswordException,
310cdf0e10cSrcweir 				::com::sun::star::io::IOException,
311cdf0e10cSrcweir 				::com::sun::star::embed::StorageWrappedTargetException,
312cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
313cdf0e10cSrcweir 
314cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::embed::XExtendedStorageStream > SAL_CALL openEncryptedStreamElementByHierarchicalName( const ::rtl::OUString& sStreamName, ::sal_Int32 nOpenMode, const ::rtl::OUString& sPassword )
315cdf0e10cSrcweir 		throw ( ::com::sun::star::embed::InvalidStorageException,
316cdf0e10cSrcweir 				::com::sun::star::lang::IllegalArgumentException,
317cdf0e10cSrcweir 				::com::sun::star::packages::NoEncryptionException,
318cdf0e10cSrcweir 				::com::sun::star::packages::WrongPasswordException,
319cdf0e10cSrcweir 				::com::sun::star::io::IOException,
320cdf0e10cSrcweir 				::com::sun::star::embed::StorageWrappedTargetException,
321cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
322cdf0e10cSrcweir 
323cdf0e10cSrcweir     virtual void SAL_CALL removeStreamElementByHierarchicalName( const ::rtl::OUString& sElementPath )
324cdf0e10cSrcweir 		throw ( ::com::sun::star::embed::InvalidStorageException,
325cdf0e10cSrcweir 				::com::sun::star::lang::IllegalArgumentException,
326cdf0e10cSrcweir 				::com::sun::star::container::NoSuchElementException,
327cdf0e10cSrcweir 				::com::sun::star::io::IOException,
328cdf0e10cSrcweir 				::com::sun::star::embed::StorageWrappedTargetException,
329cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
330cdf0e10cSrcweir };
331cdf0e10cSrcweir 
332cdf0e10cSrcweir #endif
333cdf0e10cSrcweir 
334