diff options
author | Jan Holesovsky <kendy@collabora.com> | 2018-10-23 17:20:38 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-11-07 12:51:03 +0100 |
commit | 053d9247ce0818580658a7b6f5854f8b21754f7c (patch) | |
tree | 74e8357d14920b7babe85b9287dff8e52e5bbefd /include | |
parent | ddd2790f3402abaa64ccc501b63826dd29b29b68 (diff) |
sc lok: Implement hi-dpi and zoom for spreadsheets.
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
Diffstat (limited to 'include')
-rw-r--r-- | include/comphelper/lok.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/comphelper/lok.hxx b/include/comphelper/lok.hxx index e0bd65690261..fefa8ed90ef2 100644 --- a/include/comphelper/lok.hxx +++ b/include/comphelper/lok.hxx @@ -58,6 +58,10 @@ COMPHELPER_DLLPUBLIC void setTiledPainting(bool bTiledPainting); COMPHELPER_DLLPUBLIC bool isDialogPainting(); /// Set if we are painting the dialog. COMPHELPER_DLLPUBLIC void setDialogPainting(bool bDialogPainting); +/// Set the DPI scale for rendering for hi-dpi displays. Used also for zoom in Calc. +COMPHELPER_DLLPUBLIC void setDPIScale(double fDPIScale); +/// Get the DPI scale for rendering for hi-dpi displays. Used also for zoom in Calc. +COMPHELPER_DLLPUBLIC double getDPIScale(); /// Set if we want no annotations rendering COMPHELPER_DLLPUBLIC void setTiledAnnotations(bool bTiledAnnotations); /// Check if annotations rendering is turned off |