sd/source/ui/view/drviewse.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit 1768680414ffa5e963d623ba9f997e35751ef789 Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Wed Jan 22 08:58:55 2025 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Wed Jan 22 10:52:42 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/+/180569 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sd/source/ui/view/drviewse.cxx b/sd/source/ui/view/drviewse.cxx index 242f75570503..eff37a4db86d 100644 --- a/sd/source/ui/view/drviewse.cxx +++ b/sd/source/ui/view/drviewse.cxx @@ -666,6 +666,13 @@ void DrawViewShell::FuPermanent(SfxRequest& rReq) SdOptions* pOptions = SD_MOD()->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()));