Add image preffered DPI document setting, use it in Writer, Impress

Desktop / LibreOffice - Toma┼ż Vajngerl [collabora.co.uk] - 6 December 2021 11:43 UTC

This adds a "image preferred DPI" document setting, which is used as a suggestion of the DPI that an image should have in the document. This is currently used when the image is inserted into the document (Writer, Impress/Draw) to resize it to the preferred DPI value.

Change-Id: I3ee9d409257e3c6aa2ead05144ecbba7b3b916f6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126334

4c00e8fb1043 Add image preffered DPI document setting, use it in Writer, Impress
include/sfx2/dinfdlg.hxx | 4 ++
sc/inc/document.hxx | 5 ++
sd/inc/drawdoc.hxx | 5 ++
sd/source/core/drawdoc.cxx | 1 +
sd/source/ui/unoidl/UnoDocumentSettings.cxx | 20 ++++++
sd/source/ui/view/sdview4.cxx | 35 +++++++---
sfx2/source/dialog/dinfdlg.cxx | 59 +++++++++++++++++
sfx2/uiconfig/ui/documentinfopage.ui | 92 ++++++++++++++++++++++-----
sw/inc/IDocumentSettingAccess.hxx | 3 +
sw/source/core/doc/DocumentSettingManager.cxx | 8 ++-
sw/source/core/inc/DocumentSettingManager.hxx | 9 +++
sw/source/uibase/uno/SwXDocumentSettings.cxx | 16 +++++
sw/source/uibase/wrtsh/wrtsh1.cxx | 18 +++++-
13 files changed, 246 insertions(+), 29 deletions(-)

Upstream: cgit.freedesktop.org


  • Share