LibreOffice Module chart2 (master) 1
|
This is the base class for an XDispatch. More...
#include <CommandDispatch.hxx>
Public Member Functions | |
CommandDispatch (const css::uno::Reference< css::uno::XComponentContext > &xContext) | |
virtual | ~CommandDispatch () override |
virtual void | initialize () |
![]() | |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual void SAL_CALL | dispose () noexcept final override |
virtual void SAL_CALL | addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override |
virtual void SAL_CALL | removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
![]() | |
virtual | ~WeakComponentImplHelperBase () override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override |
virtual void SAL_CALL | removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) override |
virtual void | disposing (std::unique_lock< std::mutex > &) |
![]() | |
virtual | ~UnoImplBase () |
Protected Member Functions | |
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 set. More... | |
void | fireAllStatusEvents (const css::uno::Reference< css::frame::XStatusListener > &xSingleListener) |
calls fireStatusEvent( OUString, xSingleListener ) More... | |
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 set. More... | |
virtual void SAL_CALL | dispatch (const css::util::URL &URL, const css::uno::Sequence< css::beans::PropertyValue > &Arguments) override |
virtual void SAL_CALL | addStatusListener (const css::uno::Reference< css::frame::XStatusListener > &Control, const css::util::URL &URL) override |
virtual void SAL_CALL | removeStatusListener (const css::uno::Reference< css::frame::XStatusListener > &Control, const css::util::URL &URL) override |
virtual void | disposing (std::unique_lock< std::mutex > &rGuard) override |
is called when this is disposed More... | |
virtual void SAL_CALL | modified (const css::lang::EventObject &aEvent) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
![]() | |
void | throwIfDisposed (std::unique_lock< std::mutex > &) |
Private Types | |
typedef std::map< OUString, ::comphelper::OInterfaceContainerHelper4< css::frame::XStatusListener > > | tListenerMap |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
css::uno::Reference< css::util::XURLTransformer > | m_xURLTransformer |
tListenerMap | m_aListeners |
Additional Inherited Members | |
![]() | |
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > | maEventListeners |
![]() | |
std::mutex | m_aMutex |
bool | m_bDisposed |
This is the base class for an XDispatch.
Definition at line 45 of file CommandDispatch.hxx.
|
private |
Definition at line 122 of file CommandDispatch.hxx.
|
explicit |
Definition at line 32 of file CommandDispatch.cxx.
|
overridevirtual |
Definition at line 38 of file CommandDispatch.cxx.
|
overrideprotectedvirtual |
Definition at line 58 of file CommandDispatch.cxx.
References fireStatusEvent(), m_aListeners, comphelper::UnoImplBase::m_aMutex, and URL.
|
overrideprotectedvirtual |
Reimplemented in chart::FeatureCommandDispatchBase, and chart::UndoCommandDispatch.
Definition at line 55 of file CommandDispatch.cxx.
|
overrideprotectedvirtual |
Reimplemented in chart::DrawCommandDispatch, chart::ShapeController, and chart::UndoCommandDispatch.
|
overrideprotectedvirtual |
is called when this is disposed
Reimplemented from comphelper::WeakComponentImplHelperBase.
Reimplemented in chart::DrawCommandDispatch, chart::ShapeController, and chart::UndoCommandDispatch.
Definition at line 46 of file CommandDispatch.cxx.
References m_aListeners.
|
protected |
calls fireStatusEvent( OUString, xSingleListener )
Definition at line 95 of file CommandDispatch.cxx.
References fireStatusEvent().
Referenced by modified().
|
protectedpure virtual |
sends a status event for a specific command to all registered listeners or only the one given when set.
This method should be overridden. The implementation should call fireStatusEventForURL and pass the xSingleListener argument to this method unchanged.
rURL | If empty, all available status events must be fired, otherwise only the one for the given command. |
xSingleListener | If set, the event is only sent to this listener rather than to all registered ones. Whenever a listener adds itself, this method is called with this parameter set to give an initial state. |
Implemented in chart::FeatureCommandDispatchBase, and chart::UndoCommandDispatch.
Referenced by addStatusListener(), and fireAllStatusEvents().
|
protected |
sends a status event for a specific command to all registered listeners or only the one given when set.
xSingleListener | If set, the event is only sent to this listener rather than to all registered ones. Whenever a listener adds itself, this method is called with this parameter set to give an initial state. |
Definition at line 101 of file CommandDispatch.cxx.
References aURL, m_aListeners, comphelper::UnoImplBase::m_aMutex, m_xContext, and m_xURLTransformer.
Referenced by chart::FeatureCommandDispatchBase::fireStatusEvent(), and chart::UndoCommandDispatch::fireStatusEvent().
|
virtual |
Reimplemented in chart::FeatureCommandDispatchBase, and chart::UndoCommandDispatch.
Definition at line 41 of file CommandDispatch.cxx.
Referenced by chart::FeatureCommandDispatchBase::initialize().
|
overrideprotectedvirtual |
Definition at line 86 of file CommandDispatch.cxx.
References fireAllStatusEvents().
Referenced by chart::ControllerCommandDispatch::modified(), chart::StatusBarCommandDispatch::modified(), and chart::ControllerCommandDispatch::selectionChanged().
|
overrideprotectedvirtual |
Definition at line 77 of file CommandDispatch.cxx.
References m_aListeners, comphelper::UnoImplBase::m_aMutex, and URL.
|
private |
Definition at line 124 of file CommandDispatch.hxx.
Referenced by addStatusListener(), disposing(), fireStatusEventForURL(), and removeStatusListener().
|
private |
Definition at line 118 of file CommandDispatch.hxx.
Referenced by fireStatusEventForURL().
|
private |
Definition at line 119 of file CommandDispatch.hxx.
Referenced by fireStatusEventForURL().