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 (css::uno::Reference< css::uno::XComponentContext > xContext, rtl::Reference< ContentProviderImplHelper > xProvider, 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 () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
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=0
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override=0
 
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 OUString SAL_CALL getContentType () override=0
 
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 css::uno::Any SAL_CALL execute (const css::ucb::Command &aCommand, sal_Int32 CommandId, const css::uno::Reference< css::ucb::XCommandEnvironment > &Environment) override=0
 
virtual void SAL_CALL abort (sal_Int32 CommandId) override=0
 
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 (std::u16string_view i_rContentIdentifier)
 

Private Attributes

ExtensionContentType m_eExtContentType
 
::std::optional< bool > m_aIsFolder
 
::std::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 49 of file ucpext_content.hxx.

Constructor & Destructor Documentation

◆ Content()

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

◆ ~Content()

ucb::ucp::ext::Content::~Content ( )
overrideprotectedvirtual

Definition at line 149 of file ucpext_content.cxx.

Member Function Documentation

◆ abort()

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

Implements ucbhelper::ContentImplHelper.

Definition at line 264 of file ucpext_content.cxx.

◆ decodeIdentifier()

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

Definition at line 276 of file ucpext_content.cxx.

◆ denotesRootContent()

bool ucb::ucp::ext::Content::denotesRootContent ( std::u16string_view  i_rContentIdentifier)
staticprivate

◆ encodeIdentifier()

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

Definition at line 269 of file ucpext_content.cxx.

Referenced by getParentURL().

◆ execute()

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

◆ getArtificialNodePropertyValues()

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

◆ getCommands()

virtual css::uno::Sequence< css::ucb::CommandInfo > ucb::ucp::ext::Content::getCommands ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  i_rEnv)
overrideprivatevirtual

◆ getContentType()

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

Implements ucbhelper::ContentImplHelper.

Definition at line 166 of file ucpext_content.cxx.

References impl_determineContentType(), and m_aContentType.

◆ getExtensionContentType()

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

Definition at line 78 of file ucpext_content.hxx.

References m_eExtContentType.

◆ getImplementationName()

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

Implements ucbhelper::ContentImplHelper.

Definition at line 154 of file ucpext_content.cxx.

◆ getParentURL()

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

◆ getPhysicalURL()

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 424 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.

◆ getProperties()

virtual css::uno::Sequence< css::beans::Property > ucb::ucp::ext::Content::getProperties ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  i_rEnv)
overrideprivatevirtual

◆ getPropertyValues()

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 
)

◆ getSupportedServiceNames()

Sequence< OUString > SAL_CALL ucb::ucp::ext::Content::getSupportedServiceNames ( )
overrideprotectedvirtual

Implements ucbhelper::ContentImplHelper.

Definition at line 160 of file ucpext_content.cxx.

◆ impl_determineContentType()

void ucb::ucp::ext::Content::impl_determineContentType ( )
private

◆ impl_isFolder()

bool ucb::ucp::ext::Content::impl_isFolder ( )
private

◆ setPropertyValues()

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

Member Data Documentation

◆ m_aContentType

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

Definition at line 125 of file ucpext_content.hxx.

Referenced by getContentType(), and impl_determineContentType().

◆ m_aIsFolder

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

Definition at line 124 of file ucpext_content.hxx.

Referenced by impl_isFolder().

◆ m_eExtContentType

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

◆ m_sExtensionId

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

Definition at line 126 of file ucpext_content.hxx.

Referenced by getParentURL(), and getPhysicalURL().

◆ m_sPathIntoExtension

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

Definition at line 127 of file ucpext_content.hxx.

Referenced by getPhysicalURL().


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