LibreOffice Module ucb (master)  1
Public Member Functions | Static 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 css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual void SAL_CALL acquire () override throw ()
 
virtual void SAL_CALL release () override throw ()
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () 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::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
 
void notifyDocumentOpened (const OUString &rDocId)
 
void notifyDocumentClosed (const OUString &rDocId)
 
- Public Member Functions inherited from ucbhelper::ContentProviderImplHelper
 ContentProviderImplHelper (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
virtual ~ContentProviderImplHelper () override
 
virtual sal_Int32 SAL_CALL compareContentIds (const css::uno::Reference< css::ucb::XContentIdentifier > &Id1, const css::uno::Reference< css::ucb::XContentIdentifier > &Id2) override
 
osl::Mutex & getContentListMutex ()
 
void queryExistingContents (ContentRefList &rContents)
 
css::uno::Reference< css::ucb::XPersistentPropertySet > getAdditionalPropertySet (const OUString &rKey, bool bCreate)
 
bool renameAdditionalPropertySet (const OUString &rOldKey, const OUString &rNewKey, bool bRecursive)
 
bool copyAdditionalPropertySet (const OUString &rSourceKey, const OUString &rTargetKey, bool bRecursive)
 
bool removeAdditionalPropertySet (const OUString &rKey, bool bRecursive)
 

Static Public Member Functions

static OUString getImplementationName_Static ()
 
static css::uno::Sequence< OUString > getSupportedServiceNames_Static ()
 
static css::uno::Reference< css::lang::XSingleServiceFactory > createServiceFactory (const css::uno::Reference< css::lang::XMultiServiceFactory > &rxServiceMgr)
 

Private Attributes

rtl::Reference< OfficeDocumentsManagerm_xDocsMgr
 
rtl::Reference< StorageElementFactorym_xStgElemFac
 

Additional Inherited Members

- Protected Member Functions inherited from ucbhelper::ContentProviderImplHelper
rtl::Reference< ContentImplHelperqueryExistingContent (const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier)
 
rtl::Reference< ContentImplHelperqueryExistingContent (const OUString &rURL)
 
void registerNewContent (const css::uno::Reference< css::ucb::XContent > &xContent)
 
- Protected Attributes inherited from ucbhelper::ContentProviderImplHelper
osl::Mutex m_aMutex
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 

Detailed Description

Definition at line 56 of file tdoc_provider.hxx.

Constructor & Destructor Documentation

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

Definition at line 65 of file tdoc_provider.cxx.

References m_xDocsMgr.

Member Function Documentation

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

Reimplemented from ucbhelper::ContentProviderImplHelper.

Definition at line 73 of file tdoc_provider.cxx.

uno::Reference< ucb::XContent > SAL_CALL ContentProvider::createDocumentContent ( const css::uno::Reference< css::frame::XModel > &  Model)
overridevirtual
static css::uno::Reference< css::lang::XSingleServiceFactory > tdoc_ucp::ContentProvider::createServiceFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory > &  rxServiceMgr)
static
virtual css::uno::Sequence< sal_Int8 > SAL_CALL tdoc_ucp::ContentProvider::getImplementationId ( )
overridevirtual
virtual OUString SAL_CALL tdoc_ucp::ContentProvider::getImplementationName ( )
overridevirtual
static OUString tdoc_ucp::ContentProvider::getImplementationName_Static ( )
static
virtual css::uno::Sequence< OUString > SAL_CALL tdoc_ucp::ContentProvider::getSupportedServiceNames ( )
overridevirtual
css::uno::Sequence< OUString > ContentProvider::getSupportedServiceNames_Static ( )
static

Definition at line 120 of file tdoc_provider.cxx.

virtual css::uno::Sequence< css::uno::Type > SAL_CALL tdoc_ucp::ContentProvider::getTypes ( )
overridevirtual
void ContentProvider::notifyDocumentClosed ( const OUString &  rDocId)
void ContentProvider::notifyDocumentOpened ( const OUString &  rDocId)
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL tdoc_ucp::ContentProvider::queryContent ( const css::uno::Reference< css::ucb::XContentIdentifier > &  Identifier)
overridevirtual
uno::Reference< frame::XModel > ContentProvider::queryDocumentModel ( const OUString &  rUri) const

Definition at line 592 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
Exceptions
css::packages::WrongPasswordException
css::uno::RuntimeException

Definition at line 389 of file tdoc_provider.cxx.

References m_xStgElemFac.

css::uno::Any SAL_CALL ContentProvider::queryInterface ( const css::uno::Type &  rType)
overridevirtual

Reimplemented from ucbhelper::ContentProviderImplHelper.

Definition at line 85 of file tdoc_provider.cxx.

References cppu::queryInterface().

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

Definition at line 501 of file tdoc_provider.cxx.

References tdoc_ucp::Uri::isRoot(), m_xDocsMgr, m_xStgElemFac, and tdoc_ucp::READ.

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 425 of file tdoc_provider.cxx.

References m_xStgElemFac.

Referenced by lcl_getTruncatedOutputStream().

uno::Reference< embed::XStorage > ContentProvider::queryStorage ( const OUString &  rUri,
StorageAccessMode  eMode 
) const
uno::Reference< embed::XStorage > ContentProvider::queryStorageClone ( const OUString &  rUri) const
OUString ContentProvider::queryStorageTitle ( const OUString &  rUri) const
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 464 of file tdoc_provider.cxx.

References m_xStgElemFac.

Referenced by tdoc_ucp::Content::getStream().

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

Reimplemented from ucbhelper::ContentProviderImplHelper.

Definition at line 79 of file tdoc_provider.cxx.

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

Member Data Documentation

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

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