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_text_textfield_MetadataField_idl__
25#define __com_sun_star_text_textfield_MetadataField_idl__
26
27#ifndef __com_sun_star_container_XEnumerationAccess_idl__
28#include <com/sun/star/container/XEnumerationAccess.idl>
29#endif
30
31#ifndef __com_sun_star_container_XChild_idl__
32#include <com/sun/star/container/XChild.idl>
33#endif
34
35#ifndef __com_sun_star_text_TextField_idl__
36#include <com/sun/star/text/TextField.idl>
37#endif
38
39#ifndef __com_sun_star_text_XText_idl__
40#include <com/sun/star/text/XText.idl>
41#endif
42
43#ifndef __com_sun_star_rdf_XMetadatable_idl__
44#include <com/sun/star/rdf/XMetadatable.idl>
45#endif
46
47
48//=============================================================================
49
50module com { module sun { module star { module text { module textfield {
51
52//=============================================================================
53/** is a <type scope="com::sun::star::text">TextField</type> whose content
54    is specified by RDF metadata.
55
56    @since OOo 3.2
57
58    @see com::sun::star::rdf
59*/
60published service MetadataField
61{
62    //-------------------------------------------------------------------------
63    /** None of the properties of
64        <type scope="com::sun::star::text">TextContent</type> are supported. */
65    service  com::sun::star::text::TextField;
66
67    //-------------------------------------------------------------------------
68    /** The <type>MetadataField</type> can have RDF metadata attached. */
69    interface com::sun::star::rdf::XMetadatable;
70
71    //-------------------------------------------------------------------------
72    /** Allows for insertion of text content into, and creating cursors
73        that are bound within, the <type>MetadataField</type>. */
74    interface com::sun::star::text::XText;
75
76    //-------------------------------------------------------------------------
77    /** The <type scope="com::sun::star::text">TextContent</type>s that are
78        contained in the <type>MetadataField</type> can be enumerated. */
79    interface com::sun::star::container::XEnumerationAccess;
80
81    //-------------------------------------------------------------------------
82    /** The <type scope="com::sun::star::text">TextContent</type>
83        that is the parent of this <type>MetadataField</type>.
84        @since OOo 3.3
85     */
86    interface com::sun::star::container::XChild;
87
88    //-------------------------------------------------------------------------
89    /** this is the number format for this field.
90        @see com::sun::star::util::NumberFormatter
91    */
92    [optional, property] long NumberFormat;
93
94    //-------------------------------------------------------------------------
95    /** determines whether changes in language attributes at the
96        position of the text field also change the number format
97        as appropriate for this language.
98     */
99    [optional, property] boolean IsFixedLanguage;
100};
101
102//=============================================================================
103
104}; }; }; }; };
105
106#endif
107
108