summaryrefslogtreecommitdiff
path: root/sd/uiconfig/sdraw/popupmenu
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2018-09-06 12:17:47 +0300
committerJustin Luth <justin_luth@sil.org>2018-09-21 16:48:13 +0200
commit73859a1c00d443714a1e5f2a1a8d16fe46877944 (patch)
tree20ec8312fef2cd36910989883cee6fd0e3b068da /sd/uiconfig/sdraw/popupmenu
parentf74b888244fcefa7c03fa25db4d42c839ebbf642 (diff)
tdf#117721 draw ui: add .uno::SetOptimalColumnWidth
Optimize column width: Adjusts the width of the selected columns to fit the content, without changing the width of the table. Any leftover space is distributed proportionately, with thin columns growing slightly, and wide columns growing much wider. The implementation and results are different from how Writer does it, but tables themselves are also very different in Draw. So I don't think it needs to be handled identically. Writer's implementation is really "minimalColumnWidth" anyway. Change-Id: Ia10cfa9822d7eef3c4909a82c21535aa6668b143 Reviewed-on: https://gerrit.libreoffice.org/60078 Tested-by: Jenkins Reviewed-by: Justin Luth <justin_luth@sil.org>
Diffstat (limited to 'sd/uiconfig/sdraw/popupmenu')
-rw-r--r--sd/uiconfig/sdraw/popupmenu/table.xml1
-rw-r--r--sd/uiconfig/sdraw/popupmenu/tabletext.xml1
2 files changed, 2 insertions, 0 deletions
diff --git a/sd/uiconfig/sdraw/popupmenu/table.xml b/sd/uiconfig/sdraw/popupmenu/table.xml
index 18e526b029d4..aef1806c3be4 100644
--- a/sd/uiconfig/sdraw/popupmenu/table.xml
+++ b/sd/uiconfig/sdraw/popupmenu/table.xml
@@ -42,6 +42,7 @@
</menu:menu>
<menu:menu menu:id=".uno:ColumnMenu">
<menu:menupopup>
+ <menu:menuitem menu:id=".uno:SetOptimalColumnWidth"/>
<menu:menuitem menu:id=".uno:DistributeColumns"/>
<menu:menuseparator/>
<menu:menuitem menu:id=".uno:EntireColumn"/>
diff --git a/sd/uiconfig/sdraw/popupmenu/tabletext.xml b/sd/uiconfig/sdraw/popupmenu/tabletext.xml
index 243e31955eb2..8533bc957a9a 100644
--- a/sd/uiconfig/sdraw/popupmenu/tabletext.xml
+++ b/sd/uiconfig/sdraw/popupmenu/tabletext.xml
@@ -41,6 +41,7 @@
</menu:menu>
<menu:menu menu:id=".uno:ColumnMenu">
<menu:menupopup>
+ <menu:menuitem menu:id=".uno:SetOptimalColumnWidth"/>
<menu:menuitem menu:id=".uno:DistributeColumns"/>
<menu:menuseparator/>
<menu:menuitem menu:id=".uno:EntireColumn"/>