LibreOffice Module sc (master) 1
|
#include <DrawModelBroadcaster.hxx>
Public Member Functions | |
ScDrawModelBroadcaster (SdrModel *pDrawModel) | |
virtual | ~ScDrawModelBroadcaster () override |
virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::document::XEventListener > &xListener) override |
virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::document::XEventListener > &xListener) override |
virtual void SAL_CALL | addShapeEventListener (const css::uno::Reference< css::drawing::XShape > &xShape, const css::uno::Reference< css::document::XShapeEventListener > &xListener) override |
virtual void SAL_CALL | removeShapeEventListener (const css::uno::Reference< css::drawing::XShape > &xShape, const css::uno::Reference< css::document::XShapeEventListener > &xListener) override |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
Public Member Functions inherited from SfxListener | |
SfxListener () | |
SfxListener (const SfxListener &rCopy) | |
virtual | ~SfxListener () COVERITY_NOEXCEPT_FALSE |
void | StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected) |
void | EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false) |
void | EndListeningAll () |
bool | IsListening (SfxBroadcaster &rBroadcaster) const |
sal_uInt16 | GetBroadcasterCount () const |
SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
virtual bool | IsSdrView () const |
Private Attributes | |
std::mutex | maListenerMutex |
::comphelper::OInterfaceContainerHelper4< css::document::XEventListener > | maEventListeners |
std::unordered_map< css::uno::Reference< css::drawing::XShape >, css::uno::Reference< css::document::XShapeEventListener > > | maShapeListeners |
SdrModel * | mpDrawModel |
Definition at line 32 of file DrawModelBroadcaster.hxx.
ScDrawModelBroadcaster::ScDrawModelBroadcaster | ( | SdrModel * | pDrawModel | ) |
Definition at line 27 of file DrawModelBroadcaster.cxx.
References mpDrawModel, and SfxListener::StartListening().
|
overridevirtual |
Definition at line 34 of file DrawModelBroadcaster.cxx.
References SfxListener::EndListening(), and mpDrawModel.
|
overridevirtual |
Definition at line 40 of file DrawModelBroadcaster.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), maEventListeners, and maListenerMutex.
|
overridevirtual |
Definition at line 52 of file DrawModelBroadcaster.cxx.
References maListenerMutex, and maShapeListeners.
|
overridevirtual |
Reimplemented from SfxListener.
Definition at line 77 of file DrawModelBroadcaster.cxx.
References aEvent, SvxUnoDrawMSFactory::createEvent(), comphelper::OInterfaceContainerHelper4< class ListenerT >::forEach(), SfxHint::GetId(), SdrHint::GetKind(), SdrHint::GetObject(), maEventListeners, maListenerMutex, maShapeListeners, and mpDrawModel.
|
overridevirtual |
Definition at line 46 of file DrawModelBroadcaster.cxx.
References maEventListeners, maListenerMutex, and comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface().
|
overridevirtual |
Definition at line 63 of file DrawModelBroadcaster.cxx.
References maListenerMutex, and maShapeListeners.
|
private |
Definition at line 36 of file DrawModelBroadcaster.hxx.
Referenced by addEventListener(), Notify(), and removeEventListener().
|
mutableprivate |
Definition at line 35 of file DrawModelBroadcaster.hxx.
Referenced by addEventListener(), addShapeEventListener(), Notify(), removeEventListener(), and removeShapeEventListener().
|
private |
Definition at line 37 of file DrawModelBroadcaster.hxx.
Referenced by addShapeEventListener(), Notify(), and removeShapeEventListener().
|
private |
Definition at line 38 of file DrawModelBroadcaster.hxx.
Referenced by Notify(), ScDrawModelBroadcaster(), and ~ScDrawModelBroadcaster().