Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / awt / UnoControlFormattedFieldModel.idl
blob2fe70957691a7b38cb822b610fe4626907fe177e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef __com_sun_star_awt_UnoControlFormattedFieldModel_idl__
20 #define __com_sun_star_awt_UnoControlFormattedFieldModel_idl__
22 #include <com/sun/star/awt/FontDescriptor.idl>
23 #include <com/sun/star/awt/UnoControlModel.idl>
24 #include <com/sun/star/util/Color.idl>
25 #include <com/sun/star/util/XNumberFormatsSupplier.idl>
26 #include <com/sun/star/style/VerticalAlignment.idl>
29 module com { module sun { module star { module awt {
32 /** specifies the standard model of an UnoControlFormattedField .
34 published service UnoControlFormattedFieldModel
36 service com::sun::star::awt::UnoControlModel;
39 /** specifies the horizontal alignment of the text in the control.
41 <pre>
42 0: left
43 1: center
44 2: right
45 </pre>
47 [property] short Align;
50 /** specifies the background color (RGB) of the control.
52 [property] com::sun::star::util::Color BackgroundColor;
55 /** specifies the border style of the control.
57 <pre>
58 0: No border
59 1: 3D border
60 2: simple border
61 </pre>
63 [property] short Border;
66 /** specifies the color of the border, if present
68 <p>Not every border style (see #Border) may support coloring.
69 For instance, usually a border with 3D effect will ignore the BorderColor setting.</p>
71 @since OOo 2.0
73 [optional, property] long BorderColor;
76 /** specifies the default value of the formatted field.
78 <p>This may be a numeric value (double) or a string, depending on
79 the formatting of the field.</p>
81 [property] any EffectiveDefault;
84 /** specifies the maximum value that can be entered.
86 <p>This property is ignored if the format of the field is no numeric
87 format.</p>
89 [property] double EffectiveMax;
92 /** specifies the minimum value that can be entered.
94 <p>This property is ignored if the format of the field is no numeric
95 format.</p>
97 [property] double EffectiveMin;
100 /** specifies the current value of the formatted field.
102 <p>This may be a numeric value (double) or a string, depending on
103 the formatting of the field.</p>
105 [property] double EffectiveValue;
108 /** determines whether the control is enabled or disabled.
110 [property] boolean Enabled;
113 /** specifies the font attributes of the text in the control.
115 [property] com::sun::star::awt::FontDescriptor FontDescriptor;
118 /** specifies the com::sun::star::text::FontEmphasis
119 value of the text in the control.
121 [property] short FontEmphasisMark;
124 /** specifies the com::sun::star::text::FontRelief
125 value of the text in the control.
127 [property] short FontRelief;
130 /** specifies the format to be used when formatting the field input
131 and output.
133 <p>This value is meaningful relative to the FormatsSupplier property
134 only.</p>
136 [property] long FormatKey;
139 /** supplies the formats the field should work with.
141 [property] com::sun::star::util::XNumberFormatsSupplier FormatsSupplier;
144 /** specifies the help text of the control.
146 [property] string HelpText;
149 /** specifies the help URL of the control.
151 [property] string HelpURL;
155 /** specifies whether the selection in the control should be hidden when
156 the control is not active (focused).
158 @since OOo 2.0
160 [optional, property] boolean HideInactiveSelection;
163 /** specifies the maximum character count.
165 <p>There's no limitation, if set to 0.</p>
167 [property] short MaxTextLen;
170 /** specifies that the control will be printed with the document.
172 [property] boolean Printable;
175 /** specifies that the content of the control cannot be modified by the
176 user.
178 [property] boolean ReadOnly;
181 /** specifies whether the mouse should show repeating behavior, i.e.
182 repeatedly trigger an action when keeping pressed.
184 @since OOo 2.0
186 [optional, property] boolean Repeat;
189 /** specifies the mouse repeat delay, in milliseconds.
191 <p>When the user presses a mouse in a control area where this triggers
192 an action (such as spinning the value), then usual control implementations
193 allow to repeatedly trigger this action, without the need to release the
194 mouse button and to press it again. The delay between two such triggers
195 is specified with this property.</p>
197 @since OOo 2.0
199 [optional, property] long RepeatDelay;
202 /** specifies that the control has a spin button.
204 [property] boolean Spin;
207 /** specifies that the text is checked during the user input.
209 <p>This property is optional - not every component implementing this
210 service is required to provide it, as real-time input checking on a
211 formatted field may be pretty expensive.</p>
213 [optional, property] boolean StrictFormat;
216 /** specifies that the control can be reached with the TAB key.
218 [property] boolean Tabstop;
221 /** specifies the text displayed in the control.
223 [property] string Text;
226 /** specifies the text color (RGB) of the control.
228 [property] com::sun::star::util::Color TextColor;
231 /** specifies the text line color (RGB) of the control.
233 [property] com::sun::star::util::Color TextLineColor;
236 /** specifies that the text is treated as a number.
238 [property] boolean TreatAsNumber;
240 /** denotes the writing mode used in the control, as specified in the
241 com::sun::star::text::WritingMode2 constants group.
243 <p>Only com::sun::star::text::WritingMode2::LR_TB and
244 com::sun::star::text::WritingMode2::RL_TB are supported at the moment.</p>
246 @since OOo 3.1
248 [optional, property] short WritingMode;
250 /** defines how the mouse wheel can be used to scroll through the control's content.
252 <p>Usually, the mouse wheel spins the numeric value displayed in the control. Using this property,
253 and one of the MouseWheelBehavior constants, you can control under which circumstances
254 this is possible.</p>
256 [optional, property] short MouseWheelBehavior;
259 /** specifies the vertical alignment of the text in the control.
261 @since OOo 3.3
263 [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign;
267 }; }; }; };
269 #endif
271 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */