LibreOffice Module dbaccess (master) 1
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
dbaccess::OContainerMediator Class Reference

#include <ContainerMediator.hxx>

Inheritance diagram for dbaccess::OContainerMediator:
[legend]
Collaboration diagram for dbaccess::OContainerMediator:
[legend]

Public Member Functions

 OContainerMediator (const css::uno::Reference< css::container::XContainer > &_xContainer, const css::uno::Reference< css::container::XNameAccess > &_xSettings)
 
virtual void SAL_CALL elementInserted (const css::container::ContainerEvent &_rEvent) override
 
virtual void SAL_CALL elementRemoved (const css::container::ContainerEvent &_rEvent) override
 
virtual void SAL_CALL elementReplaced (const css::container::ContainerEvent &_rEvent) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
void notifyElementCreated (const OUString &_sElementName, const css::uno::Reference< css::beans::XPropertySet > &_xElement)
 

Protected Member Functions

virtual ~OContainerMediator () override
 

Private Types

typedef std::map< OUString, ::rtl::Reference< OPropertyForward > > PropertyForwardList
 

Private Member Functions

void impl_cleanup_nothrow ()
 cleans up the instance, by deregistering as listener at the containers, and resetting them to <NULL> More...
 
void impl_initSettings_nothrow (const OUString &_rName, const css::uno::Reference< css::beans::XPropertySet > &_rxDestination)
 initializes the properties of the given object from its counterpart in our settings container More...
 

Private Attributes

PropertyForwardList m_aForwardList
 
css::uno::Reference< css::container::XNameAccess > m_xSettings
 
css::uno::Reference< css::container::XContainer > m_xContainer
 

Additional Inherited Members

- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

Definition at line 37 of file ContainerMediator.hxx.

Member Typedef Documentation

◆ PropertyForwardList

Definition at line 41 of file ContainerMediator.hxx.

Constructor & Destructor Documentation

◆ ~OContainerMediator()

dbaccess::OContainerMediator::~OContainerMediator ( )
overrideprotectedvirtual

Definition at line 66 of file ContainerMediator.cxx.

References impl_cleanup_nothrow().

◆ OContainerMediator()

dbaccess::OContainerMediator::OContainerMediator ( const css::uno::Reference< css::container::XContainer > &  _xContainer,
const css::uno::Reference< css::container::XNameAccess > &  _xSettings 
)

Member Function Documentation

◆ disposing()

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

Definition at line 164 of file ContainerMediator.cxx.

References impl_cleanup_nothrow(), and cppu::BaseMutex::m_aMutex.

◆ elementInserted()

void SAL_CALL dbaccess::OContainerMediator::elementInserted ( const css::container::ContainerEvent &  _rEvent)
overridevirtual

Definition at line 94 of file ContainerMediator.cxx.

References m_aForwardList, cppu::BaseMutex::m_aMutex, and m_xSettings.

◆ elementRemoved()

void SAL_CALL dbaccess::OContainerMediator::elementRemoved ( const css::container::ContainerEvent &  _rEvent)
overridevirtual

◆ elementReplaced()

void SAL_CALL dbaccess::OContainerMediator::elementReplaced ( const css::container::ContainerEvent &  _rEvent)
overridevirtual

◆ impl_cleanup_nothrow()

void dbaccess::OContainerMediator::impl_cleanup_nothrow ( )
private

cleans up the instance, by deregistering as listener at the containers, and resetting them to <NULL>

Definition at line 72 of file ContainerMediator.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, m_aForwardList, m_xContainer, and m_xSettings.

Referenced by disposing(), and ~OContainerMediator().

◆ impl_initSettings_nothrow()

void dbaccess::OContainerMediator::impl_initSettings_nothrow ( const OUString &  _rName,
const css::uno::Reference< css::beans::XPropertySet > &  _rxDestination 
)
private

initializes the properties of the given object from its counterpart in our settings container

Definition at line 171 of file ContainerMediator.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, and m_xSettings.

Referenced by notifyElementCreated().

◆ notifyElementCreated()

void dbaccess::OContainerMediator::notifyElementCreated ( const OUString &  _sElementName,
const css::uno::Reference< css::beans::XPropertySet > &  _xElement 
)

Member Data Documentation

◆ m_aForwardList

PropertyForwardList dbaccess::OContainerMediator::m_aForwardList
private

◆ m_xContainer

css::uno::Reference< css::container::XContainer > dbaccess::OContainerMediator::m_xContainer
private

◆ m_xSettings

css::uno::Reference< css::container::XNameAccess > dbaccess::OContainerMediator::m_xSettings
private

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