|
LibreOffice Module chart2 (master) 1
|
#include <SelectionHelper.hxx>
Public Member Functions | |
| bool | hasSelection () const |
| OUString const & | getSelectedCID () const |
| css::uno::Reference< css::drawing::XShape > const & | getSelectedAdditionalShape () const |
| const ObjectIdentifier & | getSelectedOID () const |
| bool | isResizeableObjectSelected () const |
| bool | isRotateableObjectSelected (const rtl::Reference<::chart::ChartModel > &xChartModel) const |
| bool | isDragableObjectSelected () const |
| bool | isAdditionalShapeSelected () const |
| bool | setSelection (const OUString &rCID) |
| bool | setSelection (const css::uno::Reference< css::drawing::XShape > &xShape) |
| void | clearSelection () |
| bool | maybeSwitchSelectionAfterSingleClickWasEnsured () |
| void | resetPossibleSelectionAfterSingleClickWasEnsured () |
| void | remindSelectionBeforeMouseDown () |
| bool | isSelectionDifferentFromBeforeMouseDown () const |
| void | adaptSelectionToNewPos (const Point &rMousePos, DrawViewWrapper const *pDrawViewWrapper, bool bIsRightMouse, bool bWaitingForDoubleClick) |
| void | applySelection (DrawViewWrapper *pDrawViewWrapper) |
Private Attributes | |
| ObjectIdentifier | m_aSelectedOID |
| ObjectIdentifier | m_aSelectedOID_beforeMouseDown |
| ObjectIdentifier | m_aSelectedOID_selectOnlyIfNoDoubleClickIsFollowing |
Definition at line 31 of file SelectionHelper.hxx.
| void Selection::adaptSelectionToNewPos | ( | const Point & | rMousePos, |
| DrawViewWrapper const * | pDrawViewWrapper, | ||
| bool | bIsRightMouse, | ||
| bool | bWaitingForDoubleClick | ||
| ) |
Definition at line 160 of file SelectionHelper.cxx.
References chart::ObjectIdentifier::areSiblings(), chart::ObjectIdentifier::createClassifiedIdentifier(), chart::ObjectIdentifier::createClassifiedIdentifierForParticle(), chart::ObjectIdentifier::createParticleForLegend(), chart::SelectionHelper::findNamedParent(), chart::DrawViewWrapper::getHitObject(), chart::DrawViewWrapper::getNamedSdrObject(), chart::ObjectIdentifier::getObjectCID(), SdrObject::getUnoShape(), chart::ObjectIdentifier::isAdditionalShape(), chart::ObjectIdentifier::isAutoGeneratedObject(), chart::ObjectIdentifier::isMultiClickObject(), chart::DrawViewWrapper::IsObjectHit(), chart::ObjectIdentifier::isValid(), m_aSelectedOID, m_aSelectedOID_selectOnlyIfNoDoubleClickIsFollowing, chart::OBJECTTYPE_DIAGRAM, chart::OBJECTTYPE_DIAGRAM_WALL, chart::OBJECTTYPE_PAGE, SdrObject::SetMarkProtect(), and u.
Referenced by chart::ChartController::execute_MouseButtonDown(), and chart::ChartController::execute_MouseButtonUp().
| void Selection::applySelection | ( | DrawViewWrapper * | pDrawViewWrapper | ) |
Definition at line 138 of file SelectionHelper.cxx.
References chart::ObjectIdentifier::getAdditionalShape(), chart::DrawViewWrapper::getNamedSdrObject(), chart::ObjectIdentifier::getObjectCID(), chart::DrawViewWrapper::getSdrObject(), chart::ObjectIdentifier::isAdditionalShape(), chart::ObjectIdentifier::isAutoGeneratedObject(), m_aSelectedOID, and SdrView::UnmarkAll().
Referenced by chart::ChartController::execute_MouseButtonDown(), chart::ChartController::execute_MouseButtonUp(), chart::ChartController::impl_PasteGraphic(), chart::ChartController::impl_PasteShapes(), chart::ChartController::impl_PasteStringAsTextShape(), chart::ChartController::impl_selectObjectAndNotiy(), and chart::ChartController::SetAndApplySelection().
| void Selection::clearSelection | ( | ) |
Definition at line 101 of file SelectionHelper.cxx.
References m_aSelectedOID, m_aSelectedOID_beforeMouseDown, and m_aSelectedOID_selectOnlyIfNoDoubleClickIsFollowing.
Referenced by chart::ChartController::execute_MouseButtonDown(), chart::ChartController::impl_ClearSelection(), and chart::ChartController::select().
| uno::Reference< drawing::XShape > const & Selection::getSelectedAdditionalShape | ( | ) | const |
Definition at line 75 of file SelectionHelper.cxx.
References chart::ObjectIdentifier::getAdditionalShape(), and m_aSelectedOID.
Referenced by chart::ChartController::execute_DoubleClick(), chart::ChartController::execute_KeyInput(), and chart::ChartController::getSelection().
| OUString const & Selection::getSelectedCID | ( | ) | const |
Definition at line 70 of file SelectionHelper.cxx.
References chart::ObjectIdentifier::getObjectCID(), and m_aSelectedOID.
Referenced by chart::ChartController::EndTextEdit(), chart::ChartController::execute_Command(), chart::ChartController::execute_DoubleClick(), chart::ChartController::execute_KeyInput(), chart::ChartController::execute_MouseButtonDown(), chart::ChartController::execute_MouseButtonUp(), chart::ChartController::executeDispatch_Delete(), chart::ChartController::executeDispatch_DeleteAxis(), chart::ChartController::executeDispatch_DeleteDataLabel(), chart::ChartController::executeDispatch_DeleteDataLabels(), chart::ChartController::executeDispatch_DeleteErrorBars(), chart::ChartController::executeDispatch_DeleteMajorGrid(), chart::ChartController::executeDispatch_DeleteMeanValue(), chart::ChartController::executeDispatch_DeleteMinorGrid(), chart::ChartController::executeDispatch_DeleteR2Value(), chart::ChartController::executeDispatch_DeleteTrendline(), chart::ChartController::executeDispatch_DeleteTrendlineEquation(), chart::ChartController::executeDispatch_FillColor(), chart::ChartController::executeDispatch_FillGradient(), chart::ChartController::executeDispatch_FormatObject(), chart::ChartController::executeDispatch_InsertAxis(), chart::ChartController::executeDispatch_InsertAxisTitle(), chart::ChartController::executeDispatch_InsertDataLabel(), chart::ChartController::executeDispatch_InsertDataLabels(), chart::ChartController::executeDispatch_InsertErrorBars(), chart::ChartController::executeDispatch_InsertMajorGrid(), chart::ChartController::executeDispatch_InsertMeanValue(), chart::ChartController::executeDispatch_InsertMenu_DataLabels(), chart::ChartController::executeDispatch_InsertMenu_MeanValues(), chart::ChartController::executeDispatch_InsertMenu_Trendlines(), chart::ChartController::executeDispatch_InsertMinorGrid(), chart::ChartController::executeDispatch_InsertR2Value(), chart::ChartController::executeDispatch_InsertTrendline(), chart::ChartController::executeDispatch_InsertTrendlineEquation(), chart::ChartController::executeDispatch_LineColor(), chart::ChartController::executeDispatch_LineWidth(), chart::ChartController::executeDispatch_LOKPieSegmentDragging(), chart::ChartController::executeDispatch_MoveSeries(), chart::ChartController::executeDispatch_ObjectProperties(), chart::ChartController::executeDispatch_PositionAndSize(), chart::ChartController::executeDispatch_ResetAllDataPoints(), chart::ChartController::executeDispatch_ResetDataPoint(), chart::ChartController::getSelection(), chart::ChartController::impl_SetMousePointer(), and chart::ChartController::NotifyUndoActionHdl().
|
inline |
Definition at line 38 of file SelectionHelper.hxx.
References m_aSelectedOID.
Referenced by chart::ChartController::execute_KeyInput(), chart::ChartController::executeDispatch_Copy(), and chart::ChartController::impl_SetMousePointer().
| bool Selection::hasSelection | ( | ) | const |
Definition at line 65 of file SelectionHelper.cxx.
References chart::ObjectIdentifier::isValid(), and m_aSelectedOID.
Referenced by chart::ChartController::execute_DoubleClick(), chart::ChartController::execute_MouseButtonDown(), chart::ChartController::getSelection(), chart::ChartController::impl_ClearSelection(), chart::ChartController::modeChanged(), and chart::ChartController::select().
| bool Selection::isAdditionalShapeSelected | ( | ) | const |
Definition at line 317 of file SelectionHelper.cxx.
References chart::ObjectIdentifier::isAdditionalShape(), and m_aSelectedOID.
Referenced by chart::ChartController::isAdditionalShapeSelected(), and chart::ChartController::isShapeContext().
| bool Selection::isDragableObjectSelected | ( | ) | const |
Definition at line 312 of file SelectionHelper.cxx.
References chart::ObjectIdentifier::isDragableObject(), and m_aSelectedOID.
Referenced by chart::ChartController::execute_KeyInput(), chart::ChartController::execute_MouseButtonDown(), and chart::ChartController::impl_SetMousePointer().
| bool Selection::isResizeableObjectSelected | ( | ) | const |
Definition at line 292 of file SelectionHelper.cxx.
References chart::ObjectIdentifier::getObjectType(), m_aSelectedOID, chart::OBJECTTYPE_DIAGRAM, chart::OBJECTTYPE_DIAGRAM_WALL, chart::OBJECTTYPE_LEGEND, and chart::OBJECTTYPE_SHAPE.
Referenced by chart::ChartController::execute_MouseButtonDown(), chart::ChartController::execute_MouseButtonUp(), chart::ChartController::executeDispatch_PositionAndSize(), and chart::ChartController::impl_SetMousePointer().
| bool Selection::isRotateableObjectSelected | ( | const rtl::Reference<::chart::ChartModel > & | xChartModel | ) | const |
Definition at line 307 of file SelectionHelper.cxx.
References chart::ObjectIdentifier::getObjectCID(), chart::SelectionHelper::isRotateableObject(), and m_aSelectedOID.
Referenced by chart::ChartController::execute_MouseButtonDown(), and chart::ChartController::execute_MouseButtonUp().
| bool Selection::isSelectionDifferentFromBeforeMouseDown | ( | ) | const |
Definition at line 133 of file SelectionHelper.cxx.
References m_aSelectedOID, and m_aSelectedOID_beforeMouseDown.
Referenced by chart::ChartController::execute_Command(), and chart::ChartController::execute_MouseButtonUp().
| bool Selection::maybeSwitchSelectionAfterSingleClickWasEnsured | ( | ) |
Definition at line 108 of file SelectionHelper.cxx.
References chart::ObjectIdentifier::isValid(), m_aSelectedOID, and m_aSelectedOID_selectOnlyIfNoDoubleClickIsFollowing.
Referenced by chart::ChartController::execute_MouseButtonUp().
| void Selection::remindSelectionBeforeMouseDown | ( | ) |
Definition at line 128 of file SelectionHelper.cxx.
References m_aSelectedOID, and m_aSelectedOID_beforeMouseDown.
Referenced by chart::ChartController::execute_MouseButtonDown().
| void Selection::resetPossibleSelectionAfterSingleClickWasEnsured | ( | ) |
Definition at line 120 of file SelectionHelper.cxx.
References chart::ObjectIdentifier::isValid(), and m_aSelectedOID_selectOnlyIfNoDoubleClickIsFollowing.
Referenced by chart::ChartController::execute_MouseButtonUp().
| bool chart::Selection::setSelection | ( | const css::uno::Reference< css::drawing::XShape > & | xShape | ) |
| bool Selection::setSelection | ( | const OUString & | rCID | ) |
Definition at line 80 of file SelectionHelper.cxx.
References chart::ObjectIdentifier::getObjectCID(), and m_aSelectedOID.
Referenced by chart::ChartController::execute_MouseButtonUp(), chart::ChartController::executeDispatch_MoveSeries(), chart::ChartController::impl_PasteGraphic(), chart::ChartController::impl_PasteShapes(), chart::ChartController::impl_PasteStringAsTextShape(), chart::ChartController::select(), and chart::ChartController::SetAndApplySelection().
|
private |
Definition at line 70 of file SelectionHelper.hxx.
Referenced by adaptSelectionToNewPos(), applySelection(), clearSelection(), getSelectedAdditionalShape(), getSelectedCID(), getSelectedOID(), hasSelection(), isAdditionalShapeSelected(), isDragableObjectSelected(), isResizeableObjectSelected(), isRotateableObjectSelected(), isSelectionDifferentFromBeforeMouseDown(), maybeSwitchSelectionAfterSingleClickWasEnsured(), remindSelectionBeforeMouseDown(), and setSelection().
|
private |
Definition at line 71 of file SelectionHelper.hxx.
Referenced by clearSelection(), isSelectionDifferentFromBeforeMouseDown(), and remindSelectionBeforeMouseDown().
|
private |
Definition at line 72 of file SelectionHelper.hxx.
Referenced by adaptSelectionToNewPos(), clearSelection(), maybeSwitchSelectionAfterSingleClickWasEnsured(), and resetPossibleSelectionAfterSingleClickWasEnsured().