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_XSTORAGE_HXX
21 #define INCLUDED_PACKAGE_SOURCE_XSTOR_XSTORAGE_HXX
22
23 #include <com/sun/star/uno/Sequence.hxx>
24 #include <com/sun/star/embed/XStorage2.hpp>
25 #include <com/sun/star/embed/XOptimizedStorage.hpp>
26 #include <com/sun/star/embed/XHierarchicalStorageAccess2.hpp>
27 #include <com/sun/star/embed/XStorageRawAccess.hpp>
28 #include <com/sun/star/embed/XTransactedObject.hpp>
29 #include <com/sun/star/embed/XTransactionBroadcaster.hpp>
30 #include <com/sun/star/embed/XClassifiedObject.hpp>
31 #include <com/sun/star/embed/XEncryptionProtectedStorage.hpp>
32 #include <com/sun/star/embed/XRelationshipAccess.hpp>
33 #include <com/sun/star/util/XModifiable.hpp>
34 #include <com/sun/star/container/XNameAccess.hpp>
35 #include <com/sun/star/container/XNameContainer.hpp>
36 #include <com/sun/star/util/XCloseable.hpp>
37 #include <com/sun/star/beans/XPropertySet.hpp>
38 #include <com/sun/star/beans/PropertyValue.hpp>
39 #include <com/sun/star/beans/StringPair.hpp>
40 #include <com/sun/star/io/XStream.hpp>
41 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
42 #include <com/sun/star/lang/XTypeProvider.hpp>
43 #include <com/sun/star/lang/XComponent.hpp>
44 #include <com/sun/star/packages/NoEncryptionException.hpp>
45
46 #include <cppuhelper/weak.hxx>
47 #include <cppuhelper/weakref.hxx>
48 #include <cppuhelper/interfacecontainer.h>
49 #include <comphelper/refcountedmutex.hxx>
50 #include <comphelper/sequenceashashmap.hxx>
51 #include <o3tl/deleter.hxx>
52 #include <rtl/ref.hxx>
53
54 #include <list>
55 #include <vector>
56 #include <memory>
57
58 namespace com { namespace sun { namespace star { namespace uno {
59 class XComponentContext;
60 } } } }
61
62 #define RELINFO_NO_INIT 1
63 #define RELINFO_READ 2
64 #define RELINFO_CHANGED 3
65 #define RELINFO_CHANGED_STREAM 4
66 #define RELINFO_CHANGED_STREAM_READ 5
67 #define RELINFO_BROKEN 6
68 #define RELINFO_CHANGED_BROKEN 7
69
70 #define STOR_MESS_PRECOMMIT 1
71 #define STOR_MESS_COMMITTED 2
72 #define STOR_MESS_PREREVERT 3
73 #define STOR_MESS_REVERTED 4
74
75 // a common implementation for an entry
76
77 struct StorInternalData_Impl;
78 struct OStorage_Impl;
79 struct OWriteStream_Impl;
80
81 struct SotElement_Impl
82 {
83 OUString m_aOriginalName;
84 bool m_bIsRemoved;
85 bool m_bIsInserted;
86 bool const m_bIsStorage;
87
88 std::unique_ptr<OStorage_Impl> m_xStorage;
89 std::unique_ptr<OWriteStream_Impl, o3tl::default_delete<OWriteStream_Impl>> m_xStream;
90
91 public:
92 SotElement_Impl(const OUString& rName, bool bStor, bool bNew);
93 };
94
95 typedef ::std::vector< SotElement_Impl* > SotElementVector_Impl;
96
97 // Main storage implementation
98
99 class OStorage;
100
101 struct StorageHolder_Impl
102 {
103 OStorage* m_pPointer;
104 css::uno::WeakReference< css::embed::XStorage > m_xWeakRef;
105
106 explicit inline StorageHolder_Impl( OStorage* pStorage );
107 };
108
109 class SwitchablePersistenceStream;
110 struct OStorage_Impl
111 {
112 typedef std::vector<StorageHolder_Impl> StorageHoldersType;
113
114 rtl::Reference<comphelper::RefCountedMutex> m_xMutex;
115
116 OStorage* m_pAntiImpl; // only valid if external references exists
117 StorageHoldersType m_aReadOnlyWrapVector; // only valid if readonly external reference exists
118
119 sal_Int32 m_nStorageMode; // open mode ( read/write/trunc/nocreate )
120 bool m_bIsModified; // only modified elements will be sent to the original content
121 bool m_bBroadcastModified; // will be set if notification is required
122
123 bool m_bCommited; // sending the streams is coordinated by the root storage of the package
124
125 bool const m_bIsRoot; // marks this storage as root storages that manages all commits and reverts
126 bool m_bListCreated;
127
128 /// Count of registered modification listeners
129 oslInterlockedCount m_nModifiedListenerCount;
HasModifiedListenerOStorage_Impl130 bool HasModifiedListener() const
131 {
132 return m_nModifiedListenerCount > 0 && m_pAntiImpl != nullptr;
133 }
134
135 std::unordered_map<OUString, std::vector<SotElement_Impl*>> m_aChildrenMap;
136 SotElementVector_Impl m_aDeletedVector;
137
138 css::uno::Reference< css::container::XNameContainer > m_xPackageFolder;
139
140 css::uno::Reference< css::lang::XSingleServiceFactory > m_xPackage;
141 css::uno::Reference< css::uno::XComponentContext > m_xContext;
142
143 // valid only for root storage
144 css::uno::Reference< css::io::XInputStream > m_xInputStream; // ??? may be stored in properties
145 css::uno::Reference< css::io::XStream > m_xStream; // ??? may be stored in properties
146 css::uno::Sequence< css::beans::PropertyValue > m_xProperties;
147 bool m_bHasCommonEncryptionData;
148 ::comphelper::SequenceAsHashMap m_aCommonEncryptionData;
149
150 // must be empty in case of root storage
151 OStorage_Impl* m_pParent;
152
153 bool m_bControlMediaType;
154 OUString m_aMediaType;
155 bool m_bMTFallbackUsed;
156
157 bool m_bControlVersion;
158 OUString m_aVersion;
159
160 SwitchablePersistenceStream* m_pSwitchStream;
161
162 sal_Int32 const m_nStorageType; // the mode in which the storage is used
163
164 // the _rels substorage that is handled in a special way in embed::StorageFormats::OFOPXML
165 SotElement_Impl* m_pRelStorElement;
166 css::uno::Reference< css::embed::XStorage > m_xRelStorage;
167 css::uno::Sequence< css::uno::Sequence< css::beans::StringPair > > m_aRelInfo;
168 css::uno::Reference< css::io::XInputStream > m_xNewRelInfoStream;
169 sal_Int16 m_nRelInfoStatus;
170
171 // Constructors
172 OStorage_Impl( css::uno::Reference< css::io::XInputStream > const & xInputStream,
173 sal_Int32 nMode,
174 const css::uno::Sequence< css::beans::PropertyValue >& xProperties,
175 css::uno::Reference< css::uno::XComponentContext > const & xContext,
176 sal_Int32 nStorageType );
177
178 OStorage_Impl( css::uno::Reference< css::io::XStream > const & xStream,
179 sal_Int32 nMode,
180 const css::uno::Sequence< css::beans::PropertyValue >& xProperties,
181 css::uno::Reference< css::uno::XComponentContext > const & xContext,
182 sal_Int32 nStorageType );
183
184 // constructor for a substorage
185 OStorage_Impl( OStorage_Impl* pParent,
186 sal_Int32 nMode,
187 css::uno::Reference< css::container::XNameContainer > const & xPackageFolder,
188 css::uno::Reference< css::lang::XSingleServiceFactory > const & xPackage,
189 css::uno::Reference< css::uno::XComponentContext > const & xContext,
190 sal_Int32 nStorageType );
191
192 ~OStorage_Impl();
193
194 void SetReadOnlyWrap( OStorage& aStorage );
195 void RemoveReadOnlyWrap( OStorage& aStorage );
196
197 void OpenOwnPackage();
198 void ReadContents();
199 void ReadRelInfoIfNecessary();
200
201 bool HasChildren();
202 void GetStorageProperties();
203
204 css::uno::Sequence< css::uno::Sequence< css::beans::StringPair > > GetAllRelationshipsIfAny();
205 void CopyLastCommitTo( const css::uno::Reference< css::embed::XStorage >& xNewStor );
206
207 void InsertIntoPackageFolder(
208 const OUString& aName,
209 const css::uno::Reference< css::container::XNameContainer >& xParentPackageFolder );
210
211 void Commit();
212 void Revert();
213
214 /// @throws css::packages::NoEncryptionException
215 ::comphelper::SequenceAsHashMap GetCommonRootEncryptionData();
216
217 void CopyToStorage( const css::uno::Reference< css::embed::XStorage >& xDest,
218 bool bDirect );
219 void CopyStorageElement( SotElement_Impl* pElement,
220 const css::uno::Reference< css::embed::XStorage >& xDest,
221 const OUString& aName,
222 bool bDirect );
223
224 SotElement_Impl* FindElement( const OUString& rName );
225
226 SotElement_Impl* InsertStream( const OUString& aName, bool bEncr );
227 void InsertRawStream( const OUString& aName, const css::uno::Reference< css::io::XInputStream >& xInStream );
228
229 std::unique_ptr<OStorage_Impl> CreateNewStorageImpl( sal_Int32 nStorageMode );
230 SotElement_Impl* InsertStorage( const OUString& aName, sal_Int32 nStorageMode );
231 SotElement_Impl* InsertElement( const OUString& aName, bool bIsStorage );
232
233 void OpenSubStorage( SotElement_Impl* pElement, sal_Int32 nStorageMode );
234 void OpenSubStream( SotElement_Impl* pElement );
235
236 css::uno::Sequence< OUString > GetElementNames();
237
238 void RemoveElement( OUString const & rName, SotElement_Impl* pElement );
239 static void ClearElement( SotElement_Impl* pElement );
240
241 /// @throws css::embed::InvalidStorageException
242 /// @throws css::lang::IllegalArgumentException
243 /// @throws css::packages::WrongPasswordException
244 /// @throws css::packages::NoEncryptionException
245 /// @throws css::container::NoSuchElementException
246 /// @throws css::io::IOException
247 /// @throws css::embed::StorageWrappedTargetException
248 /// @throws css::uno::RuntimeException
249 void CloneStreamElement(
250 const OUString& aStreamName,
251 bool bPassProvided,
252 const ::comphelper::SequenceAsHashMap& aEncryptionData,
253 css::uno::Reference< css::io::XStream >& xTargetStream );
254
255 void RemoveStreamRelInfo( const OUString& aOriginalName );
256 void CreateRelStorage();
257 void CommitStreamRelInfo( const OUString& rName, SotElement_Impl const * pStreamElement );
258 css::uno::Reference< css::io::XInputStream > GetRelInfoStreamForName( const OUString& aName );
259 void CommitRelInfo( const css::uno::Reference< css::container::XNameContainer >& xNewPackageFolder );
260
261 static void completeStorageStreamCopy_Impl(
262 const css::uno::Reference< css::io::XStream >& xSource,
263 const css::uno::Reference< css::io::XStream >& xDest,
264 sal_Int32 nStorageType,
265 const css::uno::Sequence< css::uno::Sequence< css::beans::StringPair > >& aRelInfo );
266
267 };
268
269 class OStorage : public css::lang::XTypeProvider
270 , public css::embed::XStorage2
271 , public css::embed::XStorageRawAccess
272 , public css::embed::XTransactedObject
273 , public css::embed::XTransactionBroadcaster
274 , public css::util::XModifiable
275 , public css::embed::XEncryptionProtectedStorage
276 , public css::beans::XPropertySet
277 , public css::embed::XOptimizedStorage
278 , public css::embed::XRelationshipAccess
279 , public css::embed::XHierarchicalStorageAccess2
280 , public ::cppu::OWeakObject
281 {
282 OStorage_Impl* m_pImpl;
283 std::unique_ptr<StorInternalData_Impl> m_pData;
284
285 protected:
286
287 SotElement_Impl* OpenStreamElement_Impl( const OUString& aStreamName, sal_Int32 nOpenMode, bool bEncr );
288
289 void BroadcastModifiedIfNecessary();
290
291 void BroadcastTransaction( sal_Int8 nMessage );
292
293 void MakeLinkToSubComponent_Impl(
294 const css::uno::Reference< css::lang::XComponent >& xComponent );
295
296 public:
297
298 OStorage( css::uno::Reference< css::io::XInputStream > const & xInputStream,
299 sal_Int32 nMode,
300 const css::uno::Sequence< css::beans::PropertyValue >& xProperties,
301 css::uno::Reference< css::uno::XComponentContext > const & xContext,
302 sal_Int32 nStorageType );
303
304 OStorage( css::uno::Reference< css::io::XStream > const & xStream,
305 sal_Int32 nMode,
306 const css::uno::Sequence< css::beans::PropertyValue >& xProperties,
307 css::uno::Reference< css::uno::XComponentContext > const & xContext,
308 sal_Int32 nStorageType );
309
310 OStorage( OStorage_Impl* pImpl, bool bReadOnlyWrap );
311
312 virtual ~OStorage() override;
313
314 void InternalDispose( bool bNotifyImpl );
315
316 void ChildIsDisposed( const css::uno::Reference< css::uno::XInterface >& xChild );
317
GetRefCount_Impl() const318 sal_Int32 GetRefCount_Impl() const { return m_refCount; }
319
320 // XInterface
321
322 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& rType ) override;
323
324 virtual void SAL_CALL acquire() throw() override;
325
326 virtual void SAL_CALL release() throw() override;
327
328 // XTypeProvider
329
330 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
331
332 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
333
334 // XStorage
335
336 virtual void SAL_CALL copyToStorage( const css::uno::Reference< css::embed::XStorage >& xDest ) override;
337
338 virtual css::uno::Reference< css::io::XStream > SAL_CALL openStreamElement(
339 const OUString& aStreamName, sal_Int32 nOpenMode ) override;
340
341 virtual css::uno::Reference< css::io::XStream > SAL_CALL openEncryptedStreamElement(
342 const OUString& aStreamName, sal_Int32 nOpenMode, const OUString& aPass ) override;
343
344 virtual css::uno::Reference< css::embed::XStorage > SAL_CALL openStorageElement(
345 const OUString& aStorName, sal_Int32 nStorageMode ) override;
346
347 virtual css::uno::Reference< css::io::XStream > SAL_CALL cloneStreamElement(
348 const OUString& aStreamName ) override;
349
350 virtual css::uno::Reference< css::io::XStream > SAL_CALL cloneEncryptedStreamElement(
351 const OUString& aStreamName, const OUString& aPass ) override;
352
353 virtual void SAL_CALL copyLastCommitTo(
354 const css::uno::Reference< css::embed::XStorage >& xTargetStorage ) override;
355
356 virtual void SAL_CALL copyStorageElementLastCommitTo(
357 const OUString& aStorName,
358 const css::uno::Reference< css::embed::XStorage >& xTargetStorage ) override;
359
360 virtual sal_Bool SAL_CALL isStreamElement( const OUString& aElementName ) override;
361
362 virtual sal_Bool SAL_CALL isStorageElement( const OUString& aElementName ) override;
363
364 virtual void SAL_CALL removeElement( const OUString& aElementName ) override;
365
366 virtual void SAL_CALL renameElement( const OUString& rEleName, const OUString& rNewName ) override;
367
368 virtual void SAL_CALL copyElementTo( const OUString& aElementName,
369 const css::uno::Reference< css::embed::XStorage >& xDest,
370 const OUString& aNewName ) override;
371
372 virtual void SAL_CALL moveElementTo( const OUString& aElementName,
373 const css::uno::Reference< css::embed::XStorage >& xDest,
374 const OUString& rNewName ) override;
375
376 // XStorage2
377
378 virtual css::uno::Reference< css::io::XStream > SAL_CALL openEncryptedStream( const OUString& sStreamName, ::sal_Int32 nOpenMode, const css::uno::Sequence< css::beans::NamedValue >& aEncryptionData ) override;
379
380 virtual css::uno::Reference< css::io::XStream > SAL_CALL cloneEncryptedStream( const OUString& sStreamName, const css::uno::Sequence< css::beans::NamedValue >& aEncryptionData ) override;
381
382 // XStorageRawAccess
383
384 virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getPlainRawStreamElement(
385 const OUString& sStreamName ) override;
386
387 virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getRawEncrStreamElement(
388 const OUString& sStreamName ) override;
389
390 virtual void SAL_CALL insertRawEncrStreamElement( const OUString& aStreamName,
391 const css::uno::Reference< css::io::XInputStream >& xInStream ) override;
392
393 // XTransactedObject
394 virtual void SAL_CALL commit() override;
395
396 virtual void SAL_CALL revert() override;
397
398 // XTransactionBroadcaster
399 virtual void SAL_CALL addTransactionListener(
400 const css::uno::Reference< css::embed::XTransactionListener >& aListener ) override;
401
402 virtual void SAL_CALL removeTransactionListener(
403 const css::uno::Reference< css::embed::XTransactionListener >& aListener ) override;
404
405 // XModifiable
406
407 virtual sal_Bool SAL_CALL isModified() override;
408
409 virtual void SAL_CALL setModified( sal_Bool bModified ) override;
410
411 virtual void SAL_CALL addModifyListener(
412 const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
413
414 virtual void SAL_CALL removeModifyListener(
415 const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
416
417 // XNameAccess
418
419 virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) override;
420
421 virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
422
423 virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) override;
424
425 virtual css::uno::Type SAL_CALL getElementType() override;
426
427 virtual sal_Bool SAL_CALL hasElements() override;
428
429 // XComponent
430
431 virtual void SAL_CALL dispose() override;
432
433 virtual void SAL_CALL addEventListener(
434 const css::uno::Reference< css::lang::XEventListener >& xListener ) override;
435
436 virtual void SAL_CALL removeEventListener(
437 const css::uno::Reference< css::lang::XEventListener >& xListener ) override;
438
439 // XEncryptionProtectedSource
440
441 virtual void SAL_CALL setEncryptionPassword( const OUString& aPass ) override;
442
443 virtual void SAL_CALL removeEncryption() override;
444
445 // XEncryptionProtectedSource2
446
447 virtual void SAL_CALL setEncryptionData(
448 const css::uno::Sequence< css::beans::NamedValue >& aEncryptionData ) override;
449
450 virtual sal_Bool SAL_CALL hasEncryptionData() override;
451
452 // XEncryptionProtectedStorage
453
454 virtual void SAL_CALL setEncryptionAlgorithms( const css::uno::Sequence< css::beans::NamedValue >& aAlgorithms ) override;
455 virtual void SAL_CALL setGpgProperties( const css::uno::Sequence< css::uno::Sequence< css::beans::NamedValue > >& aCryptProps ) override;
456
457 virtual css::uno::Sequence< css::beans::NamedValue > SAL_CALL getEncryptionAlgorithms() override;
458
459 // XPropertySet
460
461 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override;
462
463 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
464
465 virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override;
466
467 virtual void SAL_CALL addPropertyChangeListener(
468 const OUString& aPropertyName,
469 const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override;
470
471 virtual void SAL_CALL removePropertyChangeListener(
472 const OUString& aPropertyName,
473 const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override;
474
475 virtual void SAL_CALL addVetoableChangeListener(
476 const OUString& PropertyName,
477 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
478
479 virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
480
481 // XOptimizedStorage
482 virtual void SAL_CALL insertRawNonEncrStreamElementDirect( const OUString& sStreamName, const css::uno::Reference< css::io::XInputStream >& xInStream ) override;
483
484 virtual void SAL_CALL insertStreamElementDirect( const OUString& sStreamName, const css::uno::Reference< css::io::XInputStream >& xInStream, const css::uno::Sequence< css::beans::PropertyValue >& aProps ) override;
485
486 virtual void SAL_CALL copyElementDirectlyTo( const OUString& sSourceName, const css::uno::Reference< css::embed::XOptimizedStorage >& xTargetStorage, const OUString& sTargetName ) override;
487
488 virtual void SAL_CALL writeAndAttachToStream( const css::uno::Reference< css::io::XStream >& xStream ) override;
489
490 virtual void SAL_CALL attachToURL( const OUString& sURL, sal_Bool bReadOnly ) override;
491
492 virtual css::uno::Any SAL_CALL getElementPropertyValue( const OUString& sElementName, const OUString& sPropertyName ) override;
493
494 virtual void SAL_CALL copyStreamElementData( const OUString& sStreamName, const css::uno::Reference< css::io::XStream >& xTargetStream ) override;
495
496 // XRelationshipAccess
497 virtual sal_Bool SAL_CALL hasByID( const OUString& sID ) override;
498
499 virtual OUString SAL_CALL getTargetByID( const OUString& sID ) override;
500
501 virtual OUString SAL_CALL getTypeByID( const OUString& sID ) override;
502
503 virtual css::uno::Sequence< css::beans::StringPair > SAL_CALL getRelationshipByID( const OUString& sID ) override;
504
505 virtual css::uno::Sequence< css::uno::Sequence< css::beans::StringPair > > SAL_CALL getRelationshipsByType( const OUString& sType ) override;
506
507 virtual css::uno::Sequence< css::uno::Sequence< css::beans::StringPair > > SAL_CALL getAllRelationships( ) override;
508
509 virtual void SAL_CALL insertRelationshipByID( const OUString& sID, const css::uno::Sequence< css::beans::StringPair >& aEntry, sal_Bool bReplace ) override;
510
511 virtual void SAL_CALL removeRelationshipByID( const OUString& sID ) override;
512
513 virtual void SAL_CALL insertRelationships( const css::uno::Sequence< css::uno::Sequence< css::beans::StringPair > >& aEntries, sal_Bool bReplace ) override;
514
515 virtual void SAL_CALL clearRelationships( ) override;
516
517 // XHierarchicalStorageAccess
518 virtual css::uno::Reference< css::embed::XExtendedStorageStream > SAL_CALL openStreamElementByHierarchicalName( const OUString& sStreamPath, ::sal_Int32 nOpenMode ) override;
519
520 virtual css::uno::Reference< css::embed::XExtendedStorageStream > SAL_CALL openEncryptedStreamElementByHierarchicalName( const OUString& sStreamName, ::sal_Int32 nOpenMode, const OUString& sPassword ) override;
521
522 virtual void SAL_CALL removeStreamElementByHierarchicalName( const OUString& sElementPath ) override;
523
524 // XHierarchicalStorageAccess2
525 virtual css::uno::Reference< css::embed::XExtendedStorageStream > SAL_CALL openEncryptedStreamByHierarchicalName( const OUString& sStreamName, ::sal_Int32 nOpenMode, const css::uno::Sequence< css::beans::NamedValue >& aEncryptionData ) override;
526 };
527
StorageHolder_Impl(OStorage * pStorage)528 StorageHolder_Impl::StorageHolder_Impl( OStorage* pStorage )
529 : m_pPointer( pStorage )
530 , m_xWeakRef( css::uno::Reference< css::embed::XStorage >( pStorage ) )
531 {
532 }
533
534 #endif
535
536 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
537