Corrected HitTest for layouted text

Desktop / LibreOffice - Armin Le Grand [cib.de] - 31 July 2017 15:26 EDT

For text layouted using EditEngine the HitTest in SVX is identifying Field like URLs. Thus ist is better to use the anyways more precise primitives for HitTest (rotation/shear/ mirror, ...). This was necessary since the former mechanism which used a combination of primitive-beased HitTest and then using an Outliner to get the position/content of the Field landed on different positions e.g. when the layout needed to use multiple lines for the contained URL, but there could be more cases found. Adapted the text decompositon, the primitive HitTest and the TextHirearchyFieldPrimitive2D accordingly.

Change-Id: Ice559e20d02547fdcfcf9783e7cc5481706aab03 Reviewed-on: https://gerrit.libreoffice.org/40591

d62d07b Corrected HitTest for layouted text
.../primitive2d/texthierarchyprimitive2d.cxx | 23 +++++-
.../source/processor2d/hittestprocessor2d.cxx | 9 +++
.../source/processor2d/vclmetafileprocessor2d.cxx | 12 ++-
.../primitive2d/texthierarchyprimitive2d.hxx | 10 ++-
.../processor2d/hittestprocessor2d.hxx | 15 ++++
include/svx/sdrhittesthelper.hxx | 9 ++-
svx/source/svdraw/sdrhittesthelper.cxx | 22 +++++-
svx/source/svdraw/svdotextdecomposition.cxx | 13 ++-
svx/source/svdraw/svdview.cxx | 92 ++++++++++++++--------
9 files changed, 152 insertions(+), 53 deletions(-)

Upstream: cgit.freedesktop.org


  • Share