LibreOffice Module chart2 (master) 1
|
#include <SelectionHelper.hxx>
Public Member Functions | |
SelectionHelper (SdrObject *pSelectedObj) | |
virtual | ~SelectionHelper () |
virtual bool | getMarkHandles (SdrHdlList &rHdlList) override |
virtual bool | getFrameDragSingles () override |
SdrObject * | getObjectToMark () |
virtual bool | getMarkHandles (SdrHdlList &rHdlList)=0 |
virtual bool | getFrameDragSingles ()=0 |
Static Public Member Functions | |
static bool | findNamedParent (SdrObject *&pInOutObject, OUString &rOutName, bool bGivenObjectMayBeResult) |
static bool | findNamedParent (SdrObject *&pInOutObject, ObjectIdentifier &rOutObject, bool bGivenObjectMayBeResult) |
static SdrObject * | getMarkHandlesObject (SdrObject *pObj) |
static E3dScene * | getSceneToRotate (SdrObject *pObj) |
static bool | isDragableObjectHitTwice (const Point &rMPos, const OUString &rNameOfSelectedObject, const DrawViewWrapper &rDrawViewWrapper) |
static OUString | getHitObjectCID (const Point &rMPos, DrawViewWrapper const &rDrawViewWrapper, bool bGetDiagramInsteadOf_Wall=false) |
static bool | isRotateableObject (std::u16string_view rCID, const rtl::Reference<::chart::ChartModel > &xChartModel) |
Private Attributes | |
SdrObject * | m_pSelectedObj |
SdrObject * | m_pMarkObj |
Additional Inherited Members | |
Protected Member Functions inherited from chart::MarkHandleProvider | |
~MarkHandleProvider () | |
Definition at line 75 of file SelectionHelper.hxx.
|
explicit |
Definition at line 456 of file SelectionHelper.cxx.
|
virtual |
Definition at line 461 of file SelectionHelper.cxx.
|
static |
Definition at line 355 of file SelectionHelper.cxx.
References aName, and findNamedParent().
|
static |
Definition at line 322 of file SelectionHelper.cxx.
References aName, SdrObject::getParentSdrObjListFromSdrObject(), SdrObjList::getSdrObjectFromSdrObjList(), chart::ObjectIdentifier::isCID(), and pOwner.
Referenced by chart::Selection::adaptSelectionToNewPos(), findNamedParent(), and getHitObjectCID().
|
overridevirtual |
Implements chart::MarkHandleProvider.
Definition at line 465 of file SelectionHelper.cxx.
References DynCastE3dObject(), and m_pSelectedObj.
|
static |
Definition at line 381 of file SelectionHelper.cxx.
References chart::ObjectIdentifier::createClassifiedIdentifier(), findNamedParent(), chart::DrawViewWrapper::getHitObject(), chart::DrawViewWrapper::getNamedSdrObject(), chart::DrawViewWrapper::IsObjectHit(), chart::OBJECTTYPE_DIAGRAM, chart::OBJECTTYPE_DIAGRAM_WALL, chart::OBJECTTYPE_PAGE, SdrObject::SetMarkProtect(), and u.
Referenced by chart::ChartController::impl_SetMousePointer(), and chart::ChartController::requestQuickHelp().
|
overridevirtual |
Implements chart::MarkHandleProvider.
Definition at line 562 of file SelectionHelper.cxx.
References SdrHdlList::AddHdl(), aName, tools::Rectangle::Center(), SdrHdlList::Clear(), basegfx::fround(), SdrObject::GetCurrentBoundRect(), chart::ObjectIdentifier::getObjectType(), SdrObject::GetSubList(), SdrObjListIter::IsMore(), m_pMarkObj, m_pSelectedObj, SdrObjListIter::Next(), chart::OBJECTTYPE_AXIS_UNITLABEL, chart::OBJECTTYPE_DATA_LABEL, chart::OBJECTTYPE_DATA_POINT, chart::OBJECTTYPE_DATA_SERIES, and chart::OBJECTTYPE_LEGEND_ENTRY.
Definition at line 471 of file SelectionHelper.cxx.
References aName, getMarkHandlesObject(), SdrObject::GetSubList(), SdrObjListIter::IsMore(), and SdrObjListIter::Next().
Referenced by getMarkHandlesObject(), and getObjectToMark().
SdrObject * chart::SelectionHelper::getObjectToMark | ( | ) |
Definition at line 497 of file SelectionHelper.cxx.
References getMarkHandlesObject(), SdrObject::GetSubList(), SdrObjListIter::IsMore(), m_pMarkObj, m_pSelectedObj, and SdrObjListIter::Next().
Definition at line 526 of file SelectionHelper.cxx.
References DynCastE3dObject(), E3dObject::getRootE3dSceneFromE3dObject(), SdrObject::GetSubList(), SdrObjListIter::IsMore(), and SdrObjListIter::Next().
Referenced by chart::DragMethod_RotateDiagram::DragMethod_RotateDiagram(), and chart::ChartController::execute_MouseButtonDown().
|
static |
Definition at line 368 of file SelectionHelper.cxx.
References chart::DrawViewWrapper::getNamedSdrObject(), chart::ObjectIdentifier::isDragableObject(), and chart::DrawViewWrapper::IsObjectHit().
Referenced by chart::ChartController::execute_MouseButtonUp().
|
static |
Definition at line 445 of file SelectionHelper.cxx.
References chart::ObjectIdentifier::isRotateableObject().
Referenced by chart::ChartController::execute_KeyInput(), chart::ChartController::impl_SetMousePointer(), and chart::Selection::isRotateableObjectSelected().
|
private |
Definition at line 110 of file SelectionHelper.hxx.
Referenced by getMarkHandles(), and getObjectToMark().
|
private |
Definition at line 109 of file SelectionHelper.hxx.
Referenced by getFrameDragSingles(), getMarkHandles(), and getObjectToMark().