From d72dcbc4fcb7458955d8071f49d1a877a7d1d1a6 Mon Sep 17 00:00:00 2001 From: codewithvk Date: Fri, 1 Nov 2024 19:28:51 +0530 Subject: sw: add .uno:DeleteContentControl command This command removes formatting for content controls such as rich text, checkbox, dropdown, picture, and date controls. It deletes only the content control formatting, not the actual content of the section. Here are some todos: - Add test case for delete - undo/redo for this uno command Change-Id: Ib1b3b62ff7d62fd971472eff49a58c5afd786dc8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175927 Tested-by: Jenkins CollaboraOffice Reviewed-by: Miklos Vajna (cherry picked from commit 5d4ae3db293b0f9c46cbc09d0391806e1ed7b362) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176067 Tested-by: Jenkins Reviewed-by: vivek javiya --- desktop/source/lib/init.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'desktop/source') diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 7f804585813e..9400a9bc6ce9 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -4020,6 +4020,7 @@ static void doc_iniUnoCommands () u".uno:Protect"_ustr, u".uno:UnsetCellsReadOnly"_ustr, u".uno:ContentControlProperties"_ustr, + u".uno:DeleteContentControl"_ustr, u".uno:InsertCheckboxContentControl"_ustr, u".uno:InsertContentControl"_ustr, u".uno:InsertDateContentControl"_ustr, -- cgit