1*d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*d1766043SAndrew Rist * distributed with this work for additional information
6*d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9*d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10*d1766043SAndrew Rist *
11*d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*d1766043SAndrew Rist *
13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*d1766043SAndrew Rist * software distributed under the License is distributed on an
15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17*d1766043SAndrew Rist * specific language governing permissions and limitations
18*d1766043SAndrew Rist * under the License.
19*d1766043SAndrew Rist *
20*d1766043SAndrew Rist *************************************************************/
21*d1766043SAndrew Rist
22*d1766043SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#ifndef __com_sun_star_sheet_DataPilotFieldGroups_idl__
25cdf0e10cSrcweir#define __com_sun_star_sheet_DataPilotFieldGroups_idl__
26cdf0e10cSrcweir
27cdf0e10cSrcweir#ifndef __com_sun_star_container_XNameContainer_idl__
28cdf0e10cSrcweir#include <com/sun/star/container/XNameContainer.idl>
29cdf0e10cSrcweir#endif
30cdf0e10cSrcweir#ifndef __com_sun_star_container_XEnumerationAccess_idl__
31cdf0e10cSrcweir#include <com/sun/star/container/XEnumerationAccess.idl>
32cdf0e10cSrcweir#endif
33cdf0e10cSrcweir#ifndef __com_sun_star_container_XIndexAccess_idl__
34cdf0e10cSrcweir#include <com/sun/star/container/XIndexAccess.idl>
35cdf0e10cSrcweir#endif
36cdf0e10cSrcweir
37cdf0e10cSrcweir//=============================================================================
38cdf0e10cSrcweir
39cdf0e10cSrcweirmodule com {  module sun {  module star {  module sheet {
40cdf0e10cSrcweir
41cdf0e10cSrcweir//=============================================================================
42cdf0e10cSrcweir
43cdf0e10cSrcweir/** represents a collection of groups in a data pilot field.
44cdf0e10cSrcweir
45cdf0e10cSrcweir    <p>The members of this collection are instances of <type>DataPilotFieldGroup</type>
46cdf0e10cSrcweir    containing the names of all items in the group.</p>
47cdf0e10cSrcweir
48cdf0e10cSrcweir    @see DataPilotField
49cdf0e10cSrcweir    @see DataPilotFieldGroup
50cdf0e10cSrcweir    @see DataPilotFieldGroupInfo
51cdf0e10cSrcweir */
52cdf0e10cSrcweirpublished service DataPilotFieldGroups
53cdf0e10cSrcweir{
54cdf0e10cSrcweir	//-------------------------------------------------------------------------
55cdf0e10cSrcweir
56cdf0e10cSrcweir    /** provides access to the data pilot field groups in the collection via
57cdf0e10cSrcweir        index.
58cdf0e10cSrcweir	 */
59cdf0e10cSrcweir	interface com::sun::star::container::XIndexAccess;
60cdf0e10cSrcweir
61cdf0e10cSrcweir	//-------------------------------------------------------------------------
62cdf0e10cSrcweir
63cdf0e10cSrcweir	/** creates an enumeration of all data pilot field groups.
64cdf0e10cSrcweir
65cdf0e10cSrcweir        @see DataPilotFieldGroupsEnumeration
66cdf0e10cSrcweir	 */
67cdf0e10cSrcweir	interface com::sun::star::container::XEnumerationAccess;
68cdf0e10cSrcweir
69cdf0e10cSrcweir	//-------------------------------------------------------------------------
70cdf0e10cSrcweir
71cdf0e10cSrcweir    /** provides access to the data pilot field groups in the collection via
72cdf0e10cSrcweir        name.
73cdf0e10cSrcweir	 */
74cdf0e10cSrcweir	interface com::sun::star::container::XNameAccess;
75cdf0e10cSrcweir
76cdf0e10cSrcweir    //-------------------------------------------------------------------------
77cdf0e10cSrcweir
78cdf0e10cSrcweir    /** provides read/write access to the data pilot field groups in the
79cdf0e10cSrcweir        collection via name.
80cdf0e10cSrcweir
81cdf0e10cSrcweir        <p>The <type scope="com::sun::star::container">XNameContainer</type>
82cdf0e10cSrcweir        and <type scope="com::sun::star::container">XNameReplace</type>
83cdf0e10cSrcweir        interfaces can be used to manage the item groups. It is possible to
84cdf0e10cSrcweir        insert, remove, and replace item groups.</p>
85cdf0e10cSrcweir
86cdf0e10cSrcweir        <p>The method <member scope="com::sun::star::container">
87cdf0e10cSrcweir        XNameReplace::replaceByName</member> can be used to replace the item
88cdf0e10cSrcweir        names in an existing group with a new collection of item names. An
89cdf0e10cSrcweir        implementation should support the following data types:
90cdf0e10cSrcweir
91cdf0e10cSrcweir        <ul>
92cdf0e10cSrcweir        <li>an empty <atom>any</atom> to remove all items and leave the
93cdf0e10cSrcweir        group empty. The group can be filled later with new item names.</li>
94cdf0e10cSrcweir        <li>a <atom dim="[]">string</atom> containing all item names that will
95cdf0e10cSrcweir        be part of the group.</li>
96cdf0e10cSrcweir        <li>an object supporting <type scope="com::sun::star::container">
97cdf0e10cSrcweir        XIndexAccess</type> containing elements that provide an item name per
98cdf0e10cSrcweir        element via the interface <type scope="com::sun::star::container">
99cdf0e10cSrcweir        XNamed</type>, for example an instance of <type>DataPilotFieldGroup
100cdf0e10cSrcweir        </type>.</li>
101cdf0e10cSrcweir        </ul></p>
102cdf0e10cSrcweir
103cdf0e10cSrcweir        <p>The method <member scope="com::sun::star::container">
104cdf0e10cSrcweir        XNameContainer::insertByName</member> can be used to insert a new
105cdf0e10cSrcweir        field group with the passed collection of item names. An
106cdf0e10cSrcweir        implementation should support the same data types as described above
107cdf0e10cSrcweir        for the method <member scope="com::sun::star::container">
108cdf0e10cSrcweir        XNameReplace::replaceByName</member>.</p>
109cdf0e10cSrcweir
110cdf0e10cSrcweir        <p>The method <member scope="com::sun::star::container">
111cdf0e10cSrcweir        XNameContainer::removeByName</member> can be used to remove an
112cdf0e10cSrcweir        existing field group.</p>
113cdf0e10cSrcweir     */
114cdf0e10cSrcweir    [optional] interface com::sun::star::container::XNameContainer;
115cdf0e10cSrcweir
116cdf0e10cSrcweir};
117cdf0e10cSrcweir
118cdf0e10cSrcweir//=============================================================================
119cdf0e10cSrcweir
120cdf0e10cSrcweir}; }; }; };
121cdf0e10cSrcweir
122cdf0e10cSrcweir#endif
123cdf0e10cSrcweir
124