1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef __com_sun_star_ui_XUIConfigurationPersistence_idl__
29 #define __com_sun_star_ui_XUIConfigurationPersistence_idl__
31 #ifndef __com_sun_star_embed_XStorage_idl__
32 #include
<com
/sun
/star
/embed
/XStorage.idl
>
35 module com
{ module sun
{ module star
{ module ui
{
37 /** specifies a persistence interface which supports to load/store user
38 interface configuration data to a storage and to retrieve information
39 about the current state.
44 interface XUIConfigurationPersistence
: ::com
::sun
::star
::uno
::XInterface
46 /** reloads the configuration data from the storage and reinitialize
47 the user interface configuration manager instance with this data.
50 It is up to the implementation if it defers the first loading process
51 until the first data request using <type>XUIConfigurationManager</type>
55 void reload
() raises
( ::com
::sun
::star
::uno
::Exception
);
57 /** stores the configuration data to the storage provided by
58 <member>setStorage</member> from the storage and initialize the
59 user interface configuration manager instance with the newly
60 data. This call can throw an
61 <type scope="com::sun::star::io">IOException</type> if
62 <member>store</member> cannot store its data into the internal
65 void store
() raises
( ::com
::sun
::star
::uno
::Exception
);
67 /** stores the configuration data to the provided storage, ignoring
68 the previously set storage by <member>setStorage</member>. Can
69 be used to make copy of the current user interface configuration
70 data to another storage. This call will throw an
71 <type scope="com::sun::star::io">IOException</type> if the provided
72 storage is in read-only mode.
75 all configuration data will be stored to this storage.
77 void storeToStorage
( [in] ::com
::sun
::star
::embed
::XStorage Storage
) raises
( ::com
::sun
::star
::uno
::Exception
);
79 /** provides the current modify state of the configuration manager
83 <TRUE/> if the configuration manager has changed since the
84 last <member>store</member> call. <FALSE/> if the configuration
85 manager has not been changed.
89 /** provides the current read-only state of the user configuration
90 manager. Storing a user interface configuration to a read-only storage
91 is not possible. A read-only configuration manager instance will also
92 not support any changes to its configuration settings.
95 <TRUE/> if the configuration manager storage is read-only otherwise
101 //=============================================================================