LibreOffice Module ucb (master)  1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ucb::ucp::ext::Content Class Reference

#include <ucpext_content.hxx>

Inheritance diagram for ucb::ucp::ext::Content:
[legend]
Collaboration diagram for ucb::ucp::ext::Content:
[legend]

Public Member Functions

 Content (const css::uno::Reference< css::uno::XComponentContext > &rxContext,::ucbhelper::ContentProviderImplHelper *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier)
 
css::uno::Reference< css::sdbc::XRow > getPropertyValues (const css::uno::Sequence< css::beans::Property > &rProperties, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
virtual OUString getParentURL () override
 
ExtensionContentType getExtensionContentType () const
 
OUString getPhysicalURL () const
 retrieves the URL of the underlying physical content. More...
 
- Public Member Functions inherited from ucbhelper::ContentImplHelper
 ContentImplHelper (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const rtl::Reference< ContentProviderImplHelper > &rxProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier)
 
virtual ~ContentImplHelper () override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual void SAL_CALL acquire () override
 
virtual void SAL_CALL release () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &Listener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &Listener) override
 
virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL getIdentifier () override
 
virtual void SAL_CALL addContentEventListener (const css::uno::Reference< css::ucb::XContentEventListener > &Listener) override
 
virtual void SAL_CALL removeContentEventListener (const css::uno::Reference< css::ucb::XContentEventListener > &Listener) override
 
virtual sal_Int32 SAL_CALL createCommandIdentifier () override
 
virtual void SAL_CALL addPropertiesChangeListener (const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override
 
virtual void SAL_CALL removePropertiesChangeListener (const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override
 
virtual void SAL_CALL addCommandInfoChangeListener (const css::uno::Reference< css::ucb::XCommandInfoChangeListener > &Listener) override
 
virtual void SAL_CALL removeCommandInfoChangeListener (const css::uno::Reference< css::ucb::XCommandInfoChangeListener > &Listener) override
 
virtual void SAL_CALL addProperty (const OUString &Name, sal_Int16 Attributes, const css::uno::Any &DefaultValue) override
 
virtual void SAL_CALL removeProperty (const OUString &Name) override
 
virtual void SAL_CALL addPropertySetInfoChangeListener (const css::uno::Reference< css::beans::XPropertySetInfoChangeListener > &Listener) override
 
virtual void SAL_CALL removePropertySetInfoChangeListener (const css::uno::Reference< css::beans::XPropertySetInfoChangeListener > &Listener) override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent () override
 
virtual void SAL_CALL setParent (const css::uno::Reference< css::uno::XInterface > &Parent) override
 
const rtl::Reference< ContentProviderImplHelper > & getProvider () const
 

Static Public Member Functions

static css::uno::Reference< css::sdbc::XRow > getArtificialNodePropertyValues (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Sequence< css::beans::Property > &rProperties, const OUString &rTitle)
 
static OUString encodeIdentifier (const OUString &i_rIdentifier)
 
static OUString decodeIdentifier (const OUString &i_rIdentifier)
 

Protected Member Functions

virtual ~Content () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual OUString SAL_CALL getContentType () override
 
virtual css::uno::Any SAL_CALL execute (const css::ucb::Command &aCommand, sal_Int32 CommandId, const css::uno::Reference< css::ucb::XCommandEnvironment > &Environment) override
 
virtual void SAL_CALL abort (sal_Int32 CommandId) override
 
- Protected Member Functions inherited from ucbhelper::ContentImplHelper
css::uno::Reference< css::beans::XPropertySetInfo > getPropertySetInfo (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv, bool bCache=true)
 
css::uno::Reference< css::ucb::XCommandInfo > getCommandInfo (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv, bool bCache=true)
 
void notifyPropertiesChange (const css::uno::Sequence< css::beans::PropertyChangeEvent > &evt) const
 
void notifyPropertySetInfoChange (const css::beans::PropertySetInfoChangeEvent &evt) const
 
void notifyContentEvent (const css::ucb::ContentEvent &evt) const
 
void inserted ()
 
void deleted ()
 
bool exchange (const css::uno::Reference< css::ucb::XContentIdentifier > &rNewId)
 
css::uno::Reference< css::ucb::XPersistentPropertySet > getAdditionalPropertySet (bool bCreate)
 
bool renameAdditionalPropertySet (const OUString &rOldKey, const OUString &rNewKey)
 
bool copyAdditionalPropertySet (const OUString &rSourceKey, const OUString &rTargetKey)
 
bool removeAdditionalPropertySet ()
 

Private Member Functions

virtual css::uno::Sequence< css::beans::Property > getProperties (const css::uno::Reference< css::ucb::XCommandEnvironment > &i_rEnv) override
 
virtual css::uno::Sequence< css::ucb::CommandInfo > getCommands (const css::uno::Reference< css::ucb::XCommandEnvironment > &i_rEnv) override
 
css::uno::Sequence< css::uno::Any > setPropertyValues (const css::uno::Sequence< css::beans::PropertyValue > &rValues)
 
bool impl_isFolder ()
 
void impl_determineContentType ()
 

Static Private Member Functions

static bool denotesRootContent (const OUString &i_rContentIdentifier)
 

Private Attributes

ExtensionContentType m_eExtContentType
 
::boost::optional< bool > m_aIsFolder
 
::boost::optional< OUString > m_aContentType
 
OUString m_sExtensionId
 
OUString m_sPathIntoExtension
 

Additional Inherited Members

- Protected Attributes inherited from ucbhelper::ContentImplHelper
osl::Mutex m_aMutex
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< css::ucb::XContentIdentifier > m_xIdentifier
 
rtl::Reference< ContentProviderImplHelperm_xProvider
 
sal_uInt32 m_nCommandId
 

Detailed Description

Definition at line 52 of file ucpext_content.hxx.

Constructor & Destructor Documentation

ucb::ucp::ext::Content::Content ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
::ucbhelper::ContentProviderImplHelper pProvider,
const css::uno::Reference< css::ucb::XContentIdentifier > &  Identifier 
)
ucb::ucp::ext::Content::~Content ( )
overrideprotectedvirtual

Definition at line 159 of file ucpext_content.cxx.

Member Function Documentation

void SAL_CALL ucb::ucp::ext::Content::abort ( sal_Int32  CommandId)
overrideprotectedvirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 277 of file ucpext_content.cxx.

OUString ucb::ucp::ext::Content::decodeIdentifier ( const OUString &  i_rIdentifier)
static
bool ucb::ucp::ext::Content::denotesRootContent ( const OUString &  i_rContentIdentifier)
staticprivate

Definition at line 295 of file ucpext_content.cxx.

References ucb::ucp::ext::ContentProvider::getRootURL().

OUString ucb::ucp::ext::Content::encodeIdentifier ( const OUString &  i_rIdentifier)
static

Definition at line 282 of file ucpext_content.cxx.

Referenced by ucb::ucp::ext::DataSupplier::fetchData(), and getParentURL().

virtual css::uno::Any SAL_CALL ucb::ucp::ext::Content::execute ( const css::ucb::Command &  aCommand,
sal_Int32  CommandId,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  Environment 
)
overrideprotectedvirtual
Reference< XRow > ucb::ucp::ext::Content::getArtificialNodePropertyValues ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const css::uno::Sequence< css::beans::Property > &  rProperties,
const OUString &  rTitle 
)
static
virtual css::uno::Sequence< css::ucb::CommandInfo > ucb::ucp::ext::Content::getCommands ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  i_rEnv)
overrideprivatevirtual
OUString SAL_CALL ucb::ucp::ext::Content::getContentType ( )
overrideprotectedvirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 179 of file ucpext_content.cxx.

