xref: /AOO41X/main/offapi/com/sun/star/ui/ModuleWindowStateConfiguration.idl (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir/*************************************************************************
2*cdf0e10cSrcweir *
3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir *
5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir *
21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir *
26*cdf0e10cSrcweir ************************************************************************/
27*cdf0e10cSrcweir
28*cdf0e10cSrcweir#ifndef __com_sun_star_ui_ModuleUICommandDescription_idl__
29*cdf0e10cSrcweir#define __com_sun_star_ui_ModuleUICommandDescription_idl__
30*cdf0e10cSrcweir
31*cdf0e10cSrcweir#ifndef __com_sun_star_container_XNameContainer_idl__
32*cdf0e10cSrcweir#include <com/sun/star/container/XNameContainer.idl>
33*cdf0e10cSrcweir#endif
34*cdf0e10cSrcweir
35*cdf0e10cSrcweir//=============================================================================
36*cdf0e10cSrcweir
37*cdf0e10cSrcweirmodule com { module sun { module star { module ui {
38*cdf0e10cSrcweir
39*cdf0e10cSrcweir//=============================================================================
40*cdf0e10cSrcweir
41*cdf0e10cSrcweir/** a service which provides window based information about user interface
42*cdf0e10cSrcweir    elements of a single application module.
43*cdf0e10cSrcweir
44*cdf0e10cSrcweir    <p>
45*cdf0e10cSrcweir    Every OpenOffice.org module has an amout of user interface elements that can
46*cdf0e10cSrcweir    be positioned, resized, closed and their style can be changed. This service
47*cdf0e10cSrcweir    provides access to the window based information of available user interface
48*cdf0e10cSrcweir    elements which are part of a single OpenOffice.org module, like Writer or
49*cdf0e10cSrcweir    Calc.
50*cdf0e10cSrcweir    </p>
51*cdf0e10cSrcweir
52*cdf0e10cSrcweir    @since OOo 2.0
53*cdf0e10cSrcweir*/
54*cdf0e10cSrcweir
55*cdf0e10cSrcweirservice ModuleWindowStateConfiguration
56*cdf0e10cSrcweir{
57*cdf0e10cSrcweir    /** provides read/write access to window based information of user interface
58*cdf0e10cSrcweir        elements which are part of single installed module.
59*cdf0e10cSrcweir
60*cdf0e10cSrcweir        <p>
61*cdf0e10cSrcweir        An implementation must provide a <type scope="com::sun::star::uno">Sequence</type> which
62*cdf0e10cSrcweir        has <type scope="com::sun::star::beans">PropertyValue</type> as entries. The following
63*cdf0e10cSrcweir        entries a defined:
64*cdf0e10cSrcweir        <ul>
65*cdf0e10cSrcweir            <li><b>Docked</b><br>a boolean which specifies if the window is docked or not.</li>
66*cdf0e10cSrcweir            <li><b>DockingArea</b><br>a <type scope="com::sun::star::ui">DockingArea</type>
67*cdf0e10cSrcweir            which specifies the docking area where the window is docked.</li>
68*cdf0e10cSrcweir            <li><b>DockPos</b><br>a <type scope="com::sun::star::awt">Point</type> which specifies the
69*cdf0e10cSrcweir            docked position of a window. The X and Y values are interpreted as a row/column number and
70*cdf0e10cSrcweir            a pixel position for top/bottom docked windows. For left/right docked windows this is</li>
71*cdf0e10cSrcweir            <li><b>DockSize</b><br>a <type scope="com::sun::star::awt">Size</type> which specifies
72*cdf0e10cSrcweir            the docked size of the window. This property is currently not used by the layout manager
73*cdf0e10cSrcweir            implementation. For future use.</li>
74*cdf0e10cSrcweir            <li><b>Locked</b><br>a boolean which specifies if the window is locked or not. This property
75*cdf0e10cSrcweir            is only valid for docked windows</li>
76*cdf0e10cSrcweir            <li><b>Pos</b><br>a <type scope="com::sun::star::awt">Point</type> which specifies the
77*cdf0e10cSrcweir            floating position in pixel of the window.</li>
78*cdf0e10cSrcweir            <li><b>Size</b><br>a <type scope="com::sun::star::awt">Size</type> which specifies the
79*cdf0e10cSrcweir            floating size in pixel of the window.</li>
80*cdf0e10cSrcweir            <li><b>Style</b><br>a long which specifies the style of the window. A toolbar support the
81*cdf0e10cSrcweir            following values: 0 = icons, 1 = text, 2 = text+icons.</li>
82*cdf0e10cSrcweir            <li><b>UIName</br><br>a localized string which specifies the default window title.</li>
83*cdf0e10cSrcweir        </ul>
84*cdf0e10cSrcweir        The key to a user interface element is the resource URL which has
85*cdf0e10cSrcweir        the following syntax "private:resource/$type/$name". For example "private:resource/toolbar/standardbar"
86*cdf0e10cSrcweir        addresses the standard bar of a module.
87*cdf0e10cSrcweir        A complete list of all user interface elements is available in the Developers Guide.
88*cdf0e10cSrcweir        </p>
89*cdf0e10cSrcweir
90*cdf0e10cSrcweir        @see com::sun::star::frame::ModuleManager
91*cdf0e10cSrcweir    */
92*cdf0e10cSrcweir
93*cdf0e10cSrcweir    interface com::sun::star::container::XNameContainer;
94*cdf0e10cSrcweir};
95*cdf0e10cSrcweir
96*cdf0e10cSrcweir}; }; }; };
97*cdf0e10cSrcweir
98*cdf0e10cSrcweir#endif
99