22#include <com/sun/star/view/XSelectionSupplier.hpp>
28using ::com::sun::star::uno::Reference;
29using ::com::sun::star::uno::Sequence;
40 m_xSelectionSupplier( xSelSupp ),
41 m_bIsModified( false )
61 const OUString & rURL,
64 bool bFireAll( rURL.isEmpty() );
65 bool bFireContext( bFireAll || rURL ==
".uno:Context" );
66 bool bFireModified( bFireAll || rURL ==
".uno:ModifiedStatus" );
72 fireStatusEventForURL(
".uno:Context", aArg,
true, xSingleListener );
78 aArg <<= OUString(
"*");
79 fireStatusEventForURL(
".uno:ModifiedStatus", aArg,
true, xSingleListener );
122 fireAllStatusEvents(
nullptr );
virtual void SAL_CALL modified(const css::lang::EventObject &aEvent) override
const OUString & getObjectCID() const
static OUString getSelectedObjectText(std::u16string_view rObjectCID, const rtl::Reference<::chart::ChartModel > &xChartDocument)
This is used for showing the currently selected object in the status bar (command "Context")
virtual void SAL_CALL selectionChanged(const css::lang::EventObject &aEvent) override
virtual void initialize() override
virtual void fireStatusEvent(const OUString &rURL, const css::uno::Reference< css::frame::XStatusListener > &xSingleListener) override
css::uno::Reference< css::view::XSelectionSupplier > m_xSelectionSupplier
ObjectIdentifier m_aSelectedOID
StatusBarCommandDispatch(const css::uno::Reference< css::uno::XComponentContext > &xContext, rtl::Reference<::chart::ChartModel > xModel, const css::uno::Reference< css::view::XSelectionSupplier > &xSelSupp)
virtual void SAL_CALL modified(const css::lang::EventObject &aEvent) override
virtual void SAL_CALL dispatch(const css::util::URL &URL, const css::uno::Sequence< css::beans::PropertyValue > &Arguments) override
rtl::Reference<::chart::ChartModel > m_xChartModel
virtual void disposing(std::unique_lock< std::mutex > &rGuard) override
is called when this is disposed
virtual ~StatusBarCommandDispatch() override
::cppu::ImplInheritanceHelper< CommandDispatch, css::view::XSelectionChangeListener > StatusBarCommandDispatch_Base
Reference< XModel > xModel