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: XModuleUIConfigurationManager.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_XModuleUIConfigurationManager_idl__
32 #define __com_sun_star_ui_XModuleUIConfigurationManager_idl__
34 #ifndef __com_sun_star_container_XIndexContainer_idl__
35 #include
<com
/sun
/star
/container
/XIndexContainer.idl
>
38 #ifndef __com_sun_star_container_XIndexAccess_idl__
39 #include
<com
/sun
/star
/container
/XIndexAccess.idl
>
42 #ifndef __com_sun_star_container_NoSuchElementException_idl__
43 #include
<com
/sun
/star
/container
/NoSuchElementException.idl
>
46 #ifndef __com_sun_star_lang_IllegalArgumentException_idl__
47 #include
<com
/sun
/star
/lang
/IllegalArgumentException.idl
>
50 #ifndef __com_sun_star_lang_IllegalAccessException_idl__
51 #include
<com
/sun
/star
/lang
/IllegalAccessException.idl
>
54 module com
{ module sun
{ module star
{ module ui
{
56 /** specifies specific functions of a module based user interface
57 configuration manager interface.
60 A module user interface configuration manager supports, unlike a
61 document based ui configration manager, two layers of configuration
63 1. Layer: A module default user interface configuration which
64 describe all user interface elements settings that are
65 used by OpenOffice. It is not possible to insert, remove
66 or changeelements settings in this layer through the
68 2. Layer: A module user interface configuration which only contains
69 customized user interface elements and user-defined ones.
70 All changes on user interface element settings are done on
71 this layer. This layer is the same as the document ui
72 configuration manager uses.</br>
78 interface XModuleUIConfigurationManager
: ::com
::sun
::star
::uno
::XInterface
80 /** determine if the settings of a user interface element is part
81 of the default layer of the user interface configuration manager.
84 a resource URL which identifies the user interface element. A
85 resourcce URL must meet the following syntax:
86 "private:resource/$type/$name. It is only allowed to use ascii
87 characters for type and name.
90 <TRUE/> if settings have been found in the default layer,
93 boolean isDefaultSettings
( [in] string ResourceURL
) raises
( com
::sun
::star
::lang
::IllegalArgumentException
);
95 /** retrieves the settings from the default layer of the user interface
96 configuration manager if it has a default layer.
99 a resource URL which identifies the user interface element. A
100 resourcce URL must meet the following syntax:
101 "private:resource/$type/$name. It is only allowed to use ascii
102 characters for type and name.
105 <TRUE/> if default settings have been found in the default layer,
108 ::com
::sun
::star
::container
::XIndexAccess getDefaultSettings
( [in] string ResourceURL
) raises
( com
::sun
::star
::container
::NoSuchElementException
, com
::sun
::star
::lang
::IllegalArgumentException
);
112 //=============================================================================