Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / configuration / SetUpdate.idl
blob8736e2a886e17799c64a83466458ef8990868a5e
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 .
19 #ifndef __com_sun_star_configuration_SetUpdate_idl__
20 #define __com_sun_star_configuration_SetUpdate_idl__
22 #include <com/sun/star/configuration/SetAccess.idl>
23 #include <com/sun/star/configuration/SimpleSetUpdate.idl>
26 module com { module sun { module star { module configuration {
28 /** provides write access to a dynamic homogeneous set of values or nested
29 trees within a hierarchy.
31 <p>Allows adding and removing elements.
32 Helps creates new elements to be added.
33 </p>
35 <p>This service extends SetAccess to support
36 modifying the container.
37 </p>
39 <p>Any child and descendant objects support modifying access as well,
40 unless they represent a read-only tree element (as indicated by
41 com::sun::star::beans::PropertyAttribute::READONLY).
42 </p>
44 published service SetUpdate
46 /** is the basic service providing read access to a <em>set</em> within the
47 hierarchy.
49 service SetAccess;
51 /** is the basic service providing modifying access to a
52 not necessarily hierarchical <em>set</em>.
54 <p>Changes can be observed by registering a listener with interface
55 com::sun::star::container::XContainer.
56 </p>
58 <p>If the elements of this set are of object type, new elements are constructed
59 to match the tree structure prescribed by the element template of this set, when
60 using interfaces com::sun::star::lang::XSingleServiceFactory
61 and (if supported) com::sun::star::lang::XMultiServiceFactory.
62 </p>
64 <p>Objects that are removed from a set can be reinserted into any set supporting
65 the same template within the same hierarchy. Even under a different name.
66 </p>
68 <p>Implementations that support insertion of objects that weren't obtained
69 from within the hierarchy must reject elements that don't have the correct
70 structure as described by the template, even if the object returns the
71 correct template name from XTemplateInstance::getTemplateName().
72 </p>
74 <p>Other ways in which an element may be moved among or within compatible sets
75 include com::sun::star::container::XChild::setParent()
76 and com::sun::star::container::XNamed::setName(), if
77 the element implements them.
78 </p>
80 @see com::sun::star::configuration::SetElement
82 service SimpleSetUpdate;
87 }; }; }; };
89 #endif
91 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */