1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef __com_sun_star_awt_UnoControlSpinButtonModel_idl__
29 #define __com_sun_star_awt_UnoControlSpinButtonModel_idl__
31 #include
<com
/sun
/star
/awt
/UnoControlModel.idl
>
32 #include
<com
/sun
/star
/util
/Color.idl
>
35 //=============================================================================
37 module com
{ module sun
{ module star
{ module awt
{
39 //=============================================================================
41 /** specifies the standard model of an <type>UnoControlSpinButton</type>.
43 <p>A spin button is a control which has a numeric value associated with it,
44 and allows to change this value using two spin buttons.</p>
46 <p>A spin button is similar to a scroll bar, but it usually has no
47 (own) visual representation of the associated value, but is used to propagate
48 it's value to other controls.</p>
50 @see UnoControlScrollBarModel
52 service UnoControlSpinButtonModel
54 service com
::sun
::star
::awt
::UnoControlModel
;
56 //-------------------------------------------------------------------------
58 /** specifies the border style of the control.
66 [property
] short Border
;
68 //-------------------------------------------------------------------------
70 /** specifies the color of the border, if present
72 <p>Not every border style (see <member>Border</member>) may support coloring.
73 For instance, usually a border with 3D effect will ignore the BorderColor setting.</p>
77 [optional, property
] long BorderColor
;
79 //-------------------------------------------------------------------------
81 /** determines whether the control is enabled or disabled.
83 [property
] boolean Enabled
;
85 //-------------------------------------------------------------------------
87 /** specifies the help text of the control.
89 [property
] string HelpText
;
91 //-------------------------------------------------------------------------
93 /** specifies the help URL of the control.
95 [property
] string HelpURL
;
97 //-------------------------------------------------------------------------
99 /** specifies the increment by which the value is changed when using operating
102 [property
] long SpinIncrement
;
104 //-------------------------------------------------------------------------
106 /** specifies the <type>ScrollBarOrientation</type> of the control.
108 [property
] long Orientation
;
110 //-------------------------------------------------------------------------
112 /** specifies whether the control will be printed with the document.
114 [property
] boolean Printable
;
116 //-------------------------------------------------------------------------
118 /** specifies the current value of the control.
120 [property
] long SpinValue
;
122 //-------------------------------------------------------------------------
124 /** specifies the minimum value of the control.
126 [property
] long SpinValueMin
;
128 //-------------------------------------------------------------------------
130 /** specifies the maximum value of the control.
132 [property
] long SpinValueMax
;
134 //-------------------------------------------------------------------------
136 /** specifies the RGB color to be used for the control
138 [property
] com
::sun
::star
::util
::Color BackgroundColor
;
140 //-------------------------------------------------------------------------
142 /** specifies the RGB color to be used when painting symbols which are
143 part of the control's appearance, such as the arrow buttons.
145 [property
] com
::sun
::star
::util
::Color SymbolColor
;
147 //-------------------------------------------------------------------------
149 /** specifies whether the mouse should show repeating behavior, i.e.
150 repeatedly trigger an action when keeping pressed.
152 [property
] boolean Repeat
;
154 //-------------------------------------------------------------------------
156 /** specifies the mouse repeat delay, in milliseconds.
158 <p>When the user presses a mouse in a control area where this triggers
159 an action (such as spinning the value), then usual control implementations
160 allow to repeatedly trigger this action, without the need to release the
161 mouse button and to press it again. The delay between two such triggers
162 is specified with this property.</p>
164 [property
] long RepeatDelay
;
166 /** defines how the mouse wheel can be used to scroll through the control's content.
168 <p>Usually, the mouse wheel spins the numeric value displayed in the control. Using this property,
169 and one of the <type>MouseWheelBehavior</type> constants, you can control under which circumstances
170 this is possible.</p>
172 [optional, property
] short MouseWheelBehavior
;
175 //=============================================================================
181 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */