tdf#151548 ContentControls: Add Delete()
commit982f9ec1e07364e317fbcd25f1ef06f984cc0ce8
authorJustin Luth <justin.luth@collabora.com>
Wed, 23 Nov 2022 23:12:20 +0000 (23 18:12 -0500)
committerJustin Luth <jluth@mail.com>
Thu, 1 Dec 2022 20:32:05 +0000 (1 21:32 +0100)
tree5391f502f0288a786d935863964e772a8f81c990
parent224fc966096e9fc52d8e41fbae211e3999edd945
tdf#151548 ContentControls: Add Delete()

Needed a function to delete a control,
so it seemed to make sense to include it here.

[I saw a nice bExact flag, but it doesn't work because
 RES_TXTATTR_CONTENTCONTROLS is outside of a certain
 range. Oh well.]

make CppunitTest_sw_macros_test CPPUNIT_TEST_NAME=testVba

Change-Id: If7da3d4d614d9dfd20f539f651477cbd18d25e20
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143195
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
sw/inc/textcontentcontrol.hxx
sw/qa/core/data/docm/testModernVBA.docm
sw/source/core/txtnode/attrcontentcontrol.cxx
sw/source/ui/vba/vbacontentcontrol.cxx