blob: fee744a3cdd2192ffab00618b0f3790baaacb413 [file] [log] [blame]
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
#ifndef __com_sun_star_form_control_TextField_idl__
#define __com_sun_star_form_control_TextField_idl__
#ifndef __com_sun_star_awt_UnoControlEdit_idl__
#include <com/sun/star/awt/UnoControlEdit.idl>
#endif
#ifndef __com_sun_star_form_XBoundControl_idl__
#include <com/sun/star/form/XBoundControl.idl>
#endif
#ifndef __com_sun_star_form_XChangeBroadcaster_idl__
#include <com/sun/star/form/XChangeBroadcaster.idl>
#endif
//=============================================================================
module com { module sun { module star { module form { module control {
//=============================================================================
/** describes a control for entering arbiotrary text which can (but not necessarily has to) be bound
to a database field.
<p>The model of the control has to support the <type scope="com::sun::star::form::component">TextField</type>
service.</p>
<p>In addition, this control can be used in HTML forms. It triggers the
<method scope="com::sun::star::form">XSubmit::submit</method> method of the form it belongs to if
the <em>enter</em> is pressed while it has the focus.</p>
@see com::sun::star::awt::UnoControl
@see com::sun::star::awt::UnoControlModel
*/
published service TextField
{
service com::sun::star::awt::UnoControlEdit;
interface com::sun::star::form::XBoundControl;
/** allows broadcasts of HTML-compatible change events.
<p>HTML-compatible means that a change event is broadcasted if and only if all of
the following applies.
<ul>
<li>the control loses the focus</li>
<li>the content of the control has changed, compared to the moment where it got the focus.</li>
</ul>
<p/>
*/
interface com::sun::star::form::XChangeBroadcaster;
};
//=============================================================================
}; }; }; }; };
/*=============================================================================
=============================================================================*/
#endif