[Libreoffice-commits] core.git: sd/sdi sd/source sd/uiconfig

Miklos Vajna (via logerrit) logerrit at kemper.freedesktop.org
Thu Jun 4 17:58:41 UTC 2020


 sd/sdi/_drvwsh.sdi                    |    7 +++++++
 sd/source/ui/view/drviewse.cxx        |    1 +
 sd/uiconfig/sdraw/menubar/menubar.xml |    1 +
 3 files changed, 9 insertions(+)

New commits:
commit ff56f77c06834713945b4048902fc6518655ebaa
Author:     Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Thu Jun 4 13:54:57 2020 +0200
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Thu Jun 4 19:58:05 2020 +0200

    sd signature line: add initial menu item / UNO command
    
    Signature lines already work in Writer and Calc, this starts adding it
    to Draw.
    
    The current code is similar to SID_DRAW_RECT, just the implementation
    for the UNO command is allowed in read-only mode, to be used for PDFs
    opened for signing.
    
    Also allow SID_OBJECT_SELECT is read-only mode: selecting objects makes
    sense to allow (usually already works on the UI) and this is needed to
    allow finishing the "create" mode in a read-only view.
    
    Change-Id: Icccb9ae1cd58eff1a7c2c36df1548ea7b412c246
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95505
    Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
    Tested-by: Jenkins

diff --git a/sd/sdi/_drvwsh.sdi b/sd/sdi/_drvwsh.sdi
index 4bb8199bc49f..5053ae628801 100644
--- a/sd/sdi/_drvwsh.sdi
+++ b/sd/sdi/_drvwsh.sdi
@@ -1315,6 +1315,7 @@ interface DrawView
         ExecMethod = FuPermanent ;
         StateMethod = GetMenuState ;
         Export = FALSE ;
+        ReadOnlyDoc = TRUE ;
     ]
 
      // Begin FormSlots
@@ -2586,6 +2587,12 @@ interface DrawView
         ExecMethod = FuPermanent ;
         StateMethod = GetMenuState ;
     ]
+    SID_INSERT_SIGNATURELINE
+    [
+        ExecMethod = FuPermanent ;
+        StateMethod = GetMenuState ;
+        ReadOnlyDoc = TRUE ;
+    ]
     SID_AVMEDIA_PLAYER // ole : yes, status : ?
     [
         ExecMethod = FuTemporary ;
diff --git a/sd/source/ui/view/drviewse.cxx b/sd/source/ui/view/drviewse.cxx
index 96b23e87f71b..bb305423ce08 100644
--- a/sd/source/ui/view/drviewse.cxx
+++ b/sd/source/ui/view/drviewse.cxx
@@ -448,6 +448,7 @@ void DrawViewShell::FuPermanent(SfxRequest& rReq)
         case SID_CONNECTOR_LINES_CIRCLE_START:
         case SID_CONNECTOR_LINES_CIRCLE_END:
         case SID_CONNECTOR_LINES_CIRCLES:
+        case SID_INSERT_SIGNATURELINE:
         {
             SetCurrentFunction( FuConstructRectangle::Create( this, GetActiveWindow(), mpDrawView.get(), GetDoc(), rReq, bPermanent ) );
             rReq.Done();
diff --git a/sd/uiconfig/sdraw/menubar/menubar.xml b/sd/uiconfig/sdraw/menubar/menubar.xml
index 836ae7897fa1..17191bdb94b3 100644
--- a/sd/uiconfig/sdraw/menubar/menubar.xml
+++ b/sd/uiconfig/sdraw/menubar/menubar.xml
@@ -71,6 +71,7 @@
         <menu:menupopup>
           <menu:menuitem menu:id=".uno:Signature" menu:style="text"/>
           <menu:menuitem menu:id=".uno:SignPDF" menu:style="text"/>
+          <menu:menuitem menu:id=".uno:InsertSignatureLine" menu:style="text"/>
         </menu:menupopup>
       </menu:menu>
       <menu:menuseparator/>


More information about the Libreoffice-commits mailing list