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:
Collaboration diagram for tdoc_ucp::Stream:

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

Detailed Description

Definition at line 245 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 ( )

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)

Definition at line 839 of file tdoc_stgelems.cxx.

References m_xWrappedComponent.

sal_Int32 SAL_CALL Stream::available ( )

Definition at line 811 of file tdoc_stgelems.cxx.

References m_xWrappedInputStream.

void SAL_CALL Stream::closeInput ( )

Definition at line 818 of file tdoc_stgelems.cxx.

References m_xWrappedInputStream.

void SAL_CALL Stream::closeOutput ( )
void Stream::commitChanges ( )

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  )
void SAL_CALL Stream::flush ( )

Definition at line 745 of file tdoc_stgelems.cxx.

References commitChanges(), and m_xWrappedOutputStream.

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

Definition at line 707 of file tdoc_stgelems.cxx.

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

Definition at line 717 of file tdoc_stgelems.cxx.

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

Definition at line 724 of file tdoc_stgelems.cxx.

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

Definition at line 700 of file tdoc_stgelems.cxx.

References m_xWrappedTypeProv.

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

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 

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 

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)

Definition at line 847 of file tdoc_stgelems.cxx.

References m_xWrappedComponent.

void SAL_CALL Stream::skipBytes ( sal_Int32  nBytesToSkip)

Definition at line 804 of file tdoc_stgelems.cxx.

References m_xWrappedInputStream.

void SAL_CALL Stream::truncate ( )

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)

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

Definition at line 320 of file tdoc_stgelems.hxx.

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

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

Definition at line 330 of file tdoc_stgelems.hxx.

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

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

Definition at line 328 of file tdoc_stgelems.hxx.

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

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

Definition at line 324 of file tdoc_stgelems.hxx.

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

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

Definition at line 322 of file tdoc_stgelems.hxx.

Referenced by Stream().

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

Definition at line 326 of file tdoc_stgelems.hxx.

Referenced by truncate().

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

Definition at line 332 of file tdoc_stgelems.hxx.

Referenced by getTypes(), and Stream().

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