1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: UnoControlSpinButtonModel.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_awt_UnoControlSpinButtonModel_idl__
31 #define __com_sun_star_awt_UnoControlSpinButtonModel_idl__
33 #ifndef __com_sun_star_awt_UnoControlModel_idl__
34 #include
<com
/sun
/star
/awt
/UnoControlModel.idl
>
37 #ifndef __com_sun_star_util_Color_idl__
38 #include
<com
/sun
/star
/util
/Color.idl
>
42 //=============================================================================
44 module com
{ module sun
{ module star
{ module awt
{
46 //=============================================================================
48 /** specifies the standard model of an <type>UnoControlSpinButton</type>.
50 <p>A spin button is a control which has a numeric value associated with it,
51 and allows to change this value using two spin buttons.</p>
53 <p>A spin button is similar to a scroll bar, but it usually has no
54 (own) visual representation of the associated value, but is used to propagate
55 it's value to other controls.</p>
57 @see UnoControlScrollBarModel
59 service UnoControlSpinButtonModel
61 service com
::sun
::star
::awt
::UnoControlModel
;
63 //-------------------------------------------------------------------------
65 /** specifies the border style of the control.
73 [property
] short Border
;
75 //-------------------------------------------------------------------------
77 /** specifies the color of the border, if present
79 <p>Not every border style (see <member>Border</member>) may support coloring.
80 For instance, usually a border with 3D effect will ignore the BorderColor setting.</p>
84 [optional, property
] long BorderColor
;
86 //-------------------------------------------------------------------------
88 /** determines whether the control is enabled or disabled.
90 [property
] boolean Enabled
;
92 //-------------------------------------------------------------------------
94 /** specifies the help text of the control.
96 [property
] string HelpText
;
98 //-------------------------------------------------------------------------
100 /** specifies the help URL of the control.
102 [property
] string HelpURL
;
104 //-------------------------------------------------------------------------
106 /** specifies the increment by which the value is changed when using operating
109 [property
] long SpinIncrement
;
111 //-------------------------------------------------------------------------
113 /** specifies the <type>ScrollBarOrientation</type> of the control.
115 [property
] long Orientation
;
117 //-------------------------------------------------------------------------
119 /** specifies whether the control will be printed with the document.
121 [property
] boolean Printable
;
123 //-------------------------------------------------------------------------
125 /** specifies the current value of the control.
127 [property
] long SpinValue
;
129 //-------------------------------------------------------------------------
131 /** specifies the minimum value of the control.
133 [property
] long SpinValueMin
;
135 //-------------------------------------------------------------------------
137 /** specifies the maximum value of the control.
139 [property
] long SpinValueMax
;
141 //-------------------------------------------------------------------------
143 /** specifies the RGB color to be used for the control
145 [property
] com
::sun
::star
::util
::Color BackgroundColor
;
147 //-------------------------------------------------------------------------
149 /** specifies the RGB color to be used when painting symbols which are
150 part of the control's appearance, such as the arrow buttons.
152 [property
] com
::sun
::star
::util
::Color SymbolColor
;
154 //-------------------------------------------------------------------------
156 /** specifies whether the mouse should show repeating behaviour, i.e.
157 repeatedly trigger an action when keeping pressed.
159 [property
] boolean Repeat
;
161 //-------------------------------------------------------------------------
163 /** specifies the mouse repeat delay, in milliseconds.
165 <p>When the user presses a mouse in a control area where this triggers
166 an action (such as spinning the value), then usual control implementations
167 allow to repeatedly trigger this action, without the need to release the
168 mouse button and to press it again. The delay between two such triggers
169 is specified with this property.</p>
171 [property
] long RepeatDelay
;
173 /** defines how the mouse wheel can be used to scroll through the control's content.
175 <p>Usually, the mouse wheel spins the numeric value displayed in the control. Using this property,
176 and one of the <type>MouseWheelBehavior</type> constants, you can control under which circumstances
177 this is possible.</p>
179 [optional, property
] short MouseWheelBehavior
;
182 //=============================================================================