25#include <com/sun/star/document/XEventBroadcaster.hpp>
26#include <com/sun/star/document/XShapeEventBroadcaster.hpp>
28#include <unordered_map>
33 public ::cppu::WeakImplHelper< css::document::XShapeEventBroadcaster >
37 std::unordered_map<css::uno::Reference< css::drawing::XShape >, css::uno::Reference< css::document::XShapeEventListener >>
maShapeListeners;
46 virtual void SAL_CALL
addEventListener(
const css::uno::Reference< css::document::XEventListener >& xListener )
override;
47 virtual void SAL_CALL
removeEventListener(
const css::uno::Reference< css::document::XEventListener >& xListener )
override;
49 virtual void SAL_CALL
addShapeEventListener(
const css::uno::Reference< css::drawing::XShape >& xShape,
const css::uno::Reference< css::document::XShapeEventListener >& xListener )
override;
50 virtual void SAL_CALL
removeShapeEventListener(
const css::uno::Reference< css::drawing::XShape >& xShape,
const css::uno::Reference< css::document::XShapeEventListener >& xListener )
override;
virtual ~ScDrawModelBroadcaster() override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::document::XEventListener > &xListener) override
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::document::XEventListener > &xListener) override
ScDrawModelBroadcaster(SdrModel *pDrawModel)
std::mutex maListenerMutex
std::unordered_map< css::uno::Reference< css::drawing::XShape >, css::uno::Reference< css::document::XShapeEventListener > > maShapeListeners
::comphelper::OInterfaceContainerHelper4< css::document::XEventListener > maEventListeners
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
virtual void SAL_CALL addShapeEventListener(const css::uno::Reference< css::drawing::XShape > &xShape, const css::uno::Reference< css::document::XShapeEventListener > &xListener) override