1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 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. 14 * 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). 20 * 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. 25 * 26 ************************************************************************/ 27#ifndef __com_sun_star_sdbcx_Container_idl__ 28#define __com_sun_star_sdbcx_Container_idl__ 29 30 module com { module sun { module star { module container { 31 published interface XNameAccess; 32 published interface XIndexAccess; 33 published interface XEnumerationAccess; 34};};};}; 35 36 module com { module sun { module star { module util { 37 published interface XRefreshable; 38};};};}; 39 40 module com { module sun { module star { module sdbcx { 41 42 published interface XDataDescriptorFactory; 43 published interface XAppend; 44 published interface XDrop; 45 46 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. 50 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> 63 */ 64published service Container 65{ 66 // gives access to the elements by name. 67 interface com::sun::star::container::XNameAccess; 68 69 // gives access to the elements by index. 70 interface com::sun::star::container::XIndexAccess; 71 72 // used to create an enumeration of the elements. 73 interface com::sun::star::container::XEnumerationAccess; 74 75 76 /** is optional for implementation. Used to reflect changes. 77 */ 78 [optional] interface com::sun::star::util::XRefreshable; 79 80 /** optional for implementation. Allows to create descriptor elements which then could be used to append new elements. 81 */ 82 [optional] interface XDataDescriptorFactory; 83 84 /** optional for implementation, provides the possibility of adding 85 a new element to the container. 86 */ 87 [optional] interface XAppend; 88 89 /** optional for implementation, provides the possibility of dropping 90 an element from the container. 91 */ 92 [optional] interface XDrop; 93}; 94 95//============================================================================= 96 97}; }; }; }; 98 99/*=========================================================================== 100===========================================================================*/ 101#endif 102