Redaction: Adjust offset for multiple Calc pages

Desktop / LibreOffice - Muhammet Kara [collabora.com] - 19 January 2019 07:21 EST

- Add an enum and some methods to DocumentToGraphicRenderer to differentiate between the doc/module types: isWriter(), isCalc(), isImpress()
- Put some checks for module/doc type
- The result seems ok for a Calc document of multiple sheets with hundreds of pages

Change-Id: Idf3e1966d4239df30a48a947a95c9085c25ee1bb Reviewed-on: https://gerrit.libreoffice.org/66605

189f4d3b3ee5 Redaction: Adjust offset for multiple Calc pages
include/svtools/DocumentToGraphicRenderer.hxx | 16 +++++-
sfx2/source/doc/objserv.cxx | 36 ++++++++++++--
.../source/filter/DocumentToGraphicRenderer.cxx | 58 ++++++++++++++++++++--
3 files changed, 99 insertions(+), 11 deletions(-)

Upstream: cgit.freedesktop.org


  • Share