diff options
author | Justin Luth <justin.luth@collabora.com> | 2022-11-23 18:12:20 -0500 |
---|---|---|
committer | Justin Luth <jluth@mail.com> | 2022-12-01 21:32:05 +0100 |
commit | 982f9ec1e07364e317fbcd25f1ef06f984cc0ce8 (patch) | |
tree | 5391f502f0288a786d935863964e772a8f81c990 /sw/inc | |
parent | 224fc966096e9fc52d8e41fbae211e3999edd945 (diff) |
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>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/textcontentcontrol.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/inc/textcontentcontrol.hxx b/sw/inc/textcontentcontrol.hxx index a9bc4e4a1054..3fb7ea124b99 100644 --- a/sw/inc/textcontentcontrol.hxx +++ b/sw/inc/textcontentcontrol.hxx @@ -41,6 +41,8 @@ public: void ChgTextNode(SwTextNode* pNode); + void Delete(bool bSaveContents); + SwTextNode* GetTextNode() const; /// Get the current (potentially invalid) string from the doc OUString ToString() const; |