LibreOffice Module ucb (master) 1
|
#include <hierarchycontent.hxx>
Public Member Functions | |
virtual | ~HierarchyContent () 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 |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual OUString SAL_CALL | getContentType () override |
virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL | getIdentifier () 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 |
virtual css::uno::Sequence< css::ucb::ContentInfo > SAL_CALL | queryCreatableContentsInfo () override |
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL | createNewContent (const css::ucb::ContentInfo &Info) override |
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 rtl::Reference< HierarchyContent > | create (const css::uno::Reference< css::uno::XComponentContext > &rxContext, HierarchyContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier) |
static rtl::Reference< HierarchyContent > | create (const css::uno::Reference< css::uno::XComponentContext > &rxContext, HierarchyContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, const css::ucb::ContentInfo &Info) |
static css::uno::Reference< css::sdbc::XRow > | getPropertyValues (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Sequence< css::beans::Property > &rProperties, const HierarchyContentProperties &rData, HierarchyContentProvider *pProvider, const OUString &rContentId) |
Private Types | |
enum | ContentKind { LINK , FOLDER , ROOT } |
enum | ContentState { TRANSIENT , PERSISTENT , DEAD } |
typedef rtl::Reference< HierarchyContent > | HierarchyContentRef |
typedef std::vector< HierarchyContentRef > | HierarchyContentRefVector |
Private Member Functions | |
HierarchyContent (const css::uno::Reference< css::uno::XComponentContext > &rxContext, HierarchyContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, HierarchyContentProperties aProps) | |
HierarchyContent (const css::uno::Reference< css::uno::XComponentContext > &rxContext, HierarchyContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, const css::ucb::ContentInfo &Info) | |
virtual css::uno::Sequence< css::beans::Property > | getProperties (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) override |
virtual css::uno::Sequence< css::ucb::CommandInfo > | getCommands (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) override |
virtual OUString | getParentURL () override |
bool | hasData (const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier) |
bool | storeData () |
void | renameData (const css::uno::Reference< css::ucb::XContentIdentifier > &xOldId, const css::uno::Reference< css::ucb::XContentIdentifier > &xNewId) |
bool | removeData () |
void | setKind (const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier) |
bool | isReadOnly () |
bool | isFolder () const |
css::uno::Reference< css::ucb::XContentIdentifier > | makeNewIdentifier (const OUString &rTitle) |
void | queryChildren (HierarchyContentRefVector &rChildren) |
bool | exchangeIdentity (const css::uno::Reference< css::ucb::XContentIdentifier > &xNewId) |
css::uno::Reference< css::sdbc::XRow > | getPropertyValues (const css::uno::Sequence< css::beans::Property > &rProperties) |
css::uno::Sequence< css::uno::Any > | setPropertyValues (const css::uno::Sequence< css::beans::PropertyValue > &rValues, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) |
void | insert (sal_Int32 nNameClashResolve, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) |
void | destroy (bool bDeletePhysical, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) |
void | transfer (const css::ucb::TransferInfo &rInfo, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) |
Static Private Member Functions | |
static bool | hasData (const css::uno::Reference< css::uno::XComponentContext > &rxContext, HierarchyContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier) |
static bool | loadData (const css::uno::Reference< css::uno::XComponentContext > &rxContext, HierarchyContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, HierarchyContentProperties &rProps) |
Private Attributes | |
HierarchyContentProperties | m_aProps |
ContentKind | m_eKind |
ContentState | m_eState |
HierarchyContentProvider * | m_pProvider |
bool | m_bCheckedReadOnly |
bool | m_bIsReadOnly |
Additional Inherited Members | |
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 () |
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 95 of file hierarchycontent.hxx.
|
private |
Definition at line 156 of file hierarchycontent.hxx.
|
private |
Definition at line 157 of file hierarchycontent.hxx.
|
private |
Enumerator | |
---|---|
LINK | |
FOLDER | |
ROOT |
Definition at line 98 of file hierarchycontent.hxx.
|
private |
Enumerator | |
---|---|
TRANSIENT | |
PERSISTENT | |
DEAD |
Definition at line 99 of file hierarchycontent.hxx.
|
private |
|
private |
|
overridevirtual |
Definition at line 148 of file hierarchycontent.cxx.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 509 of file hierarchycontent.cxx.
|
overridevirtualnoexcept |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 157 of file hierarchycontent.cxx.
|
static |
Referenced by createNewContent(), and hierarchy_ucp::HierarchyContentProvider::queryContent().
|
static |
|
overridevirtual |
Definition at line 528 of file hierarchycontent.cxx.
References aURL, create(), hierarchy_ucp::HIERARCHY_FOLDER_CONTENT_TYPE, hierarchy_ucp::HIERARCHY_LINK_CONTENT_TYPE, Info, isFolder(), ucbhelper::ContentImplHelper::m_aMutex, m_pProvider, ucbhelper::ContentImplHelper::m_xContext, and ucbhelper::ContentImplHelper::m_xIdentifier.
Referenced by execute(), and transfer().
|
private |
css::uno::Exception |
Definition at line 1422 of file hierarchycontent.cxx.
References ucbhelper::cancelCommandExecution(), DEAD, ucbhelper::ContentImplHelper::deleted(), FOLDER, ucbhelper::ContentImplHelper::m_aMutex, m_eKind, m_eState, PERSISTENT, queryChildren(), and ROOT.
Referenced by execute().
|
private |
Definition at line 757 of file hierarchycontent.cxx.
References ucbhelper::ContentImplHelper::exchange(), FOLDER, hasData(), ucbhelper::ContentImplHelper::m_aMutex, m_eKind, m_eState, ucbhelper::ContentImplHelper::m_xIdentifier, PERSISTENT, queryChildren(), and ROOT.
Referenced by setPropertyValues().
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 296 of file hierarchycontent.cxx.
References aCommand, aProperties, ucbhelper::cancelCommandExecution(), createNewContent(), destroy(), Environment, ucbhelper::ContentImplHelper::getCommandInfo(), ucbhelper::ContentImplHelper::getPropertySetInfo(), getPropertyValues(), comphelper::InitAnyPropertySequence(), insert(), isFolder(), isReadOnly(), m_eKind, ucbhelper::ContentImplHelper::m_xContext, ucbhelper::ContentImplHelper::m_xIdentifier, Properties, ucbhelper::ContentImplHelper::removeAdditionalPropertySet(), removeData(), ROOT, setPropertyValues(), and transfer().
|
overrideprivatevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 374 of file hierarchycontentcaps.cxx.
References FOLDER, isReadOnly(), LINK, ucbhelper::ContentImplHelper::m_aMutex, m_eKind, and MAKECMDSEQUENCE.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 271 of file hierarchycontent.cxx.
References hierarchy_ucp::HierarchyContentProperties::getContentType(), and m_aProps.
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 279 of file hierarchycontent.cxx.
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 244 of file hierarchycontent.cxx.
|
overrideprivatevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 569 of file hierarchycontent.cxx.
References hierarchy_ucp::HierarchyUri::getParentUri(), and ucbhelper::ContentImplHelper::m_xIdentifier.
|
overrideprivatevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 80 of file hierarchycontentcaps.cxx.
References FOLDER, isReadOnly(), LINK, ucbhelper::ContentImplHelper::m_aMutex, m_eKind, and MAKEPROPSEQUENCE.
|
static |
|
private |
Referenced by execute(), and hierarchy_ucp::HierarchyResultSetDataSupplier::queryPropertyValues().
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 252 of file hierarchycontent.cxx.
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 201 of file hierarchycontent.cxx.
References CPPU_TYPE_REF, cppu::OTypeCollection::getTypes(), isFolder(), and isReadOnly().
|
inlineprivate |
Definition at line 134 of file hierarchycontent.hxx.
References hasData(), Identifier, m_pProvider, and ucbhelper::ContentImplHelper::m_xContext.
|
staticprivate |
Referenced by exchangeIdentity(), hasData(), and insert().
|
private |
css::uno::Exception |
Definition at line 1284 of file hierarchycontent.cxx.
References ucbhelper::cancelCommandExecution(), hierarchy_ucp::HierarchyContentProperties::getTitle(), hasData(), comphelper::InitAnyPropertySequence(), ucbhelper::ContentImplHelper::inserted(), ucbhelper::ContentImplHelper::m_aMutex, m_aProps, m_eKind, m_eState, ucbhelper::ContentImplHelper::m_xIdentifier, makeNewIdentifier(), PERSISTENT, ROOT, hierarchy_ucp::HierarchyContentProperties::setTitle(), and storeData().
Referenced by execute().
|
inlineprivate |
Definition at line 151 of file hierarchycontent.hxx.
Referenced by createNewContent(), execute(), getTypes(), and queryInterface().
|
private |
Definition at line 669 of file hierarchycontent.cxx.
References comphelper::findValue(), hierarchy_ucp::HierarchyContentProvider::getConfigProvider(), hierarchy_ucp::HierarchyUri::getService(), ucbhelper::ContentImplHelper::m_aMutex, m_bCheckedReadOnly, m_bIsReadOnly, m_pProvider, and ucbhelper::ContentImplHelper::m_xIdentifier.
Referenced by execute(), getCommands(), getProperties(), getTypes(), queryInterface(), and setPropertyValues().
|
staticprivate |
Definition at line 598 of file hierarchycontent.cxx.
References aData, aURL, hierarchy_ucp::HierarchyEntryData::FOLDER, hierarchy_ucp::HierarchyEntry::getData(), Identifier, and hierarchy_ucp::HierarchyUri::isRootFolder().
|
private |
Definition at line 696 of file hierarchycontent.cxx.
References ucb_impl::urihelper::encodeSegment(), hierarchy_ucp::HierarchyUri::getParentUri(), ucbhelper::ContentImplHelper::m_aMutex, and ucbhelper::ContentImplHelper::m_xIdentifier.
Referenced by insert(), and setPropertyValues().
|
private |
Definition at line 710 of file hierarchycontent.cxx.
References aURL, FOLDER, m_eKind, ucbhelper::ContentImplHelper::m_xIdentifier, ucbhelper::ContentImplHelper::m_xProvider, nPos, and ROOT.
Referenced by destroy(), and exchangeIdentity().
|
overridevirtual |
Definition at line 520 of file hierarchycontent.cxx.
References hierarchy_ucp::HierarchyContentProperties::getCreatableContentsInfo(), and m_aProps.
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 173 of file hierarchycontent.cxx.
References uno::Any::hasValue(), isFolder(), isReadOnly(), and cppu::queryInterface().
|
overridevirtualnoexcept |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 165 of file hierarchycontent.cxx.
|
private |
Definition at line 644 of file hierarchycontent.cxx.
References m_pProvider, ucbhelper::ContentImplHelper::m_xContext, ucbhelper::ContentImplHelper::m_xIdentifier, and hierarchy_ucp::HierarchyEntry::remove().
Referenced by execute().
|
private |
Definition at line 633 of file hierarchycontent.cxx.
References hierarchy_ucp::HierarchyContentProperties::getHierarchyEntryData(), m_aProps, m_pProvider, ucbhelper::ContentImplHelper::m_xContext, and hierarchy_ucp::HierarchyEntry::move().
Referenced by setPropertyValues().
|
private |
Definition at line 652 of file hierarchycontent.cxx.
References FOLDER, hierarchy_ucp::HierarchyContentProperties::getIsFolder(), Identifier, hierarchy_ucp::HierarchyUri::isRootFolder(), LINK, m_aProps, m_eKind, and ROOT.
|
private |
css::uno::Exception |
Definition at line 984 of file hierarchycontent.cxx.
References aEvent, ucbhelper::cancelCommandExecution(), ucb_impl::urihelper::encodeSegment(), exchangeIdentity(), ucbhelper::ContentImplHelper::getAdditionalPropertySet(), hierarchy_ucp::HierarchyContentProperties::getName(), hierarchy_ucp::HierarchyContentProperties::getTargetURL(), hierarchy_ucp::HierarchyContentProperties::getTitle(), comphelper::InitAnyPropertySequence(), isReadOnly(), LINK, ucbhelper::ContentImplHelper::m_aMutex, m_aProps, m_eKind, m_eState, ucbhelper::ContentImplHelper::m_xIdentifier, makeNewIdentifier(), n, nCount, ucbhelper::ContentImplHelper::notifyPropertiesChange(), PERSISTENT, pValues, ucbhelper::ContentImplHelper::renameAdditionalPropertySet(), renameData(), hierarchy_ucp::HierarchyContentProperties::setName(), hierarchy_ucp::HierarchyContentProperties::setTargetURL(), hierarchy_ucp::HierarchyContentProperties::setTitle(), storeData(), and uno::Any::Value.
Referenced by execute().
|
private |
Definition at line 625 of file hierarchycontent.cxx.
References hierarchy_ucp::HierarchyContentProperties::getHierarchyEntryData(), m_aProps, m_pProvider, ucbhelper::ContentImplHelper::m_xContext, ucbhelper::ContentImplHelper::m_xIdentifier, and hierarchy_ucp::HierarchyEntry::setData().
Referenced by insert(), and setPropertyValues().
|
private |
css::uno::Exception |
Definition at line 1474 of file hierarchycontent.cxx.
References ucbhelper::cancelCommandExecution(), createNewContent(), hierarchy_ucp::HierarchyEntryData::getName(), hierarchy_ucp::HIERARCHY_FOLDER_CONTENT_TYPE, hierarchy_ucp::HIERARCHY_LINK_CONTENT_TYPE, HIERARCHY_URL_SCHEME, comphelper::InitAnyPropertySequence(), ucbhelper::ContentImplHelper::m_aMutex, m_eState, m_pProvider, ucbhelper::ContentImplHelper::m_xContext, ucbhelper::ContentImplHelper::m_xIdentifier, ucbhelper::ContentImplHelper::m_xProvider, n, nCount, hierarchy_ucp::HierarchyEntry::next(), nPos, PERSISTENT, pValues, and xTarget.
Referenced by execute().
|
private |
Definition at line 105 of file hierarchycontent.hxx.
Referenced by getContentType(), insert(), queryCreatableContentsInfo(), renameData(), setKind(), setPropertyValues(), and storeData().
|
private |
Definition at line 109 of file hierarchycontent.hxx.
Referenced by isReadOnly().
|
private |
Definition at line 110 of file hierarchycontent.hxx.
Referenced by isReadOnly().
|
private |
Definition at line 106 of file hierarchycontent.hxx.
Referenced by destroy(), exchangeIdentity(), execute(), getCommands(), getProperties(), getSupportedServiceNames(), insert(), isFolder(), queryChildren(), setKind(), and setPropertyValues().
|
private |
Definition at line 107 of file hierarchycontent.hxx.
Referenced by destroy(), exchangeIdentity(), getIdentifier(), insert(), setPropertyValues(), and transfer().
|
private |
Definition at line 108 of file hierarchycontent.hxx.
Referenced by createNewContent(), hasData(), isReadOnly(), removeData(), renameData(), storeData(), and transfer().