26#include <com/sun/star/embed/XStorage.hpp>
27#include <com/sun/star/embed/XTransactedObject.hpp>
28#include <com/sun/star/io/XOutputStream.hpp>
29#include <com/sun/star/io/XStream.hpp>
30#include <com/sun/star/io/XTruncate.hpp>
31#include <com/sun/star/lang/XComponent.hpp>
32#include <com/sun/star/uno/XAggregation.hpp>
40class OfficeDocumentsManager;
46 css::uno::Reference< css::embed::XStorage > xParentStorage,
47 const OUString & rUri );
51 const css::uno::Reference< css::embed::XStorage >&
76 const css::uno::Reference< css::uno::XComponentContext > & rxContext,
78 const OUString & rUri,
79 const css::uno::Reference< css::embed::XStorage > & xParentStorage,
80 const css::uno::Reference< css::embed::XStorage > & xStorageToWrap );
85 const css::uno::Type& aType )
override;
93 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
95 virtual css::uno::Sequence< sal_Int8 > SAL_CALL
101 virtual void SAL_CALL
102 addEventListener(
const css::uno::Reference< css::lang::XEventListener > & xListener )
override;
103 virtual void SAL_CALL
104 removeEventListener(
const css::uno::Reference< css::lang::XEventListener >& aListener )
override;
107 virtual css::uno::Any SAL_CALL
109 virtual css::uno::Sequence< OUString > SAL_CALL
115 virtual css::uno::Type SAL_CALL
121 virtual void SAL_CALL
122 copyToStorage(
const css::uno::Reference< css::embed::XStorage >& xDest )
override;
123 virtual css::uno::Reference< css::io::XStream > SAL_CALL
125 sal_Int32 nOpenMode )
override;
126 virtual css::uno::Reference< css::io::XStream > SAL_CALL
129 const OUString& aPassword )
override;
130 virtual css::uno::Reference< css::embed::XStorage > SAL_CALL
132 sal_Int32 nOpenMode )
override;
133 virtual css::uno::Reference< css::io::XStream > SAL_CALL
135 virtual css::uno::Reference< css::io::XStream > SAL_CALL
137 const OUString& aPassword )
override;
138 virtual void SAL_CALL
140 css::embed::XStorage >& xTargetStorage )
override;
141 virtual void SAL_CALL
143 const css::uno::Reference<
144 css::embed::XStorage > &
145 xTargetStorage )
override;
150 virtual void SAL_CALL
152 virtual void SAL_CALL
154 const OUString& aNewName )
override;
155 virtual void SAL_CALL
157 const css::uno::Reference< css::embed::XStorage >& xDest,
158 const OUString& aNewName )
override;
159 virtual void SAL_CALL
161 const css::uno::Reference< css::embed::XStorage >& xDest,
162 const OUString& rNewName )
override;
165 virtual void SAL_CALL
commit()
override;
166 virtual void SAL_CALL
revert()
override;
184 cppu::WeakImplHelper<
185 css::io::XOutputStream,
192 const css::uno::Reference< css::uno::XComponentContext > & rxContext,
193 const OUString & rUri,
194 const css::uno::Reference< css::embed::XStorage > & xParentStorage,
195 const css::uno::Reference< css::io::XOutputStream > & xStreamToWrap );
199 virtual css::uno::Any SAL_CALL
204 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
206 virtual css::uno::Sequence< sal_Int8 > SAL_CALL
210 virtual void SAL_CALL
211 writeBytes(
const css::uno::Sequence< sal_Int8 >& aData )
override;
212 virtual void SAL_CALL
215 virtual void SAL_CALL
220 virtual void SAL_CALL
222 virtual void SAL_CALL
223 addEventListener(
const css::uno::Reference< css::lang::XEventListener >& xListener )
override;
224 virtual void SAL_CALL
225 removeEventListener(
const css::uno::Reference< css::lang::XEventListener >& aListener )
override;
239typedef cppu::WeakImplHelper< css::io::XStream,
240 css::io::XOutputStream,
242 css::io::XInputStream,
243 css::lang::XComponent >
250 const css::uno::Reference< css::uno::XComponentContext > & rxContext,
252 const OUString & rUri,
253 const css::uno::Reference< css::embed::XStorage > & xParentStorage,
254 const css::uno::Reference< css::io::XStream > & xStreamToWrap );
259 virtual css::uno::Any SAL_CALL
264 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
266 virtual css::uno::Sequence< sal_Int8 > SAL_CALL
270 virtual css::uno::Reference< css::io::XInputStream > SAL_CALL
273 virtual css::uno::Reference< css::io::XOutputStream > SAL_CALL
277 virtual void SAL_CALL
280 virtual void SAL_CALL
283 virtual void SAL_CALL
287 virtual void SAL_CALL
291 virtual sal_Int32 SAL_CALL
293 sal_Int32 nBytesToRead )
override;
295 virtual sal_Int32 SAL_CALL
297 sal_Int32 nMaxBytesToRead )
override;
299 virtual void SAL_CALL
300 skipBytes( sal_Int32 nBytesToSkip )
override;
302 virtual sal_Int32 SAL_CALL
305 virtual void SAL_CALL
310 virtual void SAL_CALL
312 virtual void SAL_CALL
313 addEventListener(
const css::uno::Reference< css::lang::XEventListener >& xListener )
override;
314 virtual void SAL_CALL
315 removeEventListener(
const css::uno::Reference< css::lang::XEventListener >& aListener )
override;
virtual void SAL_CALL closeOutput() override
virtual void SAL_CALL flush() override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &aType) override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual ~OutputStream() override
OutputStream(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const OUString &rUri, const css::uno::Reference< css::embed::XStorage > &xParentStorage, const css::uno::Reference< css::io::XOutputStream > &xStreamToWrap)
css::uno::Reference< css::lang::XTypeProvider > m_xWrappedTypeProv
css::uno::Reference< css::io::XOutputStream > m_xWrappedStream
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
css::uno::Reference< css::lang::XComponent > m_xWrappedComponent
virtual void SAL_CALL writeBytes(const css::uno::Sequence< sal_Int8 > &aData) override
css::uno::Reference< css::uno::XAggregation > m_xAggProxy
virtual void SAL_CALL dispose() override
ParentStorageHolder(css::uno::Reference< css::embed::XStorage > xParentStorage, const OUString &rUri)
bool m_bParentIsRootStorage
css::uno::Reference< css::embed::XStorage > m_xParentStorage
bool isParentARootStorage() const
const css::uno::Reference< css::embed::XStorage > & getParentStorage() const
void setParentStorage(const css::uno::Reference< css::embed::XStorage > &xStg)
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
css::uno::Reference< css::lang::XTypeProvider > m_xWrappedTypeProv
css::uno::Reference< css::embed::XStorage > m_xWrappedStorage
css::uno::Reference< css::uno::XAggregation > m_xAggProxy
virtual void SAL_CALL removeElement(const OUString &aElementName) override
css::uno::Reference< css::lang::XComponent > m_xWrappedComponent
virtual void SAL_CALL commit() override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
Storage(const css::uno::Reference< css::uno::XComponentContext > &rxContext, rtl::Reference< StorageElementFactory > xFactory, const OUString &rUri, const css::uno::Reference< css::embed::XStorage > &xParentStorage, const css::uno::Reference< css::embed::XStorage > &xStorageToWrap)
virtual void SAL_CALL copyStorageElementLastCommitTo(const OUString &aStorName, const css::uno::Reference< css::embed::XStorage > &xTargetStorage) override
virtual css::uno::Reference< css::embed::XStorage > SAL_CALL openStorageElement(const OUString &aStorName, sal_Int32 nOpenMode) override
virtual css::uno::Reference< css::io::XStream > SAL_CALL cloneEncryptedStreamElement(const OUString &aStreamName, const OUString &aPassword) override
virtual css::uno::Reference< css::io::XStream > SAL_CALL openStreamElement(const OUString &aStreamName, sal_Int32 nOpenMode) override
virtual sal_Bool SAL_CALL isStreamElement(const OUString &aElementName) override
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &aType) override
virtual sal_Bool SAL_CALL hasElements() override
virtual void SAL_CALL dispose() override
virtual void SAL_CALL acquire() noexcept override
virtual void SAL_CALL copyToStorage(const css::uno::Reference< css::embed::XStorage > &xDest) override
rtl::Reference< StorageElementFactory > m_xFactory
virtual css::uno::Type SAL_CALL getElementType() override
virtual void SAL_CALL moveElementTo(const OUString &aElementName, const css::uno::Reference< css::embed::XStorage > &xDest, const OUString &rNewName) override
virtual void SAL_CALL copyLastCommitTo(const css::uno::Reference< css::embed::XStorage > &xTargetStorage) override
virtual ~Storage() override
virtual void SAL_CALL revert() override
virtual void SAL_CALL copyElementTo(const OUString &aElementName, const css::uno::Reference< css::embed::XStorage > &xDest, const OUString &aNewName) override
virtual void SAL_CALL renameElement(const OUString &aEleName, const OUString &aNewName) override
bool m_bIsDocumentStorage
css::uno::Reference< css::embed::XTransactedObject > m_xWrappedTransObj
virtual css::uno::Reference< css::io::XStream > SAL_CALL openEncryptedStreamElement(const OUString &aStreamName, sal_Int32 nOpenMode, const OUString &aPassword) override
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
StorageElementFactory::StorageMap::iterator m_aContainerIt
virtual css::uno::Reference< css::io::XStream > SAL_CALL cloneStreamElement(const OUString &aStreamName) override
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
virtual sal_Bool SAL_CALL isStorageElement(const OUString &aElementName) override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual void SAL_CALL release() noexcept override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
virtual sal_Int32 SAL_CALL readSomeBytes(css::uno::Sequence< sal_Int8 > &aData, sal_Int32 nMaxBytesToRead) override
virtual sal_Int32 SAL_CALL readBytes(css::uno::Sequence< sal_Int8 > &aData, sal_Int32 nBytesToRead) override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual void SAL_CALL skipBytes(sal_Int32 nBytesToSkip) override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &aType) override
virtual void SAL_CALL writeBytes(const css::uno::Sequence< sal_Int8 > &aData) override
virtual void SAL_CALL dispose() override
virtual void SAL_CALL flush() override
css::uno::Reference< css::lang::XComponent > m_xWrappedComponent
css::uno::Reference< css::io::XOutputStream > m_xWrappedOutputStream
css::uno::Reference< css::io::XStream > m_xWrappedStream
virtual sal_Int32 SAL_CALL available() override
css::uno::Reference< css::uno::XAggregation > m_xAggProxy
css::uno::Reference< css::io::XInputStream > m_xWrappedInputStream
virtual void SAL_CALL closeInput() override
virtual void SAL_CALL closeOutput() override
rtl::Reference< OfficeDocumentsManager > m_docsMgr
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual css::uno::Reference< css::io::XOutputStream > SAL_CALL getOutputStream() override
virtual void SAL_CALL truncate() override
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
css::uno::Reference< css::lang::XTypeProvider > m_xWrappedTypeProv
Stream(const css::uno::Reference< css::uno::XComponentContext > &rxContext, rtl::Reference< OfficeDocumentsManager > const &docsMgr, const OUString &rUri, const css::uno::Reference< css::embed::XStorage > &xParentStorage, const css::uno::Reference< css::io::XStream > &xStreamToWrap)
css::uno::Reference< css::io::XTruncate > m_xWrappedTruncate
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getInputStream() override
virtual ~Stream() override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
Reference< XSingleServiceFactory > xFactory
constexpr OUStringLiteral aData
cppu::WeakImplHelper< css::io::XStream, css::io::XOutputStream, css::io::XTruncate, css::io::XInputStream, css::lang::XComponent > StreamUNOBase
cppu::WeakImplHelper< css::io::XOutputStream, css::lang::XComponent > OutputStreamUNOBase
cppu::WeakImplHelper< css::embed::XStorage, css::embed::XTransactedObject > StorageUNOBase