LibreOffice Module ucb (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
tdoc_ucp::Stream Class Reference

#include <tdoc_stgelems.hxx>

Inheritance diagram for tdoc_ucp::Stream:
[legend]
Collaboration diagram for tdoc_ucp::Stream:
[legend]

Public Member Functions

 Stream (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::XStream > &xStreamToWrap)
 
virtual ~Stream () 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 css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getInputStream () override
 
virtual css::uno::Reference< css::io::XOutputStream > SAL_CALL getOutputStream () override
 
virtual void SAL_CALL writeBytes (const css::uno::Sequence< sal_Int8 > &aData) override
 
virtual void SAL_CALL flush () override
 
virtual void SAL_CALL closeOutput () override
 
virtual void SAL_CALL truncate () override
 
virtual sal_Int32 SAL_CALL readBytes (css::uno::Sequence< sal_Int8 > &aData, sal_Int32 nBytesToRead) override
 
virtual sal_Int32 SAL_CALL readSomeBytes (css::uno::Sequence< sal_Int8 > &aData, sal_Int32 nMaxBytesToRead) override
 
virtual void SAL_CALL skipBytes (sal_Int32 nBytesToSkip) override
 
virtual sal_Int32 SAL_CALL available () override
 
virtual void SAL_CALL closeInput () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override
 
- Public Member Functions inherited from tdoc_ucp::ParentStorageHolder
 ParentStorageHolder (const css::uno::Reference< css::embed::XStorage > &xParentStorage, const OUString &rUri)
 
bool isParentARootStorage () const
 
const css::uno::Reference< css::embed::XStorage > & getParentStorage () const
 
void setParentStorage (const css::uno::Reference< css::embed::XStorage > &xStg)
 

Private Member Functions

void commitChanges ()
 

Private Attributes

css::uno::Reference< css::uno::XAggregation > m_xAggProxy
 
css::uno::Reference< css::io::XStream > m_xWrappedStream
 
css::uno::Reference< css::io::XOutputStream > m_xWrappedOutputStream
 
css::uno::Reference< css::io::XTruncate > m_xWrappedTruncate
 
css::uno::Reference< css::io::XInputStream > m_xWrappedInputStream
 
css::uno::Reference< css::lang::XComponent > m_xWrappedComponent
 
css::uno::Reference< css::lang::XTypeProvider > m_xWrappedTypeProv
 

Additional Inherited Members

- Public Attributes inherited from tdoc_ucp::MutexHolder
osl::Mutex m_aMutex
 

Detailed Description

Definition at line 249 of file tdoc_stgelems.hxx.

Constructor & Destructor Documentation

Stream::Stream ( 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::XStream > &  xStreamToWrap 
)
Stream::~Stream ( )
overridevirtual

Definition at line 671 of file tdoc_stgelems.cxx.

References m_xAggProxy.

Member Function Documentation

void SAL_CALL Stream::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  xListener)
overridevirtual

Definition at line 839 of file tdoc_stgelems.cxx.

References m_xWrappedComponent.

sal_Int32 SAL_CALL Stream::available ( )
overridevirtual

Definition at line 811 of file tdoc_stgelems.cxx.

References m_xWrappedInputStream.

void SAL_CALL Stream::closeInput ( )
overridevirtual

Definition at line 818 of file tdoc_stgelems.cxx.

References m_xWrappedInputStream.

void SAL_CALL Stream::closeOutput ( )
overridevirtual
void Stream::commitChanges ( )
private
Exceptions
css::io::IOException

Definition at line 857 of file tdoc_stgelems.cxx.

References tdoc_ucp::ParentStorageHolder::getParentStorage().

Referenced by closeOutput(), flush(), truncate(), and writeBytes().

void SAL_CALL Stream::dispose ( void  )
overridevirtual
void SAL_CALL Stream::flush ( )
overridevirtual

Definition at line 745 of file tdoc_stgelems.cxx.

References commitChanges(), and m_xWrappedOutputStream.

