From bfd5a99e775e94531e67d5cda97740e18d907019 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Fri, 3 Dec 2021 20:52:12 +0100 Subject: Add image preffered DPI document setting, use it in Writer, Impress MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126334 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl (cherry picked from commit 4c00e8fb10437fcaefe8635ef390b78376938d15) Change-Id: I3ee9d409257e3c6aa2ead05144ecbba7b3b916f6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127238 Tested-by: Jenkins CollaboraOffice Reviewed-by: Miklos Vajna --- include/sfx2/dinfdlg.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/sfx2/dinfdlg.hxx b/include/sfx2/dinfdlg.hxx index 521434236cea..bea521a535fc 100644 --- a/include/sfx2/dinfdlg.hxx +++ b/include/sfx2/dinfdlg.hxx @@ -183,10 +183,14 @@ private: std::unique_ptr m_xTemplFt; std::unique_ptr m_xTemplValFt; + std::unique_ptr m_xImagePreferredDpiCheckButton; + std::unique_ptr m_xImagePreferredDpiComboBox; DECL_LINK(DeleteHdl, weld::Button&, void); DECL_LINK(SignatureHdl, weld::Button&, void); DECL_LINK(ChangePassHdl, weld::Button&, void); + DECL_LINK(ImagePreferredDPICheckBoxClicked, weld::ToggleButton&, void); + void ImplUpdateSignatures(); void ImplCheckPasswordState(); -- cgit