References impl_determineContentType(), and m_aContentType.

ExtensionContentType ucb::ucp::ext::Content::getExtensionContentType ( ) const
inline

Definition at line 81 of file ucpext_content.hxx.

References m_eExtContentType.

OUString SAL_CALL ucb::ucp::ext::Content::getImplementationName ( )
overrideprotectedvirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 164 of file ucpext_content.cxx.

OUString ucb::ucp::ext::Content::getParentURL ( )
overridevirtual
OUString ucb::ucp::ext::Content::getPhysicalURL ( ) const

retrieves the URL of the underlying physical content.

Not to be called when getExtensionContentType() returns E_ROOT.

Definition at line 445 of file ucpext_content.cxx.

References ucb::ucp::ext::E_ROOT, ENSURE_OR_RETURN, m_eExtContentType, m_sExtensionId, m_sPathIntoExtension, and ucbhelper::ContentImplHelper::m_xContext.

virtual css::uno::Sequence< css::beans::Property > ucb::ucp::ext::Content::getProperties ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  i_rEnv)
overrideprivatevirtual
css::uno::Reference< css::sdbc::XRow > ucb::ucp::ext::Content::getPropertyValues ( const css::uno::Sequence< css::beans::Property > &  rProperties,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
Sequence< OUString > SAL_CALL ucb::ucp::ext::Content::getSupportedServiceNames ( )
overrideprotectedvirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 170 of file ucpext_content.cxx.

void ucb::ucp::ext::Content::impl_determineContentType ( )
private
bool ucb::ucp::ext::Content::impl_isFolder ( )
private
css::uno::Sequence< css::uno::Any > ucb::ucp::ext::Content::setPropertyValues ( const css::uno::Sequence< css::beans::PropertyValue > &  rValues)
private

Member Data Documentation

::boost::optional< OUString > ucb::ucp::ext::Content::m_aContentType
private

Definition at line 128 of file ucpext_content.hxx.

Referenced by getContentType(), and impl_determineContentType().

::boost::optional< bool > ucb::ucp::ext::Content::m_aIsFolder
private

Definition at line 127 of file ucpext_content.hxx.

Referenced by impl_isFolder().

ExtensionContentType ucb::ucp::ext::Content::m_eExtContentType
private
OUString ucb::ucp::ext::Content::m_sExtensionId
private

Definition at line 129 of file ucpext_content.hxx.

Referenced by getParentURL(), and getPhysicalURL().

OUString ucb::ucp::ext::Content::m_sPathIntoExtension
private

Definition at line 130 of file ucpext_content.hxx.

Referenced by getPhysicalURL().


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