uno::Sequence< sal_Int8 > SAL_CALL Stream::getImplementationId ( )
overridevirtual

Definition at line 707 of file tdoc_stgelems.cxx.

uno::Reference< io::XInputStream > SAL_CALL Stream::getInputStream ( )
overridevirtual

Definition at line 717 of file tdoc_stgelems.cxx.

uno::Reference< io::XOutputStream > SAL_CALL Stream::getOutputStream ( )
overridevirtual

Definition at line 724 of file tdoc_stgelems.cxx.

uno::Sequence< uno::Type > SAL_CALL Stream::getTypes ( )
overridevirtual

Definition at line 700 of file tdoc_stgelems.cxx.

References m_xWrappedTypeProv.

uno::Any SAL_CALL Stream::queryInterface ( const css::uno::Type &  aType)
overridevirtual

Definition at line 682 of file tdoc_stgelems.cxx.

References uno::Any::hasValue(), and m_xAggProxy.

sal_Int32 SAL_CALL Stream::readBytes ( css::uno::Sequence< sal_Int8 > &  aData,
sal_Int32  nBytesToRead 
)
overridevirtual

Definition at line 788 of file tdoc_stgelems.cxx.

References m_xWrappedInputStream.

sal_Int32 SAL_CALL Stream::readSomeBytes ( css::uno::Sequence< sal_Int8 > &  aData,
sal_Int32  nMaxBytesToRead 
)
overridevirtual

Definition at line 796 of file tdoc_stgelems.cxx.

References m_xWrappedInputStream.

void SAL_CALL Stream::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
overridevirtual

Definition at line 847 of file tdoc_stgelems.cxx.

References m_xWrappedComponent.

void SAL_CALL Stream::skipBytes ( sal_Int32  nBytesToSkip)
overridevirtual

Definition at line 804 of file tdoc_stgelems.cxx.

References m_xWrappedInputStream.

void SAL_CALL Stream::truncate ( )
overridevirtual

Definition at line 774 of file tdoc_stgelems.cxx.

References commitChanges(), and m_xWrappedTruncate.

void SAL_CALL Stream::writeBytes ( const css::uno::Sequence< sal_Int8 > &  aData)
overridevirtual

Definition at line 734 of file tdoc_stgelems.cxx.

References commitChanges(), and m_xWrappedOutputStream.

Member Data Documentation

css::uno::Reference< css::uno::XAggregation > tdoc_ucp::Stream::m_xAggProxy
private

Definition at line 324 of file tdoc_stgelems.hxx.

Referenced by queryInterface(), Stream(), and ~Stream().

css::uno::Reference< css::lang::XComponent > tdoc_ucp::Stream::m_xWrappedComponent
private

Definition at line 334 of file tdoc_stgelems.hxx.

Referenced by addEventListener(), dispose(), removeEventListener(), and Stream().

css::uno::Reference< css::io::XInputStream > tdoc_ucp::Stream::m_xWrappedInputStream
private

Definition at line 332 of file tdoc_stgelems.hxx.

Referenced by available(), closeInput(), readBytes(), readSomeBytes(), and skipBytes().

css::uno::Reference< css::io::XOutputStream > tdoc_ucp::Stream::m_xWrappedOutputStream
private

Definition at line 328 of file tdoc_stgelems.hxx.

Referenced by closeOutput(), flush(), and writeBytes().

css::uno::Reference< css::io::XStream > tdoc_ucp::Stream::m_xWrappedStream
private

Definition at line 326 of file tdoc_stgelems.hxx.

Referenced by Stream().

css::uno::Reference< css::io::XTruncate > tdoc_ucp::Stream::m_xWrappedTruncate
private

Definition at line 330 of file tdoc_stgelems.hxx.

Referenced by truncate().

css::uno::Reference< css::lang::XTypeProvider > tdoc_ucp::Stream::m_xWrappedTypeProv
private

Definition at line 336 of file tdoc_stgelems.hxx.

Referenced by getTypes(), and Stream().


The documentation for this class was generated from the following files: