From e10f1090be5c293d42cda093d26541b77a9f0142 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Mon, 26 Aug 2019 20:17:06 +0900 Subject: lok: use cell instead of text selection for tables in impress MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I0169538eb763d55c38d09e751ccf9e17b3eee4d0 Reviewed-on: https://gerrit.libreoffice.org/78122 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl (cherry picked from commit 1bad7f0b19e47a41a1919573f80785ec62c611af) Reviewed-on: https://gerrit.libreoffice.org/78687 Tested-by: Tomaž Vajngerl --- svx/source/table/tablecontroller.cxx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx index 156909c6f6de..dd679484db3e 100644 --- a/svx/source/table/tablecontroller.cxx +++ b/svx/source/table/tablecontroller.cxx @@ -2218,23 +2218,14 @@ void SvxTableController::updateSelectionOverlay() // If tiled rendering, emit callbacks for sdr table selection. if (pOutDev && comphelper::LibreOfficeKit::isActive()) { - // Left edge of aStartRect. - tools::Rectangle aSelectionStart(aStartRect.Left(), aStartRect.Top(), aStartRect.Left(), aStartRect.Bottom()); - // Right edge of aEndRect. - tools::Rectangle aSelectionEnd(aEndRect.Right(), aEndRect.Top(), aEndRect.Right(), aEndRect.Bottom()); tools::Rectangle aSelection(a2DRange.getMinX(), a2DRange.getMinY(), a2DRange.getMaxX(), a2DRange.getMaxY()); if (pOutDev->GetMapMode().GetMapUnit() == MapUnit::Map100thMM) - { - aSelectionStart = OutputDevice::LogicToLogic(aSelectionStart, MapMode(MapUnit::Map100thMM), MapMode(MapUnit::MapTwip)); - aSelectionEnd = OutputDevice::LogicToLogic(aSelectionEnd, MapMode(MapUnit::Map100thMM), MapMode(MapUnit::MapTwip)); aSelection = OutputDevice::LogicToLogic(aSelection, MapMode(MapUnit::Map100thMM), MapMode(MapUnit::MapTwip)); - } if(SfxViewShell* pViewShell = SfxViewShell::Current()) { - pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_TEXT_SELECTION_START, aSelectionStart.toString().getStr()); - pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_TEXT_SELECTION_END, aSelectionEnd.toString().getStr()); + pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_CELL_SELECTION_AREA, aSelection.toString().getStr()); pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_TEXT_SELECTION, aSelection.toString().getStr()); } } -- cgit > LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/forms
AgeCommit message (Expand)Author
2014-10-11convert vcl StateChangedType to enum classNoel Grandin
2014-10-09fdo#81356: convert Fraction to boost::rational<long> - wipJuan Picca
2014-10-08back out more wrong and confusing tools::Time comment changesEike Rathke
2014-10-07java: optimise calls to toArrayNoel Grandin
2014-10-02fdo#39468 Make forms/ German comments cleanPhilipp Weissenbacher
2014-10-01forms: enhanced for loopRobert Antoni Buj i Gelonch
2014-10-01fdo#82577: Handle TimeNoel Grandin
2014-09-30forms: use Arrays.toString in integration.forms.RadioButtonsRobert Antoni Buj i Gelonch
2014-09-30forms: replace StringBuffer with StringBuilderRobert Antoni Buj i Gelonch