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/.
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 .
21 module com
{ module sun
{ module star
{ module awt
{
24 /** specifies the standard model of a UnoControlNumericField.
26 published service UnoControlNumericFieldModel
28 service com
::sun
::star
::awt
::UnoControlModel
;
31 /** specifies the background color(RGB) of the control.
33 [property
] com
::sun
::star
::util
::Color BackgroundColor
;
36 /** specifies the border style of the control.
44 [property
] short Border
;
47 /** specifies the color of the border, if present
49 <p>Not every border style (see #Border) may support coloring.
50 For instance, usually a border with 3D effect will ignore the BorderColor setting.</p>
54 [optional, property
] long BorderColor
;
57 /** specifies the decimal accuracy.
59 [property
] short DecimalAccuracy
;
62 /** determines whether the control is enabled or disabled.
64 [property
] boolean Enabled
;
67 /** specifies the font attributes of the text in the control.
69 [property
] com
::sun
::star
::awt
::FontDescriptor FontDescriptor
;
72 /** specifies the com::sun::star::text::FontEmphasis
73 value of the text in the control.
75 [property
] short FontEmphasisMark
;
78 /** specifies the com::sun::star::text::FontRelief
79 value of the text in the control.
81 [property
] short FontRelief
;
84 /** specifies the help text of the control.
86 [property
] string HelpText
;
89 /** specifies the help URL of the control.
91 [property
] string HelpURL
;
94 /** specifies whether the selection in the control should be hidden when
95 the control is not active (focused).
99 [optional, property
] boolean HideInactiveSelection
;
102 /** specifies that the control will be printed with the document.
104 [property
] boolean Printable
;
107 /** specifies that the content of the control cannot be modified by the
110 [property
] boolean ReadOnly;
113 /** specifies whether the mouse should show repeating behavior, i.e.
114 repeatedly trigger an action when keeping pressed.
118 [optional, property
] boolean Repeat
;
121 /** specifies the mouse repeat delay, in milliseconds.
123 <p>When the user presses a mouse in a control area where this triggers
124 an action (such as spinning the value), then usual control implementations
125 allow to repeatedly trigger this action, without the need to release the
126 mouse button and to press it again. The delay between two such triggers
127 is specified with this property.</p>
131 [optional, property
] long RepeatDelay
;
134 /** specifies whether the thousands separator is to be displayed.
136 [property
] boolean ShowThousandsSeparator
;
139 /** specifies that the control has a spin button.
141 [property
] boolean Spin
;
144 /** specifies that the value is checked during the user input.
146 [property
] boolean StrictFormat
;
149 /** specifies that the control can be reached with the TAB key.
151 [property
] boolean Tabstop
;
154 /** specifies the text color (RGB) of the control.
156 [property
] com
::sun
::star
::util
::Color TextColor
;
159 /** specifies the text line color (RGB) of the control.
161 [property
] com
::sun
::star
::util
::Color TextLineColor
;
164 /** specifies the value displayed in the control.
166 [property
] double Value
;
169 /** specifies the maximum value that can be entered.
171 [property
] double ValueMax
;
174 /** specifies the minimum value that can be entered.
176 [property
] double ValueMin
;
179 /** specifies the value step when using the spin button.
181 [property
] double ValueStep
;
183 /** denotes the writing mode used in the control, as specified in the
184 com::sun::star::text::WritingMode2 constants group.
186 <p>Only com::sun::star::text::WritingMode2::LR_TB and
187 com::sun::star::text::WritingMode2::RL_TB are supported at the moment.</p>
191 [optional, property
] short WritingMode
;
193 /** defines how the mouse wheel can be used to scroll through the control's content.
195 <p>Usually, the mouse wheel spins the numeric value displayed in the control. Using this property,
196 and one of the MouseWheelBehavior constants, you can control under which circumstances
197 this is possible.</p>
199 [optional, property
] short MouseWheelBehavior
;
202 /** specifies the vertical alignment of the text in the control.
206 [optional, property
] com
::sun
::star
::style
::VerticalAlignment VerticalAlign
;
208 /** specifies the background color (RGB) of selected text in the control which is highlighted.
210 @since LibreOffice 7.5
212 [optional, property
] com
::sun
::star
::util
::Color HighlightColor
;
214 /** specifies the text color (RGB) of selected text in the control which is highlighted.
216 @since LibreOffice 7.5
218 [optional, property
] com
::sun
::star
::util
::Color HighlightTextColor
;
224 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */