LibreOffice Module dbaccess (master) 1
|
#include <ContainerMediator.hxx>
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 |
Definition at line 37 of file ContainerMediator.hxx.
|
private |
Definition at line 41 of file ContainerMediator.hxx.
|
overrideprotectedvirtual |
Definition at line 66 of file ContainerMediator.cxx.
References impl_cleanup_nothrow().
dbaccess::OContainerMediator::OContainerMediator | ( | const css::uno::Reference< css::container::XContainer > & | _xContainer, |
const css::uno::Reference< css::container::XNameAccess > & | _xSettings | ||
) |
Definition at line 38 of file ContainerMediator.cxx.
References Exception, m_refCount, m_xContainer, m_xSettings, and TOOLS_WARN_EXCEPTION.
|
overridevirtual |
Definition at line 164 of file ContainerMediator.cxx.
References impl_cleanup_nothrow(), and cppu::BaseMutex::m_aMutex.
|
overridevirtual |
Definition at line 94 of file ContainerMediator.cxx.
References m_aForwardList, cppu::BaseMutex::m_aMutex, and m_xSettings.
|
overridevirtual |
Definition at line 110 of file ContainerMediator.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, m_aForwardList, cppu::BaseMutex::m_aMutex, m_xContainer, and m_xSettings.
|
overridevirtual |
Definition at line 132 of file ContainerMediator.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, m_aForwardList, m_xContainer, and m_xSettings.
|
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().
|
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().
void dbaccess::OContainerMediator::notifyElementCreated | ( | const OUString & | _sElementName, |
const css::uno::Reference< css::beans::XPropertySet > & | _xElement | ||
) |
Definition at line 187 of file ContainerMediator.cxx.
References aProperties, DBG_UNHANDLED_EXCEPTION, Exception, impl_initSettings_nothrow(), m_aForwardList, and m_xSettings.
Referenced by dbaccess::OColumns::createObject().
|
private |
Definition at line 42 of file ContainerMediator.hxx.
Referenced by elementInserted(), elementRemoved(), elementReplaced(), impl_cleanup_nothrow(), and notifyElementCreated().
|
private |
Definition at line 44 of file ContainerMediator.hxx.
Referenced by elementRemoved(), elementReplaced(), impl_cleanup_nothrow(), and OContainerMediator().
|
private |
Definition at line 43 of file ContainerMediator.hxx.
Referenced by elementInserted(), elementRemoved(), elementReplaced(), impl_cleanup_nothrow(), impl_initSettings_nothrow(), notifyElementCreated(), and OContainerMediator().