LibreOffice Module ucb (master) 1
|
#include <tdoc_provider.hxx>
Public Member Functions | |
ContentProvider (const css::uno::Reference< css::uno::XComponentContext > &rxContext) | |
virtual | ~ContentProvider () 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 |
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL | queryContent (const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier) override |
virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL | createDocumentContentIdentifier (css::uno::Reference< css::frame::XModel > const &xModel) override |
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL | createDocumentContent (const css::uno::Reference< css::frame::XModel > &Model) override |
css::uno::Reference< css::embed::XStorage > | queryStorage (const OUString &rUri, StorageAccessMode eMode) const |
css::uno::Reference< css::embed::XStorage > | queryStorageClone (const OUString &rUri) const |
css::uno::Reference< css::io::XInputStream > | queryInputStream (const OUString &rUri, const OUString &rPassword) const |
css::uno::Reference< css::io::XOutputStream > | queryOutputStream (const OUString &rUri, const OUString &rPassword, bool bTruncate) const |
css::uno::Reference< css::io::XStream > | queryStream (const OUString &rUri, const OUString &rPassword, bool bTruncate) const |
bool | queryNamesOfChildren (const OUString &rUri, css::uno::Sequence< OUString > &rNames) const |
OUString | queryStorageTitle (const OUString &rUri) const |
css::uno::Reference< css::frame::XModel > | queryDocumentModel (const OUString &rUri) const |
css::util::DateTime | queryStreamDateModified (OUString const &uri) const |
void | notifyDocumentOpened (std::u16string_view rDocId) |
void | notifyDocumentClosed (std::u16string_view rDocId) |
Private Attributes | |
rtl::Reference< OfficeDocumentsManager > | m_xDocsMgr |
rtl::Reference< StorageElementFactory > | m_xStgElemFac |
Definition at line 65 of file tdoc_provider.hxx.
|
explicit |
|
overridevirtual |
Definition at line 60 of file tdoc_provider.cxx.
References m_xDocsMgr.
|
overridevirtual |
Definition at line 163 of file tdoc_provider.cxx.
References tdoc_ucp::Content::create(), createDocumentContentIdentifier(), m_aMutex, m_xContext, and xModel.
|
overridevirtual |
Definition at line 132 of file tdoc_provider.cxx.
References aBuffer, m_xDocsMgr, tdoc_ucp::OfficeDocumentsManager::queryDocumentId(), TDOC_URL_SCHEME, and xModel.
Referenced by createDocumentContent().
|
overridevirtual |
Definition at line 68 of file tdoc_provider.cxx.
|
overridevirtual |
Definition at line 78 of file tdoc_provider.cxx.
void ContentProvider::notifyDocumentClosed | ( | std::u16string_view | rDocId | ) |
Definition at line 196 of file tdoc_provider.cxx.
References tdoc_ucp::Uri::getDocumentId(), tdoc_ucp::Uri::isDocument(), tdoc_ucp::Uri::isRoot(), and tdoc_ucp::Uri::isValid().
Referenced by tdoc_ucp::OfficeDocumentsManager::documentEventOccured().
void ContentProvider::notifyDocumentOpened | ( | std::u16string_view | rDocId | ) |
Definition at line 254 of file tdoc_provider.cxx.
References tdoc_ucp::Uri::isRoot(), and tdoc_ucp::Uri::isValid().
Referenced by tdoc_ucp::OfficeDocumentsManager::documentEventOccured().
|
overridevirtual |
Referenced by tdoc_ucp::Content::queryChildContent().
uno::Reference< frame::XModel > ContentProvider::queryDocumentModel | ( | const OUString & | rUri | ) | const |
Definition at line 554 of file tdoc_provider.cxx.
References tdoc_ucp::Uri::getDocumentId(), m_xDocsMgr, and xModel.
uno::Reference< io::XInputStream > ContentProvider::queryInputStream | ( | const OUString & | rUri, |
const OUString & | rPassword | ||
) | const |
css::packages::WrongPasswordException | |
css::uno::RuntimeException |
Definition at line 358 of file tdoc_provider.cxx.
References m_xStgElemFac, and TOOLS_WARN_EXCEPTION.
bool ContentProvider::queryNamesOfChildren | ( | const OUString & | rUri, |
css::uno::Sequence< OUString > & | rNames | ||
) | const |
Definition at line 470 of file tdoc_provider.cxx.
References tdoc_ucp::Uri::isRoot(), m_xDocsMgr, m_xStgElemFac, tdoc_ucp::READ, and TOOLS_WARN_EXCEPTION.
uno::Reference< io::XOutputStream > ContentProvider::queryOutputStream | ( | const OUString & | rUri, |
const OUString & | rPassword, | ||
bool | bTruncate | ||
) | const |
css::packages::WrongPasswordException | |
css::uno::RuntimeException |
Definition at line 394 of file tdoc_provider.cxx.
References m_xStgElemFac, and TOOLS_WARN_EXCEPTION.
Referenced by lcl_getTruncatedOutputStream().
uno::Reference< embed::XStorage > ContentProvider::queryStorage | ( | const OUString & | rUri, |
StorageAccessMode | eMode | ||
) | const |
Definition at line 286 of file tdoc_provider.cxx.
References eMode, m_xStgElemFac, and TOOLS_WARN_EXCEPTION.
Referenced by tdoc_ucp::Content::copyData(), tdoc_ucp::Content::hasData(), tdoc_ucp::Content::loadData(), and tdoc_ucp::Content::removeData().
uno::Reference< embed::XStorage > ContentProvider::queryStorageClone | ( | const OUString & | rUri | ) | const |
Definition at line 318 of file tdoc_provider.cxx.
References tdoc_ucp::Uri::getDecodedName(), tdoc_ucp::Uri::getParentUri(), m_xStgElemFac, tdoc_ucp::READ, and TOOLS_WARN_EXCEPTION.
OUString ContentProvider::queryStorageTitle | ( | const OUString & | rUri | ) | const |
Definition at line 524 of file tdoc_provider.cxx.
References tdoc_ucp::Uri::getDecodedName(), tdoc_ucp::Uri::getDocumentId(), tdoc_ucp::Uri::isDocument(), tdoc_ucp::Uri::isRoot(), and m_xDocsMgr.
Referenced by tdoc_ucp::Content::loadData().
uno::Reference< io::XStream > ContentProvider::queryStream | ( | const OUString & | rUri, |
const OUString & | rPassword, | ||
bool | bTruncate | ||
) | const |
css::packages::WrongPasswordException | |
css::uno::RuntimeException |
Definition at line 433 of file tdoc_provider.cxx.
References m_xStgElemFac, and TOOLS_WARN_EXCEPTION.
Referenced by tdoc_ucp::Content::getStream().
css::util::DateTime ContentProvider::queryStreamDateModified | ( | OUString const & | uri | ) | const |
Definition at line 570 of file tdoc_provider.cxx.
References m_xDocsMgr.
|
overridevirtual |
Definition at line 73 of file tdoc_provider.cxx.
References ServiceName, and cppu::supportsService().
|
private |
Definition at line 134 of file tdoc_provider.hxx.
Referenced by createDocumentContentIdentifier(), queryDocumentModel(), queryNamesOfChildren(), queryStorageTitle(), queryStreamDateModified(), and ~ContentProvider().
|
private |
Definition at line 135 of file tdoc_provider.hxx.
Referenced by queryInputStream(), queryNamesOfChildren(), queryOutputStream(), queryStorage(), queryStorageClone(), and queryStream().