Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #ifndef INCLUDED_PACKAGE_SOURCE_XSTOR_OWRITEABLESTREAM_HXX
21 : #define INCLUDED_PACKAGE_SOURCE_XSTOR_OWRITEABLESTREAM_HXX
22 :
23 : #include <com/sun/star/io/XInputStream.hpp>
24 : #include <com/sun/star/io/XOutputStream.hpp>
25 : #include <com/sun/star/io/XStream.hpp>
26 : #include <com/sun/star/io/XSeekable.hpp>
27 : #include <com/sun/star/io/XTruncate.hpp>
28 : #include <com/sun/star/packages/XDataSinkEncrSupport.hpp>
29 : #include <com/sun/star/packages/NoEncryptionException.hpp>
30 : #include <com/sun/star/lang/XEventListener.hpp>
31 : #include <com/sun/star/lang/XSingleServiceFactory.hpp>
32 : #include <com/sun/star/lang/XComponent.hpp>
33 : #include <com/sun/star/embed/XEncryptionProtectedSource2.hpp>
34 : #include <com/sun/star/embed/XStorage.hpp>
35 : #include <com/sun/star/embed/XRelationshipAccess.hpp>
36 : #include <com/sun/star/embed/XExtendedStorageStream.hpp>
37 : #include <com/sun/star/embed/XTransactedObject.hpp>
38 : #include <com/sun/star/embed/XTransactionBroadcaster.hpp>
39 : #include <com/sun/star/container/XNameContainer.hpp>
40 : #include <com/sun/star/beans/StringPair.hpp>
41 : #include <com/sun/star/logging/XSimpleLogRing.hpp>
42 :
43 : #include <cppuhelper/implbase1.hxx>
44 : #include <cppuhelper/weak.hxx>
45 : #include <cppuhelper/interfacecontainer.h>
46 :
47 : #include <comphelper/sequenceashashmap.hxx>
48 :
49 : #include <list>
50 :
51 : #include "ocompinstream.hxx"
52 : #include "mutexholder.hxx"
53 :
54 : namespace com { namespace sun { namespace star { namespace uno {
55 : class XComponentContext;
56 : } } } }
57 :
58 89470 : struct PreCreationStruct
59 : {
60 : SotMutexHolderRef m_rMutexRef;
61 :
62 89494 : PreCreationStruct()
63 89494 : : m_rMutexRef( new SotMutexHolder )
64 89494 : {}
65 :
66 : };
67 :
68 : namespace cppu {
69 : class OTypeCollection;
70 : }
71 :
72 : namespace package {
73 : bool PackageEncryptionDatasEqual( const ::comphelper::SequenceAsHashMap& aHash1, const ::comphelper::SequenceAsHashMap& aHash2 );
74 : }
75 :
76 25548 : struct WSInternalData_Impl
77 : {
78 : SotMutexHolderRef m_rSharedMutexRef;
79 : ::cppu::OTypeCollection* m_pTypeCollection;
80 : ::cppu::OMultiTypeInterfaceContainerHelper m_aListenersContainer; // list of listeners
81 : sal_Int32 m_nStorageType;
82 :
83 : // the mutex reference MUST NOT be empty
84 25548 : WSInternalData_Impl( const SotMutexHolderRef rMutexRef, sal_Int32 nStorageType )
85 : : m_rSharedMutexRef( rMutexRef )
86 : , m_pTypeCollection( NULL )
87 25548 : , m_aListenersContainer( rMutexRef->GetMutex() )
88 51096 : , m_nStorageType( nStorageType )
89 25548 : {}
90 : };
91 :
92 : typedef ::std::list< OInputCompStream* > InputStreamsList_Impl;
93 :
94 : struct OStorage_Impl;
95 : class OWriteStream;
96 :
97 : struct OWriteStream_Impl : public PreCreationStruct
98 : {
99 : friend struct OStorage_Impl;
100 : friend class OWriteStream;
101 : friend class OInputCompStream;
102 :
103 : OWriteStream* m_pAntiImpl;
104 : OUString m_aTempURL;
105 :
106 : ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > m_xCacheStream;
107 : ::com::sun::star::uno::Reference< ::com::sun::star::io::XSeekable > m_xCacheSeek;
108 :
109 : InputStreamsList_Impl m_aInputStreamsList;
110 :
111 : bool m_bHasDataToFlush; // only modified elements will be sent to the original content
112 : bool m_bFlushed; // sending the streams is coordinated by the root storage of the package
113 :
114 : ::com::sun::star::uno::Reference< ::com::sun::star::packages::XDataSinkEncrSupport > m_xPackageStream;
115 : ::com::sun::star::uno::Reference< ::com::sun::star::logging::XSimpleLogRing > m_xLogRing;
116 :
117 : ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext;
118 :
119 : OStorage_Impl* m_pParent;
120 :
121 : ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > m_aProps;
122 :
123 : bool m_bForceEncrypted;
124 :
125 : bool m_bUseCommonEncryption;
126 : bool m_bHasCachedEncryptionData;
127 : ::comphelper::SequenceAsHashMap m_aEncryptionData;
128 :
129 : bool m_bCompressedSetExplicit;
130 :
131 : ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > m_xPackage;
132 :
133 : bool m_bHasInsertedStreamOptimization;
134 :
135 : sal_Int32 m_nStorageType;
136 :
137 : // Relations info related data, stored in *.rels file in OFOPXML format
138 : ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > m_xOrigRelInfoStream;
139 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::beans::StringPair > > m_aOrigRelInfo;
140 : bool m_bOrigRelInfoBroken;
141 :
142 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::beans::StringPair > > m_aNewRelInfo;
143 : ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > m_xNewRelInfoStream;
144 : sal_Int16 m_nRelInfoStatus;
145 : sal_Int32 m_nRelId;
146 :
147 : private:
148 : OUString GetFilledTempFileIfNo( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& xStream );
149 : OUString FillTempGetFileName();
150 : ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > GetTempFileAsStream();
151 : ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > GetTempFileAsInputStream();
152 :
153 : ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > GetStream_Impl( sal_Int32 nStreamMode,
154 : bool bHierarchyAccess );
155 :
156 : ::comphelper::SequenceAsHashMap GetCommonRootEncryptionData() throw ( ::com::sun::star::packages::NoEncryptionException );
157 :
158 : ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > ReadPackageStreamProperties();
159 : ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > InsertOwnProps(
160 : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aProps,
161 : bool bUseCommonEncryption );
162 :
163 : public:
164 : OWriteStream_Impl(
165 : OStorage_Impl* pParent,
166 : const ::com::sun::star::uno::Reference< ::com::sun::star::packages::XDataSinkEncrSupport >& xPackageStream,
167 : const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory >& xPackage,
168 : const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext,
169 : bool bForceEncrypted,
170 : sal_Int32 nStorageType,
171 : bool bDefaultCompress,
172 : const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& xRelInfoStream =
173 : ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >() );
174 :
175 : ~OWriteStream_Impl();
176 :
177 : void CleanCacheStream();
178 :
179 : void AddLog( const OUString& aMessage );
180 :
181 4 : bool UsesCommonEncryption_Impl() { return m_bUseCommonEncryption; }
182 4 : bool HasTempFile_Impl() const { return ( m_aTempURL.getLength() != 0 ); }
183 : bool IsTransacted();
184 :
185 0 : bool HasWriteOwner_Impl() const { return ( m_pAntiImpl != NULL ); }
186 :
187 : void InsertIntoPackageFolder(
188 : const OUString& aName,
189 : const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >& xParentPackageFolder );
190 :
191 2 : void SetToBeCommited() { m_bFlushed = true; }
192 :
193 2 : bool HasCachedEncryptionData() { return m_bHasCachedEncryptionData; }
194 0 : ::comphelper::SequenceAsHashMap& GetCachedEncryptionData() { return m_aEncryptionData; }
195 :
196 0 : bool IsModified() { return m_bHasDataToFlush || m_bFlushed; }
197 :
198 : bool IsEncrypted();
199 : void SetDecrypted();
200 : void SetEncrypted( const ::comphelper::SequenceAsHashMap& aEncryptionData );
201 :
202 : void DisposeWrappers();
203 :
204 : void InsertStreamDirectly(
205 : const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& xInStream,
206 : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aProps );
207 :
208 : void Commit();
209 : void Revert();
210 :
211 : void Free( bool bMust ); // allows to try to disconnect from the temporary stream
212 : // in case bMust is set to sal_True the method
213 : // will throw exception in case the file is still busy
214 :
215 : void SetModified(); // can be done only by parent storage after renaming
216 :
217 : ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > GetStreamProperties();
218 :
219 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::beans::StringPair > > GetAllRelationshipsIfAny();
220 :
221 : void CopyInternallyTo_Impl( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xDestStream,
222 : const ::comphelper::SequenceAsHashMap& aEncryptionData );
223 : void CopyInternallyTo_Impl( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xDestStream );
224 :
225 : ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > GetStream(
226 : sal_Int32 nStreamMode,
227 : const ::comphelper::SequenceAsHashMap& aEncryptionData,
228 : bool bHierarchyAccess );
229 :
230 : ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > GetStream(
231 : sal_Int32 nStreamMode,
232 : bool bHierarchyAccess );
233 :
234 : ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > GetRawInStream();
235 : ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > GetPlainRawInStream();
236 :
237 : void InputStreamDisposed( OInputCompStream* pStream );
238 :
239 : void CreateReadonlyCopyBasedOnData(
240 : const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& xDataToCopy,
241 : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aProps,
242 : bool bUseCommonEncryption,
243 : ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xTargetStream );
244 :
245 : void GetCopyOfLastCommit( ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xTargetStream );
246 : void GetCopyOfLastCommit(
247 : ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xTargetStream,
248 : const ::comphelper::SequenceAsHashMap& aEncryptionData );
249 :
250 : void CommitStreamRelInfo(
251 : const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xRelStorage,
252 : const OUString& aOrigStreamName,
253 : const OUString& aNewStreamName );
254 :
255 : void ReadRelInfoIfNecessary();
256 :
257 8264 : sal_Int32 GetNewRelId() { return m_nRelId ++; }
258 : };
259 :
260 : class OWriteStream : ::com::sun::star::lang::XTypeProvider
261 : , public ::com::sun::star::io::XInputStream
262 : , public ::com::sun::star::io::XOutputStream
263 : , public ::com::sun::star::embed::XExtendedStorageStream
264 : , public ::com::sun::star::io::XSeekable
265 : , public ::com::sun::star::io::XTruncate
266 : , public ::com::sun::star::embed::XEncryptionProtectedSource2
267 : , public ::com::sun::star::embed::XRelationshipAccess
268 : , public ::com::sun::star::embed::XTransactedObject
269 : , public ::com::sun::star::embed::XTransactionBroadcaster
270 : , public ::com::sun::star::beans::XPropertySet
271 : , public ::cppu::OWeakObject
272 : {
273 : friend struct OWriteStream_Impl;
274 :
275 : protected:
276 : ::com::sun::star::uno::Reference < ::com::sun::star::io::XInputStream > m_xInStream;
277 : ::com::sun::star::uno::Reference < ::com::sun::star::io::XOutputStream > m_xOutStream;
278 : ::com::sun::star::uno::Reference < ::com::sun::star::io::XSeekable > m_xSeekable;
279 :
280 : OWriteStream_Impl* m_pImpl;
281 : WSInternalData_Impl* m_pData;
282 :
283 : bool m_bInStreamDisconnected;
284 : bool m_bInitOnDemand;
285 : sal_Int64 m_nInitPosition;
286 :
287 : bool m_bTransacted;
288 :
289 : OWriteStream( OWriteStream_Impl* pImpl, bool bTransacted );
290 : OWriteStream( OWriteStream_Impl* pImpl, ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > xStream, bool bTransacted );
291 :
292 : void CloseOutput_Impl();
293 :
294 : void CopyToStreamInternally_Impl( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xStream );
295 :
296 : void ModifyParentUnlockMutex_Impl( ::osl::ResettableMutexGuard& aGuard );
297 :
298 : void BroadcastTransaction( sal_Int8 nMessage );
299 :
300 : public:
301 :
302 : virtual ~OWriteStream();
303 :
304 : void CheckInitOnDemand();
305 : void DeInit();
306 :
307 : // XInterface
308 : virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& rType )
309 : throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
310 : virtual void SAL_CALL acquire() throw() SAL_OVERRIDE;
311 : virtual void SAL_CALL release() throw() SAL_OVERRIDE;
312 :
313 : // XTypeProvider
314 : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes()
315 : throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
316 : virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId()
317 : throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
318 :
319 : // XInputStream
320 : virtual sal_Int32 SAL_CALL readBytes( ::com::sun::star::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead )
321 : throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
322 : 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, std::exception) SAL_OVERRIDE;
323 : virtual void SAL_CALL skipBytes( sal_Int32 nBytesToSkip )
324 : throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
325 : virtual sal_Int32 SAL_CALL available( )
326 : throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
327 : virtual void SAL_CALL closeInput( )
328 : throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
329 :
330 : // XOutputStream
331 : 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, std::exception) SAL_OVERRIDE;
332 : 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, std::exception) SAL_OVERRIDE;
333 : 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, std::exception) SAL_OVERRIDE;
334 :
335 : //XSeekable
336 : virtual void SAL_CALL seek( sal_Int64 location ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
337 : virtual sal_Int64 SAL_CALL getPosition() throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
338 : virtual sal_Int64 SAL_CALL getLength() throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
339 :
340 : //XStream
341 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > SAL_CALL getInputStream( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
342 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream > SAL_CALL getOutputStream( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
343 :
344 : // XTruncate
345 : virtual void SAL_CALL truncate() throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
346 :
347 : //XComponent
348 : virtual void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
349 : virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
350 : virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
351 :
352 : //XEncryptionProtectedSource
353 : virtual void SAL_CALL setEncryptionPassword( const OUString& aPass )
354 : throw ( ::com::sun::star::uno::RuntimeException,
355 : ::com::sun::star::io::IOException, std::exception ) SAL_OVERRIDE;
356 : virtual void SAL_CALL removeEncryption()
357 : throw ( ::com::sun::star::uno::RuntimeException,
358 : ::com::sun::star::io::IOException, std::exception ) SAL_OVERRIDE;
359 :
360 : //XEncryptionProtectedSource2
361 : virtual void SAL_CALL setEncryptionData( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& aEncryptionData ) throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
362 : virtual sal_Bool SAL_CALL hasEncryptionData() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
363 :
364 : //XRelationshipAccess
365 : virtual sal_Bool SAL_CALL hasByID( const OUString& sID ) throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
366 : virtual OUString SAL_CALL getTargetByID( const OUString& sID ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
367 : virtual OUString SAL_CALL getTypeByID( const OUString& sID ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
368 : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::StringPair > SAL_CALL getRelationshipByID( const OUString& sID ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
369 : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::beans::StringPair > > SAL_CALL getRelationshipsByType( const OUString& sType ) throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
370 : 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, std::exception) SAL_OVERRIDE;
371 : virtual void SAL_CALL insertRelationshipByID( const 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, std::exception) SAL_OVERRIDE;
372 : virtual void SAL_CALL removeRelationshipByID( const OUString& sID ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
373 : 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, std::exception) SAL_OVERRIDE;
374 : virtual void SAL_CALL clearRelationships( ) throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
375 :
376 : //XPropertySet
377 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
378 : virtual void SAL_CALL setPropertyValue( const 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, std::exception ) SAL_OVERRIDE;
379 : virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw ( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
380 : virtual void SAL_CALL addPropertyChangeListener( const 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, std::exception ) SAL_OVERRIDE;
381 : virtual void SAL_CALL removePropertyChangeListener( const 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, std::exception ) SAL_OVERRIDE;
382 : virtual void SAL_CALL addVetoableChangeListener( const 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, std::exception ) SAL_OVERRIDE;
383 : virtual void SAL_CALL removeVetoableChangeListener( const 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, std::exception ) SAL_OVERRIDE;
384 :
385 : // XTransactedObject
386 : virtual void SAL_CALL commit()
387 : throw ( ::com::sun::star::io::IOException,
388 : ::com::sun::star::embed::StorageWrappedTargetException,
389 : ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
390 : virtual void SAL_CALL revert()
391 : throw ( ::com::sun::star::io::IOException,
392 : ::com::sun::star::embed::StorageWrappedTargetException,
393 : ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
394 :
395 : // XTransactionBroadcaster
396 : virtual void SAL_CALL addTransactionListener(
397 : const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XTransactionListener >& aListener )
398 : throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
399 : virtual void SAL_CALL removeTransactionListener(
400 : const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XTransactionListener >& aListener )
401 : throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
402 :
403 : };
404 :
405 : #endif
406 :
407 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|