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_ModuleUICommandDescription_idl__
25cdf0e10cSrcweir#define __com_sun_star_ui_ModuleUICommandDescription_idl__
26cdf0e10cSrcweir
27cdf0e10cSrcweir#ifndef __com_sun_star_container_XNameContainer_idl__
28cdf0e10cSrcweir#include <com/sun/star/container/XNameContainer.idl>
29cdf0e10cSrcweir#endif
30cdf0e10cSrcweir
31cdf0e10cSrcweir//=============================================================================
32cdf0e10cSrcweir
33cdf0e10cSrcweirmodule com { module sun { module star { module ui {
34cdf0e10cSrcweir
35cdf0e10cSrcweir//=============================================================================
36cdf0e10cSrcweir
37cdf0e10cSrcweir/** a service which provides window based information about user interface
38cdf0e10cSrcweir    elements of a single application module.
39cdf0e10cSrcweir
40cdf0e10cSrcweir    <p>
41cdf0e10cSrcweir    Every OpenOffice.org module has an amout of user interface elements that can
42cdf0e10cSrcweir    be positioned, resized, closed and their style can be changed. This service
43cdf0e10cSrcweir    provides access to the window based information of available user interface
44cdf0e10cSrcweir    elements which are part of a single OpenOffice.org module, like Writer or
45cdf0e10cSrcweir    Calc.
46cdf0e10cSrcweir    </p>
47cdf0e10cSrcweir
48*f431c806SJürgen Schmidt    @since OpenOffice 2.0
49cdf0e10cSrcweir*/
50cdf0e10cSrcweir
51cdf0e10cSrcweirservice ModuleWindowStateConfiguration
52cdf0e10cSrcweir{
53cdf0e10cSrcweir    /** provides read/write access to window based information of user interface
54cdf0e10cSrcweir        elements which are part of single installed module.
55cdf0e10cSrcweir
56cdf0e10cSrcweir        <p>
57cdf0e10cSrcweir        An implementation must provide a <type scope="com::sun::star::uno">Sequence</type> which
58cdf0e10cSrcweir        has <type scope="com::sun::star::beans">PropertyValue</type> as entries. The following
59cdf0e10cSrcweir        entries a defined:
60cdf0e10cSrcweir        <ul>
61cdf0e10cSrcweir            <li><b>Docked</b><br>a boolean which specifies if the window is docked or not.</li>
62cdf0e10cSrcweir            <li><b>DockingArea</b><br>a <type scope="com::sun::star::ui">DockingArea</type>
63cdf0e10cSrcweir            which specifies the docking area where the window is docked.</li>
64cdf0e10cSrcweir            <li><b>DockPos</b><br>a <type scope="com::sun::star::awt">Point</type> which specifies the
65cdf0e10cSrcweir            docked position of a window. The X and Y values are interpreted as a row/column number and
66cdf0e10cSrcweir            a pixel position for top/bottom docked windows. For left/right docked windows this is</li>
67cdf0e10cSrcweir            <li><b>DockSize</b><br>a <type scope="com::sun::star::awt">Size</type> which specifies
68cdf0e10cSrcweir            the docked size of the window. This property is currently not used by the layout manager
69cdf0e10cSrcweir            implementation. For future use.</li>
70cdf0e10cSrcweir            <li><b>Locked</b><br>a boolean which specifies if the window is locked or not. This property
71cdf0e10cSrcweir            is only valid for docked windows</li>
72cdf0e10cSrcweir            <li><b>Pos</b><br>a <type scope="com::sun::star::awt">Point</type> which specifies the
73cdf0e10cSrcweir            floating position in pixel of the window.</li>
74cdf0e10cSrcweir            <li><b>Size</b><br>a <type scope="com::sun::star::awt">Size</type> which specifies the
75cdf0e10cSrcweir            floating size in pixel of the window.</li>
76cdf0e10cSrcweir            <li><b>Style</b><br>a long which specifies the style of the window. A toolbar support the
77cdf0e10cSrcweir            following values: 0 = icons, 1 = text, 2 = text+icons.</li>
78cdf0e10cSrcweir            <li><b>UIName</br><br>a localized string which specifies the default window title.</li>
79cdf0e10cSrcweir        </ul>
80cdf0e10cSrcweir        The key to a user interface element is the resource URL which has
81cdf0e10cSrcweir        the following syntax "private:resource/$type/$name". For example "private:resource/toolbar/standardbar"
82cdf0e10cSrcweir        addresses the standard bar of a module.
83cdf0e10cSrcweir        A complete list of all user interface elements is available in the Developers Guide.
84cdf0e10cSrcweir        </p>
85cdf0e10cSrcweir
86cdf0e10cSrcweir        @see com::sun::star::frame::ModuleManager
87cdf0e10cSrcweir    */
88cdf0e10cSrcweir
89cdf0e10cSrcweir    interface com::sun::star::container::XNameContainer;
90cdf0e10cSrcweir};
91cdf0e10cSrcweir
92cdf0e10cSrcweir}; }; }; };
93cdf0e10cSrcweir
94cdf0e10cSrcweir#endif
95