vcl: add search start position support for VectorGraphicSearch

Desktop / LibreOffice - Tomaž Vajngerl [collabora.co.uk] - 3 June 2020 11:26 UTC

By default we start at the begin of the page, but with this change make it possible to start at the end. This makes it possible to search in the backwards direction (set the start position at to the end and search with "previous").

Change-Id: I78fb1461b86bf9eab2f91c3b9a81cbb5c6557332 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95382

83d27791fed7 vcl: add search start position support for VectorGraphicSearch
include/vcl/VectorGraphicSearch.hxx | 12 ++++-
vcl/qa/cppunit/VectorGraphicSearchTest.cxx | 79 ++++++++++++++++++++++--------
vcl/source/graphic/VectorGraphicSearch.cxx | 28 ++++++++---
3 files changed, 90 insertions(+), 29 deletions(-)

Upstream: cgit.freedesktop.org


  • Share