LibreOffice Module svl (master) 1
|
#include <listener.hxx>
Classes | |
class | QueryBase |
Public Member Functions | |
SvtListener ()=default | |
SvtListener (const SvtListener &r)=default | |
virtual | ~SvtListener () COVERITY_NOEXCEPT_FALSE |
bool | StartListening (SvtBroadcaster &rBroadcaster) |
void | EndListening (SvtBroadcaster &rBroadcaster) |
void | EndListeningAll () |
void | CopyAllBroadcasters (const SvtListener &r) |
Overwrites existing broadcasters with the ones from the specified listener. More... | |
bool | HasBroadcaster () const |
virtual void | Notify (const SfxHint &rHint) |
virtual void | Query (QueryBase &rQuery) const |
Private Types | |
typedef o3tl::sorted_vector< SvtBroadcaster * > | BroadcastersType |
Private Member Functions | |
const SvtListener & | operator= (const SvtListener &)=delete |
void | BroadcasterDying (SvtBroadcaster &rBroadcaster) |
Private Attributes | |
BroadcastersType | maBroadcasters |
Friends | |
class | SvtBroadcaster |
Definition at line 29 of file listener.hxx.
|
private |
Definition at line 32 of file listener.hxx.
|
default |
|
default |
|
virtual |
Definition at line 23 of file listener.cxx.
References EndListeningAll().
|
private |
Definition at line 56 of file listener.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::erase(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), and maBroadcasters.
void SvtListener::CopyAllBroadcasters | ( | const SvtListener & | r | ) |
Overwrites existing broadcasters with the ones from the specified listener.
Definition at line 74 of file listener.cxx.
References EndListeningAll(), maBroadcasters, p, and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::swap().
void SvtListener::EndListening | ( | SvtBroadcaster & | rBroadcaster | ) |
Definition at line 43 of file listener.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::erase(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), maBroadcasters, and SvtBroadcaster::Remove().
void SvtListener::EndListeningAll | ( | ) |
Definition at line 63 of file listener.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), maBroadcasters, p, and SvtBroadcaster::Remove().
Referenced by CopyAllBroadcasters(), and ~SvtListener().
|
inline |
Definition at line 60 of file listener.hxx.
|
virtual |
Definition at line 85 of file listener.cxx.
|
privatedelete |
|
virtual |
Definition at line 87 of file listener.cxx.
bool SvtListener::StartListening | ( | SvtBroadcaster & | rBroadcaster | ) |
Definition at line 31 of file listener.cxx.
References SvtBroadcaster::Add(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), and maBroadcasters.
|
friend |
Definition at line 31 of file listener.hxx.
|
private |
Definition at line 33 of file listener.hxx.
Referenced by BroadcasterDying(), CopyAllBroadcasters(), EndListening(), EndListeningAll(), and StartListening().