24#include <osl/diagnose.h>
40 ,m_pMasterDispatcher( _pMasterDispatcher )
41 ,m_nAttributeId( _nAttributeId )
43 OSL_ENSURE(
m_pMasterDispatcher,
"OAttributeDispatcher::OAttributeDispatcher: invalid master dispatcher!" );
64 _rEvent.State <<=
true;
66 _rEvent.State <<=
false;
87 ::osl::MutexGuard aGuard(
m_aMutex );
91 OSL_ENSURE( _rURL.Complete ==
getFeatureURL().
Complete,
"OAttributeDispatcher::dispatch: invalid URL!" );
92 SAL_WARN_IF( _rArguments.hasElements(),
"forms.richtext",
93 "OAttributeDispatcher::dispatch: found arguments, but can't handle arguments at all"
94 " (URL: " << _rURL.Complete <<
")");
103 OSL_ENSURE( _nAttributeId ==
m_nAttributeId,
"OAttributeDispatcher::onAttributeStateChanged: wrong attribute!" );
bool hasMoreElements() const
css::uno::Reference< ListenerT > const & next()
mutable::osl::Mutex m_aMutex
virtual void executeAttribute(AttributeId _nAttributeId, const SfxPoolItem *_pArgument)=0
virtual AttributeState getState(AttributeId _nAttributeId) const =0
virtual void onAttributeStateChanged(AttributeId _nAttributeId) override
AttributeId m_nAttributeId
virtual void fillFeatureEventFromAttributeState(css::frame::FeatureStateEvent &_rEvent, const AttributeState &_rState) const
OAttributeDispatcher(EditView &_rView, AttributeId _nAttributeId, const css::util::URL &_rURL, IMultiAttributeDispatcher *_pMasterDispatcher)
ctor
IMultiAttributeDispatcher * m_pMasterDispatcher
virtual css::frame::FeatureStateEvent buildStatusEvent() const override
virtual ~OAttributeDispatcher() override
virtual void SAL_CALL dispatch(const css::util::URL &URL, const css::uno::Sequence< css::beans::PropertyValue > &Arguments) override
virtual void disposing(::osl::ClearableMutexGuard &_rClearBeforeNotify) override
const css::util::URL & getFeatureURL() const
void dispose()
clean up resources associated with this instance
static void doNotify(const css::uno::Reference< css::frame::XStatusListener > &_rxListener, const css::frame::FeatureStateEvent &_rEvent)
virtual css::frame::FeatureStateEvent buildStatusEvent() const
::comphelper::OInterfaceContainerHelper3< css::frame::XStatusListener > & getStatusListeners()
void checkDisposed() const
virtual void disposing(::osl::ClearableMutexGuard &_rClearBeforeNotify)
#define SAL_WARN_IF(condition, area, stream)
ListBox is a bit confusing / different from other form components, so here are a few notes:
sal_Int32 AttributeId
the id of an attribute
AttributeCheckState eSimpleState