Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / resource / XStringResourceWithStorage.idl
blob471b5a5359b4316c13051a43eedd91cee1a38931
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XStringResourceWithStorage.idl,v $
10 * $Revision: 1.4 $
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 ************************************************************************/
30 #ifndef __com_sun_star_resource_XStringResourceWithStorage_idl__
31 #define __com_sun_star_resource_XStringResourceWithStorage_idl__
33 #ifndef __com_sun_star_resource_XStringResourcePersistence_idl__
34 #include <com/sun/star/resource/XStringResourcePersistence.idl>
35 #endif
38 //=============================================================================
40 module com { module sun { module star { module resource {
42 //=============================================================================
43 /**
44 Extends <type>XStringResourcePersistence</type> by methods to handle an
45 associated <type scope="com::sun::star::embed">XStorage</type> instance.
47 @see <type>XStringResourcePersistence</type>.
49 interface XStringResourceWithStorage: com::sun::star::resource::XStringResourcePersistence
51 /**
52 Stores all string table data to a storage and associates this storage
53 to this instance as if <member>setStorage</member> was called with
54 this storage. The modified state will be unmodified after the call.
56 This method can throw all exceptions thrown by the methods of
57 <type scope="com::sun::star::embed">XStorage</type>
59 void storeAsStorage( [in] ::com::sun::star::embed::XStorage Storage )
60 raises( com::sun::star::uno::Exception );
63 /**
64 Associates a storage to the StringResourceWithStorage instance
65 which is used on subsequent calls of <member>store</member>.
67 @param Storage
68 the storage to be associated to the StringResourceManager
70 <p>
71 This call has to be used carefully as it removes the storage
72 previously connected to the StringResourceWithStorage. It may
73 force the implementation to reload data from the previous storage
74 before releasing it. The StringResourceManager will be modified
75 after calling this method as the data isn't stored to the new
76 storage yet. <member>storeAsStorage</member> should be prefered
77 as it directly stores the data to the new storage and afterwards
78 this storage is in sync with the resource data.
79 </p>
81 @throws <type scope="com::sun::star::lang">IllegalArgumentException</type>
82 if a null interface is passed as Storage
84 void setStorage( [in] ::com::sun::star::embed::XStorage Storage )
85 raises( ::com::sun::star::lang::IllegalArgumentException );
88 //=============================================================================
90 }; }; }; };
92 #endif