Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / awt / UnoControlTimeFieldModel.idl
blobbd9da9755a246fff63507693646245151a40f71f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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_UnoControlTimeFieldModel_idl__
20 #define __com_sun_star_awt_UnoControlTimeFieldModel_idl__
22 #include <com/sun/star/util/Time.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 UnoControlTimeField.
36 published service UnoControlTimeFieldModel
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.
48 <pre>
49 0: No border
50 1: 3D border
51 2: simple border
52 </pre>
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>
62 @since OOo 2.0
64 [optional, property] long BorderColor;
67 /** determines whether the control is enabled or disabled.
69 [property] boolean Enabled;
72 /** specifies the font attributes of the text in the control.
74 [property] com::sun::star::awt::FontDescriptor FontDescriptor;
77 /** specifies the com::sun::star::text::FontEmphasis
78 value of the text in the control.
80 [property] short FontEmphasisMark;
83 /** specifies the com::sun::star::text::FontRelief
84 value of the text in the control.
86 [property] short FontRelief;
89 /** specifies the help text of the control.
91 [property] string HelpText;
94 /** specifies the help URL of the control.
96 [property] string HelpURL;
99 /** specifies whether the selection in the control should be hidden when
100 the control is not active (focused).
102 @since OOo 2.0
104 [optional, property] boolean HideInactiveSelection;
107 /** specifies that the control will be printed with the document.
109 [property] boolean Printable;
112 /** specifies that the content of the control cannot be modified by the user.
114 [property] boolean ReadOnly;
117 /** specifies whether the mouse should show repeating behavior, i.e.
118 repeatedly trigger an action when keeping pressed.
120 @since OOo 2.0
122 [optional, property] boolean Repeat;
125 /** specifies the mouse repeat delay, in milliseconds.
127 <p>When the user presses a mouse in a control area where this triggers
128 an action (such as spinning the value), then usual control implementations
129 allow to repeatedly trigger this action, without the need to release the
130 mouse button and to press it again. The delay between two such triggers
131 is specified with this property.</p>
133 @since OOo 2.0
135 [optional, property] long RepeatDelay;
138 /** specifies that the control has a spin button.
140 [property] boolean Spin;
143 /** specifies that the date is checked during the user input.
145 [property] boolean StrictFormat;
148 /** specifies that the control can be reached with the TAB key.
150 [property] boolean Tabstop;
153 /** specifies the text displayed in the control.
155 @since OOo 2.0
157 [optional, property] string Text;
160 /** specifies the text color (RGB) of the control.
162 [property] com::sun::star::util::Color TextColor;
165 /** specifies the text line color (RGB) of the control.
167 [property] com::sun::star::util::Color TextLineColor;
170 /** specifies the time displayed in the control.
172 [property] com::sun::star::util::Time Time;
175 /** specifies the format of the displayed time.
177 <pre>
178 0: 24h short
179 1: 24h long
180 2: 12h short
181 3: 12h long
182 4: Duration short
183 5: Duration long
184 </pre>
186 [property] short TimeFormat;
189 /** specifies the maximum time that can be entered.
191 [property] com::sun::star::util::Time TimeMax;
194 /** specifies the minimum time that can be entered.
196 [property] com::sun::star::util::Time TimeMin;
198 /** denotes the writing mode used in the control, as specified in the
199 com::sun::star::text::WritingMode2 constants group.
201 <p>Only com::sun::star::text::WritingMode2::LR_TB and
202 com::sun::star::text::WritingMode2::RL_TB are supported at the moment.</p>
204 @since OOo 3.1
206 [optional, property] short WritingMode;
208 /** defines how the mouse wheel can be used to scroll through the control's content.
210 <p>Usually, the mouse wheel spins the numeric value displayed in the control. Using this property,
211 and one of the MouseWheelBehavior constants, you can control under which circumstances
212 this is possible.</p>
214 [optional, property] short MouseWheelBehavior;
217 /** specifies the vertical alignment of the text in the control.
219 @since OOo 3.3
221 [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign;
225 }; }; }; };
227 #endif
229 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */