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_DataPilotField_idl__
25cdf0e10cSrcweir#define __com_sun_star_sheet_DataPilotField_idl__
26cdf0e10cSrcweir
27cdf0e10cSrcweir#ifndef __com_sun_star_container_XNamed_idl__
28cdf0e10cSrcweir#include <com/sun/star/container/XNamed.idl>
29cdf0e10cSrcweir#endif
30cdf0e10cSrcweir
31cdf0e10cSrcweir#ifndef __com_sun_star_beans_XPropertySet_idl__
32cdf0e10cSrcweir#include <com/sun/star/beans/XPropertySet.idl>
33cdf0e10cSrcweir#endif
34cdf0e10cSrcweir
35cdf0e10cSrcweir#ifndef __com_sun_star_sheet_XDataPilotField_idl__
36cdf0e10cSrcweir#include <com/sun/star/sheet/XDataPilotField.idl>
37cdf0e10cSrcweir#endif
38cdf0e10cSrcweir
39cdf0e10cSrcweir#ifndef __com_sun_star_sheet_XDataPilotFieldGrouping_idl__
40cdf0e10cSrcweir#include <com/sun/star/sheet/XDataPilotFieldGrouping.idl>
41cdf0e10cSrcweir#endif
42cdf0e10cSrcweir
43cdf0e10cSrcweir#ifndef __com_sun_star_sheet_DataPilotFieldOrientation_idl__
44cdf0e10cSrcweir#include <com/sun/star/sheet/DataPilotFieldOrientation.idl>
45cdf0e10cSrcweir#endif
46cdf0e10cSrcweir
47cdf0e10cSrcweir#ifndef __com_sun_star_sheet_GeneralFunction_idl__
48cdf0e10cSrcweir#include <com/sun/star/sheet/GeneralFunction.idl>
49cdf0e10cSrcweir#endif
50cdf0e10cSrcweir
51cdf0e10cSrcweir#ifndef __com_sun_star_sheet_DataPilotFieldReference_idl__
52cdf0e10cSrcweir#include <com/sun/star/sheet/DataPilotFieldReference.idl>
53cdf0e10cSrcweir#endif
54cdf0e10cSrcweir
55cdf0e10cSrcweir#ifndef __com_sun_star_sheet_DataPilotFieldLayoutInfo_idl__
56cdf0e10cSrcweir#include <com/sun/star/sheet/DataPilotFieldLayoutInfo.idl>
57cdf0e10cSrcweir#endif
58cdf0e10cSrcweir
59cdf0e10cSrcweir#ifndef __com_sun_star_sheet_DataPilotFieldAutoShowInfo_idl__
60cdf0e10cSrcweir#include <com/sun/star/sheet/DataPilotFieldAutoShowInfo.idl>
61cdf0e10cSrcweir#endif
62cdf0e10cSrcweir
63cdf0e10cSrcweir#ifndef __com_sun_star_sheet_DataPilotFieldSortInfo_idl__
64cdf0e10cSrcweir#include <com/sun/star/sheet/DataPilotFieldSortInfo.idl>
65cdf0e10cSrcweir#endif
66cdf0e10cSrcweir
67cdf0e10cSrcweir#ifndef __com_sun_star_sheet_DataPilotFieldGroupInfo_idl__
68cdf0e10cSrcweir#include <com/sun/star/sheet/DataPilotFieldGroupInfo.idl>
69cdf0e10cSrcweir#endif
70cdf0e10cSrcweir
71cdf0e10cSrcweir//=============================================================================
72cdf0e10cSrcweir
73cdf0e10cSrcweirmodule com {  module sun {  module star {  module sheet {
74cdf0e10cSrcweir
75cdf0e10cSrcweir//=============================================================================
76cdf0e10cSrcweir
77cdf0e10cSrcweir/** represents a single field in a data pilot table.
78cdf0e10cSrcweir
79cdf0e10cSrcweir    <p>If the data pilot table is based on a spreadsheet cell range, a field
80cdf0e10cSrcweir    is representred by a column of the range and is named using the topmost
81cdf0e10cSrcweir    cell of the column.</p>
82cdf0e10cSrcweir */
83cdf0e10cSrcweirpublished service DataPilotField
84cdf0e10cSrcweir{
85cdf0e10cSrcweir    //-------------------------------------------------------------------------
86cdf0e10cSrcweir
87cdf0e10cSrcweir    /** provides access to the name of the data pilot field.
88cdf0e10cSrcweir     */
89cdf0e10cSrcweir    interface com::sun::star::container::XNamed;
90cdf0e10cSrcweir
91cdf0e10cSrcweir    //-------------------------------------------------------------------------
92cdf0e10cSrcweir
93cdf0e10cSrcweir//!published service PropertySet
94cdf0e10cSrcweir    /** provides access to the properties.
95cdf0e10cSrcweir     */
96cdf0e10cSrcweir    interface com::sun::star::beans::XPropertySet;
97cdf0e10cSrcweir
98cdf0e10cSrcweir    //-------------------------------------------------------------------------
99cdf0e10cSrcweir
100cdf0e10cSrcweir    [optional] interface XDataPilotField;
101cdf0e10cSrcweir
102cdf0e10cSrcweir    //-------------------------------------------------------------------------
103cdf0e10cSrcweir
104cdf0e10cSrcweir    [optional] interface XDataPilotFieldGrouping;
105cdf0e10cSrcweir
106cdf0e10cSrcweir    //=========================================================================
107cdf0e10cSrcweir
108cdf0e10cSrcweir    /** specifies the orientation of the field.
109cdf0e10cSrcweir
110cdf0e10cSrcweir        <p>If the orientation of a field has been changed using this property,
111cdf0e10cSrcweir        the field will be moved to the last position in the collection of all
112cdf0e10cSrcweir        fields with the specified orientation.</p>
113cdf0e10cSrcweir     */
114cdf0e10cSrcweir    [property] DataPilotFieldOrientation Orientation;
115cdf0e10cSrcweir
116cdf0e10cSrcweir    //-------------------------------------------------------------------------
117cdf0e10cSrcweir
118cdf0e10cSrcweir    /** specifies the function used to calculate results for this field.
119cdf0e10cSrcweir
120cdf0e10cSrcweir        <p>For column and row fields, this is the function for subtotals
121cdf0e10cSrcweir        (<const>GeneralFunction::NONE</const> means no subtotals).
122cdf0e10cSrcweir        For data fields, this is the function shown in the data pilot
123cdf0e10cSrcweir        table.</p>
124cdf0e10cSrcweir     */
125cdf0e10cSrcweir    [property] GeneralFunction Function;
126cdf0e10cSrcweir
127cdf0e10cSrcweir    //-------------------------------------------------------------------------
128cdf0e10cSrcweir
129cdf0e10cSrcweir    /** specifies the functions used to calculate subtotals for this field.
130cdf0e10cSrcweir
131cdf0e10cSrcweir        <p>This property is supported by column and row fields only.</p>
132cdf0e10cSrcweir
133cdf0e10cSrcweir        <p>An empty sequence means no subtotals. The same effect can be
134cdf0e10cSrcweir        achieved by setting the property <member>Function</member> to the
135cdf0e10cSrcweir        value <const>GeneralFunction::NONE</const>. If the length of the
136cdf0e10cSrcweir        sequence is greater then 1, then the sequence MUST NOT contain one of
137cdf0e10cSrcweir        the values <const>GeneralFunction::NONE</const> or
138cdf0e10cSrcweir        <const>GeneralFunction::AUTO</const>.</p>
139cdf0e10cSrcweir
140cdf0e10cSrcweir        <p>The order of the functions in this sequence is reflected in the
141cdf0e10cSrcweir        DataPilot table. Multiple entries of the same function are ignored
142cdf0e10cSrcweir        when setting the property.</p>
143cdf0e10cSrcweir     */
144cdf0e10cSrcweir    [property, optional] sequence<GeneralFunction> Subtotals;
145cdf0e10cSrcweir
146cdf0e10cSrcweir    //-------------------------------------------------------------------------
147cdf0e10cSrcweir
148cdf0e10cSrcweir    /** specifies the selected page which is used to filter the data pilot.
149cdf0e10cSrcweir     */
150cdf0e10cSrcweir    [property, optional] string SelectedPage;
151cdf0e10cSrcweir
152cdf0e10cSrcweir    //-------------------------------------------------------------------------
153cdf0e10cSrcweir
154cdf0e10cSrcweir    /** specifies whether to use the selected page to filter the data pilot or
155cdf0e10cSrcweir        show all.
156cdf0e10cSrcweir     */
157cdf0e10cSrcweir    [property, optional] boolean UseSelectedPage;
158cdf0e10cSrcweir
159cdf0e10cSrcweir    //-------------------------------------------------------------------------
160cdf0e10cSrcweir
161cdf0e10cSrcweir    /** specifies which hierarchy of the dimension is used.
162cdf0e10cSrcweir
163cdf0e10cSrcweir    @see com::sun::star::sheet::DataPilotSourceHierarchies
164cdf0e10cSrcweir     */
165cdf0e10cSrcweir    [property, optional] string UsedHierarchy;
166cdf0e10cSrcweir
167cdf0e10cSrcweir    //-------------------------------------------------------------------------
168cdf0e10cSrcweir
169cdf0e10cSrcweir    /** specifies whether this field has sorting information.
170cdf0e10cSrcweir     */
171cdf0e10cSrcweir    [property, optional] boolean HasSortInfo;
172cdf0e10cSrcweir
173cdf0e10cSrcweir    //-------------------------------------------------------------------------
174cdf0e10cSrcweir
175cdf0e10cSrcweir    /** controls how the field's items are sorted.
176cdf0e10cSrcweir     */
177cdf0e10cSrcweir    [property, optional] DataPilotFieldSortInfo SortInfo;
178cdf0e10cSrcweir
179cdf0e10cSrcweir    //-------------------------------------------------------------------------
180cdf0e10cSrcweir
181cdf0e10cSrcweir    /** specifies whether this field has layout information.
182cdf0e10cSrcweir     */
183cdf0e10cSrcweir    [property, optional] boolean HasLayoutInfo;
184cdf0e10cSrcweir
185cdf0e10cSrcweir    //-------------------------------------------------------------------------
186cdf0e10cSrcweir
187cdf0e10cSrcweir    /** controls how the field's items are laid out in the result table.
188cdf0e10cSrcweir     */
189cdf0e10cSrcweir    [property, optional] DataPilotFieldLayoutInfo LayoutInfo;
190cdf0e10cSrcweir
191cdf0e10cSrcweir    //-------------------------------------------------------------------------
192cdf0e10cSrcweir
193cdf0e10cSrcweir    /** specifies whether this field has auto show information.
194cdf0e10cSrcweir     */
195cdf0e10cSrcweir    [property, optional] boolean HasAutoShowInfo;
196cdf0e10cSrcweir
197cdf0e10cSrcweir    //-------------------------------------------------------------------------
198cdf0e10cSrcweir
199cdf0e10cSrcweir    /** enables the automatic inclusion of only a number of items with
200cdf0e10cSrcweir        the highest or lowest result values.
201cdf0e10cSrcweir     */
202cdf0e10cSrcweir    [property, optional] DataPilotFieldAutoShowInfo AutoShowInfo;
203cdf0e10cSrcweir
204cdf0e10cSrcweir    //-------------------------------------------------------------------------
205cdf0e10cSrcweir
206cdf0e10cSrcweir    /** specifies whether this field has a reference.
207cdf0e10cSrcweir     */
208cdf0e10cSrcweir    [property, optional] boolean HasReference;
209cdf0e10cSrcweir
210cdf0e10cSrcweir    //-------------------------------------------------------------------------
211cdf0e10cSrcweir
212cdf0e10cSrcweir    /** controls how the results are shown in relation to a selected
213cdf0e10cSrcweir        reference result.
214cdf0e10cSrcweir     */
215cdf0e10cSrcweir    [property, optional] DataPilotFieldReference Reference;
216cdf0e10cSrcweir
217cdf0e10cSrcweir    //-------------------------------------------------------------------------
218cdf0e10cSrcweir
219cdf0e10cSrcweir    /** specifies whether this field is a group field.
220cdf0e10cSrcweir     */
221cdf0e10cSrcweir    [property, optional] boolean IsGroupField;
222cdf0e10cSrcweir
223cdf0e10cSrcweir    //-------------------------------------------------------------------------
224cdf0e10cSrcweir
225cdf0e10cSrcweir    /** contains the grouping information of the DataPilot field.
226cdf0e10cSrcweir
227cdf0e10cSrcweir        <p>By changing the value of this property it is possible to modify the
228cdf0e10cSrcweir        grouping settings of this field.</p>
229cdf0e10cSrcweir     */
230cdf0e10cSrcweir    [property, optional] DataPilotFieldGroupInfo GroupInfo;
231cdf0e10cSrcweir
232cdf0e10cSrcweir    //-------------------------------------------------------------------------
233cdf0e10cSrcweir
234cdf0e10cSrcweir    /** specifies whether to show this field also if it is empty or not.
235cdf0e10cSrcweir     */
236cdf0e10cSrcweir    [property, optional] boolean ShowEmpty;
237cdf0e10cSrcweir};
238cdf0e10cSrcweir
239cdf0e10cSrcweir//=============================================================================
240cdf0e10cSrcweir
241cdf0e10cSrcweir}; }; }; };
242cdf0e10cSrcweir
243cdf0e10cSrcweir#endif
244cdf0e10cSrcweir
245