LibreOffice Module chart2 (master) 1
|
This class is a CommandDispatch that is responsible for all commands that the ChartController supports. More...
#include <ControllerCommandDispatch.hxx>
Public Member Functions | |
ControllerCommandDispatch (const css::uno::Reference< css::uno::XComponentContext > &xContext, ChartController *pController, CommandDispatchContainer *pContainer) | |
virtual | ~ControllerCommandDispatch () override |
virtual void | initialize () override |
bool | commandAvailable (const OUString &rCommand) |
Protected Member Functions | |
virtual void SAL_CALL | dispatch (const css::util::URL &URL, const css::uno::Sequence< css::beans::PropertyValue > &Arguments) override |
virtual void | disposing (std::unique_lock< std::mutex > &rGuard) override |
is called when this is disposed More... | |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void | fireStatusEvent (const OUString &rURL, const css::uno::Reference< css::frame::XStatusListener > &xSingleListener) override |
virtual void SAL_CALL | modified (const css::lang::EventObject &aEvent) override |
virtual void SAL_CALL | selectionChanged (const css::lang::EventObject &aEvent) override |
Private Member Functions | |
void | fireStatusEventForURLImpl (const OUString &rURL, const css::uno::Reference< css::frame::XStatusListener > &xSingleListener) |
void | updateCommandAvailability () |
bool | isShapeControllerCommandAvailable (const OUString &rCommand) |
Private Attributes | |
rtl::Reference< ChartController > | m_xChartController |
css::uno::Reference< css::view::XSelectionSupplier > | m_xSelectionSupplier |
css::uno::Reference< css::frame::XDispatch > | m_xDispatch |
std::unique_ptr< impl::ModelState > | m_apModelState |
std::unique_ptr< impl::ControllerState > | m_apControllerState |
std::map< OUString, bool > | m_aCommandAvailability |
std::map< OUString, css::uno::Any > | m_aCommandArguments |
CommandDispatchContainer * | m_pDispatchContainer |
This class is a CommandDispatch that is responsible for all commands that the ChartController supports.
This class determines which commands are currently available (via the model state) and if an available command is called forwards it to the ChartController.
Definition at line 56 of file ControllerCommandDispatch.hxx.
|
explicit |
Definition at line 474 of file ControllerCommandDispatch.cxx.
References m_xDispatch.
|
overridevirtual |
Definition at line 487 of file ControllerCommandDispatch.cxx.
bool chart::ControllerCommandDispatch::commandAvailable | ( | const OUString & | rCommand | ) |
Definition at line 717 of file ControllerCommandDispatch.cxx.
References m_aCommandAvailability, and SAL_WARN.
Referenced by dispatch(), chart::ChartController::execute_Command(), and fireStatusEventForURLImpl().
|
overrideprotectedvirtual |
Definition at line 772 of file ControllerCommandDispatch.cxx.
References commandAvailable(), m_xDispatch, and URL.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
is called when this is disposed
Definition at line 782 of file ControllerCommandDispatch.cxx.
References m_xChartController, m_xDispatch, and m_xSelectionSupplier.
|
overrideprotectedvirtual |
Definition at line 742 of file ControllerCommandDispatch.cxx.
References fireStatusEventForURLImpl(), m_aCommandAvailability, and m_xChartController.
|
private |
Definition at line 514 of file ControllerCommandDispatch.cxx.
References commandAvailable(), and m_aCommandArguments.
Referenced by fireStatusEvent().
|
overridevirtual |
Definition at line 491 of file ControllerCommandDispatch.cxx.
References m_apControllerState, m_apModelState, m_xChartController, m_xSelectionSupplier, updateCommandAvailability(), and xModel.
|
private |
Definition at line 726 of file ControllerCommandDispatch.cxx.
References chart::FeatureState::bEnabled, chart::CommandDispatchContainer::getShapeController(), chart::ShapeController::getState(), and m_pDispatchContainer.
Referenced by updateCommandAvailability().
|
overrideprotectedvirtual |
Definition at line 798 of file ControllerCommandDispatch.cxx.
References aEvent, SfxViewShell::Current(), comphelper::LibreOfficeKit::isActive(), m_apControllerState, m_apModelState, m_xChartController, chart::CommandDispatch::modified(), and updateCommandAvailability().
|
overrideprotectedvirtual |
Definition at line 830 of file ControllerCommandDispatch.cxx.
References aEvent, m_apControllerState, m_xChartController, chart::CommandDispatch::modified(), and updateCommandAvailability().
|
private |
Definition at line 525 of file ControllerCommandDispatch.cxx.
References isShapeControllerCommandAvailable(), m_aCommandArguments, m_aCommandAvailability, m_apControllerState, m_apModelState, m_xChartController, and TOOLS_WARN_EXCEPTION.
Referenced by initialize(), modified(), and selectionChanged().
|
mutableprivate |
Definition at line 112 of file ControllerCommandDispatch.hxx.
Referenced by fireStatusEventForURLImpl(), and updateCommandAvailability().
|
mutableprivate |
Definition at line 111 of file ControllerCommandDispatch.hxx.
Referenced by commandAvailable(), fireStatusEvent(), and updateCommandAvailability().
|
private |
Definition at line 109 of file ControllerCommandDispatch.hxx.
Referenced by initialize(), modified(), selectionChanged(), and updateCommandAvailability().
|
private |
Definition at line 108 of file ControllerCommandDispatch.hxx.
Referenced by initialize(), modified(), and updateCommandAvailability().
|
private |
Definition at line 114 of file ControllerCommandDispatch.hxx.
Referenced by isShapeControllerCommandAvailable().
|
private |
Definition at line 104 of file ControllerCommandDispatch.hxx.
Referenced by disposing(), fireStatusEvent(), initialize(), modified(), selectionChanged(), and updateCommandAvailability().
|
private |
Definition at line 106 of file ControllerCommandDispatch.hxx.
Referenced by dispatch(), and disposing().
|
private |
Definition at line 105 of file ControllerCommandDispatch.hxx.
Referenced by disposing(), and initialize().