1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef __com_sun_star_awt_UnoControlDateFieldModel_idl__
20 #define __com_sun_star_awt_UnoControlDateFieldModel_idl__
22 #include
<com
/sun
/star
/util
/Date.idl
>
23 #include
<com
/sun
/star
/awt
/FontDescriptor.idl
>
24 #include
<com
/sun
/star
/awt
/UnoControlModel.idl
>
26 #include
<com
/sun
/star
/util
/Color.idl
>
28 #include
<com
/sun
/star
/style
/VerticalAlignment.idl
>
31 module com
{ module sun
{ module star
{ module awt
{
34 /** specifies the standard model of an UnoControlDateField.
36 published service UnoControlDateFieldModel
38 service com
::sun
::star
::awt
::UnoControlModel
;
41 /** specifies the background color(RGB) of the control.
43 [property
] com
::sun
::star
::util
::Color BackgroundColor
;
46 /** specifies the border style of the control.
54 [property
] short Border
;
57 /** specifies the color of the border, if present
59 <p>Not every border style (see #Border) may support coloring.
60 For instance, usually a border with 3D effect will ignore the BorderColor setting.</p>
64 [optional, property
] long BorderColor
;
67 /** specifies the date displayed in the control.
69 [property
] ::com
::sun
::star
::util
::Date Date
;
72 /** specifies the format of the displayed date.
85 10: short YYMMDD DIN5008
86 11: short YYYYMMDD DIN5008
89 [property
] short DateFormat
;
92 /** specifies the maximum date that can be entered.
94 [property
] ::com
::sun
::star
::util
::Date DateMax
;
97 /** specifies the minimum date that can be entered.
99 [property
] ::com
::sun
::star
::util
::Date DateMin
;
102 /** specifies, if the date century is displayed.
104 [property
] boolean DateShowCentury
;
107 /** specifies, if the control has a dropdown button.
109 [property
] boolean Dropdown
;
112 /** determines whether the control is enabled or disabled.
114 [property
] boolean Enabled
;
117 /** specifies the font attributes of the text in the control.
119 [property
] com
::sun
::star
::awt
::FontDescriptor FontDescriptor
;
122 /** specifies the com::sun::star::text::FontEmphasis
123 value of the text in the control.
125 [property
] short FontEmphasisMark
;
128 /** specifies the com::sun::star::text::FontRelief
129 value of the text in the control.
131 [property
] short FontRelief
;
134 /** specifies the help text of the control.
136 [property
] string HelpText
;
139 /** specifies the help URL of the control.
141 [property
] string HelpURL
;
144 /** specifies whether the selection in the control should be hidden when
145 the control is not active (focused).
149 [optional, property
] boolean HideInactiveSelection
;
152 /** specifies that the control will be printed with the document.
154 [property
] boolean Printable
;
157 /** specifies that the content of the control cannot be modified by the user.
159 [property
] boolean ReadOnly;
162 /** specifies whether the mouse should show repeating behavior, i.e.
163 repeatedly trigger an action when keeping pressed.
167 [optional, property
] boolean Repeat
;
170 /** specifies the mouse repeat delay, in milliseconds.
172 <p>When the user presses a mouse in a control area where this triggers
173 an action (such as spinning the value), then usual control implementations
174 allow to repeatedly trigger this action, without the need to release the
175 mouse button and to press it again. The delay between two such triggers
176 is specified with this property.</p>
180 [optional, property
] long RepeatDelay
;
183 /** specifies that the control has a spin button.
185 [property
] boolean Spin
;
188 /** specifies that the date is checked during the user input.
190 [property
] boolean StrictFormat
;
193 /** specifies that the control can be reached with the TAB key.
195 [property
] boolean Tabstop
;
198 /** specifies the text displayed in the control.
202 [optional, property
] string Text
;
205 /** specifies the text color (RGB) of the control.
207 [property
] com
::sun
::star
::util
::Color TextColor
;
210 /** specifies the text line color (RGB) of the control.
212 [property
] com
::sun
::star
::util
::Color TextLineColor
;
214 /** denotes the writing mode used in the control, as specified in the
215 com::sun::star::text::WritingMode2 constants group.
217 <p>Only com::sun::star::text::WritingMode2::LR_TB and
218 com::sun::star::text::WritingMode2::RL_TB are supported at the moment.</p>
222 [optional, property
] short WritingMode
;
224 /** defines how the mouse wheel can be used to scroll through the control's content.
226 <p>Usually, the mouse wheel spins the numeric value displayed in the control. Using this property,
227 and one of the MouseWheelBehavior constants, you can control under which circumstances
228 this is possible.</p>
230 [optional, property
] short MouseWheelBehavior
;
233 /** specifies the vertical alignment of the text in the control.
237 [optional, property
] com
::sun
::star
::style
::VerticalAlignment VerticalAlign
;
245 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */