21#include <osl/diagnose.h>
37 :m_aFeatureURL(
std::move( _aURL ))
39 ,m_pEditView( &_rView )
57 EventObject
aEvent( *
this );
60 ::osl::ClearableMutexGuard aGuard(
m_aMutex );
74 OSL_ENSURE( !
m_bDisposed,
"ORichTextFeatureDispatcher::addStatusListener: already disposed!" );
76 throw DisposedException();
78 OSL_ENSURE( _rURL.Complete ==
getFeatureURL().
Complete,
"ORichTextFeatureDispatcher::addStatusListener: invalid URL!" );
80 if ( _rxControl.is() )
122 OSL_PRECOND( _rxListener.is(),
"ORichTextFeatureDispatcher::doNotify: invalid listener!" );
123 if ( _rxListener.is() )
127 _rxListener->statusChanged( _rEvent );
sal_Int32 addInterface(const css::uno::Reference< ListenerT > &rxIFace)
void disposeAndClear(const css::lang::EventObject &rEvt)
sal_Int32 removeInterface(const css::uno::Reference< ListenerT > &rxIFace)
bool hasMoreElements() const
css::uno::Reference< ListenerT > const & next()
mutable::osl::Mutex m_aMutex
const css::util::URL & getFeatureURL() const
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
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 void invalidateFeatureState_Broadcast()
virtual void SAL_CALL removeStatusListener(const css::uno::Reference< css::frame::XStatusListener > &_rxControl, const css::util::URL &_rURL) override
ORichTextFeatureDispatcher(EditView &_rView, css::util::URL _aURL)
virtual css::frame::FeatureStateEvent buildStatusEvent() const
::comphelper::OInterfaceContainerHelper3< css::frame::XStatusListener > & getStatusListeners()
virtual void disposing(::osl::ClearableMutexGuard &_rClearBeforeNotify)
virtual ~ORichTextFeatureDispatcher() override
#define TOOLS_WARN_EXCEPTION(area, stream)
ListBox is a bit confusing / different from other form components, so here are a few notes: