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_frame_FrameLoaderFactory_idl__
24#define __com_sun_star_frame_FrameLoaderFactory_idl__
25
26#ifndef __com_sun_star_lang_XMultiServiceFactory_idl__
27#include <com/sun/star/lang/XMultiServiceFactory.idl>
28#endif
29
30#ifndef __com_sun_star_container_XNameAccess_idl__
31#include <com/sun/star/container/XNameAccess.idl>
32#endif
33
34#ifndef __com_sun_star_container_XContainerQuery_idl__
35#include <com/sun/star/container/XContainerQuery.idl>
36#endif
37
38//=============================================================================
39
40module com { module sun { module star { module frame {
41
42//=============================================================================
43/** factory to create frame loader
44
45    <p>
46    With this factory it's possible to
47    <ul>
48        <li>have access on configuration of set of registered frame laoder objects</li>
49        <li>create a frame laoder by his internal name</li>
50        <li>query for a frame laoder by using special query or property description.</li>
51    </ul>
52    </p>
53 */
54published service FrameLoaderFactory
55{
56	//-------------------------------------------------------------------------
57    /** interface to create loader objects by using his internal name
58
59		<p>
60        Returned objects must support the service specification of a <type>FrameLoader</type>
61        or <type>SynchronousFrameLoader</type>. (Note: last one will be preferred if both ones
62        are available)
63        They can be created by using of his internal name, which must be unambigous every time, only.
64        To get this name use further specified interfaces of this factory for access on
65        the flat configuration.
66        </p>
67	*/
68	interface com::sun::star::lang::XMultiServiceFactory;
69
70	//-------------------------------------------------------------------------
71    /** provides access to the whole frame loader configuration
72
73	<p>This interface supports an access to the internal configuration of all accessible loader objects.
74        The return value of <member scope="com::sun::star::container">XNameAccess::getByName()</member>
75	is a property sequence packed in an any.  </p>
76        <table border=1>
77            <tr>
78                <td><b>Types<b></td>
79                <td>[string]</td>
80                <td>file types which loader is registered for</td>
81            </tr>
82            <tr>
83                <td><b>UIName<b></td>
84                <td>[string]</td>
85                <td>UI representable and localized name</td>
86            </tr>
87        </table>
88    */
89	interface com::sun::star::container::XNameAccess;
90
91	//-------------------------------------------------------------------------
92    /** supports query mode for configuration access
93
94        <p>
95        This interface can be used to get sub sets of current configuration entries
96        which represent given search parameters.
97        </p>
98     */
99    interface com::sun::star::container::XContainerQuery;
100};
101
102//=============================================================================
103
104}; }; }; };
105
106#endif
107