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 .
21 module com
{ module sun
{ module star
{ module sheet
{
24 /** represents a single field in a data pilot table.
26 <p>If the data pilot table is based on a spreadsheet cell range, a field
27 is represented by a column of the range and is named using the topmost
28 cell of the column.</p>
30 published service DataPilotField
33 /** provides access to the name of the data pilot field.
35 interface com
::sun
::star
::container
::XNamed
;
38 //!published service PropertySet
39 /** provides access to the properties.
41 interface com
::sun
::star
::beans
::XPropertySet
;
44 [optional] interface XDataPilotField
;
47 [optional] interface XDataPilotFieldGrouping
;
50 /** specifies the orientation of the field.
52 <p>If the orientation of a field has been changed using this property,
53 the field will be moved to the last position in the collection of all
54 fields with the specified orientation.</p>
56 [property
] DataPilotFieldOrientation Orientation
;
59 /** specifies the function used to calculate results for this field.
61 <p>For column and row fields, this is the function for subtotals
62 (GeneralFunction::NONE means no subtotals).
63 For data fields, this is the function shown in the data pilot
66 [property
] GeneralFunction Function
;
69 /** specifies the functions used to calculate subtotals for this field.
71 <p>This property is supported by column and row fields only.</p>
73 <p>An empty sequence means no subtotals. The same effect can be
74 achieved by setting the property #Function to the
75 value GeneralFunction::NONE. If the length of the
76 sequence is greater than 1, then the sequence MUST NOT contain one of
77 the values GeneralFunction::NONE or
78 GeneralFunction::AUTO.</p>
80 <p>The order of the functions in this sequence is reflected in the
81 DataPilot table. Multiple entries of the same function are ignored
82 when setting the property.</p>
84 [property
, optional] sequence
<GeneralFunction
> Subtotals
;
86 /** specifies the selected page which is used to filter the data pilot.
88 [property
, optional] string SelectedPage
;
91 /** specifies whether to use the selected page to filter the data pilot or
94 [property
, optional] boolean UseSelectedPage
;
97 /** specifies which hierarchy of the dimension is used.
99 @see com::sun::star::sheet::DataPilotSourceHierarchies
101 [property
, optional] string UsedHierarchy
;
104 /** specifies whether this field has sorting information.
106 [property
, optional] boolean HasSortInfo
;
109 /** controls how the field's items are sorted.
111 [property
, optional] DataPilotFieldSortInfo SortInfo
;
114 /** specifies whether this field has layout information.
116 [property
, optional] boolean HasLayoutInfo
;
119 /** controls how the field's items are laid out in the result table.
121 [property
, optional] DataPilotFieldLayoutInfo LayoutInfo
;
124 /** specifies whether this field has auto show information.
126 [property
, optional] boolean HasAutoShowInfo
;
129 /** enables the automatic inclusion of only a number of items with
130 the highest or lowest result values.
132 [property
, optional] DataPilotFieldAutoShowInfo AutoShowInfo
;
135 /** specifies whether this field has a reference.
137 [property
, optional] boolean HasReference
;
140 /** controls how the results are shown in relation to a selected
143 [property
, optional] DataPilotFieldReference Reference
;
146 /** specifies whether this field is a group field.
148 [property
, optional] boolean IsGroupField
;
151 /** contains the grouping information of the DataPilot field.
153 <p>By changing the value of this property it is possible to modify the
154 grouping settings of this field.</p>
156 [property
, optional] DataPilotFieldGroupInfo GroupInfo
;
159 /** specifies whether to show this field also if it is empty or not.
161 [property
, optional] boolean ShowEmpty
;
163 /** specifies the function used to calculate results for this field.
165 <p>For column and row fields, this is the function for subtotals
166 (GeneralFunction2::NONE means no subtotals).
167 For data fields, this is the function shown in the data pilot
170 @since LibreOffice 5.3
173 [property
, optional] short Function2
;
175 /** specifies the functions used to calculate subtotals for this field.
177 <p>This property is supported by column and row fields only.</p>
179 <p>An empty sequence means no subtotals. The same effect can be
180 achieved by setting the property #Function2 to the
181 value GeneralFunction::NONE. If the length of the
182 sequence is greater than 1, then the sequence MUST NOT contain one of
183 the values GeneralFunction2::NONE or
184 GeneralFunction2::AUTO.</p>
186 <p>The order of the functions in this sequence is reflected in the
187 DataPilot table. Multiple entries of the same function are ignored
188 when setting the property.</p>
190 @since LibreOffice 5.3
192 [property
, optional] sequence
<short> Subtotals2
;
198 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */