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, rtl::Reference< OfficeDocumentsManager > const &docsMgr, 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

rtl::Reference< OfficeDocumentsManagerm_docsMgr
 
OUString m_uri
 
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 246 of file tdoc_stgelems.hxx.

Constructor & Destructor Documentation

◆ Stream()

Stream::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 
)

◆ ~Stream()

Stream::~Stream ( )
overridevirtual

Definition at line 676 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 844 of file tdoc_stgelems.cxx.

References m_xWrappedComponent.

◆ available()

sal_Int32 SAL_CALL Stream::available ( )
overridevirtual

Definition at line 816 of file tdoc_stgelems.cxx.

References m_xWrappedInputStream.

◆ closeInput()

void SAL_CALL Stream::closeInput ( )
overridevirtual

Definition at line 823 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 862 of file tdoc_stgelems.cxx.

References tdoc_ucp::ParentStorageHolder::getParentStorage(), m_docsMgr, and m_uri.

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 750 of file tdoc_stgelems.cxx.

References commitChanges(), and m_xWrappedOutputStream.

◆ getImplementationId()

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

Definition at line 712 of file tdoc_stgelems.cxx.

◆ getInputStream()

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

Definition at line 722 of file tdoc_stgelems.cxx.

◆ getOutputStream()

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

Definition at line 729 of file tdoc_stgelems.cxx.

◆ getTypes()

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

Definition at line 705 of file tdoc_stgelems.cxx.

References m_xWrappedTypeProv.

◆ queryInterface()

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

Definition at line 687 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 793 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 801 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 852 of file tdoc_stgelems.cxx.

References m_xWrappedComponent.

◆ skipBytes()

void SAL_CALL Stream::skipBytes ( sal_Int32  nBytesToSkip)
overridevirtual

Definition at line 809 of file tdoc_stgelems.cxx.

References m_xWrappedInputStream.

◆ truncate()

void SAL_CALL Stream::truncate ( )
overridevirtual

Definition at line 779 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 739 of file tdoc_stgelems.cxx.

References aData, commitChanges(), and m_xWrappedOutputStream.

Member Data Documentation

◆ m_docsMgr

rtl::Reference<OfficeDocumentsManager> tdoc_ucp::Stream::m_docsMgr
private

Definition at line 321 of file tdoc_stgelems.hxx.

Referenced by commitChanges().

◆ m_uri

OUString tdoc_ucp::Stream::m_uri
private

Definition at line 322 of file tdoc_stgelems.hxx.

Referenced by commitChanges().

◆ m_xAggProxy

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().

◆ m_xWrappedComponent

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().

◆ m_xWrappedInputStream

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().

◆ m_xWrappedOutputStream

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().

◆ m_xWrappedStream

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

Definition at line 326 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 330 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 336 of file tdoc_stgelems.hxx.

Referenced by getTypes(), and Stream().


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