LibreOffice Module sc (master) 1
Public Member Functions | Private Attributes | List of all members
ScDrawModelBroadcaster Class Referencefinal

#include <DrawModelBroadcaster.hxx>

Inheritance diagram for ScDrawModelBroadcaster:
[legend]
Collaboration diagram for ScDrawModelBroadcaster:
[legend]

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
 
SfxBroadcasterGetBroadcasterJOE (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
 
SdrModelmpDrawModel
 

Detailed Description

Definition at line 32 of file DrawModelBroadcaster.hxx.

Constructor & Destructor Documentation

◆ ScDrawModelBroadcaster()

ScDrawModelBroadcaster::ScDrawModelBroadcaster ( SdrModel pDrawModel)

Definition at line 27 of file DrawModelBroadcaster.cxx.

References mpDrawModel, and SfxListener::StartListening().

◆ ~ScDrawModelBroadcaster()

ScDrawModelBroadcaster::~ScDrawModelBroadcaster ( )
overridevirtual

Definition at line 34 of file DrawModelBroadcaster.cxx.

References SfxListener::EndListening(), and mpDrawModel.

Member Function Documentation

◆ addEventListener()

void SAL_CALL ScDrawModelBroadcaster::addEventListener ( const css::uno::Reference< css::document::XEventListener > &  xListener)
overridevirtual

◆ addShapeEventListener()

void SAL_CALL ScDrawModelBroadcaster::addShapeEventListener ( const css::uno::Reference< css::drawing::XShape > &  xShape,
const css::uno::Reference< css::document::XShapeEventListener > &  xListener 
)
overridevirtual

Definition at line 52 of file DrawModelBroadcaster.cxx.

References maListenerMutex, and maShapeListeners.

◆ Notify()

void ScDrawModelBroadcaster::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overridevirtual

◆ removeEventListener()

void SAL_CALL ScDrawModelBroadcaster::removeEventListener ( const css::uno::Reference< css::document::XEventListener > &  xListener)
overridevirtual

◆ removeShapeEventListener()

void SAL_CALL ScDrawModelBroadcaster::removeShapeEventListener ( const css::uno::Reference< css::drawing::XShape > &  xShape,
const css::uno::Reference< css::document::XShapeEventListener > &  xListener 
)
overridevirtual

Definition at line 63 of file DrawModelBroadcaster.cxx.

References maListenerMutex, and maShapeListeners.

Member Data Documentation

◆ maEventListeners

::comphelper::OInterfaceContainerHelper4<css::document::XEventListener> ScDrawModelBroadcaster::maEventListeners
private

Definition at line 36 of file DrawModelBroadcaster.hxx.

Referenced by addEventListener(), Notify(), and removeEventListener().

◆ maListenerMutex

std::mutex ScDrawModelBroadcaster::maListenerMutex
mutableprivate

◆ maShapeListeners

std::unordered_map<css::uno::Reference< css::drawing::XShape >, css::uno::Reference< css::document::XShapeEventListener > > ScDrawModelBroadcaster::maShapeListeners
private

◆ mpDrawModel

SdrModel* ScDrawModelBroadcaster::mpDrawModel
private

The documentation for this class was generated from the following files: