office-gobmx/oovbaapi/ooo/vba/word/XFormField.idl
Justin Luth 88d4e74169 tdf#151548 vba FormFields: implement Range
Msgbox (FormFields("text1").Range.Text)

Change-Id: Iac195e09bd3f9619890b336a0cb537a1acd00049
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144136
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2022-12-16 07:39:43 +00:00

84 lines
3.3 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 XRange;
interface XFormField
{
interface ooo::vba::XHelperInterface;
interface com::sun::star::script::XDefaultProperty;
/// Default member: returns the field type from WdFieldType
[attribute, readonly] long Type;
/**
* Returns or sets true if references to the specified form field
* are automatically updated whenever the field is exited.
*/
[attribute] boolean CalculateOnExit;
/// Returns or sets a string that represents the result of the specified form field
[attribute] string Result;
/// Returns or sets true if a form field is enabled
[attribute] boolean Enabled;
/// Returns or sets the macro name that runs on keyboard (tab) navigation into the field
[attribute] string EntryMacro;
/// Returns or sets an exit macro name that runs on keyboard (tab) navigation out of the field
[attribute] string ExitMacro;
/**
* Returns or sets the text that's displayed in a message box
* when the form field has the focus and the user presses F1.
*
* When OwnHelp is False, HelpText specifies the name of an AutoText entry
* that contains help text for the form field
*/
[attribute] string HelpText;
/**
* Returns or sets the specifies the source of the F1 text that's displayed in a message box
* If True, the text specified by the HelpText property is displayed.
* If False, the text in the AutoText entry specified by the HelpText property is displayed.
*/
[attribute] boolean OwnHelp;
/// returns or sets the name of the specified object.
[attribute] string Name;
/// Returns or sets the text that is displayed in the status bar when a form field has the focus
[attribute] string StatusText;
/** OwnStatus:
* If True, the text specified by the StatusText property is displayed.
* If False, the text of the AutoText entry specified by the StatusText property is displayed.
*/
[attribute] boolean OwnStatus;
any CheckBox();
any DropDown();
any TextInput();
/// Returns the next form field in the collection.
any Next();
/// returns the previous form field in the collection.
any Previous();
/**
* Represents a contiguous area in a document.
* Each Range object is defined by a starting and ending character position.
*/
XRange Range();
};
}; }; };
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */