xref: /AOO41X/main/offapi/com/sun/star/sheet/DataPilotFieldGroupBy.idl (revision d1766043198e81d0bcfc626e12893e7b4d7e31ca)
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
10cdf0e10cSrcweir *
11*d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
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.
19cdf0e10cSrcweir *
20*d1766043SAndrew Rist *************************************************************/
21*d1766043SAndrew Rist
22*d1766043SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#ifndef __com_sun_star_sheet_DataPilotFieldGroupBy_idl__
25cdf0e10cSrcweir#define __com_sun_star_sheet_DataPilotFieldGroupBy_idl__
26cdf0e10cSrcweir
27cdf0e10cSrcweir//=============================================================================
28cdf0e10cSrcweir
29cdf0e10cSrcweirmodule com {  module sun {  module star {  module sheet {
30cdf0e10cSrcweir
31cdf0e10cSrcweir//=============================================================================
32cdf0e10cSrcweir
33cdf0e10cSrcweir/** These constants select different types for grouping members of a DataPilot
34cdf0e10cSrcweir    field by date or time.
35cdf0e10cSrcweir
36cdf0e10cSrcweir    @see DataPilotFieldGroupInfo
37cdf0e10cSrcweir */
38cdf0e10cSrcweirpublished constants DataPilotFieldGroupBy
39cdf0e10cSrcweir{
40cdf0e10cSrcweir    // -----------------------------------------------------------------------
41cdf0e10cSrcweir    /** Groups all members of a DataPilot field containing a date/time value
42cdf0e10cSrcweir        by their current value for seconds.
43cdf0e10cSrcweir
44cdf0e10cSrcweir        <p>Example: The group <em>:02</em> will contain all members that
45cdf0e10cSrcweir        contain a time with a seconds value of 2, regardless of the date,
46cdf0e10cSrcweir        hours and minutes of the member, e.g. <em>2002-Jan-03 00:00:02</em> or
47cdf0e10cSrcweir        <em>1999-May-02 12:45:02</em>.</p>
48cdf0e10cSrcweir     */
49cdf0e10cSrcweir    const long SECONDS = 1;
50cdf0e10cSrcweir
51cdf0e10cSrcweir    // -----------------------------------------------------------------------
52cdf0e10cSrcweir    /** Groups all members of a DataPilot field containing a date/time value
53cdf0e10cSrcweir        by their current value for minutes.
54cdf0e10cSrcweir
55cdf0e10cSrcweir        <p>Example: The group <em>:02</em> will contain all members that
56cdf0e10cSrcweir        contain a time with a minutes value of 2, regardless of the date,
57cdf0e10cSrcweir        hours and seconds of the member, e.g. <em>2002-Jan-03 00:02:00</em> or
58cdf0e10cSrcweir        <em>1999-May-02 12:02:45</em>.</p>
59cdf0e10cSrcweir     */
60cdf0e10cSrcweir    const long MINUTES = 2;
61cdf0e10cSrcweir
62cdf0e10cSrcweir    // -----------------------------------------------------------------------
63cdf0e10cSrcweir    /** Groups all members of a DataPilot field containing a date/time value
64cdf0e10cSrcweir        by their current value for hours.
65cdf0e10cSrcweir
66cdf0e10cSrcweir        <p>Example: The group <em>02</em> will contain all members that
67cdf0e10cSrcweir        contain a time with a hour value of 2, regardless of the date, minutes
68cdf0e10cSrcweir        and seconds of the member, e.g. <em>2002-Jan-03 02:00:00</em> or
69cdf0e10cSrcweir        <em>1999-May-02 02:12:45</em>.</p>
70cdf0e10cSrcweir     */
71cdf0e10cSrcweir    const long HOURS = 4;
72cdf0e10cSrcweir
73cdf0e10cSrcweir    // -----------------------------------------------------------------------
74cdf0e10cSrcweir    /** Groups all members of a DataPilot field containing a date/time value
75cdf0e10cSrcweir        by their calendar day, or by ranges of days.
76cdf0e10cSrcweir
77cdf0e10cSrcweir        <p>Examples:
78cdf0e10cSrcweir        <ul>
79cdf0e10cSrcweir        <li>Calendar day grouping: The group <em>Jan 03</em> will contain all
80cdf0e10cSrcweir        members that contain the january 3rd, regardless of the year or time
81cdf0e10cSrcweir        of the member, e.g. <em>2002-Jan-03 00:00:00</em> or
82cdf0e10cSrcweir        <em>1999-Jan-03 02:12:45</em>.</li>
83cdf0e10cSrcweir
84cdf0e10cSrcweir        <li>Day range grouping: The group <em>2002-Jan-03 - 2002-Jan-09</em>
85cdf0e10cSrcweir        will contain all members with a date/time in the range from
86cdf0e10cSrcweir        2002-Jan-03 00:00:00 through 2002-Jan-09 23:59:59.</li>
87cdf0e10cSrcweir        </ul></p>
88cdf0e10cSrcweir
89cdf0e10cSrcweir        <p>See descriptions for <member>XDataPilotFieldGrouping::createDateGroup
90cdf0e10cSrcweir        </member> for more details about day grouping.</p>
91cdf0e10cSrcweir     */
92cdf0e10cSrcweir    const long DAYS = 8;
93cdf0e10cSrcweir
94cdf0e10cSrcweir    // -----------------------------------------------------------------------
95cdf0e10cSrcweir    /** Groups all members of a DataPilot field containing a date/time value
96cdf0e10cSrcweir        by their month.
97cdf0e10cSrcweir
98cdf0e10cSrcweir        <p>Example: The group <em>Jan</em> will contain all members with a
99cdf0e10cSrcweir        date in the month january, regardless of the year, day, or time of the
100cdf0e10cSrcweir        member, e.g. <em>2002-Jan-03 00:00:00</em> or
101cdf0e10cSrcweir        <em>1999-Jan-02 02:12:45</em>.</p>
102cdf0e10cSrcweir     */
103cdf0e10cSrcweir    const long MONTHS = 16;
104cdf0e10cSrcweir
105cdf0e10cSrcweir    // -----------------------------------------------------------------------
106cdf0e10cSrcweir    /** Groups all members of a DataPilot field containing a date/time value
107cdf0e10cSrcweir        by their quarter.
108cdf0e10cSrcweir
109cdf0e10cSrcweir        <p>Example: The group <em>Q1</em> will contain all members with a
110cdf0e10cSrcweir        date in the first quarter of a year (i.e. the months january,
111cdf0e10cSrcweir        february, and march), regardless of the year, day, or time of the
112cdf0e10cSrcweir        member, e.g. <em>2002-Jan-03 00:00:00</em> or
113cdf0e10cSrcweir        <em>1999-Mar-02 02:12:45</em>.</p>
114cdf0e10cSrcweir     */
115cdf0e10cSrcweir    const long QUARTERS = 32;
116cdf0e10cSrcweir
117cdf0e10cSrcweir    // -----------------------------------------------------------------------
118cdf0e10cSrcweir    /** Groups all members of a DataPilot field containing a date/time value
119cdf0e10cSrcweir        by their year.
120cdf0e10cSrcweir
121cdf0e10cSrcweir        <p>Example: The group <em>1999</em> will contain all members with a
122cdf0e10cSrcweir        date in the year 1999, regardless of the month, day, or time of the
123cdf0e10cSrcweir        member, e.g. <em>1999-Jan-03 00:00:00</em> or
124cdf0e10cSrcweir        <em>1999-May-02 02:12:45</em>.</p>
125cdf0e10cSrcweir     */
126cdf0e10cSrcweir    const long YEARS = 64;
127cdf0e10cSrcweir};
128cdf0e10cSrcweir
129cdf0e10cSrcweir//=============================================================================
130cdf0e10cSrcweir
131cdf0e10cSrcweir}; }; }; };
132cdf0e10cSrcweir
133cdf0e10cSrcweir#endif
134cdf0e10cSrcweir
135