13#include <com/sun/star/frame/XDispatchProvider.hpp>
33class StyleDispatcher final :
public cppu::WeakImplHelper< css::frame::XDispatch, css::frame::XStatusListener >
36 StyleDispatcher(
const css::uno::Reference< css::frame::XFrame >& rFrame,
37 css::uno::Reference< css::util::XURLTransformer > xUrlTransformer,
38 const css::util::URL& rURL );
41 void SAL_CALL
dispatch(
const css::util::URL& rURL,
const css::uno::Sequence< css::beans::PropertyValue >& rArguments )
override;
42 void SAL_CALL
addStatusListener(
const css::uno::Reference< css::frame::XStatusListener >& rListener,
const css::util::URL& rURL )
override;
43 void SAL_CALL
removeStatusListener(
const css::uno::Reference< css::frame::XStatusListener >& rListener,
const css::util::URL& rURL )
override;
46 void SAL_CALL
statusChanged(
const css::frame::FeatureStateEvent& rEvent )
override;
49 void SAL_CALL
disposing(
const css::lang::EventObject& rSource )
override;
54 css::uno::Reference< css::frame::XDispatchProvider >
m_xFrame;
56 css::uno::Reference< css::frame::XStatusListener >
m_xOwner;
63 const css::uno::Reference< css::frame::XFrame >& rFrame,
64 const OUString& rCommand );
67 void SAL_CALL
update()
override;
70 void SAL_CALL
statusChanged(
const css::frame::FeatureStateEvent& rEvent )
override;
73 void SAL_CALL
dispose()
override;
A dispatcher that serves as a proxy for style commands with arguments i.e.
css::uno::Reference< css::util::XURLTransformer > m_xUrlTransformer
css::uno::Reference< css::frame::XStatusListener > m_xOwner
css::uno::Reference< css::frame::XDispatchProvider > m_xFrame
void SAL_CALL dispatch(const css::util::URL &rURL, const css::uno::Sequence< css::beans::PropertyValue > &rArguments) override
OUString m_aStatusCommand
void SAL_CALL statusChanged(const css::frame::FeatureStateEvent &rEvent) override
void SAL_CALL disposing(const css::lang::EventObject &rSource) override
void SAL_CALL addStatusListener(const css::uno::Reference< css::frame::XStatusListener > &rListener, const css::util::URL &rURL) override
void SAL_CALL removeStatusListener(const css::uno::Reference< css::frame::XStatusListener > &rListener, const css::util::URL &rURL) override
css::uno::Reference< css::frame::XDispatch > m_xStatusDispatch
StyleDispatcher(const css::uno::Reference< css::frame::XFrame > &rFrame, css::uno::Reference< css::util::XURLTransformer > xUrlTransformer, const css::util::URL &rURL)