sd signature line: allow move / resize of shape before signing

Once the initial rectangle is drawn, a certificate is attached to this
shape. Allow modifying this shape (and only this one) before the actual
signing, in case the user wants to fine-tune the geometry.

Change-Id: Icdf4ffa99eaf02f81d60884d45c26b3500ea73d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97240
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx
index 1861677..baa6c6b 100644
--- a/sd/source/ui/func/fusel.cxx
+++ b/sd/source/ui/func/fusel.cxx
@@ -201,8 +201,15 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt)
        if (!bTextEdit && eHit == SdrHitKind::UrlField && !rMEvt.IsMod2() && !lcl_followHyperlinkAllowed(rMEvt))
            bTextEdit = true;

        bool bPreventModify = mpDocSh->IsReadOnly();
        if (bPreventModify && mpDocSh->GetSignPDFCertificate().is())
        {
            // If the just added signature line shape is selected, allow moving / resizing it.
            bPreventModify = false;
        }

        if(!bTextEdit
            && !mpDocSh->IsReadOnly()
            && !bPreventModify
            && ((mpView->IsMarkedHit(aMDPos, nHitLog) && !rMEvt.IsShift() && !rMEvt.IsMod2()) || pHdl != nullptr)
            && (rMEvt.GetClicks() != 2)
            )