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 (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 244 of file tdoc_stgelems.hxx.

Constructor & Destructor Documentation

◆ Stream()

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

Definition at line 672 of file tdoc_stgelems.cxx.

References m_xAggProxy.

Member Function Documentation

◆ addEventListener()

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

Definition at line 840 of file tdoc_stgelems.cxx.

References m_xWrappedComponent.

◆ available()

sal_Int32 SAL_CALL Stream::available ( )
overridevirtual

Definition at line 812 of file tdoc_stgelems.cxx.

References m_xWrappedInputStream.

◆ closeInput()

void SAL_CALL Stream::closeInput ( )
overridevirtual

Definition at line 819 of file tdoc_stgelems.cxx.

References m_xWrappedInputStream.

◆ closeOutput()

void SAL_CALL Stream::closeOutput ( )
overridevirtual

◆ commitChanges()

void Stream::commitChanges ( )
private
Exceptions
css::io::IOException

Definition at line 858 of file tdoc_stgelems.cxx.

References tdoc_ucp::ParentStorageHolder::getParentStorage().

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

◆ dispose()

void SAL_CALL Stream::dispose ( void  )
overridevirtual

◆ flush()

void SAL_CALL Stream::flush ( )
overridevirtual

Definition at line 746 of file tdoc_stgelems.cxx.

References commitChanges(), and m_xWrappedOutputStream.

◆ getImplementationId()

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

Definition at line 708 of file tdoc_stgelems.cxx.

◆ getInputStream()

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

Definition at line 718 of file tdoc_stgelems.cxx.

◆ getOutputStream()

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

Definition at line 725 of file tdoc_stgelems.cxx.

◆ getTypes()

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

Definition at line 701 of file tdoc_stgelems.cxx.

References m_xWrappedTypeProv.

◆ queryInterface()

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

Definition at line 683 of file tdoc_stgelems.cxx.

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

◆ readBytes()

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

Definition at line 789 of file tdoc_stgelems.cxx.

References aData, and m_xWrappedInputStream.

◆ readSomeBytes()

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

Definition at line 797 of file tdoc_stgelems.cxx.

References aData, and m_xWrappedInputStream.

◆ removeEventListener()

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

Definition at line 848 of file tdoc_stgelems.cxx.

References m_xWrappedComponent.

◆ skipBytes()

void SAL_CALL Stream::skipBytes ( sal_Int32  nBytesToSkip)
overridevirtual

Definition at line 805 of file tdoc_stgelems.cxx.

References m_xWrappedInputStream.

◆ truncate()

void SAL_CALL Stream::truncate ( )
overridevirtual

Definition at line 775 of file tdoc_stgelems.cxx.

References commitChanges(), and m_xWrappedTruncate.

◆ writeBytes()

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

Definition at line 735 of file tdoc_stgelems.cxx.

References aData, commitChanges(), and m_xWrappedOutputStream.

Member Data Documentation

◆ m_xAggProxy

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

Definition at line 319 of file tdoc_stgelems.hxx.

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

◆ m_xWrappedComponent

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

Definition at line 329 of file tdoc_stgelems.hxx.

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

◆ m_xWrappedInputStream

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

Definition at line 327 of file tdoc_stgelems.hxx.

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

◆ m_xWrappedOutputStream

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

Definition at line 323 of file tdoc_stgelems.hxx.

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

◆ m_xWrappedStream

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

Definition at line 321 of file tdoc_stgelems.hxx.

Referenced by Stream().

◆ m_xWrappedTruncate

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

Definition at line 325 of file tdoc_stgelems.hxx.

Referenced by truncate().

◆ m_xWrappedTypeProv

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

Definition at line 331 of file tdoc_stgelems.hxx.

Referenced by getTypes(), and Stream().


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