LibreOffice Module svl (master) 1
|
#include <SfxBroadcaster.hxx>
Public Member Functions | |
SfxBroadcaster () | |
SfxBroadcaster (const SfxBroadcaster &rBC) | |
virtual | ~SfxBroadcaster () COVERITY_NOEXCEPT_FALSE |
void | Broadcast (const SfxHint &rHint) |
bool | HasListeners () const |
size_t | GetListenerCount () const |
Get the number of listeners which are registered at this broadcaster. More... | |
void | ForAllListeners (std::function< bool(SfxListener *)> f) const |
Iterate over all the listeners and call the passed function. More... | |
Protected Member Functions | |
void | Forward (SfxBroadcaster &rBC, const SfxHint &rHint) |
Private Member Functions | |
void | AddListener (SfxListener &rListener) |
void | RemoveListener (SfxListener &rListener) |
const SfxBroadcaster & | operator= (const SfxBroadcaster &)=delete |
Private Attributes | |
std::vector< size_t > | m_RemovedPositions |
Contains the positions of removed listeners. More... | |
std::vector< SfxListener * > | m_Listeners |
Friends | |
class | SfxListener |
class | ::SfxBroadcasterTest |
Definition at line 30 of file SfxBroadcaster.hxx.
|
inline |
Definition at line 46 of file SfxBroadcaster.hxx.
SfxBroadcaster::SfxBroadcaster | ( | const SfxBroadcaster & | rBC | ) |
Definition at line 61 of file SfxBroadcaster.cxx.
References i, m_Listeners, and SfxListener::StartListening().
|
virtual |
Definition at line 46 of file SfxBroadcaster.cxx.
References Broadcast(), Dying, i, m_Listeners, and SfxListener::RemoveBroadcaster_Impl().
|
private |
Definition at line 73 of file SfxBroadcaster.cxx.
References DBG_TESTSOLARMUTEX, m_Listeners, and m_RemovedPositions.
Referenced by SfxListener::StartListening().
void SfxBroadcaster::Broadcast | ( | const SfxHint & | rHint | ) |
Definition at line 32 of file SfxBroadcaster.cxx.
References i, m_Listeners, and SfxListener::Notify().
Referenced by SfxStyleSheetBasePool::Add(), SfxStyleSheetBasePool::Insert(), SfxStyleSheetBasePool::Make(), INetURLHistory::PutUrl_Impl(), SfxStyleSheetBasePool::Remove(), SfxStyleSheetBase::SetHidden(), SfxStyleSheetBase::SetName(), SfxStyleSheetBase::SetParent(), ~SfxBroadcaster(), SfxStyleSheet::~SfxStyleSheet(), and SfxStyleSheetBasePool::~SfxStyleSheetBasePool().
void SfxBroadcaster::ForAllListeners | ( | std::function< bool(SfxListener *)> | f | ) | const |
Iterate over all the listeners and call the passed function.
return true to break the loop.
Definition at line 134 of file SfxBroadcaster.cxx.
References i, and m_Listeners.
|
protected |
Definition at line 91 of file SfxBroadcaster.cxx.
References i, m_Listeners, and SfxListener::Notify().
Referenced by SfxStyleSheet::Notify().
size_t SfxBroadcaster::GetListenerCount | ( | ) | const |
Get the number of listeners which are registered at this broadcaster.
Definition at line 146 of file SfxBroadcaster.cxx.
References m_Listeners, and m_RemovedPositions.
Referenced by HasListeners().
bool SfxBroadcaster::HasListeners | ( | ) | const |
Definition at line 144 of file SfxBroadcaster.cxx.
References GetListenerCount().
|
privatedelete |
References Forward.
|
private |
Definition at line 103 of file SfxBroadcaster.cxx.
References DBG_TESTSOLARMUTEX, i, m_Listeners, and m_RemovedPositions.
Referenced by SfxListener::EndListening(), and SfxListener::~SfxListener().
|
friend |
Definition at line 61 of file SfxBroadcaster.hxx.
|
friend |
Definition at line 60 of file SfxBroadcaster.hxx.
|
private |
Definition at line 34 of file SfxBroadcaster.hxx.
Referenced by AddListener(), Broadcast(), ForAllListeners(), Forward(), GetListenerCount(), RemoveListener(), SfxBroadcaster(), and ~SfxBroadcaster().
|
private |
Contains the positions of removed listeners.
Definition at line 33 of file SfxBroadcaster.hxx.
Referenced by AddListener(), GetListenerCount(), and RemoveListener().