summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorJustin Luth <justin.luth@collabora.com>2022-11-03 17:59:14 -0400
committerMiklos Vajna <vmiklos@collabora.com>2022-11-15 11:07:06 +0100
commitb8fa94b28a2fbf75edc0d31fbf776d40a227e794 (patch)
tree82298b4d48c17251242faa4f09a143f7fe3a3320 /sw/inc
parent55c2e9e7e24a4bc2016fc54a5ffaf22aa094eb58 (diff)
tdf#151548 vba FormFields: Add basic word::XDropDown support
make CppunitTest_sw_macros_test CPPUNIT_TEST_NAME=testVba This now allows MS Word Basic legacy list box form fields to be controlled by VBA basic. -allows getting and setting the text string/list entry -allows adding and deleting list entries Change-Id: Ia772c62395c40a6aa0afae2549f15f4ea3304dbf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142396 Reviewed-by: Justin Luth <jluth@mail.com> Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/IMark.hxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/sw/inc/IMark.hxx b/sw/inc/IMark.hxx
index 776d35c2f4e3..c256c2ef997c 100644
--- a/sw/inc/IMark.hxx
+++ b/sw/inc/IMark.hxx
@@ -125,6 +125,25 @@ namespace sw::mark
ICheckboxFieldmark &operator =(ICheckboxFieldmark const&) = delete;
};
+ class SW_DLLPUBLIC IDropdownFieldmark
+ : virtual public IFieldmark
+ {
+ protected:
+ IDropdownFieldmark() = default;
+
+ public:
+ virtual OUString GetContent(sal_Int32* pIndex) const = 0;
+ virtual OUString GetContent() const override = 0;
+ virtual void AddContent(const OUString& rText, sal_Int32* pIndex = nullptr) = 0;
+ virtual void DelContent(sal_Int32 nDelIndex = -1) = 0;
+ virtual void ReplaceContent(const OUString* pText, sal_Int32* pIndex) = 0;
+ virtual void ReplaceContent(const OUString& sNewContent) override = 0;
+
+ private:
+ IDropdownFieldmark(IDropdownFieldmark const &) = delete;
+ IDropdownFieldmark &operator =(IDropdownFieldmark const&) = delete;
+ };
+
class SW_DLLPUBLIC IDateFieldmark
: virtual public IFieldmark
{