LibreOffice Module ucb (master) 1
|
#include <tdoc_storage.hxx>
Classes | |
struct | ltstrbool |
Public Member Functions | |
StorageElementFactory (css::uno::Reference< css::uno::XComponentContext > xContext, rtl::Reference< OfficeDocumentsManager > xDocsMgr) | |
virtual | ~StorageElementFactory () override |
css::uno::Reference< css::embed::XStorage > | createTemporaryStorage () |
css::uno::Reference< css::embed::XStorage > | createStorage (const OUString &rUri, StorageAccessMode eMode) |
css::uno::Reference< css::io::XInputStream > | createInputStream (const OUString &rUri, const OUString &rPassword) |
css::uno::Reference< css::io::XOutputStream > | createOutputStream (const OUString &rUri, const OUString &rPassword, bool bTruncate) |
css::uno::Reference< css::io::XStream > | createStream (const OUString &rUri, const OUString &rPassword, bool bTruncate) |
Public Member Functions inherited from salhelper::SimpleReferenceObject | |
SimpleReferenceObject () | |
void | acquire () |
void | release () |
Private Types | |
typedef std::map< std::pair< OUString, bool >, Storage *, ltstrbool > | StorageMap |
Private Member Functions | |
void | releaseElement (Storage const *pElement) |
css::uno::Reference< css::embed::XStorage > | queryParentStorage (const OUString &rUri, StorageAccessMode eMode) |
css::uno::Reference< css::embed::XStorage > | queryStorage (const css::uno::Reference< css::embed::XStorage > &xParentStorage, const OUString &rUri, StorageAccessMode eMode) |
css::uno::Reference< css::io::XStream > | queryStream (const css::uno::Reference< css::embed::XStorage > &xParentStorage, const OUString &rUri, const OUString &rPassword, StorageAccessMode eMode, bool bTruncate) |
Private Attributes | |
StorageMap | m_aMap |
osl::Mutex | m_aMutex |
rtl::Reference< OfficeDocumentsManager > | m_xDocsMgr |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
Friends | |
class | Storage |
Additional Inherited Members | |
Static Public Member Functions inherited from salhelper::SimpleReferenceObject | |
static void * | operator new (std::size_t nSize) |
static void * | operator new (std::size_t nSize, std::nothrow_t const &rNothrow) |
static void | operator delete (void *pPtr) |
static void | operator delete (void *pPtr, std::nothrow_t const &rNothrow) |
Protected Member Functions inherited from salhelper::SimpleReferenceObject | |
virtual | ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE |
Protected Attributes inherited from salhelper::SimpleReferenceObject | |
oslInterlockedCount | m_nCount |
Definition at line 43 of file tdoc_storage.hxx.
|
private |
Definition at line 152 of file tdoc_storage.hxx.
StorageElementFactory::StorageElementFactory | ( | css::uno::Reference< css::uno::XComponentContext > | xContext, |
rtl::Reference< OfficeDocumentsManager > | xDocsMgr | ||
) |
Definition at line 44 of file tdoc_storage.cxx.
References m_xContext.
|
overridevirtual |
Definition at line 53 of file tdoc_storage.cxx.
References m_aMap.
uno::Reference< io::XInputStream > StorageElementFactory::createInputStream | ( | const OUString & | rUri, |
const OUString & | rPassword | ||
) |
css::embed::InvalidStorageException | |
css::lang::IllegalArgumentException | |
css::io::IOException | |
css::embed::StorageWrappedTargetException | |
css::packages::WrongPasswordException | |
css::uno::RuntimeException |
Definition at line 228 of file tdoc_storage.cxx.
References m_aMutex, queryParentStorage(), queryStream(), tdoc_ucp::READ, and xStream.
uno::Reference< io::XOutputStream > StorageElementFactory::createOutputStream | ( | const OUString & | rUri, |
const OUString & | rPassword, | ||
bool | bTruncate | ||
) |
css::embed::InvalidStorageException | |
css::lang::IllegalArgumentException | |
css::io::IOException | |
css::embed::StorageWrappedTargetException | |
css::packages::WrongPasswordException | |
css::uno::RuntimeException |
Definition at line 251 of file tdoc_storage.cxx.
References m_aMutex, m_xContext, queryParentStorage(), queryStream(), tdoc_ucp::READ_WRITE_CREATE, and xStream.
uno::Reference< embed::XStorage > StorageElementFactory::createStorage | ( | const OUString & | rUri, |
StorageAccessMode | eMode | ||
) |
css::embed::InvalidStorageException | |
css::lang::IllegalArgumentException | |
css::io::IOException | |
css::embed::StorageWrappedTargetException | |
css::uno::RuntimeException |
Definition at line 82 of file tdoc_storage.cxx.
References eMode, tdoc_ucp::Uri::isDocument(), tdoc_ucp::Uri::isRoot(), m_aMap, m_aMutex, m_xContext, queryParentStorage(), queryStorage(), tdoc_ucp::READ, tdoc_ucp::READ_WRITE_CREATE, tdoc_ucp::READ_WRITE_NOCREATE, and Storage.
Referenced by queryParentStorage().
uno::Reference< io::XStream > StorageElementFactory::createStream | ( | const OUString & | rUri, |
const OUString & | rPassword, | ||
bool | bTruncate | ||
) |
css::embed::InvalidStorageException | |
css::lang::IllegalArgumentException | |
css::io::IOException | |
css::embed::StorageWrappedTargetException | |
css::packages::WrongPasswordException | |
css::uno::RuntimeException |
Definition at line 290 of file tdoc_storage.cxx.
References m_aMutex, m_xContext, m_xDocsMgr, queryParentStorage(), queryStream(), tdoc_ucp::READ_WRITE_CREATE, tdoc_ucp::READ_WRITE_NOCREATE, and xStream.
uno::Reference< embed::XStorage > StorageElementFactory::createTemporaryStorage | ( | ) |
css::uno::Exception | |
css::uno::RuntimeException |
Definition at line 61 of file tdoc_storage.cxx.
References m_xContext.
Referenced by queryStorage().
|
private |
css::embed::InvalidStorageException | |
css::lang::IllegalArgumentException | |
css::io::IOException | |
css::embed::StorageWrappedTargetException | |
css::uno::RuntimeException |
Definition at line 335 of file tdoc_storage.cxx.
References createStorage(), eMode, tdoc_ucp::Uri::getParentUri(), tdoc_ucp::Uri::isRoot(), and tdoc_ucp::READ_WRITE_CREATE.
Referenced by createInputStream(), createOutputStream(), createStorage(), and createStream().
|
private |
css::embed::InvalidStorageException | |
css::lang::IllegalArgumentException | |
css::io::IOException | |
css::embed::StorageWrappedTargetException | |
css::uno::RuntimeException |
Definition at line 354 of file tdoc_storage.cxx.
References createTemporaryStorage(), eMode, cppu::getCaughtException(), tdoc_ucp::Uri::getDecodedName(), tdoc_ucp::Uri::getDocumentId(), m_xDocsMgr, tdoc_ucp::READ, tdoc_ucp::READ_WRITE_CREATE, and tdoc_ucp::READ_WRITE_NOCREATE.
Referenced by createStorage().
|
private |
css::embed::InvalidStorageException | |
css::lang::IllegalArgumentException | |
css::io::IOException | |
css::embed::StorageWrappedTargetException | |
css::packages::WrongPasswordException | |
css::uno::RuntimeException |
Definition at line 490 of file tdoc_storage.cxx.
References eMode, tdoc_ucp::Uri::getDecodedName(), tdoc_ucp::Uri::isDocument(), tdoc_ucp::Uri::isRoot(), m_aMutex, tdoc_ucp::READ, tdoc_ucp::READ_WRITE_CREATE, tdoc_ucp::READ_WRITE_NOCREATE, and xStream.
Referenced by createInputStream(), createOutputStream(), and createStream().
|
private |
Definition at line 323 of file tdoc_storage.cxx.
References tdoc_ucp::Storage::m_aContainerIt, m_aMap, and m_aMutex.
|
friend |
Definition at line 97 of file tdoc_storage.hxx.
Referenced by createStorage().
|
private |
Definition at line 154 of file tdoc_storage.hxx.
Referenced by createStorage(), releaseElement(), and ~StorageElementFactory().
|
private |
Definition at line 155 of file tdoc_storage.hxx.
Referenced by createInputStream(), createOutputStream(), createStorage(), createStream(), queryStream(), and releaseElement().
|
private |
Definition at line 157 of file tdoc_storage.hxx.
Referenced by createOutputStream(), createStorage(), createStream(), and createTemporaryStorage().
|
private |
Definition at line 156 of file tdoc_storage.hxx.
Referenced by createStream(), and queryStorage().