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_sdbcx_Container_idl__
20 #define __com_sun_star_sdbcx_Container_idl__
22 module com
{ module sun
{ module star
{ module container
{
23 published
interface XNameAccess
;
24 published
interface XIndexAccess
;
25 published
interface XEnumerationAccess
;
28 module com
{ module sun
{ module star
{ module util
{
29 published
interface XRefreshable
;
32 module com
{ module sun
{ module star
{ module sdbcx
{
34 published
interface XDataDescriptorFactory
;
35 published
interface XAppend
;
36 published
interface XDrop
;
39 /** describes every container which is used for data definition. Each
40 container must support access to its elements by the element's name or
41 by the element's position.
44 Simple enumeration must be supported as well.
47 To reflect the changes with the underlying database, a refresh mechanism
48 needs to be supported.
51 A container may support the possibility to add new elements or to drop
52 existing elements. Additions are always done by descriptors which define the
53 properties of the new element.
56 published service Container
58 // gives access to the elements by name.
59 interface com
::sun
::star
::container
::XNameAccess
;
61 // gives access to the elements by index.
62 interface com
::sun
::star
::container
::XIndexAccess
;
64 // used to create an enumeration of the elements.
65 interface com
::sun
::star
::container
::XEnumerationAccess
;
68 /** is optional for implementation. Used to reflect changes.
70 [optional] interface com
::sun
::star
::util
::XRefreshable
;
72 /** optional for implementation. Allows to create descriptor elements which then could be used to append new elements.
74 [optional] interface XDataDescriptorFactory
;
76 /** optional for implementation, provides the possibility of adding
77 a new element to the container.
79 [optional] interface XAppend
;
81 /** optional for implementation, provides the possibility of dropping
82 an element from the container.
84 [optional] interface XDrop
;
90 /*===========================================================================
91 ===========================================================================*/
94 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */