diff options
author | Justin Luth <justin.luth@collabora.com> | 2022-11-03 10:05:24 -0400 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2022-11-11 11:19:21 +0100 |
commit | 7444c8c87a228e4259f5dd34edfcf4c92ed02504 (patch) | |
tree | f17cf0f3bfb4a90c666585e4c7642151e0b57ad1 /oovbaapi | |
parent | 1b5c7bad0f332b6923aa820301fc1ff6d00bd0ea (diff) |
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>
Diffstat (limited to 'oovbaapi')
-rw-r--r-- | oovbaapi/ooo/vba/word/XCheckBox.idl | 14 |
1 files changed, 14 insertions, 0 deletions
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; }; |