LibreOffice Module ucb (master) 1
|
#include <pkgcontent.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::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 |
css::uno::Reference< css::container::XEnumeration > | getIterator () |
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) |
static OUString | getContentType (std::u16string_view aScheme, bool bFolder) |
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, css::uno::Reference< css::container::XHierarchicalNameAccess > Package, PackageUri aUri, ContentProperties aProps) | |
Content (const css::uno::Reference< css::uno::XComponentContext > &rxContext, ContentProvider *pProvider, const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier, css::uno::Reference< css::container::XHierarchicalNameAccess > Package, PackageUri aUri, 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 |
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::Reference< css::container::XHierarchicalNameAccess > | getPackage (const PackageUri &rURI) |
css::uno::Reference< css::container::XHierarchicalNameAccess > | getPackage () |
bool | hasData (const PackageUri &rURI) |
void | renameData (const css::uno::Reference< css::ucb::XContentIdentifier > &xOldId, const css::uno::Reference< css::ucb::XContentIdentifier > &xNewId) |
bool | storeData (const css::uno::Reference< css::io::XInputStream > &xStream) |
bool | removeData () |
bool | flushData () |
void | queryChildren (ContentRefList &rChildren) |
bool | exchangeIdentity (const css::uno::Reference< css::ucb::XContentIdentifier > &xNewId) |
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 > &xStream, 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 () |
bool | isFolder () const |
Static Private Member Functions | |
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, const rtl::Reference< ::ucbhelper::ContentProviderImplHelper > &rProvider, const OUString &rContentId) |
static bool | loadData (ContentProvider *pProvider, const PackageUri &rURI, ContentProperties &rProps, css::uno::Reference< css::container::XHierarchicalNameAccess > &rxPackage) |
static bool | hasData (ContentProvider *pProvider, const PackageUri &rURI, css::uno::Reference< css::container::XHierarchicalNameAccess > &rxPackage) |
Private Attributes | |
PackageUri | m_aUri |
ContentProperties | m_aProps |
ContentState | m_eState |
css::uno::Reference< css::container::XHierarchicalNameAccess > | m_xPackage |
ContentProvider * | m_pProvider |
sal_uInt32 | m_nModifiedProps |
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 89 of file pkgcontent.hxx.
|
private |
Definition at line 168 of file pkgcontent.hxx.
|
private |
Definition at line 169 of file pkgcontent.hxx.
|
private |
Enumerator | |
---|---|
TRANSIENT | |
PERSISTENT | |
DEAD |
Definition at line 92 of file pkgcontent.hxx.
|
private |
|
private |
|
overridevirtual |
Definition at line 274 of file pkgcontent.cxx.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 620 of file pkgcontent.cxx.
|
overridevirtualnoexcept |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 283 of file pkgcontent.cxx.
|
static |
|
static |
|
overridevirtual |
|
private |
css::uno::Exception |
|
private |
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
|
private |
Definition at line 2586 of file pkgcontent.cxx.
References getPackage(), and ucbhelper::ContentImplHelper::m_aMutex.
|
overrideprivatevirtual |
Implements ucbhelper::ContentImplHelper.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 378 of file pkgcontent.cxx.
References package_ucp::ContentProperties::aContentType, and m_aProps.
Referenced by package_ucp::ContentProperties::getCreatableContentsInfo().
|
static |
Definition at line 226 of file pkgcontent.cxx.
References u.
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 361 of file pkgcontent.cxx.
|
private |
Definition at line 2616 of file pkgcontent.cxx.
References getPackage(), package_ucp::PackageUri::getPath(), ucbhelper::ContentImplHelper::m_aMutex, m_aUri, xSink, and xStream.
uno::Reference< container::XEnumeration > Content::getIterator | ( | ) |
Definition at line 2653 of file pkgcontent.cxx.
References getPackage(), package_ucp::PackageUri::getPath(), ucbhelper::ContentImplHelper::m_aMutex, and m_aUri.
|
private |
Definition at line 2063 of file pkgcontent.cxx.
References getPackage(), and m_aUri.
Referenced by flushData(), getInputStream(), getIterator(), getPackage(), hasData(), and removeData().
|
private |
Definition at line 2046 of file pkgcontent.cxx.
References package_ucp::ContentProvider::createPackage(), package_ucp::PackageUri::getPackage(), ucbhelper::ContentImplHelper::m_aMutex, m_aUri, m_pProvider, and m_xPackage.
|
overrideprivatevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 680 of file pkgcontent.cxx.
References package_ucp::PackageUri::getParentUri(), and m_aUri.
Referenced by removeData().
|
overrideprivatevirtual |
Implements ucbhelper::ContentImplHelper.
|
staticprivate |
Referenced by package_ucp::DataSupplier::queryPropertyValues().
|
static |
|
private |
|
overridevirtual |
Implements ucbhelper::ContentImplHelper.
Definition at line 368 of file pkgcontent.cxx.
References isFolder().
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 318 of file pkgcontent.cxx.
References CPPU_TYPE_REF, cppu::OTypeCollection::getTypes(), and isFolder().
|
private |
Definition at line 2080 of file pkgcontent.cxx.
References getPackage(), package_ucp::PackageUri::getPackage(), package_ucp::PackageUri::getPath(), hasData(), ucbhelper::ContentImplHelper::m_aMutex, m_aUri, and m_pProvider.
|
staticprivate |
Referenced by hasData().
|
private |
css::uno::Exception |
|
inlineprivate |
Definition at line 198 of file pkgcontent.hxx.
References package_ucp::ContentProperties::bIsFolder, and m_aProps.
Referenced by getSupportedServiceNames(), and getTypes().
|
staticprivate |
|
private |
css::uno::Exception |
|
private |
Definition at line 2007 of file pkgcontent.cxx.
References aURL, ucbhelper::ContentImplHelper::m_xIdentifier, and ucbhelper::ContentImplHelper::m_xProvider.
|
overridevirtual |
Definition at line 632 of file pkgcontent.cxx.
References package_ucp::ContentProperties::getCreatableContentsInfo(), m_aProps, and m_aUri.
|
overridevirtual |
Reimplemented from ucbhelper::ContentImplHelper.
|
overridevirtualnoexcept |
Reimplemented from ucbhelper::ContentImplHelper.
Definition at line 291 of file pkgcontent.cxx.
|
private |
Definition at line 2546 of file pkgcontent.cxx.
References package_ucp::PackageUri::getName(), getPackage(), getParentURL(), package_ucp::PackageUri::getPath(), ucbhelper::ContentImplHelper::m_aMutex, and m_aUri.
|
private |
|
private |
css::uno::Exception |
|
private |
|
private |
css::uno::Exception |
|
private |
Definition at line 99 of file pkgcontent.hxx.
Referenced by getContentType(), isFolder(), and queryCreatableContentsInfo().
|
private |
Definition at line 98 of file pkgcontent.hxx.
Referenced by getInputStream(), getIterator(), getPackage(), getParentURL(), hasData(), queryCreatableContentsInfo(), and removeData().
|
private |
Definition at line 100 of file pkgcontent.hxx.
|
private |
Definition at line 104 of file pkgcontent.hxx.
|
private |
Definition at line 103 of file pkgcontent.hxx.
Referenced by getPackage(), and hasData().
|
private |
Definition at line 102 of file pkgcontent.hxx.
Referenced by getPackage().