|
LibreOffice Module ucb (master) 1
|
#include <tdoc_content.hxx>
Public Member Functions | |
| virtual | ~Content () 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 |
| void | notifyDocumentClosed () |
| void | notifyChildRemoved (std::u16string_view rRelativeChildUri) |
| void | notifyChildInserted (std::u16string_view rRelativeChildUri) |
| rtl::Reference< ContentProvider > | getContentProvider () const |
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< Content > | create (const css::uno::Reference< css::uno::XComponentContext > &rxContext, ContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier) |
| static rtl::Reference< Content > | create (const css::uno::Reference< css::uno::XComponentContext > &rxContext, ContentProvider *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, ContentProvider *pProvider, const OUString &rContentId) |
Private Types | |
| enum | ContentState { TRANSIENT , PERSISTENT , DEAD } |
| typedef rtl::Reference< Content > | ContentRef |
| typedef std::vector< ContentRef > | ContentRefList |
Private Member Functions | |
| Content (const css::uno::Reference< css::uno::XComponentContext > &rxContext, ContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, ContentProperties aProps) | |
| Content (const css::uno::Reference< css::uno::XComponentContext > &rxContext, ContentProvider *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 Uri &rUri) const |
| bool | storeData (const css::uno::Reference< css::io::XInputStream > &xData, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) |
| void | renameData (const css::uno::Reference< css::ucb::XContentIdentifier > &xOldId, const css::uno::Reference< css::ucb::XContentIdentifier > &xNewId) |
| bool | removeData () |
| bool | copyData (const Uri &rSourceUri, const OUString &rNewName) |
| css::uno::Reference< css::ucb::XContentIdentifier > | makeNewIdentifier (const OUString &rTitle) |
| void | queryChildren (ContentRefList &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) |
| css::uno::Any | open (const css::ucb::OpenCommandArgument2 &rArg, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) |
| void | insert (const css::uno::Reference< css::io::XInputStream > &xData, 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) |
| css::uno::Reference< css::io::XInputStream > | getInputStream (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) |
| css::uno::Reference< css::io::XOutputStream > | getTruncatedOutputStream (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) |
| css::uno::Reference< css::ucb::XContent > | queryChildContent (std::u16string_view rRelativeChildUri) |
| css::uno::Reference< css::io::XStream > | getStream (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) |
Static Private Member Functions | |
| static bool | hasData (ContentProvider const *pProvider, const Uri &rUri) |
| static bool | loadData (ContentProvider const *pProvider, const Uri &rUri, ContentProperties &rProps) |
| 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 ContentProperties &rData, ContentProvider *pProvider, const OUString &rContentId) |
| static bool | commitStorage (const css::uno::Reference< css::embed::XStorage > &xStorage) |
| static bool | closeOutputStream (const css::uno::Reference< css::io::XOutputStream > &xOut) |
Private Attributes | |
| ContentProperties | m_aProps |
| ContentState | m_eState |
| ContentProvider * | m_pProvider |
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 88 of file tdoc_content.hxx.
|
private |
Definition at line 137 of file tdoc_content.hxx.
|
private |
Definition at line 138 of file tdoc_content.hxx.
|
private |
| Enumerator | |
|---|---|
| TRANSIENT | |
| PERSISTENT | |
| DEAD | |
Definition at line 91 of file tdoc_content.hxx.
|
private |
|
private |
|
overridevirtual |
Definition at line 172 of file tdoc_content.cxx.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 609 of file tdoc_content.cxx.
|
overridevirtualnoexcept |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 181 of file tdoc_content.cxx.
|
staticprivate |
Definition at line 2583 of file tdoc_content.cxx.
References TOOLS_WARN_EXCEPTION.
|
staticprivate |
Definition at line 2556 of file tdoc_content.cxx.
References TOOLS_WARN_EXCEPTION.
Referenced by copyData(), and removeData().
|
private |
Definition at line 2484 of file tdoc_content.cxx.
References commitStorage(), eType, tdoc_ucp::Uri::getDecodedName(), tdoc_ucp::Uri::getParentUri(), tdoc_ucp::ContentProperties::getType(), tdoc_ucp::Uri::getUri(), ucbhelper::ContentImplHelper::m_aMutex, m_aProps, m_pProvider, ucbhelper::ContentImplHelper::m_xIdentifier, tdoc_ucp::ContentProvider::queryStorage(), tdoc_ucp::READ, tdoc_ucp::READ_WRITE_NOCREATE, tdoc_ucp::ROOT, tdoc_ucp::STREAM, and TOOLS_WARN_EXCEPTION.
|
static |
Referenced by tdoc_ucp::ContentProvider::createDocumentContent().
|
static |
|
overridevirtual |
|
private |
| css::uno::Exception |
|
private |
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
|
overrideprivatevirtual |
Implements ucbhelper::ContentImplHelper.
|
inline |
Definition at line 277 of file tdoc_content.hxx.
References m_pProvider.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 295 of file tdoc_content.cxx.
References tdoc_ucp::ContentProperties::getContentType(), ucbhelper::ContentImplHelper::m_aMutex, and m_aProps.
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 304 of file tdoc_content.cxx.
References ucbhelper::ContentImplHelper::m_aMutex, m_eState, and TRANSIENT.
Referenced by notifyChildInserted(), notifyChildRemoved(), and queryChildContent().
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 265 of file tdoc_content.cxx.
|
private |
| css::ucb::CommandFailedException | |
| css::task::DocumentPasswordRequest | |
| css::uno::RuntimeException |
|
overrideprivatevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 678 of file tdoc_content.cxx.
References tdoc_ucp::Uri::getParentUri(), ucbhelper::ContentImplHelper::m_aMutex, and ucbhelper::ContentImplHelper::m_xIdentifier.
|
overrideprivatevirtual |
Implements ucbhelper::ContentImplHelper.
|
staticprivate |
|
static |
|
private |
Referenced by tdoc_ucp::ResultSetDataSupplier::queryPropertyValues().
|
private |
| css::ucb::CommandFailedException | |
| css::task::DocumentPasswordRequest | |
| css::uno::RuntimeException |
Definition at line 2748 of file tdoc_content.cxx.
References tdoc_ucp::ContentProperties::getType(), tdoc_ucp::Uri::getUri(), ucbhelper::ContentImplHelper::m_aMutex, m_aProps, m_pProvider, ucbhelper::ContentImplHelper::m_xIdentifier, obtainPassword(), tdoc_ucp::ContentProvider::queryStream(), and tdoc_ucp::STREAM.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 272 of file tdoc_content.cxx.
References tdoc_ucp::DOCUMENT, tdoc_ucp::FOLDER, tdoc_ucp::ContentProperties::getType(), ucbhelper::ContentImplHelper::m_aMutex, m_aProps, and tdoc_ucp::STREAM.
|
private |
| css::ucb::CommandFailedException | |
| css::task::DocumentPasswordRequest | |
| css::uno::RuntimeException |
Definition at line 2735 of file tdoc_content.cxx.
References tdoc_ucp::ContentProperties::getType(), tdoc_ucp::Uri::getUri(), lcl_getTruncatedOutputStream(), m_aProps, m_pProvider, ucbhelper::ContentImplHelper::m_xIdentifier, and tdoc_ucp::STREAM.
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 223 of file tdoc_content.cxx.
References CPPU_TYPE_REF, cppu::OTypeCollection::getTypes(), tdoc_ucp::ContentProperties::isContentCreator(), and m_aProps.
|
inlineprivate |
Definition at line 118 of file tdoc_content.hxx.
References hasData(), and m_pProvider.
Referenced by hasData().
|
staticprivate |
Definition at line 2120 of file tdoc_content.cxx.
References tdoc_ucp::Uri::getDecodedName(), tdoc_ucp::Uri::getParentUri(), tdoc_ucp::Uri::getUri(), tdoc_ucp::Uri::isDocument(), tdoc_ucp::Uri::isRoot(), tdoc_ucp::ContentProvider::queryStorage(), and tdoc_ucp::READ.
|
private |
| css::uno::Exception |
|
staticprivate |
Definition at line 2151 of file tdoc_content.cxx.
References tdoc_ucp::DOCUMENT, tdoc_ucp::FOLDER, tdoc_ucp::Uri::getDecodedName(), tdoc_ucp::Uri::getParentUri(), tdoc_ucp::Uri::getUri(), tdoc_ucp::Uri::isDocument(), tdoc_ucp::Uri::isRoot(), tdoc_ucp::ContentProvider::queryStorage(), tdoc_ucp::ContentProvider::queryStorageTitle(), tdoc_ucp::READ, tdoc_ucp::ROOT, tdoc_ucp::STREAM, and TOOLS_WARN_EXCEPTION.
|
private |
Definition at line 687 of file tdoc_content.cxx.
References ucb_impl::urihelper::encodeSegment(), tdoc_ucp::Uri::getParentUri(), ucbhelper::ContentImplHelper::m_aMutex, and ucbhelper::ContentImplHelper::m_xIdentifier.
| void Content::notifyChildInserted | ( | std::u16string_view | rRelativeChildUri | ) |
Definition at line 1784 of file tdoc_content.cxx.
References getIdentifier(), ucbhelper::ContentImplHelper::m_aMutex, ucbhelper::ContentImplHelper::notifyContentEvent(), and queryChildContent().
| void Content::notifyChildRemoved | ( | std::u16string_view | rRelativeChildUri | ) |
Definition at line 1760 of file tdoc_content.cxx.
References getIdentifier(), ucbhelper::ContentImplHelper::m_aMutex, ucbhelper::ContentImplHelper::notifyContentEvent(), and queryChildContent().
| void Content::notifyDocumentClosed | ( | ) |
Definition at line 1710 of file tdoc_content.cxx.
References DEAD, ucbhelper::ContentImplHelper::deleted(), ucbhelper::ContentImplHelper::m_aMutex, and m_eState.
|
private |
| css::uno::Exception |
|
private |
Definition at line 1728 of file tdoc_content.cxx.
References aBuf, getIdentifier(), ucbhelper::ContentImplHelper::m_aMutex, m_pProvider, tdoc_ucp::ContentProvider::queryContent(), o3tl::starts_with(), and u.
Referenced by notifyChildInserted(), and notifyChildRemoved().
|
private |
Definition at line 701 of file tdoc_content.cxx.
References aURL, tdoc_ucp::ContentProperties::getIsFolder(), ucbhelper::ContentImplHelper::m_aMutex, m_aProps, ucbhelper::ContentImplHelper::m_xIdentifier, ucbhelper::ContentImplHelper::m_xProvider, and nPos.
|
overridevirtual |
Definition at line 619 of file tdoc_content.cxx.
References tdoc_ucp::ContentProperties::getCreatableContentsInfo(), and m_aProps.
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
|
overridevirtualnoexcept |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 189 of file tdoc_content.cxx.
|
private |
Definition at line 2426 of file tdoc_content.cxx.
References commitStorage(), tdoc_ucp::DOCUMENT, eType, tdoc_ucp::Uri::getDecodedName(), tdoc_ucp::Uri::getParentUri(), tdoc_ucp::ContentProperties::getType(), ucbhelper::ContentImplHelper::m_aMutex, m_aProps, m_pProvider, ucbhelper::ContentImplHelper::m_xIdentifier, tdoc_ucp::ContentProvider::queryStorage(), tdoc_ucp::READ_WRITE_NOCREATE, tdoc_ucp::ROOT, and TOOLS_WARN_EXCEPTION.
|
private |
|
private |
| css::uno::Exception |
|
private |
| css::ucb::CommandFailedException | |
| css::task::DocumentPasswordRequest | |
| css::uno::RuntimeException |
|
private |
| css::uno::Exception |
|
private |
Definition at line 97 of file tdoc_content.hxx.
Referenced by copyData(), getContentType(), getStream(), getSupportedServiceNames(), getTruncatedOutputStream(), getTypes(), queryChildren(), queryCreatableContentsInfo(), and removeData().
|
private |
Definition at line 98 of file tdoc_content.hxx.
Referenced by getIdentifier(), and notifyDocumentClosed().
|
private |
Definition at line 99 of file tdoc_content.hxx.
Referenced by copyData(), getContentProvider(), getStream(), getTruncatedOutputStream(), hasData(), queryChildContent(), and removeData().