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
>
35 #ifndef __com_sun_star_beans_XPropertySet_idl__
36 #include
<com
/sun
/star
/beans
/XPropertySet.idl
>
39 #ifndef __com_sun_star_lang_XInitialization_idl__
40 #include
<com
/sun
/star
/lang
/XInitialization.idl
>
43 #ifndef __com_sun_star_lang_XComponent_idl__
44 #include
<com
/sun
/star
/lang
/XComponent.idl
>
47 #ifndef __com_sun_star_util_XUpdatable_idl__
48 #include
<com
/sun
/star
/util
/XUpdatable.idl
>
51 //=============================================================================
53 module com
{ module sun
{ module star
{ module ui
{
55 //=============================================================================
57 /** specifies a user interface element.
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.
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:
82 <li><b>ResourceURL</b>specifies a string property which is the unique identifier of
83 the user interface element.</li>
86 A user interface element factory creates and initializes every user interface element
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.
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.
101 [optional] interface com
::sun
::star
::util
::XUpdatable
;
103 /** controls the life-time of the object.
105 interface ::com
::sun
::star
::lang
::XComponent
;
110 //=============================================================================