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

#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
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 

Private Attributes

mutable::osl::Mutex maListenerMutex
 
::comphelper::OInterfaceContainerHelper3< 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 ( SdrModel pDrawModel)

Definition at line 29 of file DrawModelBroadcaster.cxx.

References mpDrawModel, and SfxListener::StartListening().

ScDrawModelBroadcaster::~ScDrawModelBroadcaster ( )
overridevirtual

Definition at line 37 of file DrawModelBroadcaster.cxx.

References SfxListener::EndListening(), and mpDrawModel.

Member Function Documentation

void SAL_CALL ScDrawModelBroadcaster::addEventListener ( const css::uno::Reference< css::document::XEventListener > &  xListener)
overridevirtual
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 53 of file DrawModelBroadcaster.cxx.

References assert(), maListenerMutex, maShapeListeners, and void().

void ScDrawModelBroadcaster::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overridevirtual
void SAL_CALL ScDrawModelBroadcaster::removeEventListener ( const css::uno::Reference< css::document::XEventListener > &  xListener)
overridevirtual
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 64 of file DrawModelBroadcaster.cxx.

References assert(), maListenerMutex, maShapeListeners, and void().

Member Data Documentation

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

Definition at line 36 of file DrawModelBroadcaster.hxx.

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

mutable ::osl::Mutex ScDrawModelBroadcaster::maListenerMutex
private
std::unordered_map<css::uno::Reference< css::drawing::XShape >, css::uno::Reference< css::document::XShapeEventListener > > ScDrawModelBroadcaster::maShapeListeners
private
SdrModel* ScDrawModelBroadcaster::mpDrawModel
private

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