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

#include <tdoc_stgelems.hxx>

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

Public Member Functions

 Storage (const css::uno::Reference< css::uno::XComponentContext > &rxContext, rtl::Reference< StorageElementFactory > xFactory, const OUString &rUri, const css::uno::Reference< css::embed::XStorage > &xParentStorage, const css::uno::Reference< css::embed::XStorage > &xStorageToWrap)
 
virtual ~Storage () override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () 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
 
virtual css::uno::Any SAL_CALL getByName (const OUString &aName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames () override
 
virtual sal_Bool SAL_CALL hasByName (const OUString &aName) override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual void SAL_CALL copyToStorage (const css::uno::Reference< css::embed::XStorage > &xDest) override
 
virtual css::uno::Reference< css::io::XStream > SAL_CALL openStreamElement (const OUString &aStreamName, sal_Int32 nOpenMode) override
 
virtual css::uno::Reference< css::io::XStream > SAL_CALL openEncryptedStreamElement (const OUString &aStreamName, sal_Int32 nOpenMode, const OUString &aPassword) override
 
virtual css::uno::Reference< css::embed::XStorage > SAL_CALL openStorageElement (const OUString &aStorName, sal_Int32 nOpenMode) override
 
virtual css::uno::Reference< css::io::XStream > SAL_CALL cloneStreamElement (const OUString &aStreamName) override
 
virtual css::uno::Reference< css::io::XStream > SAL_CALL cloneEncryptedStreamElement (const OUString &aStreamName, const OUString &aPassword) override
 
virtual void SAL_CALL copyLastCommitTo (const css::uno::Reference< css::embed::XStorage > &xTargetStorage) override
 
virtual void SAL_CALL copyStorageElementLastCommitTo (const OUString &aStorName, const css::uno::Reference< css::embed::XStorage > &xTargetStorage) override
 
virtual sal_Bool SAL_CALL isStreamElement (const OUString &aElementName) override
 
virtual sal_Bool SAL_CALL isStorageElement (const OUString &aElementName) override
 
virtual void SAL_CALL removeElement (const OUString &aElementName) override
 
virtual void SAL_CALL renameElement (const OUString &aEleName, const OUString &aNewName) override
 
virtual void SAL_CALL copyElementTo (const OUString &aElementName, const css::uno::Reference< css::embed::XStorage > &xDest, const OUString &aNewName) override
 
virtual void SAL_CALL moveElementTo (const OUString &aElementName, const css::uno::Reference< css::embed::XStorage > &xDest, const OUString &rNewName) override
 
virtual void SAL_CALL commit () override
 
virtual void SAL_CALL revert () 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 Attributes

rtl::Reference< StorageElementFactorym_xFactory
 
css::uno::Reference< css::uno::XAggregation > m_xAggProxy
 
css::uno::Reference< css::embed::XStorage > m_xWrappedStorage
 
css::uno::Reference< css::embed::XTransactedObject > m_xWrappedTransObj
 
css::uno::Reference< css::lang::XComponent > m_xWrappedComponent
 
css::uno::Reference< css::lang::XTypeProvider > m_xWrappedTypeProv
 
bool m_bIsDocumentStorage
 
StorageElementFactory::StorageMap::iterator m_aContainerIt
 

Friends

class StorageElementFactory
 

Detailed Description

Definition at line 72 of file tdoc_stgelems.hxx.

Constructor & Destructor Documentation

◆ Storage()

Storage::Storage ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
rtl::Reference< StorageElementFactory xFactory,
const OUString &  rUri,
const css::uno::Reference< css::embed::XStorage > &  xParentStorage,
const css::uno::Reference< css::embed::XStorage > &  xStorageToWrap 
)

◆ ~Storage()

Storage::~Storage ( )
overridevirtual

Member Function Documentation

◆ acquire()

void SAL_CALL Storage::acquire ( )
overridevirtualnoexcept

Definition at line 164 of file tdoc_stgelems.cxx.

References m_refCount.

◆ addEventListener()

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

Definition at line 215 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

◆ cloneEncryptedStreamElement()

uno::Reference< io::XStream > SAL_CALL Storage::cloneEncryptedStreamElement ( const OUString &  aStreamName,
const OUString &  aPassword 
)
overridevirtual

Definition at line 317 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

◆ cloneStreamElement()

uno::Reference< io::XStream > SAL_CALL Storage::cloneStreamElement ( const OUString &  aStreamName)
overridevirtual

Definition at line 309 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

◆ commit()

void SAL_CALL Storage::commit ( )
overridevirtual

◆ copyElementTo()

void SAL_CALL Storage::copyElementTo ( const OUString &  aElementName,
const css::uno::Reference< css::embed::XStorage > &  xDest,
const OUString &  aNewName 
)
overridevirtual

Definition at line 375 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

◆ copyLastCommitTo()

void SAL_CALL Storage::copyLastCommitTo ( const css::uno::Reference< css::embed::XStorage > &  xTargetStorage)
overridevirtual

Definition at line 327 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

◆ copyStorageElementLastCommitTo()

void SAL_CALL Storage::copyStorageElementLastCommitTo ( const OUString &  aStorName,
const css::uno::Reference< css::embed::XStorage > &  xTargetStorage 
)
overridevirtual

