1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24#ifndef __com_sun_star_form_control_TextField_idl__
25#define __com_sun_star_form_control_TextField_idl__
26
27#ifndef __com_sun_star_awt_UnoControlEdit_idl__
28#include <com/sun/star/awt/UnoControlEdit.idl>
29#endif
30
31#ifndef __com_sun_star_form_XBoundControl_idl__
32#include <com/sun/star/form/XBoundControl.idl>
33#endif
34#ifndef __com_sun_star_form_XChangeBroadcaster_idl__
35#include <com/sun/star/form/XChangeBroadcaster.idl>
36#endif
37
38//=============================================================================
39
40 module com {  module sun {  module star {  module form {  module control {
41
42//=============================================================================
43
44/** describes a control for entering arbiotrary text which can (but not necessarily has to) be bound
45	to a database field.
46
47	<p>The model of the control has to support the <type scope="com::sun::star::form::component">TextField</type>
48	service.</p>
49
50	<p>In addition, this control can be used in HTML forms. It triggers the
51	<method scope="com::sun::star::form">XSubmit::submit</method> method of the form it belongs to if
52	the <em>enter</em> is pressed while it has the focus.</p>
53
54	@see com::sun::star::awt::UnoControl
55	@see com::sun::star::awt::UnoControlModel
56*/
57published service TextField
58{
59	service com::sun::star::awt::UnoControlEdit;
60
61	interface com::sun::star::form::XBoundControl;
62
63	/** allows broadcasts of HTML-compatible change events.
64
65		<p>HTML-compatible means that a change event is broadcasted if and only if all of
66		the following applies.
67		<ul>
68			<li>the control loses the focus</li>
69			<li>the content of the control has changed, compared to the moment where it got the focus.</li>
70		</ul>
71		<p/>
72	*/
73	interface com::sun::star::form::XChangeBroadcaster;
74};
75
76//=============================================================================
77
78}; }; }; }; };
79
80/*=============================================================================
81
82=============================================================================*/
83
84#endif
85
86
87