Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / awt / UnoControlDateFieldModel.idl
bloba70adc8b019747c42bdac19b687f7228f0494233
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: UnoControlDateFieldModel.idl,v $
10 * $Revision: 1.12 $
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_UnoControlDateFieldModel_idl__
31 #define __com_sun_star_awt_UnoControlDateFieldModel_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>UnoControlDateField</type>.
54 published service UnoControlDateFieldModel
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 date displayed in the control.
91 <p>The date must be specified in the format YYYYMMDD.</p>
93 [property] long Date;
95 //-------------------------------------------------------------------------
97 /** specifies the format of the displayed date.
99 <pre>
100 0: system short
101 1: system short YY
102 2: system short YYYY
103 3: system long
104 4: short DDMMYY
105 5: short MMDDYY
106 6: short YYMMDD
107 7: short DDMMYYYY
108 8: short MMDDYYYY
109 9: short YYYYMMDD
110 10: short YYMMDD DIN5008
111 11: short YYYYMMDD DIN5008
112 </pre>
114 [property] short DateFormat;
116 //-------------------------------------------------------------------------
118 /** specifies the maximum date that can be entered.
120 [property] long DateMax;
122 //-------------------------------------------------------------------------
124 /** specifies the minimum date that can be entered.
126 [property] long DateMin;
128 //-------------------------------------------------------------------------
130 /** specifies, if the date century is displayed.
132 [property] boolean DateShowCentury;
134 //-------------------------------------------------------------------------
136 /** specifies, if the control has a dropdown button.
138 [property] boolean Dropdown;
140 //-------------------------------------------------------------------------
142 /** determines whether the control is enabled or disabled.
144 [property] boolean Enabled;
146 //-------------------------------------------------------------------------
148 /** specifies the font attributes of the text in the control.
150 [property] com::sun::star::awt::FontDescriptor FontDescriptor;
152 //-------------------------------------------------------------------------
154 /** specifies the <type scope="com::sun::star::text">FontEmphasis</type>
155 value of the text in the control.
157 [property] short FontEmphasisMark;
159 //-------------------------------------------------------------------------
161 /** specifies the <type scope="com::sun::star::text">FontRelief</type>
162 value of the text in the control.
164 [property] short FontRelief;
166 //-------------------------------------------------------------------------
168 /** specifies the help text of the control.
170 [property] string HelpText;
172 //-------------------------------------------------------------------------
174 /** specifies the help URL of the control.
176 [property] string HelpURL;
178 //-------------------------------------------------------------------------
180 /** specifies whether the selection in the control should be hidden when
181 the control is not active (focused).
183 @since OOo 2.0.0
185 [optional, property] boolean HideInactiveSelection;
187 //-------------------------------------------------------------------------
189 /** specifies that the control will be printed with the document.
191 [property] boolean Printable;
193 //-------------------------------------------------------------------------
195 /** specifies that the content of the control cannot be modified by the user.
197 [property] boolean ReadOnly;
199 //-------------------------------------------------------------------------
201 /** specifies whether the mouse should show repeating behaviour, i.e.
202 repeatedly trigger an action when keeping pressed.
204 @since OOo 2.0.0
206 [optional, property] boolean Repeat;
208 //-------------------------------------------------------------------------
210 /** specifies the mouse repeat delay, in milliseconds.
212 <p>When the user presses a mouse in a control area where this triggers
213 an action (such as spinning the value), then usual control implementations
214 allow to repeatedly trigger this action, without the need to release the
215 mouse button and to press it again. The delay between two such triggers
216 is specified with this property.</p>
218 @since OOo 2.0.0
220 [optional, property] long RepeatDelay;
222 //-------------------------------------------------------------------------
224 /** specifies that the control has a spin button.
226 [property] boolean Spin;
228 //-------------------------------------------------------------------------
230 /** specifies that the date is checked during the user input.
232 [property] boolean StrictFormat;
234 //-------------------------------------------------------------------------
236 /** specifies that the control can be reached with the TAB key.
238 [property] boolean Tabstop;
240 //-------------------------------------------------------------------------
242 /** specifies the text displayed in the control.
244 @since OOo 2.0.0
246 [optional, property] string Text;
248 //-------------------------------------------------------------------------
250 /** specifies the text color (RGB) of the control.
252 [property] com::sun::star::util::Color TextColor;
254 //-------------------------------------------------------------------------
256 /** specifies the text line color (RGB) of the control.
258 [property] com::sun::star::util::Color TextLineColor;
260 /** denotes the writing mode used in the control, as specified in the
261 <type scope="com::sun::star::text">WritingMode2</type> constants group.
263 <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and
264 <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p>
266 @since OOo 3.1
268 [optional, property] short WritingMode;
270 /** defines how the mouse wheel can be used to scroll through the control's content.
272 <p>Usually, the mouse wheel spins the numeric value displayed in the control. Using this property,
273 and one of the <type>MouseWheelBehavior</type> constants, you can control under which circumstances
274 this is possible.</p>
276 [optional, property] short MouseWheelBehavior;
279 //=============================================================================
281 }; }; }; };
283 #endif