Definition at line 335 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

◆ copyToStorage()

void SAL_CALL Storage::copyToStorage ( const css::uno::Reference< css::embed::XStorage > &  xDest)
overridevirtual

Definition at line 274 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

◆ dispose()

void SAL_CALL Storage::dispose ( void  )
overridevirtual

Definition at line 207 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

◆ getByName()

uno::Any SAL_CALL Storage::getByName ( const OUString &  aName)
overridevirtual

Definition at line 250 of file tdoc_stgelems.cxx.

References aName, and m_xWrappedStorage.

◆ getElementNames()

uno::Sequence< OUString > SAL_CALL Storage::getElementNames ( )
overridevirtual

Definition at line 257 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

◆ getElementType()

uno::Type SAL_CALL Storage::getElementType ( )
overridevirtual

Definition at line 233 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

◆ getImplementationId()

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

Definition at line 197 of file tdoc_stgelems.cxx.

◆ getTypes()

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

Definition at line 190 of file tdoc_stgelems.cxx.

References m_xWrappedTypeProv.

◆ hasByName()

sal_Bool SAL_CALL Storage::hasByName ( const OUString &  aName)
overridevirtual

Definition at line 264 of file tdoc_stgelems.cxx.

References aName, and m_xWrappedStorage.

◆ hasElements()

sal_Bool SAL_CALL Storage::hasElements ( )
overridevirtual

Definition at line 240 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

◆ isStorageElement()

sal_Bool SAL_CALL Storage::isStorageElement ( const OUString &  aElementName)
overridevirtual

Definition at line 352 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

◆ isStreamElement()

sal_Bool SAL_CALL Storage::isStreamElement ( const OUString &  aElementName)
overridevirtual

Definition at line 344 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

◆ moveElementTo()

void SAL_CALL Storage::moveElementTo ( const OUString &  aElementName,
const css::uno::Reference< css::embed::XStorage > &  xDest,
const OUString &  rNewName 
)
overridevirtual

Definition at line 385 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

◆ openEncryptedStreamElement()

uno::Reference< io::XStream > SAL_CALL Storage::openEncryptedStreamElement ( const OUString &  aStreamName,
sal_Int32  nOpenMode,
const OUString &  aPassword 
)
overridevirtual

Definition at line 290 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

◆ openStorageElement()

uno::Reference< embed::XStorage > SAL_CALL Storage::openStorageElement ( const OUString &  aStorName,
sal_Int32  nOpenMode 
)
overridevirtual

Definition at line 301 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

◆ openStreamElement()

uno::Reference< io::XStream > SAL_CALL Storage::openStreamElement ( const OUString &  aStreamName,
sal_Int32  nOpenMode 
)
overridevirtual

Definition at line 282 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

◆ queryInterface()

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

Definition at line 150 of file tdoc_stgelems.cxx.

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

◆ release()

void SAL_CALL Storage::release ( )
overridevirtualnoexcept

Definition at line 172 of file tdoc_stgelems.cxx.

References m_refCount, and m_xFactory.

◆ removeElement()

void SAL_CALL Storage::removeElement ( const OUString &  aElementName)
overridevirtual

Definition at line 360 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

◆ removeEventListener()

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

Definition at line 222 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

◆ renameElement()

void SAL_CALL Storage::renameElement ( const OUString &  aEleName,
const OUString &  aNewName 
)
overridevirtual

Definition at line 367 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

◆ revert()

void SAL_CALL Storage::revert ( )
overridevirtual

Friends And Related Function Documentation

◆ StorageElementFactory

friend class StorageElementFactory
friend

Definition at line 179 of file tdoc_stgelems.hxx.

Member Data Documentation

◆ m_aContainerIt

StorageElementFactory::StorageMap::iterator tdoc_ucp::Storage::m_aContainerIt
private

Definition at line 177 of file tdoc_stgelems.hxx.

Referenced by tdoc_ucp::StorageElementFactory::releaseElement().

◆ m_bIsDocumentStorage

bool tdoc_ucp::Storage::m_bIsDocumentStorage
private

Definition at line 175 of file tdoc_stgelems.hxx.

Referenced by ~Storage().

◆ m_xAggProxy

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

Definition at line 170 of file tdoc_stgelems.hxx.

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

◆ m_xFactory

rtl::Reference< StorageElementFactory > tdoc_ucp::Storage::m_xFactory
private

Definition at line 169 of file tdoc_stgelems.hxx.

Referenced by release().

◆ m_xWrappedComponent

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

Definition at line 173 of file tdoc_stgelems.hxx.

Referenced by Storage(), and ~Storage().

◆ m_xWrappedStorage

css::uno::Reference< css::embed::XStorage > tdoc_ucp::Storage::m_xWrappedStorage
private

◆ m_xWrappedTransObj

css::uno::Reference< css::embed::XTransactedObject > tdoc_ucp::Storage::m_xWrappedTransObj
private

Definition at line 172 of file tdoc_stgelems.hxx.

Referenced by commit(), and revert().

◆ m_xWrappedTypeProv

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

Definition at line 174 of file tdoc_stgelems.hxx.

Referenced by getTypes(), and Storage().


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