From b974bb3a19f2146218981e614349de3674142fa6 Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Tue, 26 Apr 2022 18:15:22 +0200 Subject: lok: Introduce uno commands for formulabar actions thanks to that we can reach them using LOK as formulabar is not fully welded yet Change-Id: Icc1963ab11c1e6e3c407222d76b2a87fdaffa652 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133496 Tested-by: Jenkins CollaboraOffice Reviewed-by: Mert Tumer --- sc/sdi/cellsh.sdi | 2 ++ sc/sdi/scalc.sdi | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) (limited to 'sc/sdi') diff --git a/sc/sdi/cellsh.sdi b/sc/sdi/cellsh.sdi index 38eb86cb27b9..d61f9cb863f8 100644 --- a/sc/sdi/cellsh.sdi +++ b/sc/sdi/cellsh.sdi @@ -209,6 +209,8 @@ interface CellSelection FID_INSERT_NAME [ ExecMethod = ExecuteEdit; StateMethod = GetState; ] FID_USE_NAME [ ExecMethod = ExecuteEdit; StateMethod = GetState; ] SID_CANCEL [ ExecMethod = Execute; ] + SID_ACCEPT_FORMULA [ ExecMethod = Execute; ] + SID_START_FORMULA [ ExecMethod = Execute; ] SID_TOGGLE_REL [ ExecMethod = ExecuteEdit; StateMethod = GetState; ] SID_POPUP_CONDFRMT [] SID_COLUMN_OPERATIONS [ ExecMethod = ExecuteEdit; StateMethod = GetBlockState; ] diff --git a/sc/sdi/scalc.sdi b/sc/sdi/scalc.sdi index bb438041a892..d7087be5c056 100644 --- a/sc/sdi/scalc.sdi +++ b/sc/sdi/scalc.sdi @@ -483,6 +483,42 @@ SfxVoidItem Cancel SID_CANCEL GroupId = SfxGroupId::Edit; ] +SfxVoidItem AcceptFormula SID_ACCEPT_FORMULA +() +[ + AutoUpdate = FALSE, + FastCall = FALSE, + ReadOnlyDoc = TRUE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + Asynchron; + + AccelConfig = TRUE, + MenuConfig = FALSE, + ToolBoxConfig = TRUE, + GroupId = SfxGroupId::Edit; +] + +SfxVoidItem StartFormula SID_START_FORMULA +() +[ + AutoUpdate = FALSE, + FastCall = FALSE, + ReadOnlyDoc = TRUE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + Asynchron; + + AccelConfig = TRUE, + MenuConfig = FALSE, + ToolBoxConfig = TRUE, + GroupId = SfxGroupId::Edit; +] + SfxVoidItem ChangeChartData SID_CHART_SOURCE (SfxStringItem Name SID_CHART_NAME,SfxStringItem Range SID_CHART_SOURCE,SfxBoolItem ColHeaders FN_PARAM_1,SfxBoolItem RowHeaders FN_PARAM_2) @@ -6550,6 +6586,7 @@ SfxUInt16Item NumberFormatType SID_NUMBER_TYPE_FORMAT SfxVoidItem AutoSum SID_AUTO_SUM +(SfxStringItem Function SID_AUTO_SUM) [ AutoUpdate = FALSE, FastCall = FALSE, -- cgit