LibreOffice Module dbaccess (master) 1
|
Classes | |
struct | SelectionGuardAccess |
Public Member Functions | |
SelectionNotifier (::osl::Mutex &_rMutex, ::cppu::OWeakObject &_rContext) | |
SelectionNotifier (const SelectionNotifier &)=delete | |
const SelectionNotifier & | operator= (const SelectionNotifier &)=delete |
void | addListener (const Reference< XSelectionChangeListener > &Listener) |
void | removeListener (const Reference< XSelectionChangeListener > &Listener) |
void | disposing () |
void | enterSelection (SelectionGuardAccess) |
enters a block which modifies the selection of our owner. More... | |
void | leaveSelection (SelectionGuardAccess) |
leaves a block which modifies the selection of our owner More... | |
Private Attributes | |
::comphelper::OInterfaceContainerHelper3< XSelectionChangeListener > | m_aSelectionListeners |
::cppu::OWeakObject & | m_rContext |
sal_Int32 | m_nSelectionNestingLevel |
Definition at line 158 of file AppController.cxx.
|
inline |
Definition at line 166 of file AppController.cxx.
|
delete |
|
inline |
Definition at line 176 of file AppController.cxx.
References comphelper::OInterfaceContainerHelper3< class ListenerT >::addInterface(), and m_aSelectionListeners.
|
inline |
Definition at line 186 of file AppController.cxx.
References aEvent, comphelper::OInterfaceContainerHelper3< class ListenerT >::disposeAndClear(), m_aSelectionListeners, and m_rContext.
|
inline |
enters a block which modifies the selection of our owner.
Can be called multiple times, the only important thing is to call leaveSelection equally often.
Definition at line 199 of file AppController.cxx.
References m_nSelectionNestingLevel.
|
inline |
leaves a block which modifies the selection of our owner
Must be paired with enterSelection calls.
When the last block is left, i.e. the last leaveSelection call is made on the current stack, then our SelectionChangeListeners are notified
Definition at line 211 of file AppController.cxx.
References aEvent, m_aSelectionListeners, m_nSelectionNestingLevel, m_rContext, and comphelper::OInterfaceContainerHelper3< class ListenerT >::notifyEach().
|
delete |
|
inline |
Definition at line 181 of file AppController.cxx.
References m_aSelectionListeners, and comphelper::OInterfaceContainerHelper3< class ListenerT >::removeInterface().
|
private |
Definition at line 161 of file AppController.cxx.
Referenced by addListener(), disposing(), leaveSelection(), and removeListener().
|
private |
Definition at line 163 of file AppController.cxx.
Referenced by enterSelection(), and leaveSelection().
|
private |
Definition at line 162 of file AppController.cxx.
Referenced by disposing(), and leaveSelection().