LibreOffice Module package (master) 1
Public Member Functions | Private Attributes | List of all members
OHierarchyElement_Impl Class Reference

#include <ohierarchyholder.hxx>

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

Public Member Functions

 OHierarchyElement_Impl (css::uno::Reference< css::embed::XStorage > xStorage)
 
 OHierarchyElement_Impl (css::uno::WeakReference< css::embed::XStorage > xWeakStorage)
 
void Commit ()
 
void SetParent (const ::rtl::Reference< OHierarchyElement_Impl > &rParent)
 
void TestForClosing ()
 
void RemoveElement (const ::rtl::Reference< OHierarchyElement_Impl > &aRef)
 
css::uno::Reference< css::embed::XExtendedStorageStream > GetStreamHierarchically (sal_Int32 nStorageMode, std::vector< OUString > &aPath, sal_Int32 nStreamMode, const ::comphelper::SequenceAsHashMap &aEncryptionData)
 
void RemoveStreamHierarchically (std::vector< OUString > &aListPath)
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
virtual void SAL_CALL preCommit (const css::lang::EventObject &aEvent) override
 
virtual void SAL_CALL commited (const css::lang::EventObject &aEvent) override
 
virtual void SAL_CALL preRevert (const css::lang::EventObject &aEvent) override
 
virtual void SAL_CALL reverted (const css::lang::EventObject &aEvent) override
 

Private Attributes

std::mutex m_aMutex
 
::rtl::Reference< OHierarchyElement_Implm_rParent
 
css::uno::Reference< css::embed::XStorage > m_xOwnStorage
 
css::uno::WeakReference< css::embed::XStorage > m_xWeakOwnStorage
 
OHierarchyElementList_Impl m_aChildren
 
OWeakStorRefVector_Impl m_aOpenStreams
 

Detailed Description

Definition at line 45 of file ohierarchyholder.hxx.

Constructor & Destructor Documentation

◆ OHierarchyElement_Impl() [1/2]

OHierarchyElement_Impl::OHierarchyElement_Impl ( css::uno::Reference< css::embed::XStorage >  xStorage)
inlineexplicit

Definition at line 58 of file ohierarchyholder.hxx.

Referenced by GetStreamHierarchically(), and RemoveStreamHierarchically().

◆ OHierarchyElement_Impl() [2/2]

OHierarchyElement_Impl::OHierarchyElement_Impl ( css::uno::WeakReference< css::embed::XStorage >  xWeakStorage)
inlineexplicit

Definition at line 62 of file ohierarchyholder.hxx.

Member Function Documentation

◆ Commit()

void OHierarchyElement_Impl::Commit ( )

Definition at line 207 of file ohierarchyholder.cxx.

References m_aMutex, m_rParent, and m_xOwnStorage.

Referenced by commited().

◆ commited()

void SAL_CALL OHierarchyElement_Impl::commited ( const css::lang::EventObject &  aEvent)
overridevirtual

Definition at line 303 of file ohierarchyholder.cxx.

References Commit(), and cppu::getCaughtException().

◆ disposing()

void SAL_CALL OHierarchyElement_Impl::disposing ( const css::lang::EventObject &  Source)
overridevirtual

◆ GetStreamHierarchically()

uno::Reference< embed::XExtendedStorageStream > OHierarchyElement_Impl::GetStreamHierarchically ( sal_Int32  nStorageMode,
std::vector< OUString > &  aPath,
sal_Int32  nStreamMode,
const ::comphelper::SequenceAsHashMap aEncryptionData 
)

◆ preCommit()

void SAL_CALL OHierarchyElement_Impl::preCommit ( const css::lang::EventObject &  aEvent)
overridevirtual

Definition at line 299 of file ohierarchyholder.cxx.

◆ preRevert()

void SAL_CALL OHierarchyElement_Impl::preRevert ( const css::lang::EventObject &  aEvent)
overridevirtual

Definition at line 319 of file ohierarchyholder.cxx.

◆ RemoveElement()

void OHierarchyElement_Impl::RemoveElement ( const ::rtl::Reference< OHierarchyElement_Impl > &  aRef)

Definition at line 281 of file ohierarchyholder.cxx.

References m_aChildren, m_aMutex, and TestForClosing().

◆ RemoveStreamHierarchically()

void OHierarchyElement_Impl::RemoveStreamHierarchically ( std::vector< OUString > &  aListPath)

◆ reverted()

void SAL_CALL OHierarchyElement_Impl::reverted ( const css::lang::EventObject &  aEvent)
overridevirtual

Definition at line 323 of file ohierarchyholder.cxx.

◆ SetParent()

void OHierarchyElement_Impl::SetParent ( const ::rtl::Reference< OHierarchyElement_Impl > &  rParent)
inline

Definition at line 68 of file ohierarchyholder.hxx.

References m_rParent.

◆ TestForClosing()

void OHierarchyElement_Impl::TestForClosing ( )

Member Data Documentation

◆ m_aChildren

OHierarchyElementList_Impl OHierarchyElement_Impl::m_aChildren
private

◆ m_aMutex

std::mutex OHierarchyElement_Impl::m_aMutex
private

◆ m_aOpenStreams

OWeakStorRefVector_Impl OHierarchyElement_Impl::m_aOpenStreams
private

Definition at line 55 of file ohierarchyholder.hxx.

Referenced by disposing(), GetStreamHierarchically(), and TestForClosing().

◆ m_rParent

::rtl::Reference< OHierarchyElement_Impl > OHierarchyElement_Impl::m_rParent
private

Definition at line 49 of file ohierarchyholder.hxx.

Referenced by Commit(), SetParent(), and TestForClosing().

◆ m_xOwnStorage

css::uno::Reference< css::embed::XStorage > OHierarchyElement_Impl::m_xOwnStorage
private

◆ m_xWeakOwnStorage

css::uno::WeakReference< css::embed::XStorage > OHierarchyElement_Impl::m_xWeakOwnStorage
private

Definition at line 51 of file ohierarchyholder.hxx.

Referenced by GetStreamHierarchically(), and RemoveStreamHierarchically().


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