Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / sheet / DataPilotField.idl
blob83ae7892e0c2cc4236233b95f645bb4623c0c111
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: DataPilotField.idl,v $
10 * $Revision: 1.10 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef __com_sun_star_sheet_DataPilotField_idl__
32 #define __com_sun_star_sheet_DataPilotField_idl__
34 #ifndef __com_sun_star_container_XNamed_idl__
35 #include <com/sun/star/container/XNamed.idl>
36 #endif
38 #ifndef __com_sun_star_beans_XPropertySet_idl__
39 #include <com/sun/star/beans/XPropertySet.idl>
40 #endif
42 #ifndef __com_sun_star_sheet_XDataPilotField_idl__
43 #include <com/sun/star/sheet/XDataPilotField.idl>
44 #endif
46 #ifndef __com_sun_star_sheet_XDataPilotFieldGrouping_idl__
47 #include <com/sun/star/sheet/XDataPilotFieldGrouping.idl>
48 #endif
50 #ifndef __com_sun_star_sheet_DataPilotFieldOrientation_idl__
51 #include <com/sun/star/sheet/DataPilotFieldOrientation.idl>
52 #endif
54 #ifndef __com_sun_star_sheet_GeneralFunction_idl__
55 #include <com/sun/star/sheet/GeneralFunction.idl>
56 #endif
58 #ifndef __com_sun_star_sheet_DataPilotFieldReference_idl__
59 #include <com/sun/star/sheet/DataPilotFieldReference.idl>
60 #endif
62 #ifndef __com_sun_star_sheet_DataPilotFieldLayoutInfo_idl__
63 #include <com/sun/star/sheet/DataPilotFieldLayoutInfo.idl>
64 #endif
66 #ifndef __com_sun_star_sheet_DataPilotFieldAutoShowInfo_idl__
67 #include <com/sun/star/sheet/DataPilotFieldAutoShowInfo.idl>
68 #endif
70 #ifndef __com_sun_star_sheet_DataPilotFieldSortInfo_idl__
71 #include <com/sun/star/sheet/DataPilotFieldSortInfo.idl>
72 #endif
74 #ifndef __com_sun_star_sheet_DataPilotFieldGroupInfo_idl__
75 #include <com/sun/star/sheet/DataPilotFieldGroupInfo.idl>
76 #endif
78 //=============================================================================
80 module com { module sun { module star { module sheet {
82 //=============================================================================
84 /** represents a single field in a data pilot table.
86 <p>If the data pilot table is based on a spreadsheet cell range, a field
87 is representred by a column of the range and is named using the topmost
88 cell of the column.</p>
90 published service DataPilotField
92 //-------------------------------------------------------------------------
94 /** provides access to the name of the data pilot field.
96 interface com::sun::star::container::XNamed;
98 //-------------------------------------------------------------------------
100 //!published service PropertySet
101 /** provides access to the properties.
103 interface com::sun::star::beans::XPropertySet;
105 //-------------------------------------------------------------------------
107 [optional] interface XDataPilotField;
109 //-------------------------------------------------------------------------
111 [optional] interface XDataPilotFieldGrouping;
113 //=========================================================================
115 /** specifies the orientation of the field.
117 <p>If the orientation of a field has been changed using this property,
118 the field will be moved to the last position in the collection of all
119 fields with the specified orientation.</p>
121 [property] DataPilotFieldOrientation Orientation;
123 //-------------------------------------------------------------------------
125 /** specifies the function used to calculate results for this field.
127 <p>For column and row fields, this is the function for subtotals
128 (<const>GeneralFunction::NONE</const> means no subtotals).
129 For data fields, this is the function shown in the data pilot
130 table.</p>
132 [property] GeneralFunction Function;
134 //-------------------------------------------------------------------------
136 /** specifies the functions used to calculate subtotals for this field.
138 <p>This property is supported by column and row fields only.</p>
140 <p>An empty sequence means no subtotals. The same effect can be
141 achieved by setting the property <member>Function</member> to the
142 value <const>GeneralFunction::NONE</const>. If the length of the
143 sequence is greater then 1, then the sequence MUST NOT contain one of
144 the values <const>GeneralFunction::NONE</const> or
145 <const>GeneralFunction::AUTO</const>.</p>
147 <p>The order of the functions in this sequence is reflected in the
148 DataPilot table. Multiple entries of the same function are ignored
149 when setting the property.</p>
151 [property, optional] sequence<GeneralFunction> Subtotals;
153 //-------------------------------------------------------------------------
155 /** specifies the selected page which is used to filter the data pilot.
157 [property, optional] string SelectedPage;
159 //-------------------------------------------------------------------------
161 /** specifies whether to use the selected page to filter the data pilot or
162 show all.
164 [property, optional] boolean UseSelectedPage;
166 //-------------------------------------------------------------------------
168 /** specifies which hierarchy of the dimension is used.
170 @see com::sun::star::sheet::DataPilotSourceHierarchies
172 [property, optional] string UsedHierarchy;
174 //-------------------------------------------------------------------------
176 /** specifies whether this field has sorting information.
178 [property, optional] boolean HasSortInfo;
180 //-------------------------------------------------------------------------
182 /** controls how the field's items are sorted.
184 [property, optional] DataPilotFieldSortInfo SortInfo;
186 //-------------------------------------------------------------------------
188 /** specifies whether this field has layout information.
190 [property, optional] boolean HasLayoutInfo;
192 //-------------------------------------------------------------------------
194 /** controls how the field's items are laid out in the result table.
196 [property, optional] DataPilotFieldLayoutInfo LayoutInfo;
198 //-------------------------------------------------------------------------
200 /** specifies whether this field has auto show information.
202 [property, optional] boolean HasAutoShowInfo;
204 //-------------------------------------------------------------------------
206 /** enables the automatic inclusion of only a number of items with
207 the highest or lowest result values.
209 [property, optional] DataPilotFieldAutoShowInfo AutoShowInfo;
211 //-------------------------------------------------------------------------
213 /** specifies whether this field has a reference.
215 [property, optional] boolean HasReference;
217 //-------------------------------------------------------------------------
219 /** controls how the results are shown in relation to a selected
220 reference result.
222 [property, optional] DataPilotFieldReference Reference;
224 //-------------------------------------------------------------------------
226 /** specifies whether this field is a group field.
228 [property, optional] boolean IsGroupField;
230 //-------------------------------------------------------------------------
232 /** contains the grouping information of the DataPilot field.
234 <p>By changing the value of this property it is possible to modify the
235 grouping settings of this field.</p>
237 [property, optional] DataPilotFieldGroupInfo GroupInfo;
239 //-------------------------------------------------------------------------
241 /** specifies whether to show this field also if it is empty or not.
243 [property, optional] boolean ShowEmpty;
246 //=============================================================================
248 }; }; }; };
250 #endif