LibreOffice Module chart2 (master) 1
|
This is a CommandDispatch implementation for shapes. More...
#include <ShapeController.hxx>
Public Member Functions | |
ShapeController (const css::uno::Reference< css::uno::XComponentContext > &rxContext, ChartController *pController) | |
virtual | ~ShapeController () override |
![]() | |
FeatureCommandDispatchBase (const css::uno::Reference< css::uno::XComponentContext > &rxContext) | |
virtual | ~FeatureCommandDispatchBase () override |
virtual void | initialize () override |
virtual bool | isFeatureSupported (const OUString &rCommandURL) |
![]() | |
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 | 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 FeatureState | getState (const OUString &rCommand) override |
virtual void | execute (const OUString &rCommand, const css::uno::Sequence< css::beans::PropertyValue > &rArgs) override |
virtual void | describeSupportedFeatures () override |
![]() | |
virtual void SAL_CALL | dispatch (const css::util::URL &URL, const css::uno::Sequence< css::beans::PropertyValue > &Arguments) override |
virtual void | fireStatusEvent (const OUString &rURL, const css::uno::Reference< css::frame::XStatusListener > &xSingleListener) override |
sends a status event for a specific command to all registered listeners or only the one given when set. More... | |
virtual FeatureState | getState (const OUString &rCommand)=0 |
virtual void | execute (const OUString &rCommand, const css::uno::Sequence< css::beans::PropertyValue > &rArgs)=0 |
virtual void | describeSupportedFeatures ()=0 |
void | implDescribeSupportedFeature (const char *pAsciiCommandURL, ChartCommandID nId, sal_Int16 nGroup) |
describes a feature supported by the controller More... | |
![]() | |
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 Member Functions | |
DECL_LINK (CheckNameHdl, AbstractSvxObjectNameDialog &, bool) | |
void | executeDispatch_FormatLine () |
void | executeDispatch_FormatArea () |
void | executeDispatch_TextAttributes () |
void | executeDispatch_TransformDialog () |
void | executeDispatch_ObjectTitleDescription () |
void | executeDispatch_RenameObject () |
void | executeDispatch_ChangeZOrder (ChartCommandID nId) |
void | executeDispatch_FontDialog () |
void | executeDispatch_ParagraphDialog () |
SdrObject * | getFirstAdditionalShape () |
SdrObject * | getLastAdditionalShape () |
bool | isBackwardPossible () |
bool | isForwardPossible () |
Private Attributes | |
ChartController * | m_pChartController |
Friends | |
class | ControllerCommandDispatch |
Additional Inherited Members | |
![]() | |
SupportedFeatures | m_aSupportedFeatures |
ChartCommandID | m_nFeatureId |
![]() | |
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > | maEventListeners |
![]() | |
std::mutex | m_aMutex |
bool | m_bDisposed |
This is a CommandDispatch implementation for shapes.
Definition at line 34 of file ShapeController.hxx.
chart::ShapeController::ShapeController | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext, |
ChartController * | pController | ||
) |
Definition at line 50 of file ShapeController.cxx.
|
overridevirtual |
Definition at line 57 of file ShapeController.cxx.
|
private |
|
overrideprotectedvirtual |
Implements chart::FeatureCommandDispatchBase.
Definition at line 202 of file ShapeController.cxx.
References chart::FeatureCommandDispatchBase::implDescribeSupportedFeature(), ShapeBackward, ShapeBringToFront, ShapeFontDialog, ShapeFormatArea, ShapeFormatLine, ShapeForward, ShapeObjectTitleDescription, ShapeParagraphDialog, ShapeRenameObject, ShapeSendToBack, ShapeTextAttributes, and ShapeTransformDialog.
|
overrideprotectedvirtual |
Reimplemented from chart::CommandDispatch.
|
overrideprotectedvirtual |
is called when this is disposed
Reimplemented from chart::CommandDispatch.
Definition at line 62 of file ShapeController.cxx.
|
overrideprotectedvirtual |
Implements chart::FeatureCommandDispatchBase.
Definition at line 138 of file ShapeController.cxx.
References executeDispatch_ChangeZOrder(), executeDispatch_FontDialog(), executeDispatch_FormatArea(), executeDispatch_FormatLine(), executeDispatch_ObjectTitleDescription(), executeDispatch_ParagraphDialog(), executeDispatch_RenameObject(), executeDispatch_TextAttributes(), executeDispatch_TransformDialog(), chart::FeatureCommandDispatchBase::m_aSupportedFeatures, ShapeBackward, ShapeBringToFront, ShapeFontDialog, ShapeFormatArea, ShapeFormatLine, ShapeForward, ShapeObjectTitleDescription, ShapeParagraphDialog, ShapeRenameObject, ShapeSendToBack, ShapeTextAttributes, and ShapeTransformDialog.
|
private |
Definition at line 450 of file ShapeController.cxx.
References chart::ChartController::GetDrawViewWrapper(), getFirstAdditionalShape(), isBackwardPossible(), isForwardPossible(), m_pChartController, SdrEditView::MovMarkedToBtm(), SdrEditView::MovMarkedToTop(), nId, SdrEditView::PutMarkedBehindObj(), SdrEditView::PutMarkedToTop(), ShapeBackward, ShapeBringToFront, ShapeForward, and ShapeSendToBack.
Referenced by execute().
|
private |
Definition at line 499 of file ShapeController.cxx.
References SdrView::GetAttributes(), chart::ChartController::GetChartFrame(), chart::ChartController::GetDrawModelWrapper(), chart::ChartController::GetDrawViewWrapper(), SdrModel::GetItemPool(), SdrPaintView::GetModel(), SfxTabDialogController::GetOutputItemSet(), m_pChartController, RET_OK, SfxTabDialogController::run(), and SdrView::SetAttributes().
Referenced by execute().
|
private |
Definition at line 271 of file ShapeController.cxx.
References SdrMarkView::AreObjectsMarked(), SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateSvxAreaTabDialog(), chart::ChartController::GetChartFrame(), SdrPaintView::GetDefaultAttr(), chart::ChartController::GetDrawModelWrapper(), chart::ChartController::GetDrawViewWrapper(), chart::DrawModelWrapper::getSdrModel(), m_pChartController, SdrEditView::MergeAttrFromMarked(), RET_OK, SdrEditView::SetAttrToMarked(), and SdrPaintView::SetDefaultAttr().
Referenced by execute().
|
private |
Definition at line 234 of file ShapeController.cxx.
References SdrMarkView::AreObjectsMarked(), SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateSvxLineTabDialog(), chart::ChartController::GetChartFrame(), SdrPaintView::GetDefaultAttr(), chart::ChartController::GetDrawModelWrapper(), chart::ChartController::GetDrawViewWrapper(), chart::DrawModelWrapper::getSdrModel(), chart::DrawViewWrapper::getSelectedObject(), m_pChartController, SdrEditView::MergeAttrFromMarked(), RET_OK, SdrEditView::SetAttrToMarked(), and SdrPaintView::SetDefaultAttr().
Referenced by execute().
|
private |
Definition at line 388 of file ShapeController.cxx.
References SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateSvxObjectTitleDescDialog(), chart::ChartController::GetChartFrame(), SdrObject::GetDescription(), chart::ChartController::GetDrawViewWrapper(), SdrMarkView::GetMarkedObjectCount(), chart::DrawViewWrapper::getSelectedObject(), SdrObject::GetTitle(), SdrObject::IsDecorative(), m_pChartController, RET_OK, SdrObject::SetDecorative(), SdrObject::SetDescription(), and SdrObject::SetTitle().
Referenced by execute().
|
private |
Definition at line 522 of file ShapeController.cxx.
References EE_ITEMS_END(), EE_ITEMS_START(), SdrView::GetAttributes(), chart::ChartController::GetChartFrame(), chart::ChartController::GetDrawViewWrapper(), SdrModel::GetItemPool(), SdrPaintView::GetModel(), SfxTabDialogController::GetOutputItemSet(), m_pChartController, RET_OK, SfxTabDialogController::run(), and SdrView::SetAttributes().
Referenced by execute().
|
private |
Definition at line 420 of file ShapeController.cxx.
References aName, SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateSvxObjectNameDialog(), chart::ChartController::GetChartFrame(), chart::ChartController::GetDrawViewWrapper(), SdrMarkView::GetMarkedObjectCount(), SdrObject::GetName(), chart::DrawViewWrapper::getSelectedObject(), LINK, m_pChartController, RET_OK, and SdrObject::SetName().
Referenced by execute().
|
private |
Definition at line 306 of file ShapeController.cxx.
References SdrMarkView::AreObjectsMarked(), SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateTextTabDialog(), chart::ChartController::GetChartFrame(), SdrPaintView::GetDefaultAttr(), chart::ChartController::GetDrawViewWrapper(), m_pChartController, SdrEditView::MergeAttrFromMarked(), RET_OK, SdrView::SetAttributes(), and SdrPaintView::SetDefaultAttr().
Referenced by execute().
|
private |
Definition at line 340 of file ShapeController.cxx.
References SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateCaptionDialog(), SvxAbstractDialogFactory::CreateSvxTransformTabDialog(), SdrView::GetAttributes(), chart::ChartController::GetChartFrame(), chart::ChartController::GetDrawViewWrapper(), SdrEditView::GetGeoAttrFromMarked(), SdrModel::GetItemPool(), SdrPaintView::GetModel(), SdrObject::GetObjIdentifier(), SfxItemSet::GetPool(), chart::DrawViewWrapper::getSelectedObject(), m_pChartController, SfxItemSet::Put(), RET_OK, SdrView::SetAttributes(), and SdrEditView::SetGeoAttrToMarked().
Referenced by execute().
|
private |
Definition at line 555 of file ShapeController.cxx.
References DBG_UNHANDLED_EXCEPTION, chart::DrawModelWrapper::getChartRootShape(), chart::ChartController::GetDrawModelWrapper(), chart::DrawModelWrapper::getMainDrawPage(), chart::DrawViewWrapper::getSdrObject(), i, m_pChartController, and nCount.
Referenced by executeDispatch_ChangeZOrder(), and isBackwardPossible().
|
private |
Definition at line 594 of file ShapeController.cxx.
References DBG_UNHANDLED_EXCEPTION, chart::DrawModelWrapper::getChartRootShape(), chart::ChartController::GetDrawModelWrapper(), chart::DrawModelWrapper::getMainDrawPage(), chart::DrawViewWrapper::getSdrObject(), i, m_pChartController, and nCount.
Referenced by isForwardPossible().
|
overrideprotectedvirtual |
Implements chart::FeatureCommandDispatchBase.
Definition at line 71 of file ShapeController.cxx.
References chart::FeatureState::aState, chart::FeatureState::bEnabled, chart::ChartController::getChartModel(), isBackwardPossible(), isForwardPossible(), chart::FeatureCommandDispatchBase::m_aSupportedFeatures, m_pChartController, ShapeBackward, ShapeBringToFront, ShapeFontDialog, ShapeFormatArea, ShapeFormatLine, ShapeForward, ShapeObjectTitleDescription, ShapeParagraphDialog, ShapeRenameObject, ShapeSendToBack, ShapeTextAttributes, and ShapeTransformDialog.
Referenced by chart::ControllerCommandDispatch::isShapeControllerCommandAvailable().
|
private |
Definition at line 633 of file ShapeController.cxx.
References chart::ChartController::GetDrawViewWrapper(), getFirstAdditionalShape(), chart::DrawViewWrapper::getSelectedObject(), chart::ChartController::isAdditionalShapeSelected(), and m_pChartController.
Referenced by executeDispatch_ChangeZOrder(), and getState().
|
private |
Definition at line 652 of file ShapeController.cxx.
References chart::ChartController::GetDrawViewWrapper(), getLastAdditionalShape(), chart::DrawViewWrapper::getSelectedObject(), chart::ChartController::isAdditionalShapeSelected(), and m_pChartController.
Referenced by executeDispatch_ChangeZOrder(), and getState().
|
friend |
Definition at line 36 of file ShapeController.hxx.
|
private |
Definition at line 76 of file ShapeController.hxx.
Referenced by executeDispatch_ChangeZOrder(), executeDispatch_FontDialog(), executeDispatch_FormatArea(), executeDispatch_FormatLine(), executeDispatch_ObjectTitleDescription(), executeDispatch_ParagraphDialog(), executeDispatch_RenameObject(), executeDispatch_TextAttributes(), executeDispatch_TransformDialog(), getFirstAdditionalShape(), getLastAdditionalShape(), getState(), isBackwardPossible(), and isForwardPossible().