1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: UIElement.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef __com_sun_star_ui_UIElement_idl__
32 #define __com_sun_star_ui_UIElement_idl__
34 #ifndef __com_sun_star_frame_XFrame_idl__
35 #include
<com
/sun
/star
/frame
/XFrame.idl
>
38 #ifndef __com_sun_star_ui_XUIElement_idl__
39 #include
<com
/sun
/star
/ui
/XUIElement.idl
>
42 #ifndef __com_sun_star_beans_XPropertySet_idl__
43 #include
<com
/sun
/star
/beans
/XPropertySet.idl
>
46 #ifndef __com_sun_star_ui_UIElementType_idl__
47 #include
<com
/sun
/star
/ui
/UIElementType.idl
>
50 #ifndef __com_sun_star_lang_XInitialization_idl__
51 #include
<com
/sun
/star
/lang
/XInitialization.idl
>
54 #ifndef __com_sun_star_lang_XComponent_idl__
55 #include
<com
/sun
/star
/lang
/XComponent.idl
>
58 #ifndef __com_sun_star_util_XUpdatable_idl__
59 #include
<com
/sun
/star
/util
/XUpdatable.idl
>
62 //=============================================================================
64 module com
{ module sun
{ module star
{ module ui
{
66 //=============================================================================
68 /** specifies a user interface element.
71 A user interface element consists of a unique identifier and a type specifier. It
72 provides an interface to retrieve a special purpose interface which depends on
73 the specific user interface element type. Every user interface must be initialized
74 before it can be used.
82 /** provides a function to retrieve a special purpose interface which depends on
83 the specific user interface element type.
85 interface ::com
::sun
::star
::ui
::XUIElement
;
87 /** interface to initialize a user interface element instance.
89 A user interface element must be initialized using
90 <member scope=com::sun::star::lang>XInitialization::initialize</member> before
91 it can be used. The following property must be provided:
93 <li><b>ResourceURL</b>specifies a string property which is the unique identifier of
94 the user interface element.</li>
97 A user interface element factory creates and initializes every user interface element
100 @see com::sun::star::ui::UIElementFactoryManager;
101 @see com::sun::star::ui::UIElementFactory
103 interface ::com
::sun
::star
::lang
::XInitialization
;
105 /** used to notify an implementation that it needs to update its visual representation.
108 A user interface element implementation should check if it has to update its visual
109 representation. It is up to the implementation if it ignores notifications.
112 interface com
::sun
::star
::util
::XUpdatable
;
114 /** controls the life-time of the object.
116 interface ::com
::sun
::star
::lang
::XComponent
;
118 /** determines the frame to which this element is bound to.
121 The life time of a user interface element does not explicitly depend on the
122 frame itself but on the visible component attached to the frame. It is possible
123 to exchange the visible component of a frame and that will lead to the end of
124 life of all user interface elements.
126 [readonly, property
] com
::sun
::star
::frame
::XFrame Frame
;
128 /** a resource URL which is a unique identifier of a user interface element.
130 [readonly, property
] string ResourceURL
;
132 /** determines the real type of the user interface element.
136 [readonly, property
] short Type
;
141 //=============================================================================