From d519cbe89268ff24e2b8b05ba5124dca98f22b79 Mon Sep 17 00:00:00 2001 From: rafaelhlima Date: Sat, 5 Feb 2022 20:36:19 -0300 Subject: tdf#145745 Create uno:DuplicateSheet command Change-Id: Ic8d37f02d45c6f958bf6133c27997adea9bc8c7c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129541 Tested-by: Jenkins Reviewed-by: Heiko Tietze --- sc/sdi/docsh.sdi | 1 + sc/sdi/scalc.sdi | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) (limited to 'sc/sdi') diff --git a/sc/sdi/docsh.sdi b/sc/sdi/docsh.sdi index 4b7e2fe7fdd5..b4a8a04326d8 100644 --- a/sc/sdi/docsh.sdi +++ b/sc/sdi/docsh.sdi @@ -35,6 +35,7 @@ interface TableSelection SID_DETECTIVE_DEL_ALL [ ExecMethod = Execute; StateMethod = GetState; ] FID_TABLE_VISIBLE [ ExecMethod = ExecuteTable; StateMethod = GetStateTable; ] FID_TAB_MOVE [ ExecMethod = ExecuteTable; StateMethod = GetStateTable; ] + FID_TAB_DUPLICATE [ ExecMethod = ExecuteTable; StateMethod = GetStateTable; ] FID_DELETE_TABLE [ ExecMethod = ExecuteTable; StateMethod = GetStateTable; ] FID_TAB_RENAME [ ExecMethod = ExecuteTable; StateMethod = GetStateTable; ] FID_TAB_RTL [ ExecMethod = ExecuteTable; StateMethod = GetStateTable; ] diff --git a/sc/sdi/scalc.sdi b/sc/sdi/scalc.sdi index 861c76768d3b..8457654946fd 100644 --- a/sc/sdi/scalc.sdi +++ b/sc/sdi/scalc.sdi @@ -3428,6 +3428,23 @@ SfxVoidItem Move FID_TAB_MOVE GroupId = SfxGroupId::Edit; ] +SfxVoidItem DuplicateSheet FID_TAB_DUPLICATE +() +[ + AutoUpdate = FALSE, + FastCall = FALSE, + ReadOnlyDoc = TRUE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + + AccelConfig = TRUE, + MenuConfig = TRUE, + ToolBoxConfig = FALSE, + GroupId = SfxGroupId::Edit; +] + SfxVoidItem Name FID_TAB_RENAME (SfxStringItem Name FID_TAB_RENAME,SfxUInt16Item Index FN_PARAM_1) -- cgit