1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27
28#ifndef __com_sun_star_frame_StatusbarControllerFactory_idl__
29#define __com_sun_star_frame_StatusbarControllerFactory_idl__
30
31#ifndef __com_sun_star_lang_XMultiComponentFactory_idl__
32#include <com/sun/star/lang/XMultiComponentFactory.idl>
33#endif
34
35#ifndef __com_sun_star_frame_XUIControllerRegistration_idl__
36#include <com/sun/star/frame/XUIControllerRegistration.idl>
37#endif
38
39//=============================================================================
40
41module com { module sun { module star { module frame {
42
43//=============================================================================
44
45/** specifies a factory that creates instances of registered status bar
46    controller.
47
48    <p>
49    A status bar controller can be registered for a command URL and a model
50    service name. A status bar will automatically create a status bar controller
51    if it contains a registered command URL.
52    </p>
53
54    @since OOo 2.0
55*/
56
57service StatusbarControllerFactory
58{
59    /** this interface provides functions to create new instances of a registered
60        status bar controller.
61
62        <p>
63        Use <member scope="com.sun.star.lang">XMultiComponentFactory::createInstanceWithArguments()</member>
64        to create a new status bar controller instance. Use the CommandURL as the
65        service specifier.
66
67        This call supports the following arguments provided as
68        <type scope="com::sun::star::beans">PropertyValue</type>:
69        <ul>
70            <li><b>Frame</b><br>specifies the <type scope="com::sun::star::frame">XFrame</type>
71                   instance to which the status bar controller belongs to. This
72                   property must be provided to the status bar controller, otherwise it
73                   cannot dispatch its internal commands.</li>
74            <li><b>ModuleIdentifier</b><br>optional string that specifies in which module
75                   context the status bar controller should be created.</li>
76        </ul>
77        </p>
78     */
79    interface com::sun::star::lang::XMultiComponentFactory;
80
81    /** provides functions to query for, register and deregister a status bar
82        controller.
83     */
84    interface com::sun::star::frame::XUIControllerRegistration;
85};
86
87}; }; }; };
88
89//=============================================================================
90
91#endif
92