LibreOffice Module ucb (master) 1
|
#include <ucpext_content.hxx>
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< ContentProviderImplHelper > | m_xProvider |
sal_uInt32 | m_nCommandId |
Definition at line 49 of file ucpext_content.hxx.
ucb::ucp::ext::Content::Content | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext, |
::ucbhelper::ContentProviderImplHelper * | pProvider, | ||
const css::uno::Reference< css::ucb::XContentIdentifier > & | Identifier | ||
) |
|
overrideprotectedvirtual |
Definition at line 149 of file ucpext_content.cxx.
|
overrideprotectedvirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 264 of file ucpext_content.cxx.
|
static |
Definition at line 276 of file ucpext_content.cxx.
|
staticprivate |
Definition at line 282 of file ucpext_content.cxx.
References ucb::ucp::ext::ContentProvider::getRootURL(), and o3tl::starts_with().
|
static |
Definition at line 269 of file ucpext_content.cxx.
Referenced by getParentURL().
|
overrideprotectedvirtual |
Implements ucbhelper::ContentImplHelper.
|
static |
Definition at line 361 of file ucpext_content.cxx.
References ucb::ucp::ext::ContentProvider::getArtificialNodeContentType(), and Property.
|
overrideprivatevirtual |
Implements ucbhelper::ContentImplHelper.
|
overrideprotectedvirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 166 of file ucpext_content.cxx.
References impl_determineContentType(), and m_aContentType.
|
inline |
Definition at line 78 of file ucpext_content.hxx.
References m_eExtContentType.
|
overrideprotectedvirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 154 of file ucpext_content.cxx.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 299 of file ucpext_content.cxx.
References ucb::ucp::ext::E_EXTENSION_CONTENT, ucb::ucp::ext::E_EXTENSION_ROOT, ucb::ucp::ext::E_ROOT, encodeIdentifier(), ucb::ucp::ext::ContentProvider::getRootURL(), m_eExtContentType, m_sExtensionId, ucbhelper::ContentImplHelper::m_xIdentifier, and SAL_INFO.
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.
|
overrideprivatevirtual |
Implements ucbhelper::ContentImplHelper.
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 | ||
) |
Referenced by impl_determineContentType(), and impl_isFolder().
|
overrideprotectedvirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 160 of file ucpext_content.cxx.
|
private |
Definition at line 599 of file ucpext_content.cxx.
References DBG_UNHANDLED_EXCEPTION, ucb::ucp::ext::E_EXTENSION_CONTENT, Exception, ucb::ucp::ext::ContentProvider::getArtificialNodeContentType(), getPropertyValues(), m_aContentType, and m_eExtContentType.
Referenced by getContentType().
|
private |
Definition at line 578 of file ucpext_content.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, getPropertyValues(), and m_aIsFolder.
|
private |
|
private |
Definition at line 125 of file ucpext_content.hxx.
Referenced by getContentType(), and impl_determineContentType().
|
private |
Definition at line 124 of file ucpext_content.hxx.
Referenced by impl_isFolder().
|
private |
Definition at line 123 of file ucpext_content.hxx.
Referenced by getExtensionContentType(), getParentURL(), getPhysicalURL(), and impl_determineContentType().
|
private |
Definition at line 126 of file ucpext_content.hxx.
Referenced by getParentURL(), and getPhysicalURL().
|
private |
Definition at line 127 of file ucpext_content.hxx.
Referenced by getPhysicalURL().