summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-03-27 19:49:02 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-03-30 09:23:55 +0200
commit99394c8e09631280f9d76a790832133f5ef7b873 (patch)
treea0fe4223609d39fbde44afc61afd336ba5dcab9e /sd
parentdc755a3f7581b915f1f278e87af04d164514061d (diff)
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
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/viewshel.cxx7
1 files changed, 7 insertions, 0 deletions
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<sdr::SelectionController> xSelectionController(GetView()->getSelectionController());
+ if (xSelectionController.is())
+ xSelectionController->setCursorLogicPosition(rPosition, bPoint);
+ }
}
}