Auto-redact - First stab

Desktop / LibreOffice - Muhammet Kara [collabora.com] - 13 May 2019 10:48 EDT

Add a SfxRedactionHelper::autoRedactPage method which searches for the given term through the gdimetafile which has the whole content of an xPage (a Draw page), and draws redaction rectangles at proper positions with proper sizes.

The search is case sensitive, and finds only the first occurences on a line. Will switch to a proper search provider via a follow-up patch.

Change-Id: If3db62e50994670143785b6727fdcf1ccd4c6f8e Reviewed-on: https://gerrit.libreoffice.org/68597

57667603c52e Auto-redact - First stab
sfx2/inc/SfxRedactionHelper.hxx | 20 +++++
sfx2/source/doc/SfxRedactionHelper.cxx | 148 +++++++++++++++++++++++++++++++++
2 files changed, 168 insertions(+)

Upstream: cgit.freedesktop.org


  • Share