update dev300-m58
[ooovba.git] / offapi / com / sun / star / awt / UnoControlCurrencyFieldModel.idl
blob65da33c2f4399c3dbf1fb42688a391ca98b7c7f3
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: UnoControlCurrencyFieldModel.idl,v $
10 * $Revision: 1.16 $
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_UnoControlCurrencyFieldModel_idl__
31 #define __com_sun_star_awt_UnoControlCurrencyFieldModel_idl__
33 #ifndef __com_sun_star_awt_FontDescriptor_idl__
34 #include <com/sun/star/awt/FontDescriptor.idl>
35 #endif
37 #ifndef __com_sun_star_awt_UnoControlModel_idl__
38 #include <com/sun/star/awt/UnoControlModel.idl>
39 #endif
41 #ifndef __com_sun_star_util_Color_idl__
42 #include <com/sun/star/util/Color.idl>
43 #endif
46 //=============================================================================
48 module com { module sun { module star { module awt {
50 //=============================================================================
52 /** specifies the standard model of an <type>UnoControlCurrencyField</type>.
54 published service UnoControlCurrencyFieldModel
56 service com::sun::star::awt::UnoControlModel;
58 //-------------------------------------------------------------------------
60 /** specifies the background color (RGB) of the control.
62 [property] com::sun::star::util::Color BackgroundColor;
64 //-------------------------------------------------------------------------
66 /** specifies the border style of the control.
68 <pre>
69 0: No border
70 1: 3D border
71 2: simple border
72 </pre>
74 [property] short Border;
76 //-------------------------------------------------------------------------
78 /** specifies the color of the border, if present
80 <p>Not every border style (see <member>Border</member>) may support coloring.
81 For instance, usually a border with 3D effect will ignore the BorderColor setting.</p>
83 @since OOo 2.0.0
85 [optional, property] long BorderColor;
87 //-------------------------------------------------------------------------
89 /** specifies the currency symbol.
91 [property] string CurrencySymbol;
93 //-------------------------------------------------------------------------
95 /** specifies the decimal accuracy.
97 [property] short DecimalAccuracy;
99 //-------------------------------------------------------------------------
101 /** determines whether the control is enabled or disabled.
103 [property] boolean Enabled;
105 //-------------------------------------------------------------------------
107 /** specifies the font attributes of the text in the control.
109 [property] com::sun::star::awt::FontDescriptor FontDescriptor;
111 //-------------------------------------------------------------------------
113 /** specifies the <type scope="com::sun::star::text">FontEmphasis</type>
114 value of the text in the control.
116 [property] short FontEmphasisMark;
118 //-------------------------------------------------------------------------
120 /** specifies the <type scope="com::sun::star::text">FontRelief</type>
121 value of the text in the control.
123 [property] short FontRelief;
125 //-------------------------------------------------------------------------
127 /** specifies the help text of the control.
129 [property] string HelpText;
131 //-------------------------------------------------------------------------
133 /** specifies the help URL of the control.
135 [property] string HelpURL;
137 //-------------------------------------------------------------------------
139 /** specifies whether the selection in the control should be hidden when
140 the control is not active (focused).
142 @since OOo 2.0.0
144 [optional, property] boolean HideInactiveSelection;
146 //-------------------------------------------------------------------------
148 /** specifies whether the currency symbol is to be prepended.
151 [property] boolean PrependCurrencySymbol;
153 //-------------------------------------------------------------------------
155 /** specifies that the control will be printed with the document.
157 [property] boolean Printable;
159 //-------------------------------------------------------------------------
161 /** specifies that the content of the control cannot be modified by the user.
163 [property] boolean ReadOnly;
165 //-------------------------------------------------------------------------
167 /** specifies whether the mouse should show repeating behaviour, i.e.
168 repeatedly trigger an action when keeping pressed.
170 @since OOo 2.0.0
172 [optional, property] boolean Repeat;
174 //-------------------------------------------------------------------------
176 /** specifies the mouse repeat delay, in milliseconds.
178 <p>When the user presses a mouse in a control area where this triggers
179 an action (such as spinning the value), then usual control implementations
180 allow to repeatedly trigger this action, without the need to release the
181 mouse button and to press it again. The delay between two such triggers
182 is specified with this property.</p>
184 @since OOo 2.0.0
186 [optional, property] long RepeatDelay;
188 //-------------------------------------------------------------------------
190 /** specifies whether the thousands separator is to be displayed.
192 [property] boolean ShowThousandsSeparator;
194 //-------------------------------------------------------------------------
196 /** specifies that the control has a spin button.
198 [property] boolean Spin;
200 //-------------------------------------------------------------------------
202 /** specifies that the value is checked during the user input.
204 [property] boolean StrictFormat;
206 //-------------------------------------------------------------------------
208 /** specifies that the control can be reached with the TAB key.
210 [property] boolean Tabstop;
212 //-------------------------------------------------------------------------
214 /** specifies the text color (RGB) of the control.
216 [property] com::sun::star::util::Color TextColor;
218 //-------------------------------------------------------------------------
220 /** specifies the text line color (RGB) of the control.
222 [property] com::sun::star::util::Color TextLineColor;
224 //-------------------------------------------------------------------------
226 /** specifies the value displayed in the control.
228 [property] double Value;
230 //-------------------------------------------------------------------------
232 /** specifies the maximum value that can be entered.
234 [property] double ValueMax;
236 //-------------------------------------------------------------------------
238 /** specifies the minimum value that can be entered.
240 [property] double ValueMin;
242 //-------------------------------------------------------------------------
244 /** specifies the value step when using the spin button.
246 [property] double ValueStep;
248 /** denotes the writing mode used in the control, as specified in the
249 <type scope="com::sun::star::text">WritingMode2</type> constants group.
251 <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and
252 <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p>
254 @since OOo 3.1
256 [optional, property] short WritingMode;
258 /** defines how the mouse wheel can be used to scroll through the control's content.
260 <p>Usually, the mouse wheel spins the numeric value displayed in the control. Using this property,
261 and one of the <type>MouseWheelBehavior</type> constants, you can control under which circumstances
262 this is possible.</p>
264 [optional, property] short MouseWheelBehavior;
267 //=============================================================================
269 }; }; }; };
271 #endif