Bump for 3.6-28
[LibreOffice.git] / offapi / com / sun / star / awt / UnoControlDateFieldModel.idl
blobbd103b2339005f08cd7506e20ceb468fd4f985da
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_UnoControlDateFieldModel_idl__
29 #define __com_sun_star_awt_UnoControlDateFieldModel_idl__
31 #include <com/sun/star/awt/FontDescriptor.idl>
32 #include <com/sun/star/awt/UnoControlModel.idl>
34 #include <com/sun/star/util/Color.idl>
36 #include <com/sun/star/style/VerticalAlignment.idl>
38 //=============================================================================
40 module com { module sun { module star { module awt {
42 //=============================================================================
44 /** specifies the standard model of an <type>UnoControlDateField</type>.
46 published service UnoControlDateFieldModel
48 service com::sun::star::awt::UnoControlModel;
50 //-------------------------------------------------------------------------
52 /** specifies the background color(RGB) of the control.
54 [property] com::sun::star::util::Color BackgroundColor;
56 //-------------------------------------------------------------------------
58 /** specifies the border style of the control.
60 <pre>
61 0: No border
62 1: 3D border
63 2: simple border
64 </pre>
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>
75 @since OOo 2.0
77 [optional, property] long BorderColor;
79 //-------------------------------------------------------------------------
81 /** specifies the date displayed in the control.
83 <p>The date must be specified in the format YYYYMMDD.</p>
85 [property] long Date;
87 //-------------------------------------------------------------------------
89 /** specifies the format of the displayed date.
91 <pre>
92 0: system short
93 1: system short YY
94 2: system short YYYY
95 3: system long
96 4: short DDMMYY
97 5: short MMDDYY
98 6: short YYMMDD
99 7: short DDMMYYYY
100 8: short MMDDYYYY
101 9: short YYYYMMDD
102 10: short YYMMDD DIN5008
103 11: short YYYYMMDD DIN5008
104 </pre>
106 [property] short DateFormat;
108 //-------------------------------------------------------------------------
110 /** specifies the maximum date that can be entered.
112 [property] long DateMax;
114 //-------------------------------------------------------------------------
116 /** specifies the minimum date that can be entered.
118 [property] long DateMin;
120 //-------------------------------------------------------------------------
122 /** specifies, if the date century is displayed.
124 [property] boolean DateShowCentury;
126 //-------------------------------------------------------------------------
128 /** specifies, if the control has a dropdown button.
130 [property] boolean Dropdown;
132 //-------------------------------------------------------------------------
134 /** determines whether the control is enabled or disabled.
136 [property] boolean Enabled;
138 //-------------------------------------------------------------------------
140 /** specifies the font attributes of the text in the control.
142 [property] com::sun::star::awt::FontDescriptor FontDescriptor;
144 //-------------------------------------------------------------------------
146 /** specifies the <type scope="com::sun::star::text">FontEmphasis</type>
147 value of the text in the control.
149 [property] short FontEmphasisMark;
151 //-------------------------------------------------------------------------
153 /** specifies the <type scope="com::sun::star::text">FontRelief</type>
154 value of the text in the control.
156 [property] short FontRelief;
158 //-------------------------------------------------------------------------
160 /** specifies the help text of the control.
162 [property] string HelpText;
164 //-------------------------------------------------------------------------
166 /** specifies the help URL of the control.
168 [property] string HelpURL;
170 //-------------------------------------------------------------------------
172 /** specifies whether the selection in the control should be hidden when
173 the control is not active (focused).
175 @since OOo 2.0
177 [optional, property] boolean HideInactiveSelection;
179 //-------------------------------------------------------------------------
181 /** specifies that the control will be printed with the document.
183 [property] boolean Printable;
185 //-------------------------------------------------------------------------
187 /** specifies that the content of the control cannot be modified by the user.
189 [property] boolean ReadOnly;
191 //-------------------------------------------------------------------------
193 /** specifies whether the mouse should show repeating behavior, i.e.
194 repeatedly trigger an action when keeping pressed.
196 @since OOo 2.0
198 [optional, property] boolean Repeat;
200 //-------------------------------------------------------------------------
202 /** specifies the mouse repeat delay, in milliseconds.
204 <p>When the user presses a mouse in a control area where this triggers
205 an action (such as spinning the value), then usual control implementations
206 allow to repeatedly trigger this action, without the need to release the
207 mouse button and to press it again. The delay between two such triggers
208 is specified with this property.</p>
210 @since OOo 2.0
212 [optional, property] long RepeatDelay;
214 //-------------------------------------------------------------------------
216 /** specifies that the control has a spin button.
218 [property] boolean Spin;
220 //-------------------------------------------------------------------------
222 /** specifies that the date is checked during the user input.
224 [property] boolean StrictFormat;
226 //-------------------------------------------------------------------------
228 /** specifies that the control can be reached with the TAB key.
230 [property] boolean Tabstop;
232 //-------------------------------------------------------------------------
234 /** specifies the text displayed in the control.
236 @since OOo 2.0
238 [optional, property] string Text;
240 //-------------------------------------------------------------------------
242 /** specifies the text color (RGB) of the control.
244 [property] com::sun::star::util::Color TextColor;
246 //-------------------------------------------------------------------------
248 /** specifies the text line color (RGB) of the control.
250 [property] com::sun::star::util::Color TextLineColor;
252 /** denotes the writing mode used in the control, as specified in the
253 <type scope="com::sun::star::text">WritingMode2</type> constants group.
255 <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and
256 <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p>
258 @since OOo 3.1
260 [optional, property] short WritingMode;
262 /** defines how the mouse wheel can be used to scroll through the control's content.
264 <p>Usually, the mouse wheel spins the numeric value displayed in the control. Using this property,
265 and one of the <type>MouseWheelBehavior</type> constants, you can control under which circumstances
266 this is possible.</p>
268 [optional, property] short MouseWheelBehavior;
270 //-------------------------------------------------------------------------
272 /** specifies the vertical alignment of the text in the control.
274 @since OOo 3.3
276 [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign;
279 //=============================================================================
281 }; }; }; };
283 #endif
285 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */