19#ifndef INCLUDED_SVL_BROADCAST_HXX
20#define INCLUDED_SVL_BROADCAST_HXX
44 void Normalize()
const;
50 virtual void ListenersGone();
54 : mnEmptySlots(0), mnListenersFirstUnsorted(0), mbAboutToDie(false)
55 , mbDisposing(false), mbDestNormalized(true) {}
59 void Broadcast(
const SfxHint &rHint );
61 ListenersType& GetAllListeners();
62 const ListenersType& GetAllListeners()
const;
64 bool HasListeners()
const {
return (maListeners.size() - mnEmptySlots) > 0; }
76 void PrepareForDestruction();
bool HasListeners() const
sal_Int32 mnEmptySlots
Note that this class is very performance sensitive, so the following fields have been carefully sized...
ListenersType maDestructedListeners
When the broadcaster is about to die, collect listeners that asked for removal.
ListenersType maListeners
contains only one of each listener, which is enforced by SvtListener
sal_Int32 mnListenersFirstUnsorted
bool mbAboutToDie
Indicate that this broadcaster will be destructed (we indicate this on all ScColumn's broadcasters du...
const SvtBroadcaster & operator=(const SvtBroadcaster &)=delete
std::vector< SvtListener * > ListenersType
friend class SvtBroadcaster