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#ifndef __com_sun_star_text_XAutoTextContainer_idl__
24#define __com_sun_star_text_XAutoTextContainer_idl__
25
26#ifndef __com_sun_star_container_XNameAccess_idl__
27#include <com/sun/star/container/XNameAccess.idl>
28#endif
29
30#ifndef __com_sun_star_text_XAutoTextGroup_idl__
31#include <com/sun/star/text/XAutoTextGroup.idl>
32#endif
33
34#ifndef __com_sun_star_lang_IllegalArgumentException_idl__
35#include <com/sun/star/lang/IllegalArgumentException.idl>
36#endif
37
38#ifndef __com_sun_star_container_ElementExistException_idl__
39#include <com/sun/star/container/ElementExistException.idl>
40#endif
41
42#ifndef __com_sun_star_container_NoSuchElementException_idl__
43#include <com/sun/star/container/NoSuchElementException.idl>
44#endif
45
46
47//=============================================================================
48
49 module com {  module sun {  module star {  module text {
50
51//=============================================================================
52
53// DocMerge from xml: interface com::sun::star::text::XAutoTextContainer
54/** handles blocks of <type>AutoTextEntry</type>.
55
56
57
58
59
60
61
62	@example <pre>
63	AutoTextPath=d:\office\autotext;f:\user\autotext
64
65	groupname:	"standard*0"
66	-&amp;amp;gt; the group file is located n the path d:\office\autotext
67	groupname:	"all*1"
68	-&amp;amp;gt; the group file is located in the path f:\user\autotext\
69	</pre>
70
71	<p>If the path extension is not specified, then the first directory
72	is used.  For automatic text expansion, the name of an actual group is
73	set to search first in this group.
74
75	</p>@see AutoTextContainer
76 */
77published interface XAutoTextContainer: com::sun::star::container::XNameAccess
78{
79	//-------------------------------------------------------------------------
80
81	// DocMerge from xml: method com::sun::star::text::XAutoTextContainer::insertNewByName
82	/** creates a new AutoText group.
83	 */
84	com::sun::star::text::XAutoTextGroup insertNewByName( [in] string aGroupName )
85			raises( com::sun::star::lang::IllegalArgumentException,
86					com::sun::star::container::ElementExistException );
87
88	//-------------------------------------------------------------------------
89
90	// DocMerge from xml: method com::sun::star::text::XAutoTextContainer::removeByName
91	/** deletes the specified AutoText group.
92	 */
93	void removeByName( [in] string aGroupName )
94			raises( com::sun::star::container::NoSuchElementException );
95
96};
97
98//=============================================================================
99
100}; }; }; };
101
102
103#endif
104