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 .
22 module com
{ module sun
{ module star
{ module awt
{
25 /** specifies the standard model of a UnoControlSpinButton.
27 <p>A spin button is a control which has a numeric value associated with it,
28 and allows to change this value using two spin buttons.</p>
30 <p>A spin button is similar to a scroll bar, but it usually has no
31 (own) visual representation of the associated value, but is used to propagate
32 its value to other controls.</p>
34 @see UnoControlScrollBarModel
36 service UnoControlSpinButtonModel
38 service com
::sun
::star
::awt
::UnoControlModel
;
41 /** specifies the border style of the control.
49 [property
] short Border
;
52 /** specifies the color of the border, if present
54 <p>Not every border style (see #Border) may support coloring.
55 For instance, usually a border with 3D effect will ignore the BorderColor setting.</p>
59 [optional, property
] long BorderColor
;
62 /** determines whether the control is enabled or disabled.
64 [property
] boolean Enabled
;
67 /** specifies the help text of the control.
69 [property
] string HelpText
;
72 /** specifies the help URL of the control.
74 [property
] string HelpURL
;
77 /** specifies the increment by which the value is changed when using operating
80 [property
] long SpinIncrement
;
83 /** specifies the ScrollBarOrientation of the control.
85 [property
] long Orientation
;
88 /** specifies whether the control will be printed with the document.
90 [property
] boolean Printable
;
93 /** specifies the current value of the control.
95 [property
] long SpinValue
;
98 /** specifies the minimum value of the control.
100 [property
] long SpinValueMin
;
103 /** specifies the maximum value of the control.
105 [property
] long SpinValueMax
;
108 /** specifies the RGB color to be used for the control
110 [property
] com
::sun
::star
::util
::Color BackgroundColor
;
113 /** specifies the RGB color to be used when painting symbols which are
114 part of the control's appearance, such as the arrow buttons.
116 [property
] com
::sun
::star
::util
::Color SymbolColor
;
119 /** specifies whether the mouse should show repeating behavior, i.e.
120 repeatedly trigger an action when keeping pressed.
122 [property
] boolean Repeat
;
125 /** specifies the mouse repeat delay, in milliseconds.
127 <p>When the user presses a mouse in a control area where this triggers
128 an action (such as spinning the value), then usual control implementations
129 allow to repeatedly trigger this action, without the need to release the
130 mouse button and to press it again. The delay between two such triggers
131 is specified with this property.</p>
133 [property
] long RepeatDelay
;
135 /** defines how the mouse wheel can be used to scroll through the control's content.
137 <p>Usually, the mouse wheel spins the numeric value displayed in the control. Using this property,
138 and one of the MouseWheelBehavior constants, you can control under which circumstances
139 this is possible.</p>
141 [optional, property
] short MouseWheelBehavior
;
147 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */