22#include <com/sun/star/uno/Reference.hxx>
24#include <unordered_map>
50 const css::uno::Reference<
51 css::drawing::framework::XConfigurationController>& rxController);
71 const css::uno::Reference<
72 css::drawing::framework::XConfigurationChangeListener>& rxListener,
73 const OUString& rsEventType,
74 const css::uno::Any& rUserData);
85 const css::uno::Reference<
86 css::drawing::framework::XConfigurationChangeListener>& rxListener);
95 const css::drawing::framework::ConfigurationChangeEvent& rEvent);
101 const OUString& rsEventType,
102 const css::uno::Reference<css::drawing::framework::XResourceId>& rxResourceId,
103 const css::uno::Reference<css::drawing::framework::XResource>& rxResourceObject);
117 css::uno::Reference<css::drawing::framework::XConfigurationChangeListener>
mxListener;
121 typedef std::unordered_map
133 const css::drawing::framework::ConfigurationChangeEvent& rEvent);
css::uno::Reference< css::drawing::framework::XConfigurationChangeListener > mxListener
This class manages the set of XConfigurationChangeListeners and calls them when the ConfigurationCont...
ListenerMap maListenerMap
css::uno::Reference< css::drawing::framework::XConfigurationController > mxConfigurationController
void NotifyListeners(const ListenerList &rList, const css::drawing::framework::ConfigurationChangeEvent &rEvent)
Broadcast the given event to all listeners in the given list.
void DisposeAndClear()
Call all listeners and inform them that the ConfigurationController is being disposed.
void AddListener(const css::uno::Reference< css::drawing::framework::XConfigurationChangeListener > &rxListener, const OUString &rsEventType, const css::uno::Any &rUserData)
Add a listener for one type of event.
void RemoveListener(const css::uno::Reference< css::drawing::framework::XConfigurationChangeListener > &rxListener)
Remove all references to the given listener.
void NotifyListeners(const css::drawing::framework::ConfigurationChangeEvent &rEvent)
Broadcast the given event to all listeners that have been registered for its type of event as well as...
ConfigurationControllerBroadcaster(const css::uno::Reference< css::drawing::framework::XConfigurationController > &rxController)
The given controller is used as origin of thrown exceptions.
std::unordered_map< OUString, ListenerList > ListenerMap
void NotifyListeners(const OUString &rsEventType, const css::uno::Reference< css::drawing::framework::XResourceId > &rxResourceId, const css::uno::Reference< css::drawing::framework::XResource > &rxResourceObject)
This convenience variant of NotifyListeners create the event from the given arguments.
std::vector< ListenerDescriptor > ListenerList