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:
Collaboration diagram for tdoc_ucp::ContentProvider:

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::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
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)
ContentProvider::~ContentProvider ( )

Definition at line 61 of file tdoc_provider.cxx.

References m_xDocsMgr.

Member Function Documentation

void SAL_CALL ContentProvider::acquire ( )
throw (

Definition at line 69 of file tdoc_provider.cxx.

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

Definition at line 117 of file tdoc_provider.cxx.

virtual css::uno::Sequence< css::uno::Type > SAL_CALL tdoc_ucp::ContentProvider::getTypes ( )
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)
uno::Reference< frame::XModel > ContentProvider::queryDocumentModel ( const OUString &  rUri) const

Definition at line 589 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

Definition at line 393 of file tdoc_provider.cxx.

References m_xStgElemFac.

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

Definition at line 81 of file tdoc_provider.cxx.

References cppu::queryInterface().

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

Definition at line 505 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

Definition at line 429 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

Definition at line 468 of file tdoc_provider.cxx.

References m_xStgElemFac.

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

void SAL_CALL ContentProvider::release ( )
throw (

Definition at line 75 of file tdoc_provider.cxx.

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

Member Data Documentation

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

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