sc lok: Implement hi-dpi and zoom for spreadsheets

Desktop / LibreOffice - Jan Holesovsky [collabora.com] - 8 November 2018 13:38 EST

A bit different approach than trying to paint different zoom levels at the samet time, because it is terribly hard to achieve with Calc -things misalign, because Calc tries to fit the lines into the pixels etc.

Instead, always paint the spreadsheet at 100%, but use cairo to scale the actual painting.

Change-Id: I228a9dd41bf29862bdd188825d12e61e1c86cccc Reviewed-on: https://gerrit.libreoffice.org/63031

498dceb43f87 sc lok: Implement hi-dpi and zoom for spreadsheets.
comphelper/source/misc/lok.cxx | 13 +++++++++++++
desktop/source/lib/init.cxx | 15 ++++++++++++++-
include/comphelper/lok.hxx | 4 ++++
sc/source/ui/unoobj/docuno.cxx | 10 +++++-----
sc/source/ui/view/gridwin4.cxx | 32 +++++++++++++++++++++++---------
vcl/headless/svpvd.cxx | 15 ++++++++++++---
6 files changed, 71 insertions(+), 18 deletions(-)

Upstream: cgit.freedesktop.org


  • Share