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 .
20 #ifndef __com_sun_star_sheet_DataPilotFieldGroupInfo_idl__
21 #define __com_sun_star_sheet_DataPilotFieldGroupInfo_idl__
23 #include
<com
/sun
/star
/sheet
/XDataPilotField.idl
>
24 #include
<com
/sun
/star
/container
/XNameAccess.idl
>
27 module com
{ module sun
{ module star
{ module sheet
{
30 /** contains the grouping information of a DataPilotField.
32 published
struct DataPilotFieldGroupInfo
35 /** specifies whether the start value for the grouping is taken
36 automatically from the minimum of the item values.
39 <li>If `FALSE` is set, the value from #Start will be
40 used as start value for the grouping.</li>
41 <li>If `TRUE` is set, the start value for the grouping will be
42 calculated automatically from the minimum of all member values of the
49 /** specifies whether the end value for the grouping is taken
50 automatically from the maximum of the item values.
53 <li>If `FALSE` is set, the value from #End will be
54 used as end value for the grouping.</li>
55 <li>If `TRUE` is set, the end value for the grouping will be
56 calculated automatically from the maximum of all member values of the
63 /** specifies whether date values are grouped by ranges of days.
66 <li>If `FALSE` is set, and #GroupBy contains zero,
67 grouping is performed inplace on the item values.</li>
68 <li>If `FALSE` is set, and #GroupBy contains one or
69 more flags from DataPilotFieldGroupBy, grouping is
70 performed on date or time.</li>
71 <li>If `TRUE` is set, #Step contains a value greater
72 than or equal to 1, and #GroupBy set to
73 DataPilotFieldGroupBy::DAYS, grouping is performed on ranges
74 of days (see descriptions for
75 XDataPilotFieldGrouping::createDateGroup() for more details
76 about day grouping).</li>
79 boolean HasDateValues
;
82 /** specifies the start value for the grouping if #HasAutoStart
88 /** specifies the end value for the grouping if #HasAutoEnd
94 /** specifies the size of the ranges for numeric or day grouping.
96 <p>Example: With #HasAutoStart set to `FALSE`,
97 #Start set to 2, and #Step set to 3,
98 the first group will contain all values greater than or equal to 2 and
99 less than 5. The second group will contain all values greater than or
100 equal to 5 and less then 8, and so on.</p>
105 /** specifies the grouping of the date values.
107 @see DataPilotFieldGroupBy
112 /** contains the source DataPilot field grouping is based on. Will be
113 `NULL` if this field is not grouped or contains numeric grouping.
117 XDataPilotField SourceField
;
120 /** specifies the named groups in this field if there are some.
122 <p>The returned object is an instance of DataPilotFieldGroups
123 . The collection of groups can be modified by inserting,
124 removing, replacing, or renaming single groups or item names in the
125 groups. When writing back this struct containing such a changed
126 collection of groups to the DataPilotField::GroupInfo
127 property, the modified grouping settings are applied at the DataPilot
131 @see DataPilotFieldGroups
133 com
::sun
::star
::container
::XNameAccess Groups
;
141 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */