21#include <com/sun/star/util/URLTransformer.hpp>
26using ::com::sun::star::uno::Reference;
27using ::com::sun::star::uno::Sequence;
50 rElement.second.disposeAndClear( rGuard, xEventSource );
66 std::piecewise_construct,
67 std::forward_as_tuple(
URL.Complete),
68 std::forward_as_tuple()).first;
72 aIt->second.addInterface( g,
Control );
82 (*aIt).second.removeInterface( g,
Control );
96 const css::uno::Reference< css::frame::XStatusListener > & xSingleListener )
102 const OUString & rURL,
109 aURL.Complete = rURL;
116 frame::FeatureStateEvent aEventToSend(
126 if( xSingleListener.is())
127 xSingleListener->statusChanged( aEventToSend );
134 aIt->second.notifyEach(g, &css::frame::XStatusListener::statusChanged, aEventToSend);
Reference< uno::XComponentContext > m_xContext
css::uno::Reference< css::uno::XComponentContext > m_xContext
CommandDispatch(const css::uno::Reference< css::uno::XComponentContext > &xContext)
virtual void fireStatusEvent(const OUString &rURL, const css::uno::Reference< css::frame::XStatusListener > &xSingleListener)=0
sends a status event for a specific command to all registered listeners or only the one given when se...
tListenerMap m_aListeners
virtual void SAL_CALL addStatusListener(const css::uno::Reference< css::frame::XStatusListener > &Control, const css::util::URL &URL) override
virtual void initialize()
void fireAllStatusEvents(const css::uno::Reference< css::frame::XStatusListener > &xSingleListener)
calls fireStatusEvent( OUString, xSingleListener )
virtual ~CommandDispatch() override
void fireStatusEventForURL(const OUString &rURL, const css::uno::Any &rState, bool bEnabled, const css::uno::Reference< css::frame::XStatusListener > &xSingleListener)
sends a status event for a specific command to all registered listeners or only the one given when se...
virtual void disposing(std::unique_lock< std::mutex > &rGuard) override
is called when this is disposed
virtual void SAL_CALL removeStatusListener(const css::uno::Reference< css::frame::XStatusListener > &Control, const css::util::URL &URL) override
virtual void SAL_CALL modified(const css::lang::EventObject &aEvent) override
virtual void SAL_CALL dispatch(const css::util::URL &URL, const css::uno::Sequence< css::beans::PropertyValue > &Arguments) override
css::uno::Reference< css::util::XURLTransformer > m_xURLTransformer