office-gobmx/oovbaapi/ooo/vba/word/XCheckBox.idl
Justin Luth 7444c8c87a 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>
2022-11-11 11:19:21 +01:00

45 lines
1.8 KiB
Text

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
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;
};
}; }; };
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */