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, const 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 () override throw ()
 
virtual void SAL_CALL release () override throw ()
 
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 (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 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 const m_bIsDocumentStorage
 
StorageElementFactory::StorageMap::iterator m_aContainerIt
 

Friends

class StorageElementFactory
 
class std::unique_ptr< Storage >
 

Additional Inherited Members

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

Detailed Description

Definition at line 73 of file tdoc_stgelems.hxx.

Constructor & Destructor Documentation

tdoc_ucp::Storage::Storage ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const 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 ( )
overridevirtual

Definition at line 116 of file tdoc_stgelems.cxx.

References m_bIsDocumentStorage, m_xAggProxy, and m_xWrappedComponent.

Member Function Documentation

void SAL_CALL Storage::acquire ( )
throw (
)
overridevirtual

Definition at line 162 of file tdoc_stgelems.cxx.

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

Definition at line 212 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

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

Definition at line 314 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

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

Definition at line 306 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

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

Definition at line 372 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

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

Definition at line 324 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

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

Definition at line 332 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

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

Definition at line 271 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

void SAL_CALL Storage::dispose ( void  )
overridevirtual

Definition at line 205 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

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

Definition at line 247 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

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

Definition at line 254 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

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

Definition at line 230 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

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

Definition at line 195 of file tdoc_stgelems.cxx.

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

Definition at line 188 of file tdoc_stgelems.cxx.

References m_xWrappedTypeProv.

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

Definition at line 261 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

sal_Bool SAL_CALL Storage::hasElements ( )
overridevirtual

Definition at line 237 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

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

Definition at line 349 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

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

Definition at line 341 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

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

Definition at line 382 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

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

Definition at line 287 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

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

Definition at line 298 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

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

Definition at line 279 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

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

Definition at line 148 of file tdoc_stgelems.cxx.

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

void SAL_CALL Storage::release ( )
throw (
)
overridevirtual

Definition at line 170 of file tdoc_stgelems.cxx.

References m_xFactory.

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

Definition at line 357 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

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

Definition at line 219 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

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

Definition at line 364 of file tdoc_stgelems.cxx.

References m_xWrappedStorage.

void SAL_CALL Storage::revert ( )
overridevirtual

Friends And Related Function Documentation

friend class std::unique_ptr< Storage >
friend

Definition at line 181 of file tdoc_stgelems.hxx.

friend class StorageElementFactory
friend

Definition at line 180 of file tdoc_stgelems.hxx.

Member Data Documentation

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

Definition at line 178 of file tdoc_stgelems.hxx.

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

bool const tdoc_ucp::Storage::m_bIsDocumentStorage
private

Definition at line 176 of file tdoc_stgelems.hxx.

Referenced by ~Storage().

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

Definition at line 171 of file tdoc_stgelems.hxx.

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

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

Definition at line 170 of file tdoc_stgelems.hxx.

Referenced by release().

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

Definition at line 174 of file tdoc_stgelems.hxx.

Referenced by ~Storage().

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

Definition at line 173 of file tdoc_stgelems.hxx.

Referenced by commit(), and revert().

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

Definition at line 175 of file tdoc_stgelems.hxx.

Referenced by getTypes().


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