LibreOffice Module svl (master) 1
|
#include <fsstorage.hxx>
Public Member Functions | |
FSStorage (const ::ucbhelper::Content &aContent, sal_Int32 nMode, css::uno::Reference< css::uno::XComponentContext > const &xContext) | |
virtual | ~FSStorage () override |
ucbhelper::Content & | GetContent () |
void | CopyContentToStorage_Impl (ucbhelper::Content &rContent, const css::uno::Reference< css::embed::XStorage > &xDest) |
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< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
virtual void SAL_CALL | copyToStorage (const css::uno::Reference< css::embed::XStorage > &xDest) override |
virtual css::uno::Reference< css::io::XStream > SAL_CALL | openStreamElement (const OUString &aStreamName, sal_Int32 nOpenMode) override |
virtual css::uno::Reference< css::io::XStream > SAL_CALL | openEncryptedStreamElement (const OUString &aStreamName, sal_Int32 nOpenMode, const OUString &aPass) override |
virtual css::uno::Reference< css::embed::XStorage > SAL_CALL | openStorageElement (const OUString &aStorName, sal_Int32 nStorageMode) override |
virtual css::uno::Reference< css::io::XStream > SAL_CALL | cloneStreamElement (const OUString &aStreamName) override |
virtual css::uno::Reference< css::io::XStream > SAL_CALL | cloneEncryptedStreamElement (const OUString &aStreamName, const OUString &aPass) override |
virtual void SAL_CALL | copyLastCommitTo (const css::uno::Reference< css::embed::XStorage > &xTargetStorage) override |
virtual void SAL_CALL | copyStorageElementLastCommitTo (const OUString &aStorName, const css::uno::Reference< css::embed::XStorage > &xTargetStorage) override |
virtual sal_Bool SAL_CALL | isStreamElement (const OUString &aElementName) override |
virtual sal_Bool SAL_CALL | isStorageElement (const OUString &aElementName) override |
virtual void SAL_CALL | removeElement (const OUString &aElementName) override |
virtual void SAL_CALL | renameElement (const OUString &rEleName, const OUString &rNewName) override |
virtual void SAL_CALL | copyElementTo (const OUString &aElementName, const css::uno::Reference< css::embed::XStorage > &xDest, const OUString &aNewName) override |
virtual void SAL_CALL | moveElementTo (const OUString &aElementName, const css::uno::Reference< css::embed::XStorage > &xDest, const OUString &rNewName) override |
virtual css::uno::Any SAL_CALL | getByName (const OUString &aName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getElementNames () override |
virtual sal_Bool SAL_CALL | hasByName (const OUString &aName) override |
virtual css::uno::Type SAL_CALL | getElementType () override |
virtual sal_Bool SAL_CALL | hasElements () override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override |
virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual void SAL_CALL | setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override |
virtual css::uno::Any SAL_CALL | getPropertyValue (const OUString &PropertyName) override |
virtual void SAL_CALL | addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override |
virtual void SAL_CALL | removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override |
virtual void SAL_CALL | addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual void SAL_CALL | removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual css::uno::Reference< css::embed::XExtendedStorageStream > SAL_CALL | openStreamElementByHierarchicalName (const OUString &sStreamPath, ::sal_Int32 nOpenMode) override |
virtual css::uno::Reference< css::embed::XExtendedStorageStream > SAL_CALL | openEncryptedStreamElementByHierarchicalName (const OUString &sStreamName, ::sal_Int32 nOpenMode, const OUString &sPassword) override |
virtual void SAL_CALL | removeStreamElementByHierarchicalName (const OUString &sElementPath) override |
Public Member Functions inherited from cppu::OWeakObject | |
OWeakObject () | |
OWeakObject (const OWeakObject &) | |
OWeakObject &SAL_CALL | operator= (const OWeakObject &) |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) SAL_OVERRIDE |
virtual void SAL_CALL | acquire () SAL_NOEXCEPT SAL_OVERRIDE |
virtual void SAL_CALL | release () SAL_NOEXCEPT SAL_OVERRIDE |
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL | queryAdapter () SAL_OVERRIDE |
SAL_CALL | operator css::uno::Reference< css::uno::XInterface > () |
Static Public Member Functions | |
static void | CopyStreamToSubStream (const OUString &aSourceURL, const css::uno::Reference< css::embed::XStorage > &xDest, const OUString &aNewEntryName) |
static bool | MakeFolderNoUI (std::u16string_view rFolder) |
Private Member Functions | |
css::uno::Reference< css::embed::XStorage > | openStorageElementImpl (std::unique_lock< std::mutex > &rGuard, std::u16string_view aStorName, sal_Int32 nStorageMode) |
css::uno::Reference< css::io::XStream > | openStreamElementImpl (std::unique_lock< std::mutex > &rGuard, std::u16string_view aStreamName, sal_Int32 nOpenMode) |
void | disposeImpl (std::unique_lock< std::mutex > &rGuard) |
Private Attributes | |
std::mutex | m_aMutex |
OUString | m_aURL |
::ucbhelper::Content | m_aContent |
sal_Int32 | m_nMode |
::comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > | m_aListenersContainer |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
Additional Inherited Members | |
Protected Member Functions inherited from cppu::OWeakObject | |
virtual | ~OWeakObject () COVERITY_NOEXCEPT_FALSE |
void | disposeWeakConnectionPoint () |
Protected Attributes inherited from cppu::OWeakObject | |
oslInterlockedCount | m_refCount |
Definition at line 35 of file fsstorage.hxx.
FSStorage::FSStorage | ( | const ::ucbhelper::Content & | aContent, |
sal_Int32 | nMode, | ||
css::uno::Reference< css::uno::XComponentContext > const & | xContext | ||
) |
Definition at line 60 of file fsstorage.cxx.
References GetContent(), m_aContent, m_aURL, m_aURL, and m_xContext.
Referenced by openStorageElementImpl().
|
overridevirtual |
Definition at line 76 of file fsstorage.cxx.
References disposeImpl(), m_aMutex, and cppu::OWeakObject::m_refCount.
|
overridevirtualnoexcept |
Reimplemented from cppu::OWeakObject.
Definition at line 216 of file fsstorage.cxx.
|
overridevirtual |
Definition at line 898 of file fsstorage.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), m_aListenersContainer, and m_aMutex.
|
overridevirtual |
Definition at line 945 of file fsstorage.cxx.
|
overridevirtual |
Definition at line 961 of file fsstorage.cxx.
|
overridevirtual |
Definition at line 530 of file fsstorage.cxx.
|
overridevirtual |
Definition at line 473 of file fsstorage.cxx.
References INetURLObject::Append(), comphelper::OStorageHelper::CopyInputToOutput(), INetURLObject::GetMainURL(), utl::TempFileFastService::getOutputStream(), comphelper::getProcessComponentContext(), m_aMutex, m_aURL, INetURLObject::NONE, and ucbhelper::Content::openStream().
void FSStorage::CopyContentToStorage_Impl | ( | ucbhelper::Content & | rContent, |
const css::uno::Reference< css::embed::XStorage > & | xDest | ||
) |
Definition at line 138 of file fsstorage.cxx.
References CopyContentToStorage_Impl(), CopyStreamToSubStream(), ucbhelper::Content::createCursor(), comphelper::getProcessComponentContext(), INetURLObject::LAST_SEGMENT, and INetURLObject::NONE.
Referenced by CopyContentToStorage_Impl(), copyElementTo(), and copyToStorage().
|
overridevirtual |
Definition at line 651 of file fsstorage.cxx.
References INetURLObject::Append(), CopyContentToStorage_Impl(), CopyStreamToSubStream(), INetURLObject::GetMainURL(), comphelper::getProcessComponentContext(), FStatHelper::IsDocument(), FStatHelper::IsFolder(), m_aMutex, m_aURL, and INetURLObject::NONE.
Referenced by moveElementTo().
|
overridevirtual |
Definition at line 537 of file fsstorage.cxx.
References copyToStorage().
|
overridevirtual |
Definition at line 543 of file fsstorage.cxx.
References m_aMutex, and openStorageElement().
|
static |
Definition at line 110 of file fsstorage.cxx.
References comphelper::OStorageHelper::CopyInputToOutput(), comphelper::getProcessComponentContext(), and ucbhelper::Content::openStream().
Referenced by CopyContentToStorage_Impl(), and copyElementTo().
|
overridevirtual |
Definition at line 245 of file fsstorage.cxx.
References CopyContentToStorage_Impl(), m_aContent, and m_aMutex.
Referenced by copyLastCommitTo().
|
overridevirtual |
Definition at line 883 of file fsstorage.cxx.
References disposeImpl(), and m_aMutex.
|
private |
Definition at line 889 of file fsstorage.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::disposeAndClear(), comphelper::OInterfaceContainerHelper4< class ListenerT >::getLength(), and m_aListenersContainer.
Referenced by dispose(), and ~FSStorage().
|
overridevirtual |
Definition at line 737 of file fsstorage.cxx.
References aName, aURL, FStatHelper::IsDocument(), FStatHelper::IsFolder(), m_aMutex, m_aURL, INetURLObject::NONE, openStorageElementImpl(), and openStreamElementImpl().
ucbhelper::Content & FSStorage::GetContent | ( | ) |
Definition at line 104 of file fsstorage.cxx.
References m_aContent, and m_aMutex.
Referenced by FSStorage().
|
overridevirtual |
Definition at line 786 of file fsstorage.cxx.
References aName, ucbhelper::Content::createCursor(), m_aContent, and m_aMutex.
|
overridevirtual |
Definition at line 852 of file fsstorage.cxx.
|
overridevirtual |
Definition at line 238 of file fsstorage.cxx.
|
overridevirtual |
Definition at line 916 of file fsstorage.cxx.
|
overridevirtual |
Definition at line 932 of file fsstorage.cxx.
|
overridevirtual |
Definition at line 228 of file fsstorage.cxx.
References aTypes, and cppu::UnoType< typename T >::get().
|
overridevirtual |
Definition at line 838 of file fsstorage.cxx.
References aName, aURL, FStatHelper::IsDocument(), FStatHelper::IsFolder(), m_aMutex, m_aURL, and INetURLObject::NONE.
|
overridevirtual |
Definition at line 858 of file fsstorage.cxx.
References ucbhelper::Content::createCursor(), ex, cppu::getCaughtException(), m_aContent, and m_aMutex.
|
overridevirtual |
Definition at line 564 of file fsstorage.cxx.
References aURL, FStatHelper::IsFolder(), m_aMutex, m_aURL, and INetURLObject::NONE.
|
overridevirtual |
Definition at line 554 of file fsstorage.cxx.
References aURL, FStatHelper::IsFolder(), m_aMutex, m_aURL, and INetURLObject::NONE.
|
static |
Definition at line 87 of file fsstorage.cxx.
References aURL, ucbhelper::Content::create(), comphelper::getProcessComponentContext(), INetURLObject::LAST_SEGMENT, INetURLObject::NONE, and INetURLObject::WithCharset.
Referenced by FSStorageFactory::createInstanceWithArguments(), and openStorageElementImpl().
|
overridevirtual |
Definition at line 722 of file fsstorage.cxx.
References INetURLObject::Append(), copyElementTo(), INetURLObject::GetMainURL(), m_aMutex, m_aURL, and INetURLObject::NONE.
|
overridevirtual |
Definition at line 383 of file fsstorage.cxx.
|
overridevirtual |
Definition at line 1081 of file fsstorage.cxx.
|
overridevirtual |
Definition at line 389 of file fsstorage.cxx.
References m_aMutex, and openStorageElementImpl().
Referenced by copyStorageElementLastCommitTo().
|
private |
Definition at line 396 of file fsstorage.cxx.
References INetURLObject::Append(), FSStorage(), INetURLObject::GetMainURL(), comphelper::getProcessComponentContext(), FStatHelper::IsDocument(), FStatHelper::IsFolder(), m_aURL, m_nMode, m_xContext, MakeFolderNoUI(), and INetURLObject::NONE.
Referenced by getByName(), and openStorageElement().
|
overridevirtual |
Definition at line 285 of file fsstorage.cxx.
References m_aMutex, and openStreamElementImpl().
|
overridevirtual |
Definition at line 977 of file fsstorage.cxx.
References utl::UcbStreamHelper::CreateStream(), INetURLObject::GetAbsURL(), INetURLObject::GetMainURL(), comphelper::getProcessComponentContext(), FStatHelper::IsDocument(), comphelper::isFileUrl(), FStatHelper::IsFolder(), m_aMutex, m_aURL, m_xContext, INetURLObject::NONE, ucbhelper::Content::openStream(), INetURLObject::setFinalSlash(), and xStream.
|
private |
Definition at line 292 of file fsstorage.cxx.
References INetURLObject::Append(), utl::UcbStreamHelper::CreateStream(), INetURLObject::GetMainURL(), comphelper::getProcessComponentContext(), INetURLObject::GetProtocol(), FStatHelper::IsDocument(), FStatHelper::IsFolder(), m_aURL, m_xContext, INetURLObject::NONE, and ucbhelper::Content::openStream().
Referenced by getByName(), and openStreamElement().
|
overridevirtual |
Reimplemented from cppu::OWeakObject.
Definition at line 198 of file fsstorage.cxx.
References uno::Any::hasValue().
|
overridevirtualnoexcept |
Reimplemented from cppu::OWeakObject.
Definition at line 221 of file fsstorage.cxx.
|
overridevirtual |
Definition at line 574 of file fsstorage.cxx.
References aURL, FStatHelper::IsDocument(), FStatHelper::IsFolder(), m_aMutex, m_aURL, and INetURLObject::NONE.
|
overridevirtual |
Definition at line 906 of file fsstorage.cxx.
References m_aListenersContainer, m_aMutex, and comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface().
|
overridevirtual |
Definition at line 953 of file fsstorage.cxx.
|
overridevirtual |
Definition at line 1086 of file fsstorage.cxx.
References INetURLObject::GetAbsURL(), INetURLObject::GetMainURL(), FStatHelper::IsDocument(), FStatHelper::IsFolder(), m_aMutex, m_aURL, INetURLObject::NONE, and INetURLObject::setFinalSlash().
|
overridevirtual |
Definition at line 969 of file fsstorage.cxx.
|
overridevirtual |
Definition at line 588 of file fsstorage.cxx.
References INetURLObject::Append(), INetURLObject::GetMainURL(), comphelper::getProcessComponentContext(), FStatHelper::IsDocument(), FStatHelper::IsFolder(), m_aContent, m_aMutex, m_aURL, ucbhelper::Move, INetURLObject::NONE, and ucbhelper::Content::transferContent().
|
overridevirtual |
Definition at line 923 of file fsstorage.cxx.
|
private |
Definition at line 43 of file fsstorage.hxx.
Referenced by copyToStorage(), GetContent(), getElementNames(), hasElements(), and renameElement().
|
private |
Definition at line 45 of file fsstorage.hxx.
Referenced by addEventListener(), disposeImpl(), and removeEventListener().
|
private |
Definition at line 41 of file fsstorage.hxx.
Referenced by addEventListener(), cloneStreamElement(), copyElementTo(), copyStorageElementLastCommitTo(), copyToStorage(), dispose(), getByName(), GetContent(), getElementNames(), getPropertyValue(), hasByName(), hasElements(), isStorageElement(), isStreamElement(), moveElementTo(), openStorageElement(), openStreamElement(), openStreamElementByHierarchicalName(), removeElement(), removeEventListener(), removeStreamElementByHierarchicalName(), renameElement(), and ~FSStorage().
|
private |
Definition at line 42 of file fsstorage.hxx.
Referenced by cloneStreamElement(), copyElementTo(), FSStorage(), getByName(), getPropertyValue(), hasByName(), isStorageElement(), isStreamElement(), moveElementTo(), openStorageElementImpl(), openStreamElementByHierarchicalName(), openStreamElementImpl(), removeElement(), removeStreamElementByHierarchicalName(), and renameElement().
|
private |
Definition at line 44 of file fsstorage.hxx.
Referenced by getPropertyValue(), and openStorageElementImpl().
|
private |
Definition at line 46 of file fsstorage.hxx.
Referenced by openStorageElementImpl(), openStreamElementByHierarchicalName(), and openStreamElementImpl().