sd/source/ui/view/drviewse.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit 819941bf1422f40e9346eba61d75e0fda3d24275 Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Wed Jan 22 08:58:55 2025 +0100 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Wed Jan 22 14:50:09 2025 +0100 cool#10630 lok doc sign: reduce the default size of the signature line This is obviously somewhat subjective, but the default shape size in officecfg/registry/schema/org/openoffice/Office/Impress.xcs, DefaultObjectSize is 8x5cm, and I find myself always reduring the inserted signature line when I test it on a few sample PDF files where others left some space for a signature. Improve this by going with the half of the default in case of signature lines, so people typically need to only move the inserted shape, not resize it. The need to only move it is especially helpful as our resize would not keep aspect ratio by default and only few users will know they need to hold ctrl-shift while resizing to do proportional resize. Change-Id: Ieaad56601be8277b39a5403e3c3f2e6ed1fd1c97 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180587 Reviewed-by: Miklos Vajna <vmik...@collabora.com> Tested-by: Jenkins diff --git a/sd/source/ui/view/drviewse.cxx b/sd/source/ui/view/drviewse.cxx index f9466b51a3d1..b815cf0818f3 100644 --- a/sd/source/ui/view/drviewse.cxx +++ b/sd/source/ui/view/drviewse.cxx @@ -669,6 +669,13 @@ void DrawViewShell::FuPermanent(SfxRequest& rReq) SdOptions* pOptions = SdModule::get()->GetSdOptions(GetDoc()->GetDocumentType()); sal_uInt32 nDefaultObjectSizeWidth(pOptions->GetDefaultObjectSizeWidth()); sal_uInt32 nDefaultObjectSizeHeight(pOptions->GetDefaultObjectSizeHeight()); + if (nSId == SID_INSERT_SIGNATURELINE) + { + // Half of the default to better match the space available for signatures in many real-world + // documents. + nDefaultObjectSizeWidth *= 0.5; + nDefaultObjectSizeHeight *= 0.5; + } // calc position and size ::tools::Rectangle aVisArea = GetActiveWindow()->PixelToLogic(::tools::Rectangle(Point(0,0), GetActiveWindow()->GetOutputSizePixel()));