LibreOffice Module forms (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
frm::WindowStateGuard_Impl Class Reference
Inheritance diagram for frm::WindowStateGuard_Impl:
[legend]
Collaboration diagram for frm::WindowStateGuard_Impl:
[legend]

Public Member Functions

 WindowStateGuard_Impl (const Reference< XWindow2 > &_rxWindow, const Reference< XPropertySet > &_rxMdelProps)
 constructs the instance More...
 
void dispose ()
 

Protected Member Functions

virtual void SAL_CALL windowEnabled (const css::lang::EventObject &e) override
 
virtual void SAL_CALL windowDisabled (const css::lang::EventObject &e) override
 
virtual void SAL_CALL windowResized (const css::awt::WindowEvent &e) override
 
virtual void SAL_CALL windowMoved (const css::awt::WindowEvent &e) override
 
virtual void SAL_CALL windowShown (const css::lang::EventObject &e) override
 
virtual void SAL_CALL windowHidden (const css::lang::EventObject &e) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 

Private Member Functions

void impl_ensureEnabledState_nothrow_nolck ()
 ensures that the window's Enabled state matches what is described at the model @precond our mutex is locked More...
 

Private Attributes

::osl::Mutex m_aMutex
 
Reference< XWindow2 > m_xWindow
 
Reference< XPropertySetm_xModelProps
 

Detailed Description

Definition at line 46 of file windowstateguard.cxx.

Constructor & Destructor Documentation

◆ WindowStateGuard_Impl()

frm::WindowStateGuard_Impl::WindowStateGuard_Impl ( const Reference< XWindow2 > &  _rxWindow,
const Reference< XPropertySet > &  _rxMdelProps 
)

constructs the instance

Parameters
_rxWindowthe window at which to listen. Must not be <NULL>.
_rxModelthe model which acts as the reference for the states to be enforced. Must not be <NULL>.

Definition at line 87 of file windowstateguard.cxx.

References m_refCount, m_xModelProps, and m_xWindow.

Member Function Documentation

◆ dispose()

void frm::WindowStateGuard_Impl::dispose ( void  )

Definition at line 102 of file windowstateguard.cxx.

References m_aMutex, and m_xWindow.

Referenced by disposing().

◆ disposing()

void SAL_CALL frm::WindowStateGuard_Impl::disposing ( const css::lang::EventObject &  Source)
overrideprotectedvirtual

Definition at line 179 of file windowstateguard.cxx.

References dispose(), m_xWindow, and Source.

◆ impl_ensureEnabledState_nothrow_nolck()

void frm::WindowStateGuard_Impl::impl_ensureEnabledState_nothrow_nolck ( )
private

ensures that the window's Enabled state matches what is described at the model @precond our mutex is locked

Definition at line 114 of file windowstateguard.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, m_aMutex, m_xModelProps, m_xWindow, and PROPERTY_ENABLED.

Referenced by windowDisabled(), and windowEnabled().

◆ windowDisabled()

void SAL_CALL frm::WindowStateGuard_Impl::windowDisabled ( const css::lang::EventObject &  e)
overrideprotectedvirtual

Definition at line 149 of file windowstateguard.cxx.

References impl_ensureEnabledState_nothrow_nolck().

◆ windowEnabled()

void SAL_CALL frm::WindowStateGuard_Impl::windowEnabled ( const css::lang::EventObject &  e)
overrideprotectedvirtual

Definition at line 143 of file windowstateguard.cxx.

References impl_ensureEnabledState_nothrow_nolck().

◆ windowHidden()

void SAL_CALL frm::WindowStateGuard_Impl::windowHidden ( const css::lang::EventObject &  e)
overrideprotectedvirtual

Definition at line 173 of file windowstateguard.cxx.

◆ windowMoved()

void SAL_CALL frm::WindowStateGuard_Impl::windowMoved ( const css::awt::WindowEvent &  e)
overrideprotectedvirtual

Definition at line 161 of file windowstateguard.cxx.

◆ windowResized()

void SAL_CALL frm::WindowStateGuard_Impl::windowResized ( const css::awt::WindowEvent &  e)
overrideprotectedvirtual

Definition at line 155 of file windowstateguard.cxx.

◆ windowShown()

void SAL_CALL frm::WindowStateGuard_Impl::windowShown ( const css::lang::EventObject &  e)
overrideprotectedvirtual

Definition at line 167 of file windowstateguard.cxx.

Member Data Documentation

◆ m_aMutex

::osl::Mutex frm::WindowStateGuard_Impl::m_aMutex
private

Definition at line 49 of file windowstateguard.cxx.

Referenced by dispose(), and impl_ensureEnabledState_nothrow_nolck().

◆ m_xModelProps

Reference< XPropertySet > frm::WindowStateGuard_Impl::m_xModelProps
private

◆ m_xWindow

Reference< XWindow2 > frm::WindowStateGuard_Impl::m_xWindow
private

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