diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2020-05-31 14:03:36 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2020-07-31 05:29:52 +0200 |
commit | 6af21e08548cfadd994b5a05c52e565fcfaf98d6 (patch) | |
tree | cf07ff14d861756437d23dfb52647d0ff1c398c0 /include | |
parent | d08af13e06a428a1639807bce0b53e17ae5ee694 (diff) |
vcl: VectorGraphicSearch - support changing search string
Initial implementation only allowed to set the search string once.
This change allows to change the search string and still retain
the last position of a found string, so the search continues
from this positon forward or backwards. This mimicks how we search
through the GUI (which is the main use for this functionallity
anyway).
Change-Id: I8a7aee4b6b6525f483f105feaa1f83c4a0ad9594
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95460
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
(cherry picked from commit 1f8a46ae50c6977add4c4116f114df3a58796be3)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95946
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
(cherry picked from commit 5713b22bc3b7bc54d83fc99616912504ebf63649)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99815
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/VectorGraphicSearch.hxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/vcl/VectorGraphicSearch.hxx b/include/vcl/VectorGraphicSearch.hxx index 2dc8cca3b76a..c9faaa51f1c9 100644 --- a/include/vcl/VectorGraphicSearch.hxx +++ b/include/vcl/VectorGraphicSearch.hxx @@ -32,8 +32,7 @@ private: std::unique_ptr<Implementation> mpImplementation; Graphic maGraphic; - bool searchPDF(std::shared_ptr<VectorGraphicData> const& rData, OUString const& rSearchString, - SearchStartPosition eStartPosition); + bool searchPDF(std::shared_ptr<VectorGraphicData> const& rData); public: VectorGraphicSearch(Graphic const& rGraphic); |