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 .
19 #ifndef __com_sun_star_script_XLibraryContainer2_idl__
20 #define __com_sun_star_script_XLibraryContainer2_idl__
22 #include
<com
/sun
/star
/script
/XLibraryContainer.idl
>
26 module com
{ module sun
{ module star
{ module script
{
30 Extension of XLibraryContainer to provide additional information
31 about the libraries contained in a library container
33 published
interface XLibraryContainer2
: com
::sun
::star
::script
::XLibraryContainer
36 returns true if the accessed library item is a link,
37 e.g., created by createLibraryLink, otherwise false.
39 boolean isLibraryLink
( [in] string Name
)
40 raises
( com
::sun
::star
::container
::NoSuchElementException
);
43 returns the location of the library link target.
44 Should return the same URL that was passed to
45 createLibraryLink in the StorageURL parameter.
47 If the accessed library item exists but isn't a
48 link, a IllegalArgumentException is thrown
50 string getLibraryLinkURL
( [in] string Name
)
51 raises
( com
::sun
::star
::lang
::IllegalArgumentException
,
52 com
::sun
::star
::container
::NoSuchElementException
);
55 returns true if the accessed library item (library or library
56 link) is read only. A library can be read only because it was
57 set to read only using the methods provided by this interface
58 or because of other reasons depending on the implementation
59 (e.g., file system write protection)
61 boolean isLibraryReadOnly
( [in] string Name
)
62 raises
( com
::sun
::star
::container
::NoSuchElementException
);
65 Sets the accessed library item (library or library link) to
66 read only according to the flag bReadOnly (true means read only)
68 void setLibraryReadOnly
( [in] string Name
, [in] boolean bReadOnly
)
69 raises
( com
::sun
::star
::container
::NoSuchElementException
);
71 /** renames the library item with the specified name. If the accessed
72 library item is a link only the link is renamed, not the target library.
73 If a library with the new name exists already a
74 com::sun::star::container::ElementExistException is thrown.
76 void renameLibrary
( [in] string Name
, [in] string NewName
)
77 raises
( com
::sun
::star
::container
::NoSuchElementException
,
78 com
::sun
::star
::container
::ElementExistException
);
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */