20#ifndef INCLUDED_SVL_SOURCE_FSSTOR_OSTREAMCONTAINER_HXX
21#define INCLUDED_SVL_SOURCE_FSSTOR_OSTREAMCONTAINER_HXX
23#include <com/sun/star/lang/XTypeProvider.hpp>
24#include <com/sun/star/embed/XExtendedStorageStream.hpp>
25#include <com/sun/star/io/XSeekable.hpp>
26#include <com/sun/star/io/XTruncate.hpp>
27#include <com/sun/star/io/XInputStream.hpp>
28#include <com/sun/star/io/XOutputStream.hpp>
29#include <com/sun/star/io/XStream.hpp>
30#include <com/sun/star/io/XAsyncOutputMonitor.hpp>
36 public css::lang::XTypeProvider,
37 public css::embed::XExtendedStorageStream,
38 public css::io::XSeekable,
39 public css::io::XInputStream,
40 public css::io::XOutputStream,
41 public css::io::XTruncate,
42 public css::io::XAsyncOutputMonitor
61 explicit OFSStreamContainer(
const css::uno::Reference < css::io::XStream >& xStream );
65 virtual css::uno::Any SAL_CALL
queryInterface(
const css::uno::Type& rType )
override;
66 virtual void SAL_CALL
acquire() noexcept override;
67 virtual
void SAL_CALL
release() noexcept override;
74 virtual css::
uno::Reference< css::io::XInputStream > SAL_CALL
getInputStream( ) override;
75 virtual css::
uno::Reference< css::io::XOutputStream > SAL_CALL
getOutputStream( ) override;
78 virtual
void SAL_CALL
dispose() override;
79 virtual
void SAL_CALL
addEventListener( const css::
uno::Reference< css::lang::XEventListener >& xListener ) override;
80 virtual
void SAL_CALL
removeEventListener( const css::
uno::Reference< css::lang::XEventListener >& aListener ) override;
83 virtual
void SAL_CALL
seek( sal_Int64 location ) override;
85 virtual sal_Int64 SAL_CALL
getLength() override;
88 virtual sal_Int32 SAL_CALL
readBytes( css::
uno::Sequence<
sal_Int8 >& aData, sal_Int32 nBytesToRead ) override;
89 virtual sal_Int32 SAL_CALL
readSomeBytes( css::
uno::Sequence<
sal_Int8 >& aData, sal_Int32 nMaxBytesToRead ) override;
90 virtual
void SAL_CALL
skipBytes( sal_Int32 nBytesToSkip ) override;
91 virtual sal_Int32 SAL_CALL
available( ) override;
96 virtual
void SAL_CALL
flush( ) override;
100 virtual
void SAL_CALL
truncate() override;
css::uno::Reference< css::io::XAsyncOutputMonitor > m_xAsyncOutputMonitor
css::uno::Reference< css::io::XOutputStream > m_xOutputStream
virtual void SAL_CALL closeInput() override
OFSStreamContainer(const css::uno::Reference< css::io::XStream > &xStream)
virtual void SAL_CALL release() noexcept override
virtual css::uno::Reference< css::io::XOutputStream > SAL_CALL getOutputStream() override
::comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > m_aListenersContainer
virtual sal_Int64 SAL_CALL getPosition() override
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getInputStream() override
virtual void SAL_CALL flush() override
css::uno::Reference< css::io::XInputStream > m_xInputStream
virtual sal_Int32 SAL_CALL available() override
virtual ~OFSStreamContainer() override
virtual sal_Int32 SAL_CALL readSomeBytes(css::uno::Sequence< sal_Int8 > &aData, sal_Int32 nMaxBytesToRead) override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
virtual void SAL_CALL acquire() noexcept override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual void SAL_CALL writeBytes(const css::uno::Sequence< sal_Int8 > &aData) override
virtual void SAL_CALL dispose() override
css::uno::Reference< css::io::XTruncate > m_xTruncate
virtual void SAL_CALL closeOutput() override
virtual sal_Int64 SAL_CALL getLength() override
css::uno::Reference< css::io::XSeekable > m_xSeekable
virtual void SAL_CALL waitForCompletion() override
virtual void SAL_CALL skipBytes(sal_Int32 nBytesToSkip) override
virtual void SAL_CALL truncate() override
virtual void SAL_CALL seek(sal_Int64 location) override
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
css::uno::Sequence< css::uno::Type > m_aTypes
css::uno::Reference< css::io::XStream > m_xStream
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
virtual sal_Int32 SAL_CALL readBytes(css::uno::Sequence< sal_Int8 > &aData, sal_Int32 nBytesToRead) override