From 871795ad598dfccc156e6dd47937638893b727d8 Mon Sep 17 00:00:00 2001 From: Justin Luth Date: Fri, 7 Sep 2018 09:24:01 +0300 Subject: tdf#117721 draw ui: add .uno::SetOptimalRowHeight Optimal row height: Adjusts the height of the selected rows to fit the content, causing the table to shrink. This really is SetMinimalRowHeight, but until minimize is also added, it is the most desirable optimization. Change-Id: I90717b2752027404a85fd5eb01c68279996598ca Reviewed-on: https://gerrit.libreoffice.org/60129 Reviewed-by: Justin Luth Tested-by: Justin Luth --- sd/sdi/sdraw.sdi | 17 +++++++++++++++++ sd/sdi/tables.sdi | 6 ++++++ 2 files changed, 23 insertions(+) (limited to 'sd/sdi') diff --git a/sd/sdi/sdraw.sdi b/sd/sdi/sdraw.sdi index 234410d48937..eac465540ac0 100644 --- a/sd/sdi/sdraw.sdi +++ b/sd/sdi/sdraw.sdi @@ -4107,6 +4107,23 @@ SfxVoidItem DistributeColumns SID_TABLE_DISTRIBUTE_COLUMNS GroupId = SfxGroupId::Table; ] +SfxVoidItem SetOptimalRowHeight SID_TABLE_OPTIMAL_ROW_HEIGHT +() +[ + AutoUpdate = FALSE, + FastCall = TRUE, + ReadOnlyDoc = FALSE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + + AccelConfig = TRUE, + MenuConfig = TRUE, + ToolBoxConfig = TRUE, + GroupId = SfxGroupId::Table; +] + SfxVoidItem DistributeRows SID_TABLE_DISTRIBUTE_ROWS () [ diff --git a/sd/sdi/tables.sdi b/sd/sdi/tables.sdi index 2df3198ba75d..7450666134f5 100644 --- a/sd/sdi/tables.sdi +++ b/sd/sdi/tables.sdi @@ -156,6 +156,12 @@ shell TableObjectBar StateMethod = GetState; ] + SID_TABLE_OPTIMAL_ROW_HEIGHT + [ + ExecMethod = Execute; + StateMethod = GetState; + ] + SID_TABLE_DISTRIBUTE_ROWS [ ExecMethod = Execute; -- cgit