20#ifndef INCLUDED_SVX_SOURCE_INC_FORMFEATUREDISPATCHER_HXX
21#define INCLUDED_SVX_SOURCE_INC_FORMFEATUREDISPATCHER_HXX
23#include <com/sun/star/frame/XDispatch.hpp>
24#include <com/sun/star/form/runtime/XFormOperations.hpp>
33 typedef ::cppu::WeakImplHelper < css::frame::XDispatch
55 css::util::URL _aFeatureURL,
56 const sal_Int16 _nFormFeature,
57 const css::uno::Reference< css::form::runtime::XFormOperations >& _rxFormOperations,
67 virtual void SAL_CALL
dispatch(
const css::util::URL& _rURL,
const css::uno::Sequence< css::beans::PropertyValue >& _rArguments )
override;
68 virtual void SAL_CALL
addStatusListener(
const css::uno::Reference< css::frame::XStatusListener >& _rxControl,
const css::util::URL& _rURL )
override;
69 virtual void SAL_CALL
removeStatusListener(
const css::uno::Reference< css::frame::XStatusListener >& _rxControl,
const css::util::URL& _rURL )
override;
82 const css::uno::Reference< css::frame::XStatusListener >& _rxListener,
83 ::osl::ClearableMutexGuard& _rFreeForNotification
92 void getUnoState( css::frame::FeatureStateEvent& _rState )
const;
96 css::uno::Reference< css::form::runtime::XFormOperations >
void updateAllListeners()
notifies all our listeners of the current state
OSingleFeatureDispatcher(css::util::URL _aFeatureURL, const sal_Int16 _nFormFeature, const css::uno::Reference< css::form::runtime::XFormOperations > &_rxFormOperations, ::osl::Mutex &_rMutex)
constructs the dispatcher
const sal_Int16 m_nFormFeature
css::uno::Reference< css::form::runtime::XFormOperations > m_xFormOperations
void notifyStatus(const css::uno::Reference< css::frame::XStatusListener > &_rxListener, ::osl::ClearableMutexGuard &_rFreeForNotification)
notifies our current state to one or all listeners
virtual void SAL_CALL dispatch(const css::util::URL &_rURL, const css::uno::Sequence< css::beans::PropertyValue > &_rArguments) override
const css::util::URL m_aFeatureURL
css::uno::Any m_aLastKnownState
void getUnoState(css::frame::FeatureStateEvent &_rState) const
retrieves the current status of our feature, in a format which can be used for UNO notifications
virtual void SAL_CALL addStatusListener(const css::uno::Reference< css::frame::XStatusListener > &_rxControl, const css::util::URL &_rURL) override
::comphelper::OInterfaceContainerHelper3< css::frame::XStatusListener > m_aStatusListeners
virtual void SAL_CALL removeStatusListener(const css::uno::Reference< css::frame::XStatusListener > &_rxControl, const css::util::URL &_rURL) override
::cppu::WeakImplHelper< css::frame::XDispatch > OSingleFeatureDispatcher_Base