summaryrefslogtreecommitdiff
path: root/sw/uiconfig
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2023-11-17 08:31:41 +0100
committerMiklos Vajna <vmiklos@collabora.com>2023-11-17 10:13:58 +0100
commit871ca5dd73b34086fad1e57d4697f43a6739a11d (patch)
tree554c1a7c196404bbb5d571eab916be9a9f0f1e8f /sw/uiconfig
parent63a5687e84c5f75990a6052658fb5676f7cc2767 (diff)
sw floattable, delete UI: add an uno command to unfloat frame from context menu
Word has an easy UI to turn floating tables into inline ones. Writer had a similar button, but that had a few shortcomings: 1) It was only visible if a non-split frame was too large to fit the page. 2) It was a separate VCL widget, so invisible to LOK clients. 3) It only worked for frames which had a single table in them. Researching the problem, it's interesting how deleting a frame always deletes its content as well, but e.g. deleting a section just removes the container but leaves the content in the body text. Fix the problem by adding a new menu item in the context menu that always allows converting the frame to inline content at the anchor point. This can share a bit of code with the old unfloat button. The undo/redo still needs fixing, in a follow-up change. Change-Id: I8ce05c9f958b08cb599fd5d2a27e770182f28cc7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159550 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sw/uiconfig')
-rw-r--r--sw/uiconfig/swriter/popupmenu/frame.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/uiconfig/swriter/popupmenu/frame.xml b/sw/uiconfig/swriter/popupmenu/frame.xml
index 959f8df4b173..7a3bfcb22915 100644
--- a/sw/uiconfig/swriter/popupmenu/frame.xml
+++ b/sw/uiconfig/swriter/popupmenu/frame.xml
@@ -50,5 +50,6 @@
</menu:menu>
<menu:menuseparator/>
<menu:menuitem menu:id=".uno:InsertCaptionDialog"/>
+ <menu:menuitem menu:id=".uno:UnfloatFrame"/>
<menu:menuitem menu:id=".uno:FrameDialog"/>
</menu:menupopup>