From 99394c8e09631280f9d76a790832133f5ef7b873 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 27 Mar 2015 19:49:02 +0100 Subject: Add SvxTableController::setCursorLogicPosition() With this, it's possible to drag the start or end handle of an Impress table selection and let it grow/shrink. Change-Id: Icdee1207c1c3a6b1c4fb15d00008db6327d6e2de --- sd/source/ui/view/viewshel.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sd') diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx index a0ab3f03c107..48451783aa18 100644 --- a/sd/source/ui/view/viewshel.cxx +++ b/sd/source/ui/view/viewshel.cxx @@ -541,6 +541,13 @@ void ViewShell::SetCursorLogicPosition(const Point& rPosition, bool bPoint, bool EditView& rEditView = pSdrView->GetTextEditOutlinerView()->GetEditView(); rEditView.SetCursorLogicPosition(rPosition, bPoint, bClearMark); } + else + { + // No text edit object, then try to adjust table selection. + rtl::Reference xSelectionController(GetView()->getSelectionController()); + if (xSelectionController.is()) + xSelectionController->setCursorLogicPosition(rPosition, bPoint); + } } } -- cgit