1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 module com
{ module sun
{ module star
{ module resource
{
25 Extends XStringResourcePersistence by methods to handle an
26 associated com::sun::star::embed::XStorage instance.
28 @see XStringResourcePersistence.
30 interface XStringResourceWithStorage
: com
::sun
::star
::resource
::XStringResourcePersistence
33 Stores all string table data to a storage and associates this storage
34 to this instance as if setStorage() was called with
35 this storage. The modified state will be unmodified after the call.
37 This method can throw all exceptions thrown by the methods of
38 com::sun::star::embed::XStorage
40 void storeAsStorage
( [in] ::com
::sun
::star
::embed
::XStorage Storage
)
41 raises
( com
::sun
::star
::uno
::Exception
);
45 Associates a storage to the StringResourceWithStorage instance
46 which is used on subsequent calls of store().
49 the storage to be associated to the StringResourceManager
52 This call has to be used carefully as it removes the storage
53 previously connected to the StringResourceWithStorage. It may
54 force the implementation to reload data from the previous storage
55 before releasing it. The StringResourceManager will be modified
56 after calling this method as the data isn't stored to the new
57 storage yet. storeAsStorage() should be preferred
58 as it directly stores the data to the new storage and afterwards
59 this storage is in sync with the resource data.
62 @throws com::sun::star::lang::IllegalArgumentException
63 if a null interface is passed as Storage
65 void setStorage
( [in] ::com
::sun
::star
::embed
::XStorage Storage
)
66 raises
( ::com
::sun
::star
::lang
::IllegalArgumentException
);
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */