LibreOffice Module svl (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
FSStorage Class Referencefinal

#include <fsstorage.hxx>

Inheritance diagram for FSStorage:
[legend]
Collaboration diagram for FSStorage:
[legend]

Public Member Functions

 FSStorage (const ::ucbhelper::Content &aContent, sal_Int32 nMode, css::uno::Reference< css::uno::XComponentContext > const &xContext)
 
virtual ~FSStorage () override
 
ucbhelper::ContentGetContent ()
 
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
 

Detailed Description

Definition at line 35 of file fsstorage.hxx.

Constructor & Destructor Documentation

◆ FSStorage()

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().

◆ ~FSStorage()

FSStorage::~FSStorage ( )
overridevirtual

Definition at line 76 of file fsstorage.cxx.

References disposeImpl(), m_aMutex, and cppu::OWeakObject::m_refCount.

Member Function Documentation

◆ acquire()

void SAL_CALL FSStorage::acquire ( )
overridevirtualnoexcept

Reimplemented from cppu::OWeakObject.

Definition at line 216 of file fsstorage.cxx.

◆ addEventListener()

void SAL_CALL FSStorage::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  xListener)
overridevirtual

◆ addPropertyChangeListener()

void SAL_CALL FSStorage::addPropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  xListener 
)
overridevirtual

Definition at line 945 of file fsstorage.cxx.

◆ addVetoableChangeListener()

void SAL_CALL FSStorage::addVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Definition at line 961 of file fsstorage.cxx.

◆ cloneEncryptedStreamElement()

uno::Reference< io::XStream > SAL_CALL FSStorage::cloneEncryptedStreamElement ( const OUString &  aStreamName,
const OUString &  aPass 
)
overridevirtual

Definition at line 530 of file fsstorage.cxx.

◆ cloneStreamElement()

uno::Reference< io::XStream > SAL_CALL FSStorage::cloneStreamElement ( const OUString &  aStreamName)
overridevirtual

◆ CopyContentToStorage_Impl()

void FSStorage::CopyContentToStorage_Impl ( ucbhelper::Content rContent,
const css::uno::Reference< css::embed::XStorage > &  xDest 
)

◆ copyElementTo()

void SAL_CALL FSStorage::copyElementTo ( const OUString &  aElementName,
const css::uno::Reference< css::embed::XStorage > &  xDest,
const OUString &  aNewName 
)
overridevirtual

◆ copyLastCommitTo()

void SAL_CALL FSStorage::copyLastCommitTo ( const css::uno::Reference< css::embed::XStorage > &  xTargetStorage)
overridevirtual

Definition at line 537 of file fsstorage.cxx.

References copyToStorage().

◆ copyStorageElementLastCommitTo()

void SAL_CALL FSStorage::copyStorageElementLastCommitTo ( const OUString &  aStorName,
const css::uno::Reference< css::embed::XStorage > &  xTargetStorage 
)
overridevirtual

Definition at line 543 of file fsstorage.cxx.

References m_aMutex, and openStorageElement().

◆ CopyStreamToSubStream()

void FSStorage::CopyStreamToSubStream ( const OUString &  aSourceURL,
const css::uno::Reference< css::embed::XStorage > &  xDest,
const OUString &  aNewEntryName 
)
static

◆ copyToStorage()

void SAL_CALL FSStorage::copyToStorage ( const css::uno::Reference< css::embed::XStorage > &  xDest)
overridevirtual

Definition at line 245 of file fsstorage.cxx.

References CopyContentToStorage_Impl(), m_aContent, and m_aMutex.

Referenced by copyLastCommitTo().

◆ dispose()

void SAL_CALL FSStorage::dispose ( void  )
overridevirtual

Definition at line 883 of file fsstorage.cxx.

References disposeImpl(), and m_aMutex.

◆ disposeImpl()

void FSStorage::disposeImpl ( std::unique_lock< std::mutex > &  rGuard)
private

◆ getByName()

uno::Any SAL_CALL FSStorage::getByName ( const OUString &  aName)
overridevirtual

◆ GetContent()

ucbhelper::Content & FSStorage::GetContent ( )

Definition at line 104 of file fsstorage.cxx.

References m_aContent, and m_aMutex.

Referenced by FSStorage().

◆ getElementNames()

uno::Sequence< OUString > SAL_CALL FSStorage::getElementNames ( )
overridevirtual

Definition at line 786 of file fsstorage.cxx.

References aName, ucbhelper::Content::createCursor(), m_aContent, and m_aMutex.

◆ getElementType()

uno::Type SAL_CALL FSStorage::getElementType ( )
overridevirtual

Definition at line 852 of file fsstorage.cxx.

◆ getImplementationId()

uno::Sequence< sal_Int8 > SAL_CALL FSStorage::getImplementationId ( )
overridevirtual

Definition at line 238 of file fsstorage.cxx.

◆ getPropertySetInfo()

uno::Reference< beans::XPropertySetInfo > SAL_CALL FSStorage::getPropertySetInfo ( )
overridevirtual

Definition at line 916 of file fsstorage.cxx.

◆ getPropertyValue()

uno::Any SAL_CALL FSStorage::getPropertyValue ( const OUString &  PropertyName)
overridevirtual

Definition at line 932 of file fsstorage.cxx.

References m_aMutex, m_aURL, and m_nMode.

◆ getTypes()

uno::Sequence< uno::Type > SAL_CALL FSStorage::getTypes ( )
overridevirtual

Definition at line 228 of file fsstorage.cxx.

References aTypes, and cppu::UnoType< typename T >::get().

◆ hasByName()

sal_Bool SAL_CALL FSStorage::hasByName ( const OUString &  aName)
overridevirtual

