LibreOffice Module sot (master) 1
|
#include <xolesimplestorage.hxx>
Public Member Functions | |
OLESimpleStorage (css::uno::Reference< css::uno::XComponentContext > xContext, css::uno::Sequence< css::uno::Any > const &arguments) | |
virtual | ~OLESimpleStorage () override |
virtual void SAL_CALL | insertByName (const OUString &aName, const css::uno::Any &aElement) override |
virtual void SAL_CALL | removeByName (const OUString &Name) override |
virtual void SAL_CALL | replaceByName (const OUString &aName, const css::uno::Any &aElement) 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 | dispose () final 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 > &xListener) override |
virtual void SAL_CALL | commit () override |
virtual void SAL_CALL | revert () override |
virtual css::uno::Sequence< ::sal_Int8 > SAL_CALL | getClassID () override |
virtual OUString SAL_CALL | getClassName () override |
virtual void SAL_CALL | setClassInfo (const css::uno::Sequence< ::sal_Int8 > &aClassID, const OUString &sClassName) override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Private Member Functions | |
void | UpdateOriginal_Impl () |
Static Private Member Functions | |
static void | InsertInputStreamToStorage_Impl (BaseStorage *pStorage, const OUString &aName, const css::uno::Reference< css::io::XInputStream > &xInputStream) |
static void | InsertNameAccessToStorage_Impl (BaseStorage *pStorage, const OUString &aName, const css::uno::Reference< css::container::XNameAccess > &xNameAccess) |
Private Attributes | |
std::mutex | m_aMutex |
bool | m_bDisposed |
css::uno::Reference< css::io::XStream > | m_xStream |
css::uno::Reference< css::io::XStream > | m_xTempStream |
std::unique_ptr< SvStream > | m_pStream |
std::unique_ptr< BaseStorage > | m_pStorage |
::comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > | m_aListenersContainer |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
bool | m_bNoTemporaryCopy |
Definition at line 43 of file xolesimplestorage.hxx.
OLESimpleStorage::OLESimpleStorage | ( | css::uno::Reference< css::uno::XComponentContext > | xContext, |
css::uno::Sequence< css::uno::Any > const & | arguments | ||
) |
Definition at line 45 of file xolesimplestorage.cxx.
References aArguments, comphelper::OStorageHelper::CopyInputToOutput(), utl::UcbStreamHelper::CreateStream(), m_bDisposed, m_bNoTemporaryCopy, m_pStorage, m_pStream, m_xContext, m_xContext, m_xStream, m_xTempStream, Storage, and xStream.
|
overridevirtual |
Definition at line 140 of file xolesimplestorage.cxx.
References dispose(), and m_refCount.
|
overridevirtual |
Definition at line 567 of file xolesimplestorage.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), m_aListenersContainer, m_aMutex, and m_bDisposed.
|
overridevirtual |
Definition at line 594 of file xolesimplestorage.cxx.
References m_aMutex, m_bDisposed, m_bNoTemporaryCopy, m_pStorage, m_xStream, and UpdateOriginal_Impl().
|
finaloverridevirtual |
Definition at line 544 of file xolesimplestorage.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::disposeAndClear(), comphelper::OInterfaceContainerHelper4< class ListenerT >::getLength(), m_aListenersContainer, m_aMutex, m_bDisposed, m_pStorage, m_pStream, m_xStream, and m_xTempStream.
Referenced by ~OLESimpleStorage().
|
overridevirtual |
Definition at line 356 of file xolesimplestorage.cxx.
References aData, aName, utl::UcbStreamHelper::CreateStream(), ex, cppu::getCaughtException(), m_aMutex, m_bDisposed, m_pStorage, m_xContext, nBytesCount, and Storage.
|
overridevirtual |
Definition at line 643 of file xolesimplestorage.cxx.
References m_aMutex, m_bDisposed, and m_pStorage.
|
overridevirtual |
Definition at line 656 of file xolesimplestorage.cxx.
|
overridevirtual |
Definition at line 457 of file xolesimplestorage.cxx.
References aSeq, GetName(), m_aMutex, m_bDisposed, and m_pStorage.
|
overridevirtual |
Definition at line 507 of file xolesimplestorage.cxx.
References cppu::UnoType< typename T >::get(), m_aMutex, and m_bDisposed.
|
overridevirtual |
Definition at line 668 of file xolesimplestorage.cxx.
|
overridevirtual |
Definition at line 678 of file xolesimplestorage.cxx.
|
overridevirtual |
Definition at line 485 of file xolesimplestorage.cxx.
References aName, m_aMutex, m_bDisposed, and m_pStorage.
|
overridevirtual |
Definition at line 518 of file xolesimplestorage.cxx.
References m_aMutex, m_bDisposed, and m_pStorage.
|
overridevirtual |
Definition at line 257 of file xolesimplestorage.cxx.
References aName, cppu::getCaughtException(), InsertInputStreamToStorage_Impl(), InsertNameAccessToStorage_Impl(), m_aMutex, m_bDisposed, m_bNoTemporaryCopy, m_pStorage, m_xStream, and xStream.
Referenced by replaceByName().
|
staticprivate |
css::uno::Exception |
Definition at line 175 of file xolesimplestorage.cxx.
References aData, aName, StorageBase::GetError(), BaseStorage::IsContained(), nBytesCount, BaseStorage::OpenStream(), BaseStorage::Remove(), and StorageBase::ResetError().
Referenced by insertByName(), and InsertNameAccessToStorage_Impl().
|
staticprivate |
css::uno::Exception |
Definition at line 214 of file xolesimplestorage.cxx.
References aName, StorageBase::GetError(), InsertInputStreamToStorage_Impl(), InsertNameAccessToStorage_Impl(), BaseStorage::IsContained(), BaseStorage::OpenStorage(), BaseStorage::Remove(), and StorageBase::ResetError().
Referenced by insertByName(), and InsertNameAccessToStorage_Impl().
|
overridevirtual |
Definition at line 306 of file xolesimplestorage.cxx.
References aName, m_aMutex, m_bDisposed, m_bNoTemporaryCopy, m_pStorage, and m_xStream.
Referenced by replaceByName().
|
overridevirtual |
Definition at line 579 of file xolesimplestorage.cxx.
References m_aListenersContainer, m_aMutex, m_bDisposed, and comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface().
|
overridevirtual |
Definition at line 332 of file xolesimplestorage.cxx.
References aName, insertByName(), m_aMutex, m_bDisposed, and removeByName().
|
overridevirtual |
Definition at line 617 of file xolesimplestorage.cxx.
References m_aMutex, m_bDisposed, m_bNoTemporaryCopy, m_pStorage, m_xStream, and UpdateOriginal_Impl().
|
overridevirtual |
Definition at line 661 of file xolesimplestorage.cxx.
|
overridevirtual |
Definition at line 673 of file xolesimplestorage.cxx.
References ServiceName, and cppu::supportsService().
|
private |
Definition at line 149 of file xolesimplestorage.cxx.
References comphelper::OStorageHelper::CopyInputToOutput(), m_bNoTemporaryCopy, m_xStream, m_xTempStream, and nPos.
|
private |
Definition at line 54 of file xolesimplestorage.hxx.
Referenced by addEventListener(), dispose(), and removeEventListener().
|
private |
Definition at line 45 of file xolesimplestorage.hxx.
Referenced by addEventListener(), commit(), dispose(), getByName(), getClassID(), getElementNames(), getElementType(), hasByName(), hasElements(), insertByName(), removeByName(), removeEventListener(), replaceByName(), and revert().
|
private |
Definition at line 47 of file xolesimplestorage.hxx.
Referenced by addEventListener(), commit(), dispose(), getByName(), getClassID(), getElementNames(), getElementType(), hasByName(), hasElements(), insertByName(), removeByName(), removeEventListener(), replaceByName(), and revert().
|
private |
Definition at line 57 of file xolesimplestorage.hxx.
Referenced by commit(), insertByName(), OLESimpleStorage(), removeByName(), revert(), and UpdateOriginal_Impl().
|
private |
Definition at line 52 of file xolesimplestorage.hxx.
Referenced by commit(), dispose(), getByName(), getClassID(), getElementNames(), hasByName(), hasElements(), insertByName(), OLESimpleStorage(), removeByName(), and revert().
|
private |
Definition at line 51 of file xolesimplestorage.hxx.
Referenced by dispose(), and OLESimpleStorage().
|
private |
Definition at line 55 of file xolesimplestorage.hxx.
Referenced by getByName(), and OLESimpleStorage().
|
private |
Definition at line 49 of file xolesimplestorage.hxx.
Referenced by commit(), dispose(), insertByName(), OLESimpleStorage(), removeByName(), revert(), and UpdateOriginal_Impl().
|
private |
Definition at line 50 of file xolesimplestorage.hxx.
Referenced by dispose(), OLESimpleStorage(), and UpdateOriginal_Impl().