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 () 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 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 |
![]() | |
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 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 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 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, const HierarchyContentProperties &rProps) | |
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 | |
![]() | |
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 () |
![]() | |
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 96 of file hierarchycontent.hxx.
|
private |
Definition at line 157 of file hierarchycontent.hxx.
|
private |
Definition at line 158 of file hierarchycontent.hxx.
|
private |
Enumerator | |
---|---|
LINK | |
FOLDER | |
ROOT |
Definition at line 99 of file hierarchycontent.hxx.
|
private |
Enumerator | |
---|---|
TRANSIENT | |
PERSISTENT | |
DEAD |
Definition at line 100 of file hierarchycontent.hxx.
|
private |
|
private |
|
overridevirtual |
Definition at line 147 of file hierarchycontent.cxx.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 508 of file hierarchycontent.cxx.
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 156 of file hierarchycontent.cxx.
|
static |
Referenced by hierarchy_ucp::HierarchyContentProvider::queryContent().
|
static |
|
overridevirtual |
Definition at line 527 of file hierarchycontent.cxx.
References aURL, create(), HIERARCHY_FOLDER_CONTENT_TYPE, HIERARCHY_LINK_CONTENT_TYPE, m_aMutex, m_xContext, and xId.
|
private |
css::uno::Exception |
Definition at line 1423 of file hierarchycontent.cxx.
References ucbhelper::cancelCommandExecution(), tdoc_ucp::FOLDER, and m_aMutex.
|
private |
Definition at line 756 of file hierarchycontent.cxx.
References tdoc_ucp::FOLDER, and m_aMutex.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 295 of file hierarchycontent.cxx.
References aProperties, ucbhelper::cancelCommandExecution(), comphelper::InitAnyPropertySequence(), m_xContext, and Properties.
|
overrideprivatevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 374 of file hierarchycontentcaps.cxx.
References tdoc_ucp::FOLDER, LINK, m_aMutex, and MAKECMDSEQUENCE.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 270 of file hierarchycontent.cxx.
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 278 of file hierarchycontent.cxx.
References TRANSIENT.
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 243 of file hierarchycontent.cxx.
|
overrideprivatevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 568 of file hierarchycontent.cxx.
References hierarchy_ucp::HierarchyUri::getParentUri().
|
overrideprivatevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 80 of file hierarchycontentcaps.cxx.
References tdoc_ucp::FOLDER, LINK, m_aMutex, and MAKEPROPSEQUENCE.
|
private |
|
static |
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 251 of file hierarchycontent.cxx.
References tdoc_ucp::FOLDER, and LINK.
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 200 of file hierarchycontent.cxx.
References CPPU_TYPE_REF, and cppu::OTypeCollection::getTypes().
|
staticprivate |
Referenced by hasData().
|
inlineprivate |
Definition at line 135 of file hierarchycontent.hxx.
References hasData(), and ucbhelper::ContentImplHelper::m_xContext.
|
private |
css::uno::Exception |
Definition at line 1282 of file hierarchycontent.cxx.
References ucbhelper::cancelCommandExecution(), comphelper::InitAnyPropertySequence(), inserted(), m_aMutex, and xId.
|
inlineprivate |
Definition at line 152 of file hierarchycontent.hxx.
References LINK.
|
private |
Definition at line 668 of file hierarchycontent.cxx.
References comphelper::findValue(), and m_aMutex.
|
staticprivate |
Definition at line 597 of file hierarchycontent.cxx.
References aData, tdoc_ucp::FOLDER, hierarchy_ucp::HierarchyEntry::getData(), and hierarchy_ucp::HierarchyUri::isRootFolder().
|
private |
Definition at line 695 of file hierarchycontent.cxx.
References ucb_impl::urihelper::encodeSegment(), hierarchy_ucp::HierarchyUri::getParentUri(), and m_aMutex.
|
private |
Definition at line 709 of file hierarchycontent.cxx.
References tdoc_ucp::FOLDER, and nPos.
|
overridevirtual |
Definition at line 519 of file hierarchycontent.cxx.
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 172 of file hierarchycontent.cxx.
References uno::Any::hasValue(), and cppu::queryInterface().
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 164 of file hierarchycontent.cxx.
|
private |
Definition at line 643 of file hierarchycontent.cxx.
References m_xContext, and hierarchy_ucp::HierarchyEntry::remove().
|
private |
Definition at line 632 of file hierarchycontent.cxx.
References m_xContext, and hierarchy_ucp::HierarchyEntry::move().
|
private |
Definition at line 651 of file hierarchycontent.cxx.
References tdoc_ucp::FOLDER, and LINK.
|
private |
css::uno::Exception |
Definition at line 983 of file hierarchycontent.cxx.
References aEvent, ucbhelper::cancelCommandExecution(), ucb_impl::urihelper::encodeSegment(), comphelper::InitAnyPropertySequence(), LINK, m_aMutex, n, nCount, pValues, rValue, and uno::Any::Value.
|
private |
Definition at line 624 of file hierarchycontent.cxx.
References m_xContext, and hierarchy_ucp::HierarchyEntry::setData().
|
private |
css::uno::Exception |
Definition at line 1475 of file hierarchycontent.cxx.
References aId, ucbhelper::cancelCommandExecution(), hierarchy_ucp::HierarchyEntryData::getName(), HIERARCHY_FOLDER_CONTENT_TYPE, HIERARCHY_LINK_CONTENT_TYPE, HIERARCHY_URL_SCHEME, comphelper::InitAnyPropertySequence(), m_aMutex, m_xContext, n, nPos, rValue, and xTarget.
|
private |
Definition at line 106 of file hierarchycontent.hxx.
|
private |
Definition at line 110 of file hierarchycontent.hxx.
|
private |
Definition at line 111 of file hierarchycontent.hxx.
|
private |
Definition at line 107 of file hierarchycontent.hxx.
|
private |
Definition at line 108 of file hierarchycontent.hxx.
|
private |
Definition at line 109 of file hierarchycontent.hxx.