merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / sdbcx / Container.idl
blobdf346d0c29072ea1630bc4168c7bd86ae48e8df7
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef __com_sun_star_sdbcx_Container_idl__
28 #define __com_sun_star_sdbcx_Container_idl__
30 module com { module sun { module star { module container {
31 published interface XNameAccess;
32 published interface XIndexAccess;
33 published interface XEnumerationAccess;
34 };};};};
36 module com { module sun { module star { module util {
37 published interface XRefreshable;
38 };};};};
40 module com { module sun { module star { module sdbcx {
42 published interface XDataDescriptorFactory;
43 published interface XAppend;
44 published interface XDrop;
47 /** describes every container which is used for data definition. Each
48 container must support access to its elements by the element's name or
49 by the element's position.
51 <p>
52 Simple enumeration must be supported as well.
53 </p>
54 <p>
55 To reflect the changes with the underlying database, a refresh mechanism
56 needs to be supported.
57 </p>
58 <p>
59 A container may support the possibility to add new elements or to drop
60 existing elements. Additions are always done by descriptors which define the
61 properties of the new element.
62 </p>
64 published service Container
66 // gives access to the elements by name.
67 interface com::sun::star::container::XNameAccess;
69 // gives access to the elements by index.
70 interface com::sun::star::container::XIndexAccess;
72 // used to create an enumeration of the elements.
73 interface com::sun::star::container::XEnumerationAccess;
76 /** is optional for implementation. Used to reflect changes.
78 [optional] interface com::sun::star::util::XRefreshable;
80 /** optional for implementation. Allows to create descriptor elements which then could be used to append new elements.
82 [optional] interface XDataDescriptorFactory;
84 /** optional for implementation, provides the possibility of adding
85 a new element to the container.
87 [optional] interface XAppend;
89 /** optional for implementation, provides the possibility of dropping
90 an element from the container.
92 [optional] interface XDrop;
95 //=============================================================================
97 }; }; }; };
99 /*===========================================================================
100 ===========================================================================*/
101 #endif