1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: owriteablestream.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _WRITESTREAM_HXX_
32 #define _WRITESTREAM_HXX_
34 #include <com/sun/star/io/XInputStream.hpp>
35 #include <com/sun/star/io/XOutputStream.hpp>
36 #include <com/sun/star/io/XStream.hpp>
37 #include <com/sun/star/io/XSeekable.hpp>
38 #include <com/sun/star/io/XTruncate.hpp>
39 #include <com/sun/star/packages/XDataSinkEncrSupport.hpp>
40 #include <com/sun/star/packages/NoEncryptionException.hpp>
41 #include <com/sun/star/lang/XEventListener.hpp>
42 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
43 #include <com/sun/star/lang/XComponent.hpp>
44 #include <com/sun/star/embed/XEncryptionProtectedSource.hpp>
45 #include <com/sun/star/embed/XStorage.hpp>
46 #include <com/sun/star/embed/XRelationshipAccess.hpp>
47 #include <com/sun/star/embed/XExtendedStorageStream.hpp>
48 #include <com/sun/star/embed/XTransactedObject.hpp>
49 #include <com/sun/star/embed/XTransactionBroadcaster.hpp>
50 #include <com/sun/star/container/XNameContainer.hpp>
51 #include <com/sun/star/beans/StringPair.hpp>
52 #include <com/sun/star/logging/XSimpleLogRing.hpp>
55 #include <cppuhelper/implbase1.hxx>
56 #include <cppuhelper/weak.hxx>
57 #include <cppuhelper/interfacecontainer.h>
61 #include "ocompinstream.hxx"
62 #include "mutexholder.hxx"
65 struct PreCreationStruct
67 SotMutexHolderRef m_rMutexRef
;
70 : m_rMutexRef( new SotMutexHolder
)
76 class OTypeCollection
;
80 void StaticAddLog( const ::rtl::OUString
& aMessage
);
81 ::com::sun::star::uno::Sequence
< sal_Int8
> MakeKeyFromPass( const ::rtl::OUString
& aPass
, sal_Bool bUseUTF
);
84 struct WSInternalData_Impl
86 SotMutexHolderRef m_rSharedMutexRef
;
87 ::cppu::OTypeCollection
* m_pTypeCollection
;
88 ::cppu::OMultiTypeInterfaceContainerHelper m_aListenersContainer
; // list of listeners
89 sal_Int16 m_nStorageType
;
91 // the mutex reference MUST NOT be empty
92 WSInternalData_Impl( const SotMutexHolderRef rMutexRef
, sal_Int16 nStorageType
)
93 : m_rSharedMutexRef( rMutexRef
)
94 , m_pTypeCollection( NULL
)
95 , m_aListenersContainer( rMutexRef
->GetMutex() )
96 , m_nStorageType( nStorageType
)
100 typedef ::std::list
< OInputCompStream
* > InputStreamsList_Impl
;
102 struct OStorage_Impl
;
105 struct OWriteStream_Impl
: public PreCreationStruct
107 friend struct OStorage_Impl
;
108 friend class OWriteStream
;
109 friend class OInputCompStream
;
111 OWriteStream
* m_pAntiImpl
;
112 ::rtl::OUString m_aTempURL
;
114 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
> m_xCacheStream
;
115 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XSeekable
> m_xCacheSeek
;
117 InputStreamsList_Impl m_aInputStreamsList
;
119 sal_Bool m_bHasDataToFlush
; // only modified elements will be sent to the original content
120 sal_Bool m_bFlushed
; // sending the streams is coordinated by the root storage of the package
122 ::com::sun::star::uno::Reference
< ::com::sun::star::packages::XDataSinkEncrSupport
> m_xPackageStream
;
123 ::com::sun::star::uno::Reference
< ::com::sun::star::logging::XSimpleLogRing
> m_xLogRing
;
125 ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
> m_xFactory
;
127 OStorage_Impl
* m_pParent
;
129 ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
> m_aProps
;
131 sal_Bool m_bForceEncrypted
;
133 sal_Bool m_bUseCommonPass
;
134 sal_Bool m_bHasCachedPassword
;
135 ::rtl::OUString m_aPass
;
137 sal_Bool m_bCompressedSetExplicit
;
139 ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XSingleServiceFactory
> m_xPackage
;
141 sal_Bool m_bHasInsertedStreamOptimization
;
143 sal_Int16 m_nStorageType
;
145 // Relations info related data, stored in *.rels file in OFOPXML format
146 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XInputStream
> m_xOrigRelInfoStream
;
147 ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::StringPair
> > m_aOrigRelInfo
;
148 sal_Bool m_bOrigRelInfoBroken
;
150 ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::StringPair
> > m_aNewRelInfo
;
151 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XInputStream
> m_xNewRelInfoStream
;
152 sal_Int16 m_nRelInfoStatus
;
157 ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
> GetServiceFactory();
159 ::rtl::OUString
GetFilledTempFileIfNo( const ::com::sun::star::uno::Reference
< ::com::sun::star::io::XInputStream
>& xStream
);
160 ::rtl::OUString
FillTempGetFileName();
161 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
> GetTempFileAsStream();
162 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XInputStream
> GetTempFileAsInputStream();
164 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
> GetStream_Impl( sal_Int32 nStreamMode
,
165 sal_Bool bHierarchyAccess
);
167 ::rtl::OUString
GetCommonRootPass() throw ( ::com::sun::star::packages::NoEncryptionException
);
169 ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
> ReadPackageStreamProperties();
170 ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
> InsertOwnProps(
171 const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& aProps
,
172 sal_Bool bUseCommonPass
);
176 OStorage_Impl
* pParent
,
177 const ::com::sun::star::uno::Reference
< ::com::sun::star::packages::XDataSinkEncrSupport
>& xPackageStream
,
178 const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XSingleServiceFactory
>& xPackage
,
179 const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& xFactory
,
180 sal_Bool bForceEncrypted
,
181 sal_Int16 nStorageType
,
182 sal_Bool bDefaultCompress
,
183 const ::com::sun::star::uno::Reference
< ::com::sun::star::io::XInputStream
>& xRelInfoStream
=
184 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XInputStream
>() );
186 ~OWriteStream_Impl();
188 void CleanCacheStream();
190 void AddLog( const ::rtl::OUString
& aMessage
);
192 sal_Bool
UsesCommonPass_Impl() { return m_bUseCommonPass
; }
193 sal_Bool
HasTempFile_Impl() { return ( m_aTempURL
.getLength() != 0 ); }
194 sal_Bool
IsTransacted();
196 sal_Bool
HasWriteOwner_Impl() { return ( m_pAntiImpl
!= NULL
); }
198 void InsertIntoPackageFolder(
199 const ::rtl::OUString
& aName
,
200 const ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameContainer
>& xParentPackageFolder
);
202 void SetToBeCommited() { m_bFlushed
= sal_True
; }
204 sal_Bool
HasCachedPassword() { return m_bHasCachedPassword
; }
205 ::rtl::OUString
GetCachedPassword() { return m_aPass
; }
206 sal_Bool
IsModified() { return m_bHasDataToFlush
|| m_bFlushed
; }
208 sal_Bool
IsEncrypted();
210 void SetEncryptedWithPass( const ::rtl::OUString
& aPass
);
212 void DisposeWrappers();
214 void InsertStreamDirectly(
215 const ::com::sun::star::uno::Reference
< ::com::sun::star::io::XInputStream
>& xInStream
,
216 const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& aProps
);
221 void Free( sal_Bool bMust
); // allows to try to disconnect from the temporary stream
222 // in case bMust is set to sal_True the method
223 // will throw exception in case the file is still busy
225 void SetModified(); // can be done only by parent storage after renaming
227 ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
> GetStreamProperties();
229 ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::StringPair
> > GetAllRelationshipsIfAny();
231 void CopyInternallyTo_Impl( const ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
>& xDestStream
,
232 const ::rtl::OUString
& aPass
);
233 void CopyInternallyTo_Impl( const ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
>& xDestStream
);
235 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
> GetStream(
236 sal_Int32 nStreamMode
,
237 const ::rtl::OUString
& aPass
,
238 sal_Bool bHierarchyAccess
);
240 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
> GetStream(
241 sal_Int32 nStreamMode
,
242 sal_Bool bHierarchyAccess
);
245 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XInputStream
> GetRawInStream();
246 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XInputStream
> GetPlainRawInStream();
248 void InputStreamDisposed( OInputCompStream
* pStream
);
250 void CreateReadonlyCopyBasedOnData(
251 const ::com::sun::star::uno::Reference
< ::com::sun::star::io::XInputStream
>& xDataToCopy
,
252 const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& aProps
,
253 sal_Bool bUseCommonPass
,
254 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
>& xTargetStream
);
256 void GetCopyOfLastCommit( ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
>& xTargetStream
);
257 void GetCopyOfLastCommit(
258 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
>& xTargetStream
,
259 const ::rtl::OUString
& aPass
);
262 void CommitStreamRelInfo(
263 const ::com::sun::star::uno::Reference
< ::com::sun::star::embed::XStorage
>& xRelStorage
,
264 const ::rtl::OUString
& aOrigStreamName
,
265 const ::rtl::OUString
& aNewStreamName
);
267 void ReadRelInfoIfNecessary();
269 sal_Int32
GetNewRelId() { return m_nRelId
++; }
272 class OWriteStream
: ::com::sun::star::lang::XTypeProvider
273 , public ::com::sun::star::io::XInputStream
274 , public ::com::sun::star::io::XOutputStream
275 , public ::com::sun::star::embed::XExtendedStorageStream
276 , public ::com::sun::star::io::XSeekable
277 , public ::com::sun::star::io::XTruncate
278 , public ::com::sun::star::embed::XEncryptionProtectedSource
279 , public ::com::sun::star::embed::XRelationshipAccess
280 , public ::com::sun::star::embed::XTransactedObject
281 , public ::com::sun::star::embed::XTransactionBroadcaster
282 , public ::com::sun::star::beans::XPropertySet
283 , public ::cppu::OWeakObject
285 friend struct OWriteStream_Impl
;
288 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XInputStream
> m_xInStream
;
289 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XOutputStream
> m_xOutStream
;
290 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XSeekable
> m_xSeekable
;
292 OWriteStream_Impl
* m_pImpl
;
293 WSInternalData_Impl
* m_pData
;
295 sal_Bool m_bInStreamDisconnected
;
296 sal_Bool m_bInitOnDemand
;
297 sal_Int64 m_nInitPosition
;
299 sal_Bool m_bTransacted
;
301 OWriteStream( OWriteStream_Impl
* pImpl
, sal_Bool bTransacted
);
302 OWriteStream( OWriteStream_Impl
* pImpl
, ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
> xStream
, sal_Bool bTransacted
);
304 void CloseOutput_Impl();
306 void CopyToStreamInternally_Impl( const ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
>& xStream
);
308 void ModifyParentUnlockMutex_Impl( ::osl::ResettableMutexGuard
& aGuard
);
310 void BroadcastTransaction( sal_Int8 nMessage
);
314 virtual ~OWriteStream();
316 void CheckInitOnDemand();
320 virtual ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type
& rType
)
321 throw( ::com::sun::star::uno::RuntimeException
);
322 virtual void SAL_CALL
acquire() throw();
323 virtual void SAL_CALL
release() throw();
326 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Type
> SAL_CALL
getTypes()
327 throw( ::com::sun::star::uno::RuntimeException
);
328 virtual ::com::sun::star::uno::Sequence
< sal_Int8
> SAL_CALL
getImplementationId()
329 throw( ::com::sun::star::uno::RuntimeException
);
332 virtual sal_Int32 SAL_CALL
readBytes( ::com::sun::star::uno::Sequence
< sal_Int8
>& aData
, sal_Int32 nBytesToRead
)
333 throw(::com::sun::star::io::NotConnectedException
, ::com::sun::star::io::BufferSizeExceededException
, ::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
334 virtual sal_Int32 SAL_CALL
readSomeBytes( ::com::sun::star::uno::Sequence
< sal_Int8
>& aData
, sal_Int32 nMaxBytesToRead
) throw(::com::sun::star::io::NotConnectedException
, ::com::sun::star::io::BufferSizeExceededException
, ::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
335 virtual void SAL_CALL
skipBytes( sal_Int32 nBytesToSkip
)
336 throw(::com::sun::star::io::NotConnectedException
, ::com::sun::star::io::BufferSizeExceededException
, ::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
337 virtual sal_Int32 SAL_CALL
available( )
338 throw(::com::sun::star::io::NotConnectedException
, ::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
339 virtual void SAL_CALL
closeInput( )
340 throw(::com::sun::star::io::NotConnectedException
, ::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
343 virtual void SAL_CALL
writeBytes( const ::com::sun::star::uno::Sequence
< sal_Int8
>& aData
) throw (::com::sun::star::io::NotConnectedException
, ::com::sun::star::io::BufferSizeExceededException
, ::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
344 virtual void SAL_CALL
flush( ) throw (::com::sun::star::io::NotConnectedException
, ::com::sun::star::io::BufferSizeExceededException
, ::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
345 virtual void SAL_CALL
closeOutput( ) throw (::com::sun::star::io::NotConnectedException
, ::com::sun::star::io::BufferSizeExceededException
, ::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
348 virtual void SAL_CALL
seek( sal_Int64 location
) throw (::com::sun::star::lang::IllegalArgumentException
, ::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
349 virtual sal_Int64 SAL_CALL
getPosition() throw (::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
350 virtual sal_Int64 SAL_CALL
getLength() throw (::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
353 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::io::XInputStream
> SAL_CALL
getInputStream( ) throw (::com::sun::star::uno::RuntimeException
);
354 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::io::XOutputStream
> SAL_CALL
getOutputStream( ) throw (::com::sun::star::uno::RuntimeException
);
357 virtual void SAL_CALL
truncate() throw (::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
360 virtual void SAL_CALL
dispose() throw (::com::sun::star::uno::RuntimeException
);
361 virtual void SAL_CALL
addEventListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XEventListener
>& xListener
) throw (::com::sun::star::uno::RuntimeException
);
362 virtual void SAL_CALL
removeEventListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XEventListener
>& aListener
) throw (::com::sun::star::uno::RuntimeException
);
364 //XEncryptionProtectedSource
365 virtual void SAL_CALL
setEncryptionPassword( const ::rtl::OUString
& aPass
)
366 throw ( ::com::sun::star::uno::RuntimeException
,
367 ::com::sun::star::io::IOException
);
368 virtual void SAL_CALL
removeEncryption()
369 throw ( ::com::sun::star::uno::RuntimeException
,
370 ::com::sun::star::io::IOException
);
372 //XRelationshipAccess
373 virtual ::sal_Bool SAL_CALL
hasByID( const ::rtl::OUString
& sID
) throw (::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
374 virtual ::rtl::OUString SAL_CALL
getTargetByID( const ::rtl::OUString
& sID
) throw (::com::sun::star::container::NoSuchElementException
, ::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
375 virtual ::rtl::OUString SAL_CALL
getTypeByID( const ::rtl::OUString
& sID
) throw (::com::sun::star::container::NoSuchElementException
, ::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
376 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::StringPair
> SAL_CALL
getRelationshipByID( const ::rtl::OUString
& sID
) throw (::com::sun::star::container::NoSuchElementException
, ::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
377 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::StringPair
> > SAL_CALL
getRelationshipsByType( const ::rtl::OUString
& sType
) throw (::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
378 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::StringPair
> > SAL_CALL
getAllRelationships( ) throw (::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
379 virtual void SAL_CALL
insertRelationshipByID( const ::rtl::OUString
& sID
, const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::StringPair
>& aEntry
, ::sal_Bool bReplace
) throw (::com::sun::star::container::ElementExistException
, ::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
380 virtual void SAL_CALL
removeRelationshipByID( const ::rtl::OUString
& sID
) throw (::com::sun::star::container::NoSuchElementException
, ::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
381 virtual void SAL_CALL
insertRelationships( const ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::StringPair
> >& aEntries
, ::sal_Bool bReplace
) throw (::com::sun::star::container::ElementExistException
, ::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
382 virtual void SAL_CALL
clearRelationships( ) throw (::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
385 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySetInfo
> SAL_CALL
getPropertySetInfo() throw ( ::com::sun::star::uno::RuntimeException
);
386 virtual void SAL_CALL
setPropertyValue( const ::rtl::OUString
& aPropertyName
, const ::com::sun::star::uno::Any
& aValue
) throw ( ::com::sun::star::beans::UnknownPropertyException
, ::com::sun::star::beans::PropertyVetoException
, ::com::sun::star::lang::IllegalArgumentException
, ::com::sun::star::lang::WrappedTargetException
, ::com::sun::star::uno::RuntimeException
);
387 virtual ::com::sun::star::uno::Any SAL_CALL
getPropertyValue( const ::rtl::OUString
& PropertyName
) throw ( ::com::sun::star::beans::UnknownPropertyException
, ::com::sun::star::lang::WrappedTargetException
, ::com::sun::star::uno::RuntimeException
);
388 virtual void SAL_CALL
addPropertyChangeListener( const ::rtl::OUString
& aPropertyName
, const ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertyChangeListener
>& xListener
) throw ( ::com::sun::star::beans::UnknownPropertyException
, ::com::sun::star::lang::WrappedTargetException
, ::com::sun::star::uno::RuntimeException
);
389 virtual void SAL_CALL
removePropertyChangeListener( const ::rtl::OUString
& aPropertyName
, const ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertyChangeListener
>& aListener
) throw ( ::com::sun::star::beans::UnknownPropertyException
, ::com::sun::star::lang::WrappedTargetException
, ::com::sun::star::uno::RuntimeException
);
390 virtual void SAL_CALL
addVetoableChangeListener( const ::rtl::OUString
& PropertyName
, const ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XVetoableChangeListener
>& aListener
) throw ( ::com::sun::star::beans::UnknownPropertyException
, ::com::sun::star::lang::WrappedTargetException
, ::com::sun::star::uno::RuntimeException
);
391 virtual void SAL_CALL
removeVetoableChangeListener( const ::rtl::OUString
& PropertyName
, const ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XVetoableChangeListener
>& aListener
) throw ( ::com::sun::star::beans::UnknownPropertyException
, ::com::sun::star::lang::WrappedTargetException
, ::com::sun::star::uno::RuntimeException
);
394 virtual void SAL_CALL
commit()
395 throw ( ::com::sun::star::io::IOException
,
396 ::com::sun::star::embed::StorageWrappedTargetException
,
397 ::com::sun::star::uno::RuntimeException
);
398 virtual void SAL_CALL
revert()
399 throw ( ::com::sun::star::io::IOException
,
400 ::com::sun::star::embed::StorageWrappedTargetException
,
401 ::com::sun::star::uno::RuntimeException
);
403 // XTransactionBroadcaster
404 virtual void SAL_CALL
addTransactionListener(
405 const ::com::sun::star::uno::Reference
< ::com::sun::star::embed::XTransactionListener
>& aListener
)
406 throw ( ::com::sun::star::uno::RuntimeException
);
407 virtual void SAL_CALL
removeTransactionListener(
408 const ::com::sun::star::uno::Reference
< ::com::sun::star::embed::XTransactionListener
>& aListener
)
409 throw ( ::com::sun::star::uno::RuntimeException
);