1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 module com
{ module sun
{ module star
{ module text
{
12 /** This service specifies a content control with properties in a TextDocument.
14 A content control wraps one or more text portions and controls the behavior of that content.
16 @since LibreOffice 7.4
18 service ContentControl
21 /** Provides a way to insert the content control using insertTextContent().
23 interface com
::sun
::star
::text
::XTextContent
;
25 /** Current content is placeholder text.
27 [optional, property
] boolean ShowingPlaceHolder
;
29 /** Display the content control as a checkbox.
31 [optional, property
] boolean Checkbox
;
33 /** If Checkbox is true, is the checkbox checked?
35 [optional, property
] boolean Checked
;
37 /** If Checkbox is true, the value of a checked checkbox.
39 [optional, property
] string CheckedState
;
41 /** If Checkbox is true, the value of an unchecked checkbox.
43 [optional, property
] string UncheckedState
;
45 /** List items of a dropdown: DisplayText + Value pairs with string values for each item.
47 [optional, property
] sequence
< sequence
< com
::sun
::star
::beans
::PropertyValue
> > ListItems
;
49 /** Display the content control as a picture.
51 [optional, property
] boolean Picture
;
53 /** Display the content control as a date.
55 If true, a date picker is provided on the UI.
57 [optional, property
] boolean Date
;
59 /** If Date is true, the date format in a syntax accepted by the NumberFormatter.
61 [optional, property
] string DateFormat
;
63 /** If Date is true, the date's BCP 47 language tag.
65 [optional, property
] string DateLanguage
;
67 /** Date in YYYY-MM-DDT00:00:00Z format.
69 [optional, property
] string CurrentDate
;
71 /** Plain text, i.e. not rich text.
73 [optional, property
] boolean PlainText
;
75 /** The placeholder's doc part: just remembered.
77 [optional, property
] string PlaceholderDocPart
;
79 /** The data bindings's prefix mappings: just remembered.
81 [optional, property
] string DataBindingPrefixMappings
;
83 /** The data bindings's XPath: just remembered.
85 [optional, property
] string DataBindingXpath
;
87 /** The data bindings's store item ID: just remembered.
89 [optional, property
] string DataBindingStoreItemID
;
91 /** The color: just remembered.
93 [optional, property
] string Color
;
95 /** The appearance: just remembered.
97 @since LibreOffice 7.6
99 [optional, property
] string Appearance
;
101 /** Combo box that allows free-form text as well, i.e. not dropdown.
103 @since LibreOffice 7.5
105 [optional, property
] boolean ComboBox
;
107 /** Drop-down that does not allow free-form text, i.e. not combo box.
109 @since LibreOffice 7.5
111 [optional, property
] boolean DropDown
;
113 /** The alias: kind of a human-readable title / description, show up on the UI.
114 -also used by VBA to group controls into a smaller, indexed collection
116 @since LibreOffice 7.5
118 [optional, property
] string Alias
;
120 /** The tag: similar to Alias, but is meant to be machine-readable.
121 -also used by VBA to group controls into a smaller, indexed collection
123 @since LibreOffice 7.5
125 [optional, property
] string Tag
;
127 /** The formatted date string, based on DateFormat, DateLanguage and CurrentDate.
129 @since LibreOffice 7.5
131 [optional, property
, readonly] string DateString
;
133 /** A unique numeric id, used by macros to identify a specific control.
135 @since LibreOffice 7.5
137 [optional, property
] long Id;
139 /** Describes the order in which keyboard navigation moves between controls
141 @since LibreOffice 7.6
143 [optional, property
] unsigned long TabIndex
;
145 /** Describes whether the control itself and/or its data can be modified or deleted by the user.
147 @since LibreOffice 7.6
149 [optional, property
] string Lock
;
151 /** Indicates if the control accepts soft breaks.
153 @since LibreOffice 24.2
155 [optional, property
] string MultiLine
;
161 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */