From 7444c8c87a228e4259f5dd34edfcf4c92ed02504 Mon Sep 17 00:00:00 2001 From: Justin Luth Date: Thu, 3 Nov 2022 10:05:24 -0400 Subject: 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 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- oovbaapi/ooo/vba/word/XCheckBox.idl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'oovbaapi') diff --git a/oovbaapi/ooo/vba/word/XCheckBox.idl b/oovbaapi/ooo/vba/word/XCheckBox.idl index 42b7dd8b1f60..f1eb13a19c54 100644 --- a/oovbaapi/ooo/vba/word/XCheckBox.idl +++ b/oovbaapi/ooo/vba/word/XCheckBox.idl @@ -22,7 +22,21 @@ module ooo { module vba { module word { interface XCheckBox { interface ooo::vba::XHelperInterface; + interface com::sun::star::script::XDefaultProperty; + /// Default member: True if the specified form field object is a valid check box form field. + [attribute, readonly] boolean Valid; + + /** AutoSize: + * True sizes the check box or text frame according to the font size of the surrounding text. + * False sizes the check box or text frame according to the Size property. + */ + [attribute] boolean AutoSize; + /// Returns or sets the default check box value. True if the default value is checked. + [attribute] boolean Default; + /// Returns or sets the size of a check box, in points. + [attribute] long Size; + /// Returns or sets true if the check box is ticked. [attribute] boolean Value; }; -- cgit