1d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5d1766043SAndrew Rist * distributed with this work for additional information
6d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10d1766043SAndrew Rist *
11d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12d1766043SAndrew Rist *
13d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14d1766043SAndrew Rist * software distributed under the License is distributed on an
15d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17d1766043SAndrew Rist * specific language governing permissions and limitations
18d1766043SAndrew Rist * under the License.
19d1766043SAndrew Rist *
20d1766043SAndrew Rist *************************************************************/
21d1766043SAndrew Rist
22d1766043SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#ifndef __com_sun_star_ui_ConfigurableUIElement_idl__
25cdf0e10cSrcweir#define __com_sun_star_ui_ConfigurableUIElement_idl__
26cdf0e10cSrcweir
27cdf0e10cSrcweir#ifndef __com_sun_star_ui_UIElement_idl__
28cdf0e10cSrcweir#include <com/sun/star/ui/UIElement.idl>
29cdf0e10cSrcweir#endif
30cdf0e10cSrcweir
31cdf0e10cSrcweir#ifndef __com_sun_star_ui_XUIElementSettings_idl__
32cdf0e10cSrcweir#include <com/sun/star/ui/XUIElementSettings.idl>
33cdf0e10cSrcweir#endif
34cdf0e10cSrcweir
35cdf0e10cSrcweir#ifndef __com_sun_star_beans_XPropertySet_idl__
36cdf0e10cSrcweir#include <com/sun/star/beans/XPropertySet.idl>
37cdf0e10cSrcweir#endif
38cdf0e10cSrcweir
39cdf0e10cSrcweir#ifndef __com_sun_star_ui_UIElementType_idl__
40cdf0e10cSrcweir#include <com/sun/star/ui/UIElementType.idl>
41cdf0e10cSrcweir#endif
42cdf0e10cSrcweir
43cdf0e10cSrcweir#ifndef __com_sun_star_ui_XUIConfigurationManager_idl__
44cdf0e10cSrcweir#include <com/sun/star/ui/XUIConfigurationManager.idl>
45cdf0e10cSrcweir#endif
46cdf0e10cSrcweir
47cdf0e10cSrcweir#ifndef __com_sun_star_frame_XFrame_idl__
48cdf0e10cSrcweir#include <com/sun/star/frame/XFrame.idl>
49cdf0e10cSrcweir#endif
50cdf0e10cSrcweir
51cdf0e10cSrcweir#ifndef __com_sun_star_lang_XInitialization_idl__
52cdf0e10cSrcweir#include <com/sun/star/lang/XInitialization.idl>
53cdf0e10cSrcweir#endif
54cdf0e10cSrcweir
55cdf0e10cSrcweir//=============================================================================
56cdf0e10cSrcweir
57cdf0e10cSrcweirmodule com { module sun { module star { module ui {
58cdf0e10cSrcweir
59cdf0e10cSrcweir//=============================================================================
60cdf0e10cSrcweir
61cdf0e10cSrcweir/** specifies a configurable user interface element that supports persistence.
62cdf0e10cSrcweir
63cdf0e10cSrcweir    <p>
64cdf0e10cSrcweir    Configurable user interface elements are:
65cdf0e10cSrcweir    <ul>
66cdf0e10cSrcweir        <li>menubar</li>
67cdf0e10cSrcweir        <li>popupmenu<li>
68cdf0e10cSrcweir        <li>toolbar</li>
69cdf0e10cSrcweir        <li>statusbar</li>
70cdf0e10cSrcweir    </ul>
71cdf0e10cSrcweir    </p>
72cdf0e10cSrcweir
73*f431c806SJürgen Schmidt    @since OpenOffice 2.0
74cdf0e10cSrcweir*/
75cdf0e10cSrcweir
76cdf0e10cSrcweirservice ConfigurableUIElement
77cdf0e10cSrcweir{
78cdf0e10cSrcweir    /** provides properties and functions to initialize and identify a user
79cdf0e10cSrcweir        interface element.
80cdf0e10cSrcweir
81cdf0e10cSrcweir        <p>
82cdf0e10cSrcweir        A configurable user interface element must be initialized using
83cdf0e10cSrcweir        <member scope=com::sun::star::lang>XInitialization::initialize</member> before
84cdf0e10cSrcweir        it can be used. The following properties must be provided:
85cdf0e10cSrcweir        <ul>
86cdf0e10cSrcweir            <li><b>ResourceURL</b><br>specifies the user interface name.</li>
87cdf0e10cSrcweir            <li><b>Frame</b><br>specifies to which frame instance the user interface belongs to.</li>
88cdf0e10cSrcweir            <li><b>ConfigurationSource</b><br>specifies to which configuration manager a user interface
89cdf0e10cSrcweir            element instance is bound to.</li>
90cdf0e10cSrcweir        </ul>
91cdf0e10cSrcweir        </p>
92cdf0e10cSrcweir
93cdf0e10cSrcweir        A user interface element factory creates and initializes every user interface element
94cdf0e10cSrcweir        correctly.
95cdf0e10cSrcweir
96cdf0e10cSrcweir        @see com::sun::star::ui::UIElementFactory
97cdf0e10cSrcweir    */
98cdf0e10cSrcweir    service UIElement;
99cdf0e10cSrcweir
100cdf0e10cSrcweir    /** provides functions to retrieve and change the user interface element structure data and to
101cdf0e10cSrcweir        update its visible representation.
102cdf0e10cSrcweir    */
103cdf0e10cSrcweir    interface com::sun::star::ui::XUIElementSettings;
104cdf0e10cSrcweir
105cdf0e10cSrcweir    /** specifies if the user interface element stores changes of its structure to its creator
106cdf0e10cSrcweir        source defined by the property <member>ConfigurationSource</member>. */
107cdf0e10cSrcweir    [property] boolean Persistent;
108cdf0e10cSrcweir
109cdf0e10cSrcweir    /** specifies the configuration source of this user interface element.
110cdf0e10cSrcweir
111cdf0e10cSrcweir        <p>
112cdf0e10cSrcweir        If the property <member>Persistent</member> is <TRUE/> changes on the structure of
113cdf0e10cSrcweir        the user interface element are written back to configuration source. When this property is
114cdf0e10cSrcweir        changed, afterwards <member>XUIElementSettings::updateSettings</member>  must be called so
115cdf0e10cSrcweir        the user interface element tries to retrieve its settings from the new user interface
116cdf0e10cSrcweir        configuration manager.
117cdf0e10cSrcweir        </p>
118cdf0e10cSrcweir    */
119cdf0e10cSrcweir    [property] com::sun::star::ui::XUIConfigurationManager ConfigurationSource;
120cdf0e10cSrcweir};
121cdf0e10cSrcweir
122cdf0e10cSrcweir}; }; }; };
123cdf0e10cSrcweir
124cdf0e10cSrcweir#endif
125