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_UnoControlFormattedFieldModel_idl__
29 #define __com_sun_star_awt_UnoControlFormattedFieldModel_idl__
31 #include
<com
/sun
/star
/awt
/FontDescriptor.idl
>
32 #include
<com
/sun
/star
/awt
/UnoControlModel.idl
>
33 #include
<com
/sun
/star
/util
/Color.idl
>
34 #include
<com
/sun
/star
/util
/XNumberFormatsSupplier.idl
>
35 #include
<com
/sun
/star
/style
/VerticalAlignment.idl
>
37 //=============================================================================
39 module com
{ module sun
{ module star
{ module awt
{
41 //=============================================================================
43 /** specifies the standard model of an <type>UnoControlFormattedField </type>.
45 published service UnoControlFormattedFieldModel
47 service com
::sun
::star
::awt
::UnoControlModel
;
49 //-------------------------------------------------------------------------
51 /** specifies the horizontal alignment of the text in the control.
59 [property
] short Align
;
61 //-------------------------------------------------------------------------
63 /** specifies the background color (RGB) of the control.
65 [property
] com
::sun
::star
::util
::Color BackgroundColor
;
67 //-------------------------------------------------------------------------
69 /** specifies the border style of the control.
77 [property
] short Border
;
79 //-------------------------------------------------------------------------
81 /** specifies the color of the border, if present
83 <p>Not every border style (see <member>Border</member>) may support coloring.
84 For instance, usually a border with 3D effect will ignore the BorderColor setting.</p>
88 [optional, property
] long BorderColor
;
90 //-------------------------------------------------------------------------
92 /** specifies the default value of the formatted field.
94 <p>This may be a numeric value (double) or a string, depending on
95 the formatting of the field.</p>
97 [property
] any EffectiveDefault
;
99 //-------------------------------------------------------------------------
101 /** specifies the maximum value that can be entered.
103 <p>This property is ignored if the format of the field is no numeric
106 [property
] double EffectiveMax
;
108 //-------------------------------------------------------------------------
110 /** specifies the minimum value that can be entered.
112 <p>This property is ignored if the format of the field is no numeric
115 [property
] double EffectiveMin
;
117 //-------------------------------------------------------------------------
119 /** specifies the current value of the formatted field.
121 <p>This may be a numeric value (double) or a string, depending on
122 the formatting of the field.</p>
124 [property
] double EffectiveValue
;
126 //-------------------------------------------------------------------------
128 /** determines whether the control is enabled or disabled.
130 [property
] boolean Enabled
;
132 //-------------------------------------------------------------------------
134 /** specifies the font attributes of the text in the control.
136 [property
] com
::sun
::star
::awt
::FontDescriptor FontDescriptor
;
138 //-------------------------------------------------------------------------
140 /** specifies the <type scope="com::sun::star::text">FontEmphasis</type>
141 value of the text in the control.
143 [property
] short FontEmphasisMark
;
145 //-------------------------------------------------------------------------
147 /** specifies the <type scope="com::sun::star::text">FontRelief</type>
148 value of the text in the control.
150 [property
] short FontRelief
;
152 //-------------------------------------------------------------------------
154 /** specifies the format to be used when formatting the field input
157 <p>This value is meaningful relative to the FormatsSupplier property
160 [property
] long FormatKey
;
162 //-------------------------------------------------------------------------
164 /** supplies the formats the field should work with.
166 [property
] com
::sun
::star
::util
::XNumberFormatsSupplier FormatsSupplier
;
168 //-------------------------------------------------------------------------
170 /** specifies the help text of the control.
172 [property
] string HelpText
;
174 //-------------------------------------------------------------------------
176 /** specifies the help URL of the control.
178 [property
] string HelpURL
;
181 //-------------------------------------------------------------------------
183 /** specifies whether the selection in the control should be hidden when
184 the control is not active (focused).
188 [optional, property
] boolean HideInactiveSelection
;
190 //-------------------------------------------------------------------------
192 /** specifies the maximum character count.
194 <p>There's no limitation, if set to 0.</p>
196 [property
] short MaxTextLen
;
198 //-------------------------------------------------------------------------
200 /** specifies that the control will be printed with the document.
202 [property
] boolean Printable
;
204 //-------------------------------------------------------------------------
206 /** specifies that the content of the control cannot be modified by the
209 [property
] boolean ReadOnly;
211 //-------------------------------------------------------------------------
213 /** specifies whether the mouse should show repeating behavior, i.e.
214 repeatedly trigger an action when keeping pressed.
218 [optional, property
] boolean Repeat
;
220 //-------------------------------------------------------------------------
222 /** specifies the mouse repeat delay, in milliseconds.
224 <p>When the user presses a mouse in a control area where this triggers
225 an action (such as spinning the value), then usual control implementations
226 allow to repeatedly trigger this action, without the need to release the
227 mouse button and to press it again. The delay between two such triggers
228 is specified with this property.</p>
232 [optional, property
] long RepeatDelay
;
234 //-------------------------------------------------------------------------
236 /** specifies that the control has a spin button.
238 [property
] boolean Spin
;
240 //-------------------------------------------------------------------------
242 /** specifies that the text is checked during the user input.
244 <p>This property is optional - not every component implementing this
245 service is required to provide it, as real-time input checking on a
246 formatted field may be pretty expensive.</p>
248 [optional, property
] boolean StrictFormat
;
250 //-------------------------------------------------------------------------
252 /** specifies that the control can be reached with the TAB key.
254 [property
] boolean Tabstop
;
256 //-------------------------------------------------------------------------
258 /** specifies the text displayed in the control.
260 [property
] string Text
;
262 //-------------------------------------------------------------------------
264 /** specifies the text color (RGB) of the control.
266 [property
] com
::sun
::star
::util
::Color TextColor
;
268 //-------------------------------------------------------------------------
270 /** specifies the text line color (RGB) of the control.
272 [property
] com
::sun
::star
::util
::Color TextLineColor
;
274 //-------------------------------------------------------------------------
276 /** specifies that the text is treated as a number.
278 [property
] boolean TreatAsNumber
;
280 /** denotes the writing mode used in the control, as specified in the
281 <type scope="com::sun::star::text">WritingMode2</type> constants group.
283 <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and
284 <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p>
288 [optional, property
] short WritingMode
;
290 /** defines how the mouse wheel can be used to scroll through the control's content.
292 <p>Usually, the mouse wheel spins the numeric value displayed in the control. Using this property,
293 and one of the <type>MouseWheelBehavior</type> constants, you can control under which circumstances
294 this is possible.</p>
296 [optional, property
] short MouseWheelBehavior
;
298 //-------------------------------------------------------------------------
300 /** specifies the vertical alignment of the text in the control.
304 [optional, property
] com
::sun
::star
::style
::VerticalAlignment VerticalAlign
;
307 //=============================================================================
313 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */