1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: UnoControlFormattedFieldModel.idl,v $
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_UnoControlFormattedFieldModel_idl__
31 #define __com_sun_star_awt_UnoControlFormattedFieldModel_idl__
33 #ifndef __com_sun_star_awt_FontDescriptor_idl__
34 #include
<com
/sun
/star
/awt
/FontDescriptor.idl
>
37 #ifndef __com_sun_star_awt_UnoControlModel_idl__
38 #include
<com
/sun
/star
/awt
/UnoControlModel.idl
>
41 #ifndef __com_sun_star_util_Color_idl__
42 #include
<com
/sun
/star
/util
/Color.idl
>
45 #ifndef __com_sun_star_util_XNumberFormatsSupplier_idl__
46 #include
<com
/sun
/star
/util
/XNumberFormatsSupplier.idl
>
50 //=============================================================================
52 module com
{ module sun
{ module star
{ module awt
{
54 //=============================================================================
56 /** specifies the standard model of an <type>UnoControlFormattedField </type>.
58 published service UnoControlFormattedFieldModel
60 service com
::sun
::star
::awt
::UnoControlModel
;
62 //-------------------------------------------------------------------------
64 /** specifies the horiztonal alignment of the text in the control.
72 [property
] short Align
;
74 //-------------------------------------------------------------------------
76 /** specifies the background color (RGB) of the control.
78 [property
] com
::sun
::star
::util
::Color BackgroundColor
;
80 //-------------------------------------------------------------------------
82 /** specifies the border style of the control.
90 [property
] short Border
;
92 //-------------------------------------------------------------------------
94 /** specifies the color of the border, if present
96 <p>Not every border style (see <member>Border</member>) may support coloring.
97 For instance, usually a border with 3D effect will ignore the BorderColor setting.</p>
101 [optional, property
] long BorderColor
;
103 //-------------------------------------------------------------------------
105 /** specifies the default value of the formatted field.
107 <p>This may be a numeric value (double) or a string, depending on
108 the formatting of the field.</p>
110 [property
] any EffectiveDefault
;
112 //-------------------------------------------------------------------------
114 /** specifies the maximum value that can be entered.
116 <p>This property is ignored if the format of the field is no numeric
119 [property
] double EffectiveMax
;
121 //-------------------------------------------------------------------------
123 /** specifies the minimum value that can be entered.
125 <p>This property is ignored if the format of the field is no numeric
128 [property
] double EffectiveMin
;
130 //-------------------------------------------------------------------------
132 /** specifies the current value of the formatted field.
134 <p>This may be a numeric value (double) or a string, depending on
135 the formatting of the field.</p>
137 [property
] double EffectiveValue
;
139 //-------------------------------------------------------------------------
141 /** determines whether the control is enabled or disabled.
143 [property
] boolean Enabled
;
145 //-------------------------------------------------------------------------
147 /** specifies the font attributes of the text in the control.
149 [property
] com
::sun
::star
::awt
::FontDescriptor FontDescriptor
;
151 //-------------------------------------------------------------------------
153 /** specifies the <type scope="com::sun::star::text">FontEmphasis</type>
154 value of the text in the control.
156 [property
] short FontEmphasisMark
;
158 //-------------------------------------------------------------------------
160 /** specifies the <type scope="com::sun::star::text">FontRelief</type>
161 value of the text in the control.
163 [property
] short FontRelief
;
165 //-------------------------------------------------------------------------
167 /** specifies the format to be used when formatting the field input
170 <p>This value is meaningful relative to the FormatsSupplier property
173 [property
] long FormatKey
;
175 //-------------------------------------------------------------------------
177 /** supplies the formats the field should work with.
179 [property
] com
::sun
::star
::util
::XNumberFormatsSupplier FormatsSupplier
;
181 //-------------------------------------------------------------------------
183 /** specifies the help text of the control.
185 [property
] string HelpText
;
187 //-------------------------------------------------------------------------
189 /** specifies the help URL of the control.
191 [property
] string HelpURL
;
194 //-------------------------------------------------------------------------
196 /** specifies whether the selection in the control should be hidden when
197 the control is not active (focused).
201 [optional, property
] boolean HideInactiveSelection
;
203 //-------------------------------------------------------------------------
205 /** specifies the maximum character count.
207 <p>There's no limitation, if set to 0.</p>
209 [property
] short MaxTextLen
;
211 //-------------------------------------------------------------------------
213 /** specifies that the control will be printed with the document.
215 [property
] boolean Printable
;
217 //-------------------------------------------------------------------------
219 /** specifies that the content of the control cannot be modified by the
222 [property
] boolean ReadOnly;
224 //-------------------------------------------------------------------------
226 /** specifies whether the mouse should show repeating behaviour, i.e.
227 repeatedly trigger an action when keeping pressed.
231 [optional, property
] boolean Repeat
;
233 //-------------------------------------------------------------------------
235 /** specifies the mouse repeat delay, in milliseconds.
237 <p>When the user presses a mouse in a control area where this triggers
238 an action (such as spinning the value), then usual control implementations
239 allow to repeatedly trigger this action, without the need to release the
240 mouse button and to press it again. The delay between two such triggers
241 is specified with this property.</p>
245 [optional, property
] long RepeatDelay
;
247 //-------------------------------------------------------------------------
249 /** specifies that the control has a spin button.
251 [property
] boolean Spin
;
253 //-------------------------------------------------------------------------
255 /** specifies that the text is checked during the user input.
257 <p>This property is optional - not every component implementing this
258 service is required to provide it, as real-time input checking on a
259 formatted field may be pretty expensive.</p>
261 [optional, property
] boolean StrictFormat
;
263 //-------------------------------------------------------------------------
265 /** specifies that the control can be reached with the TAB key.
267 [property
] boolean Tabstop
;
269 //-------------------------------------------------------------------------
271 /** specifies the text displayed in the control.
273 [property
] string Text
;
275 //-------------------------------------------------------------------------
277 /** specifies the text color (RGB) of the control.
279 [property
] com
::sun
::star
::util
::Color TextColor
;
281 //-------------------------------------------------------------------------
283 /** specifies the text line color (RGB) of the control.
285 [property
] com
::sun
::star
::util
::Color TextLineColor
;
287 //-------------------------------------------------------------------------
289 /** specifies that the text is treated as a number.
291 [property
] boolean TreatAsNumber
;
293 /** denotes the writing mode used in the control, as specified in the
294 <type scope="com::sun::star::text">WritingMode2</type> constants group.
296 <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and
297 <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p>
301 [optional, property
] short WritingMode
;
303 /** defines how the mouse wheel can be used to scroll through the control's content.
305 <p>Usually, the mouse wheel spins the numeric value displayed in the control. Using this property,
306 and one of the <type>MouseWheelBehavior</type> constants, you can control under which circumstances
307 this is possible.</p>
309 [optional, property
] short MouseWheelBehavior
;
312 //=============================================================================