tdf#130857 qt weld: Support mail merge "Server Auth" dialog
[LibreOffice.git] / offapi / com / sun / star / resource / XStringResourceWithLocation.idl
blob5b3ed3b577af3c45a92ba30733ea08491740a202
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
21 module com { module sun { module star { module resource {
23 /**
24 Extends XStringResourcePersistence by methods to handle an
25 associated location.
27 @see XStringResourcePersistence.
29 interface XStringResourceWithLocation: com::sun::star::resource::XStringResourcePersistence
31 /**
32 Stores all string table data to a location and associates this location
33 to this instance as if setLocation() was called with this
34 location. The modified state will be unmodified after the call.
36 @param URL
37 the location the string table data should be stored to.
39 void storeAsURL( [in] string URL )
40 raises( com::sun::star::uno::Exception );
43 /**
44 Associates a location to the StringResourceWithStorage instance
45 which is used on subsequent calls of store().
47 @param URL
48 the location to be associated to the StringResourceManager
50 <p>
51 This call has to be used carefully as it removes the location
52 previously connected to the StringResourceWithStorage. It may
53 force the implementation to reload data from the previous
54 location before releasing it. The StringResourceManager will
55 be modified after calling this method as the data isn't stored
56 to the new location yet. storeAsURL() should
57 be preferred as it directly stores the data to the new location
58 and afterwards this location is in sync with the resource data.
59 </p>
61 @throws com::sun::star::lang::IllegalArgumentException
62 if an empty string is passed as URL
64 @throws com::sun::star::lang::NoSupportException
65 if the location is readonly
67 void setURL( [in] string URL )
68 raises( ::com::sun::star::lang::IllegalArgumentException,
69 ::com::sun::star::lang::NoSupportException );
73 }; }; }; };
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */