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