LibreOffice Module sw (master)  1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SwDrawModellListener_Impl Class Reference
Inheritance diagram for SwDrawModellListener_Impl:
[legend]
Collaboration diagram for SwDrawModellListener_Impl:
[legend]

Public Member Functions

 SwDrawModellListener_Impl (SdrModel *pDrawModel)
 
virtual void SAL_CALL addEventListener (const uno::Reference< document::XEventListener > &xListener) override
 
virtual void SAL_CALL removeEventListener (const uno::Reference< 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
 
void Dispose ()
 
- 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)
 

Protected Member Functions

virtual ~SwDrawModellListener_Impl () override
 

Private Attributes

mutable::osl::Mutex maListenerMutex
 
::comphelper::OInterfaceContainerHelper2 maEventListeners
 
std::unordered_map< css::uno::Reference< css::drawing::XShape >, css::uno::Reference< css::document::XShapeEventListener > > maShapeListeners
 
SdrModelmpDrawModel
 

Detailed Description

Definition at line 125 of file accmap.cxx.

Constructor & Destructor Documentation

SwDrawModellListener_Impl::~SwDrawModellListener_Impl ( )
overrideprotectedvirtual

Definition at line 156 of file accmap.cxx.

References Dispose().

SwDrawModellListener_Impl::SwDrawModellListener_Impl ( SdrModel pDrawModel)
explicit

Definition at line 149 of file accmap.cxx.

References mpDrawModel, and SfxListener::StartListening().

Member Function Documentation

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

Definition at line 171 of file accmap.cxx.

References maListenerMutex, maShapeListeners, and void().

void SwDrawModellListener_Impl::Dispose ( )

Definition at line 247 of file accmap.cxx.

References SfxListener::EndListening(), and mpDrawModel.

Referenced by ~SwDrawModellListener_Impl().

void SwDrawModellListener_Impl::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overridevirtual
void SAL_CALL SwDrawModellListener_Impl::removeEventListener ( const uno::Reference< document::XEventListener > &  xListener)
overridevirtual
void SAL_CALL SwDrawModellListener_Impl::removeShapeEventListener ( const css::uno::Reference< css::drawing::XShape > &  xShape,
const css::uno::Reference< css::document::XShapeEventListener > &  xListener 
)
overridevirtual

Definition at line 182 of file accmap.cxx.

References maListenerMutex, maShapeListeners, and void().

Member Data Documentation

::comphelper::OInterfaceContainerHelper2 SwDrawModellListener_Impl::maEventListeners
private

Definition at line 129 of file accmap.cxx.

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

mutable ::osl::Mutex SwDrawModellListener_Impl::maListenerMutex
private

Definition at line 128 of file accmap.cxx.

Referenced by addShapeEventListener(), Notify(), and removeShapeEventListener().

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

Definition at line 130 of file accmap.cxx.

Referenced by addShapeEventListener(), Notify(), and removeShapeEventListener().

SdrModel* SwDrawModellListener_Impl::mpDrawModel
private

Definition at line 131 of file accmap.cxx.

Referenced by Dispose(), Notify(), and SwDrawModellListener_Impl().


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