merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / ui / UIElement.idl
blob580a660f734e2a694778ff4b57967888bfeceb33
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
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.
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).
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.
26 ************************************************************************/
28 #ifndef __com_sun_star_ui_UIElement_idl__
29 #define __com_sun_star_ui_UIElement_idl__
31 #ifndef __com_sun_star_ui_XUIElement_idl__
32 #include <com/sun/star/ui/XUIElement.idl>
33 #endif
35 #ifndef __com_sun_star_beans_XPropertySet_idl__
36 #include <com/sun/star/beans/XPropertySet.idl>
37 #endif
39 #ifndef __com_sun_star_lang_XInitialization_idl__
40 #include <com/sun/star/lang/XInitialization.idl>
41 #endif
43 #ifndef __com_sun_star_lang_XComponent_idl__
44 #include <com/sun/star/lang/XComponent.idl>
45 #endif
47 #ifndef __com_sun_star_util_XUpdatable_idl__
48 #include <com/sun/star/util/XUpdatable.idl>
49 #endif
51 //=============================================================================
53 module com { module sun { module star { module ui {
55 //=============================================================================
57 /** specifies a user interface element.
59 <p>
60 A user interface element consists of a unique identifier and a type specifier. It
61 provides an interface to retrieve a special purpose interface which depends on
62 the specific user interface element type. Every user interface must be initialized
63 before it can be used.
64 </p>
66 @since OOo 2.0.0
69 service UIElement
71 /** provides a function to retrieve a special purpose interface which depends on
72 the specific user interface element type.
74 interface ::com::sun::star::ui::XUIElement;
76 /** interface to initialize a user interface element instance.
78 A user interface element must be initialized using
79 <member scope=com::sun::star::lang>XInitialization::initialize</member> before
80 it can be used. The following property must be provided:
81 <ul>
82 <li><b>ResourceURL</b>specifies a string property which is the unique identifier of
83 the user interface element.</li>
84 </ul>
86 A user interface element factory creates and initializes every user interface element
87 correctly.
89 @see com::sun::star::ui::UIElementFactoryManager;
90 @see com::sun::star::ui::UIElementFactory
92 [optional] interface ::com::sun::star::lang::XInitialization;
94 /** used to notify an implementation that it needs to update its visual representation.
96 <p>
97 A user interface element implementation should check if it has to update its visual
98 representation. It is up to the implementation if it ignores notifications.
99 </p>
101 [optional] interface com::sun::star::util::XUpdatable;
103 /** controls the life-time of the object.
105 interface ::com::sun::star::lang::XComponent;
108 }; }; }; };
110 //=============================================================================
112 #endif