Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / awt / UnoControlNumericFieldModel.idl
blobb4512cb788577b13daaa189b9a2c91991f0a9ade
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_UnoControlNumericFieldModel_idl__
20 #define __com_sun_star_awt_UnoControlNumericFieldModel_idl__
22 #include <com/sun/star/awt/FontDescriptor.idl>
23 #include <com/sun/star/awt/UnoControlModel.idl>
25 #include <com/sun/star/util/Color.idl>
27 #include <com/sun/star/style/VerticalAlignment.idl>
30 module com { module sun { module star { module awt {
33 /** specifies the standard model of an UnoControlNumericField.
35 published service UnoControlNumericFieldModel
37 service com::sun::star::awt::UnoControlModel;
40 /** specifies the background color(RGB) of the control.
42 [property] com::sun::star::util::Color BackgroundColor;
45 /** specifies the border style of the control.
47 <pre>
48 0: No border
49 1: 3D border
50 2: simple border
51 </pre>
53 [property] short Border;
56 /** specifies the color of the border, if present
58 <p>Not every border style (see #Border) may support coloring.
59 For instance, usually a border with 3D effect will ignore the BorderColor setting.</p>
61 @since OOo 2.0
63 [optional, property] long BorderColor;
66 /** specifies the decimal accuracy.
68 [property] short DecimalAccuracy;
71 /** determines whether the control is enabled or disabled.
73 [property] boolean Enabled;
76 /** specifies the font attributes of the text in the control.
78 [property] com::sun::star::awt::FontDescriptor FontDescriptor;
81 /** specifies the com::sun::star::text::FontEmphasis
82 value of the text in the control.
84 [property] short FontEmphasisMark;
87 /** specifies the com::sun::star::text::FontRelief
88 value of the text in the control.
90 [property] short FontRelief;
93 /** specifies the help text of the control.
95 [property] string HelpText;
98 /** specifies the help URL of the control.
100 [property] string HelpURL;
103 /** specifies whether the selection in the control should be hidden when
104 the control is not active (focused).
106 @since OOo 2.0
108 [optional, property] boolean HideInactiveSelection;
111 /** specifies that the control will be printed with the document.
113 [property] boolean Printable;
116 /** specifies that the content of the control cannot be modified by the
117 user.
119 [property] boolean ReadOnly;
122 /** specifies whether the mouse should show repeating behavior, i.e.
123 repeatedly trigger an action when keeping pressed.
125 @since OOo 2.0
127 [optional, property] boolean Repeat;
130 /** specifies the mouse repeat delay, in milliseconds.
132 <p>When the user presses a mouse in a control area where this triggers
133 an action (such as spinning the value), then usual control implementations
134 allow to repeatedly trigger this action, without the need to release the
135 mouse button and to press it again. The delay between two such triggers
136 is specified with this property.</p>
138 @since OOo 2.0
140 [optional, property] long RepeatDelay;
143 /** specifies whether the thousands separator is to be displayed.
145 [property] boolean ShowThousandsSeparator;
148 /** specifies that the control has a spin button.
150 [property] boolean Spin;
153 /** specifies that the value is checked during the user input.
155 [property] boolean StrictFormat;
158 /** specifies that the control can be reached with the TAB key.
160 [property] boolean Tabstop;
163 /** specifies the text color (RGB) of the control.
165 [property] com::sun::star::util::Color TextColor;
168 /** specifies the text line color (RGB) of the control.
170 [property] com::sun::star::util::Color TextLineColor;
173 /** specifies the value displayed in the control.
175 [property] double Value;
178 /** specifies the maximum value that can be entered.
180 [property] double ValueMax;
183 /** specifies the minimum value that can be entered.
185 [property] double ValueMin;
188 /** specifies the value step when using the spin button.
190 [property] double ValueStep;
192 /** denotes the writing mode used in the control, as specified in the
193 com::sun::star::text::WritingMode2 constants group.
195 <p>Only com::sun::star::text::WritingMode2::LR_TB and
196 com::sun::star::text::WritingMode2::RL_TB are supported at the moment.</p>
198 @since OOo 3.1
200 [optional, property] short WritingMode;
202 /** defines how the mouse wheel can be used to scroll through the control's content.
204 <p>Usually, the mouse wheel spins the numeric value displayed in the control. Using this property,
205 and one of the MouseWheelBehavior constants, you can control under which circumstances
206 this is possible.</p>
208 [optional, property] short MouseWheelBehavior;
211 /** specifies the vertical alignment of the text in the control.
213 @since OOo 3.3
215 [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign;
219 }; }; }; };
221 #endif
223 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */