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

#include <tdoc_provider.hxx>

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

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< OfficeDocumentsManagerm_xDocsMgr
 
rtl::Reference< StorageElementFactorym_xStgElemFac
 

Detailed Description

Definition at line 65 of file tdoc_provider.hxx.

Constructor & Destructor Documentation

◆ ContentProvider()

tdoc_ucp::ContentProvider::ContentProvider ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)
explicit

◆ ~ContentProvider()

ContentProvider::~ContentProvider ( )
overridevirtual

Definition at line 60 of file tdoc_provider.cxx.

References m_xDocsMgr.

Member Function Documentation

◆ createDocumentContent()

uno::Reference< ucb::XContent > SAL_CALL ContentProvider::createDocumentContent ( const css::uno::Reference< css::frame::XModel > &  Model)
overridevirtual

◆ createDocumentContentIdentifier()

uno::Reference< ucb::XContentIdentifier > SAL_CALL ContentProvider::createDocumentContentIdentifier ( css::uno::Reference< css::frame::XModel > const &  xModel)
overridevirtual

◆ getImplementationName()

OUString SAL_CALL ContentProvider::getImplementationName ( )
overridevirtual

Definition at line 68 of file tdoc_provider.cxx.

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > SAL_CALL ContentProvider::getSupportedServiceNames ( )
overridevirtual

Definition at line 78 of file tdoc_provider.cxx.

◆ notifyDocumentClosed()

void ContentProvider::notifyDocumentClosed ( std::u16string_view  rDocId)

◆ notifyDocumentOpened()

void ContentProvider::notifyDocumentOpened ( std::u16string_view  rDocId)

◆ queryContent()

virtual css::uno::Reference< css::ucb::XContent > SAL_CALL tdoc_ucp::ContentProvider::queryContent ( const css::uno::Reference< css::ucb::XContentIdentifier > &  Identifier)
overridevirtual

◆ queryDocumentModel()

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.

◆ queryInputStream()

uno::Reference< io::XInputStream > ContentProvider::queryInputStream ( const OUString &  rUri,
const OUString &  rPassword 
) const
Exceptions
css::packages::WrongPasswordException
css::uno::RuntimeException

Definition at line 358 of file tdoc_provider.cxx.

References m_xStgElemFac, and TOOLS_WARN_EXCEPTION.

◆ queryNamesOfChildren()

bool ContentProvider::queryNamesOfChildren ( const OUString &  rUri,
css::uno::Sequence< OUString > &  rNames 
) const

◆ queryOutputStream()

uno::Reference< io::XOutputStream > ContentProvider::queryOutputStream ( const OUString &  rUri,
const OUString &  rPassword,
bool  bTruncate 
) const
Exceptions
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().

◆ queryStorage()

uno::Reference< embed::XStorage > ContentProvider::queryStorage ( const OUString &  rUri,
StorageAccessMode  eMode 
) const

◆ queryStorageClone()

uno::Reference< embed::XStorage > ContentProvider::queryStorageClone ( const OUString &  rUri) const

◆ queryStorageTitle()

OUString ContentProvider::queryStorageTitle ( const OUString &  rUri) const

◆ queryStream()

uno::Reference< io::XStream > ContentProvider::queryStream ( const OUString &  rUri,
const OUString &  rPassword,
bool  bTruncate 
) const
Exceptions
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().

◆ queryStreamDateModified()

css::util::DateTime ContentProvider::queryStreamDateModified ( OUString const &  uri) const

Definition at line 570 of file tdoc_provider.cxx.

References m_xDocsMgr.

◆ supportsService()

sal_Bool SAL_CALL ContentProvider::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 73 of file tdoc_provider.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ m_xDocsMgr

rtl::Reference< OfficeDocumentsManager > tdoc_ucp::ContentProvider::m_xDocsMgr
private

◆ m_xStgElemFac

rtl::Reference< StorageElementFactory > tdoc_ucp::ContentProvider::m_xStgElemFac
private

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