◆ hasElements()

sal_Bool SAL_CALL FSStorage::hasElements ( )
overridevirtual

◆ isStorageElement()

sal_Bool SAL_CALL FSStorage::isStorageElement ( const OUString &  aElementName)
overridevirtual

Definition at line 564 of file fsstorage.cxx.

References aURL, FStatHelper::IsFolder(), m_aMutex, m_aURL, and INetURLObject::NONE.

◆ isStreamElement()

sal_Bool SAL_CALL FSStorage::isStreamElement ( const OUString &  aElementName)
overridevirtual

Definition at line 554 of file fsstorage.cxx.

References aURL, FStatHelper::IsFolder(), m_aMutex, m_aURL, and INetURLObject::NONE.

◆ MakeFolderNoUI()

bool FSStorage::MakeFolderNoUI ( std::u16string_view  rFolder)
static

◆ moveElementTo()

void SAL_CALL FSStorage::moveElementTo ( const OUString &  aElementName,
const css::uno::Reference< css::embed::XStorage > &  xDest,
const OUString &  rNewName 
)
overridevirtual

◆ openEncryptedStreamElement()

uno::Reference< io::XStream > SAL_CALL FSStorage::openEncryptedStreamElement ( const OUString &  aStreamName,
sal_Int32  nOpenMode,
const OUString &  aPass 
)
overridevirtual

Definition at line 383 of file fsstorage.cxx.

◆ openEncryptedStreamElementByHierarchicalName()

uno::Reference< embed::XExtendedStorageStream > SAL_CALL FSStorage::openEncryptedStreamElementByHierarchicalName ( const OUString &  sStreamName,
::sal_Int32  nOpenMode,
const OUString &  sPassword 
)
overridevirtual

Definition at line 1081 of file fsstorage.cxx.

◆ openStorageElement()

uno::Reference< embed::XStorage > SAL_CALL FSStorage::openStorageElement ( const OUString &  aStorName,
sal_Int32  nStorageMode 
)
overridevirtual

Definition at line 389 of file fsstorage.cxx.

References m_aMutex, and openStorageElementImpl().

Referenced by copyStorageElementLastCommitTo().

◆ openStorageElementImpl()

uno::Reference< embed::XStorage > FSStorage::openStorageElementImpl ( std::unique_lock< std::mutex > &  rGuard,
std::u16string_view  aStorName,
sal_Int32  nStorageMode 
)
private

◆ openStreamElement()

uno::Reference< io::XStream > SAL_CALL FSStorage::openStreamElement ( const OUString &  aStreamName,
sal_Int32  nOpenMode 
)
overridevirtual

Definition at line 285 of file fsstorage.cxx.

References m_aMutex, and openStreamElementImpl().

◆ openStreamElementByHierarchicalName()

uno::Reference< embed::XExtendedStorageStream > SAL_CALL FSStorage::openStreamElementByHierarchicalName ( const OUString &  sStreamPath,
::sal_Int32  nOpenMode 
)
overridevirtual

◆ openStreamElementImpl()

uno::Reference< io::XStream > FSStorage::openStreamElementImpl ( std::unique_lock< std::mutex > &  rGuard,
std::u16string_view  aStreamName,
sal_Int32  nOpenMode 
)
private

◆ queryInterface()

uno::Any SAL_CALL FSStorage::queryInterface ( const css::uno::Type &  rType)
overridevirtual

Reimplemented from cppu::OWeakObject.

Definition at line 198 of file fsstorage.cxx.

References uno::Any::hasValue().

◆ release()

void SAL_CALL FSStorage::release ( )
overridevirtualnoexcept

Reimplemented from cppu::OWeakObject.

Definition at line 221 of file fsstorage.cxx.

◆ removeElement()

void SAL_CALL FSStorage::removeElement ( const OUString &  aElementName)
overridevirtual

◆ removeEventListener()

void SAL_CALL FSStorage::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  xListener)
overridevirtual

◆ removePropertyChangeListener()

void SAL_CALL FSStorage::removePropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  aListener 
)
overridevirtual

Definition at line 953 of file fsstorage.cxx.

◆ removeStreamElementByHierarchicalName()

void SAL_CALL FSStorage::removeStreamElementByHierarchicalName ( const OUString &  sElementPath)
overridevirtual

◆ removeVetoableChangeListener()

void SAL_CALL FSStorage::removeVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Definition at line 969 of file fsstorage.cxx.

◆ renameElement()

void SAL_CALL FSStorage::renameElement ( const OUString &  rEleName,
const OUString &  rNewName 
)
overridevirtual

◆ setPropertyValue()

void SAL_CALL FSStorage::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual

Definition at line 923 of file fsstorage.cxx.

Member Data Documentation

◆ m_aContent

::ucbhelper::Content FSStorage::m_aContent
private

Definition at line 43 of file fsstorage.hxx.

Referenced by copyToStorage(), GetContent(), getElementNames(), hasElements(), and renameElement().

◆ m_aListenersContainer

::comphelper::OInterfaceContainerHelper4<css::lang::XEventListener> FSStorage::m_aListenersContainer
private

Definition at line 45 of file fsstorage.hxx.

Referenced by addEventListener(), disposeImpl(), and removeEventListener().

◆ m_aMutex

std::mutex FSStorage::m_aMutex
private

◆ m_aURL

OUString FSStorage::m_aURL
private

◆ m_nMode

sal_Int32 FSStorage::m_nMode
private

Definition at line 44 of file fsstorage.hxx.

Referenced by getPropertyValue(), and openStorageElementImpl().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > FSStorage::m_xContext
private

The documentation for this class was generated from the following files: