diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-06-04 13:54:57 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-06-04 19:58:05 +0200 |
commit | ff56f77c06834713945b4048902fc6518655ebaa (patch) | |
tree | 7e26a20c662f3d3e1b97cbfb0b7619d79a1d6494 /sd/sdi | |
parent | aed7f71d67762e6b9a8b0f65ec9d0fdd5fd42fbd (diff) |
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@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sd/sdi')
-rw-r--r-- | sd/sdi/_drvwsh.sdi | 7 |
1 files changed, 7 insertions, 0 deletions
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 ; |