LibreOffice Module extensions (master) 1
Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
pcr::PropertyControlContext_Impl Class Reference
Inheritance diagram for pcr::PropertyControlContext_Impl:
[legend]
Collaboration diagram for pcr::PropertyControlContext_Impl:
[legend]

Public Types

enum  NotificationMode {
  eSynchronously ,
  eAsynchronously
}
 

Public Member Functions

 PropertyControlContext_Impl (OBrowserListBox &_rContextImpl)
 creates an instance More...
 
void dispose ()
 disposes the context. More...
 
void setNotificationMode (NotificationMode _eMode)
 sets the notification mode, so that notifications received from the controls are forwarded to our OBrowserListBox either synchronously or asynchronously More...
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
- Public Member Functions inherited from comphelper::IEventProcessor
virtual void processEvent (const AnyEvent &_rEvent)=0
 
virtual void SAL_CALL acquire () noexcept=0
 
virtual void SAL_CALL release () noexcept=0
 

Protected Member Functions

virtual ~PropertyControlContext_Impl () override
 
virtual void SAL_CALL focusGained (const Reference< XPropertyControl > &Control) override
 
virtual void SAL_CALL valueChanged (const Reference< XPropertyControl > &Control) override
 
virtual void SAL_CALL activateNextControl (const Reference< XPropertyControl > &CurrentControl) override
 
virtual void processEvent (const ::comphelper::AnyEvent &_rEvent) override
 
- Protected Member Functions inherited from comphelper::IEventProcessor
 ~IEventProcessor ()
 

Private Member Functions

void impl_processEvent_throw (const ::comphelper::AnyEvent &_rEvent)
 processes the given event, i.e. More...
 
bool impl_isDisposed_nothrow () const
 checks whether the instance is already disposed More...
 
void impl_notify_throw (const Reference< XPropertyControl > &_rxControl, ControlEventType _eType)
 notifies the given event originating from the given control More...
 

Private Attributes

OBrowserListBoxm_pContext
 
NotificationMode m_eMode
 

Detailed Description

Definition at line 119 of file browserlistbox.cxx.

Member Enumeration Documentation

◆ NotificationMode

Enumerator
eSynchronously 
eAsynchronously 

Definition at line 123 of file browserlistbox.cxx.

Constructor & Destructor Documentation

◆ PropertyControlContext_Impl()

pcr::PropertyControlContext_Impl::PropertyControlContext_Impl ( OBrowserListBox _rContextImpl)
explicit

creates an instance

Parameters
_rContextImplthe instance to delegate events to

Definition at line 191 of file browserlistbox.cxx.

◆ ~PropertyControlContext_Impl()

pcr::PropertyControlContext_Impl::~PropertyControlContext_Impl ( )
overrideprotectedvirtual

Definition at line 197 of file browserlistbox.cxx.

References dispose(), and impl_isDisposed_nothrow().

Member Function Documentation

◆ acquire()

void SAL_CALL pcr::PropertyControlContext_Impl::acquire ( )
overridevirtualnoexcept

Implements comphelper::IEventProcessor.

Definition at line 254 of file browserlistbox.cxx.

◆ activateNextControl()

void SAL_CALL pcr::PropertyControlContext_Impl::activateNextControl ( const Reference< XPropertyControl > &  CurrentControl)
overrideprotectedvirtual

Definition at line 249 of file browserlistbox.cxx.

References impl_notify_throw().

◆ dispose()

void pcr::PropertyControlContext_Impl::dispose ( void  )

disposes the context.

When you call this method, all subsequent callbacks to the <type scope="css::inspection">XPropertyControlContext</type> methods will throw a <type scope="css::lang">DisposedException</type>.

Definition at line 203 of file browserlistbox.cxx.

References impl_isDisposed_nothrow(), and m_pContext.

Referenced by ~PropertyControlContext_Impl().

◆ focusGained()

void SAL_CALL pcr::PropertyControlContext_Impl::focusGained ( const Reference< XPropertyControl > &  Control)
overrideprotectedvirtual

Definition at line 239 of file browserlistbox.cxx.

References impl_notify_throw().

◆ impl_isDisposed_nothrow()

bool pcr::PropertyControlContext_Impl::impl_isDisposed_nothrow ( ) const
inlineprivate

checks whether the instance is already disposed

Definition at line 181 of file browserlistbox.cxx.

References m_pContext.

Referenced by dispose(), impl_notify_throw(), processEvent(), and ~PropertyControlContext_Impl().

◆ impl_notify_throw()

void pcr::PropertyControlContext_Impl::impl_notify_throw ( const Reference< XPropertyControl > &  _rxControl,
ControlEventType  _eType 
)
private

notifies the given event originating from the given control

Exceptions
DisposedException
Parameters
_rxControl
_eType

Definition at line 219 of file browserlistbox.cxx.

References eSynchronously, impl_isDisposed_nothrow(), impl_processEvent_throw(), and m_eMode.

Referenced by activateNextControl(), focusGained(), and valueChanged().

◆ impl_processEvent_throw()

void pcr::PropertyControlContext_Impl::impl_processEvent_throw ( const ::comphelper::AnyEvent _rEvent)
private

processes the given event, i.e.

notifies it to our OBrowserListBox

Parameters
_rEventthe event no notify @precond our mutex (well, the SolarMutex) is locked

Definition at line 282 of file browserlistbox.cxx.

References pcr::OBrowserListBox::activateNextControl(), pcr::OBrowserListBox::focusGained(), m_pContext, and pcr::OBrowserListBox::valueChanged().

Referenced by impl_notify_throw(), and processEvent().

◆ processEvent()

void pcr::PropertyControlContext_Impl::processEvent ( const ::comphelper::AnyEvent _rEvent)
overrideprotectedvirtual

◆ release()

void SAL_CALL pcr::PropertyControlContext_Impl::release ( )
overridevirtualnoexcept

Implements comphelper::IEventProcessor.

Definition at line 259 of file browserlistbox.cxx.

◆ setNotificationMode()

void pcr::PropertyControlContext_Impl::setNotificationMode ( NotificationMode  _eMode)

sets the notification mode, so that notifications received from the controls are forwarded to our OBrowserListBox either synchronously or asynchronously

Parameters
_eModethe new notification mode

Definition at line 213 of file browserlistbox.cxx.

References m_eMode.

◆ valueChanged()

void SAL_CALL pcr::PropertyControlContext_Impl::valueChanged ( const Reference< XPropertyControl > &  Control)
overrideprotectedvirtual

Definition at line 244 of file browserlistbox.cxx.

References impl_notify_throw().

Member Data Documentation

◆ m_eMode

NotificationMode pcr::PropertyControlContext_Impl::m_eMode
private

Definition at line 131 of file browserlistbox.cxx.

Referenced by impl_notify_throw(), and setNotificationMode().

◆ m_pContext

OBrowserListBox* pcr::PropertyControlContext_Impl::m_pContext
private

Definition at line 130 of file browserlistbox.cxx.

Referenced by dispose(), impl_isDisposed_nothrow(), and impl_processEvent_throw().


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