tdf#151548 vba FormFields: Add basic word::XCheckBox support
commit7444c8c87a228e4259f5dd34edfcf4c92ed02504
authorJustin Luth <justin.luth@collabora.com>
Thu, 3 Nov 2022 14:05:24 +0000 (3 10:05 -0400)
committerMiklos Vajna <vmiklos@collabora.com>
Fri, 11 Nov 2022 10:19:21 +0000 (11 11:19 +0100)
treef17cf0f3bfb4a90c666585e4c7642151e0b57ad1
parent1b5c7bad0f332b6923aa820301fc1ff6d00bd0ea
tdf#151548 vba FormFields: Add basic word::XCheckBox support

make CppunitTest_sw_macros_test CPPUNIT_TEST_NAME=testVba

This now allows MS Word Basic legacy checkbox form fields
to be controlled by VBA basic.
-allows getting and setting the checkbox value

TODO:
-wire up entry and exit macros
-wire up StarBASIC support (hmm, how would that be different?)
   -probably completely ignore this. formfields hidden from
    normal writer - only activeX and content controls shown.
-setup tri-state for checkboxes: with a separate default value

Change-Id: Ied47a507dd9acc2c8dfd1472e6704e9dd571b480
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142253
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
oovbaapi/ooo/vba/word/XCheckBox.idl
sw/Library_vbaswobj.mk
sw/qa/core/data/docm/testVBA.docm
sw/source/core/crsr/bookmark.cxx
sw/source/core/inc/bookmark.hxx
sw/source/ui/vba/vbaformfield.cxx
sw/source/ui/vba/vbaformfieldcheckbox.cxx [new file with mode: 0644]
sw/source/ui/vba/vbaformfieldcheckbox.hxx [new file with mode: 0644]