LibreOffice Module extensions (master) 1
|
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 | |
OBrowserListBox * | m_pContext |
NotificationMode | m_eMode |
Definition at line 119 of file browserlistbox.cxx.
Enumerator | |
---|---|
eSynchronously | |
eAsynchronously |
Definition at line 123 of file browserlistbox.cxx.
|
explicit |
creates an instance
_rContextImpl | the instance to delegate events to |
Definition at line 191 of file browserlistbox.cxx.
|
overrideprotectedvirtual |
Definition at line 197 of file browserlistbox.cxx.
References dispose(), and impl_isDisposed_nothrow().
|
overridevirtualnoexcept |
Implements comphelper::IEventProcessor.
Definition at line 254 of file browserlistbox.cxx.
|
overrideprotectedvirtual |
Definition at line 249 of file browserlistbox.cxx.
References impl_notify_throw().
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().
|
overrideprotectedvirtual |
Definition at line 239 of file browserlistbox.cxx.
References impl_notify_throw().
|
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().
|
private |
notifies the given event originating from the given control
DisposedException |
_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().
|
private |
processes the given event, i.e.
notifies it to our OBrowserListBox
_rEvent | the 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().
|
overrideprotectedvirtual |
Definition at line 264 of file browserlistbox.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, impl_isDisposed_nothrow(), and impl_processEvent_throw().
|
overridevirtualnoexcept |
Implements comphelper::IEventProcessor.
Definition at line 259 of file browserlistbox.cxx.
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
_eMode | the new notification mode |
Definition at line 213 of file browserlistbox.cxx.
References m_eMode.
|
overrideprotectedvirtual |
Definition at line 244 of file browserlistbox.cxx.
References impl_notify_throw().
|
private |
Definition at line 131 of file browserlistbox.cxx.
Referenced by impl_notify_throw(), and setNotificationMode().
|
private |
Definition at line 130 of file browserlistbox.cxx.
Referenced by dispose(), impl_isDisposed_nothrow(), and impl_processEvent_throw().