1*b1cdbd2cSJim Jagielski/**************************************************************
2*b1cdbd2cSJim Jagielski *
3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
4*b1cdbd2cSJim Jagielski * or more contributor license agreements.  See the NOTICE file
5*b1cdbd2cSJim Jagielski * distributed with this work for additional information
6*b1cdbd2cSJim Jagielski * regarding copyright ownership.  The ASF licenses this file
7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
9*b1cdbd2cSJim Jagielski * with the License.  You may obtain a copy of the License at
10*b1cdbd2cSJim Jagielski *
11*b1cdbd2cSJim Jagielski *   http://www.apache.org/licenses/LICENSE-2.0
12*b1cdbd2cSJim Jagielski *
13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b1cdbd2cSJim Jagielski * KIND, either express or implied.  See the License for the
17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
18*b1cdbd2cSJim Jagielski * under the License.
19*b1cdbd2cSJim Jagielski *
20*b1cdbd2cSJim Jagielski *************************************************************/
21*b1cdbd2cSJim Jagielski
22*b1cdbd2cSJim Jagielski
23*b1cdbd2cSJim Jagielski
24*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_sheet_DataPilotFieldGroupBy_idl__
25*b1cdbd2cSJim Jagielski#define __com_sun_star_sheet_DataPilotFieldGroupBy_idl__
26*b1cdbd2cSJim Jagielski
27*b1cdbd2cSJim Jagielski//=============================================================================
28*b1cdbd2cSJim Jagielski
29*b1cdbd2cSJim Jagielskimodule com {  module sun {  module star {  module sheet {
30*b1cdbd2cSJim Jagielski
31*b1cdbd2cSJim Jagielski//=============================================================================
32*b1cdbd2cSJim Jagielski
33*b1cdbd2cSJim Jagielski/** These constants select different types for grouping members of a DataPilot
34*b1cdbd2cSJim Jagielski    field by date or time.
35*b1cdbd2cSJim Jagielski
36*b1cdbd2cSJim Jagielski    @see DataPilotFieldGroupInfo
37*b1cdbd2cSJim Jagielski */
38*b1cdbd2cSJim Jagielskipublished constants DataPilotFieldGroupBy
39*b1cdbd2cSJim Jagielski{
40*b1cdbd2cSJim Jagielski    // -----------------------------------------------------------------------
41*b1cdbd2cSJim Jagielski    /** Groups all members of a DataPilot field containing a date/time value
42*b1cdbd2cSJim Jagielski        by their current value for seconds.
43*b1cdbd2cSJim Jagielski
44*b1cdbd2cSJim Jagielski        <p>Example: The group <em>:02</em> will contain all members that
45*b1cdbd2cSJim Jagielski        contain a time with a seconds value of 2, regardless of the date,
46*b1cdbd2cSJim Jagielski        hours and minutes of the member, e.g. <em>2002-Jan-03 00:00:02</em> or
47*b1cdbd2cSJim Jagielski        <em>1999-May-02 12:45:02</em>.</p>
48*b1cdbd2cSJim Jagielski     */
49*b1cdbd2cSJim Jagielski    const long SECONDS = 1;
50*b1cdbd2cSJim Jagielski
51*b1cdbd2cSJim Jagielski    // -----------------------------------------------------------------------
52*b1cdbd2cSJim Jagielski    /** Groups all members of a DataPilot field containing a date/time value
53*b1cdbd2cSJim Jagielski        by their current value for minutes.
54*b1cdbd2cSJim Jagielski
55*b1cdbd2cSJim Jagielski        <p>Example: The group <em>:02</em> will contain all members that
56*b1cdbd2cSJim Jagielski        contain a time with a minutes value of 2, regardless of the date,
57*b1cdbd2cSJim Jagielski        hours and seconds of the member, e.g. <em>2002-Jan-03 00:02:00</em> or
58*b1cdbd2cSJim Jagielski        <em>1999-May-02 12:02:45</em>.</p>
59*b1cdbd2cSJim Jagielski     */
60*b1cdbd2cSJim Jagielski    const long MINUTES = 2;
61*b1cdbd2cSJim Jagielski
62*b1cdbd2cSJim Jagielski    // -----------------------------------------------------------------------
63*b1cdbd2cSJim Jagielski    /** Groups all members of a DataPilot field containing a date/time value
64*b1cdbd2cSJim Jagielski        by their current value for hours.
65*b1cdbd2cSJim Jagielski
66*b1cdbd2cSJim Jagielski        <p>Example: The group <em>02</em> will contain all members that
67*b1cdbd2cSJim Jagielski        contain a time with a hour value of 2, regardless of the date, minutes
68*b1cdbd2cSJim Jagielski        and seconds of the member, e.g. <em>2002-Jan-03 02:00:00</em> or
69*b1cdbd2cSJim Jagielski        <em>1999-May-02 02:12:45</em>.</p>
70*b1cdbd2cSJim Jagielski     */
71*b1cdbd2cSJim Jagielski    const long HOURS = 4;
72*b1cdbd2cSJim Jagielski
73*b1cdbd2cSJim Jagielski    // -----------------------------------------------------------------------
74*b1cdbd2cSJim Jagielski    /** Groups all members of a DataPilot field containing a date/time value
75*b1cdbd2cSJim Jagielski        by their calendar day, or by ranges of days.
76*b1cdbd2cSJim Jagielski
77*b1cdbd2cSJim Jagielski        <p>Examples:
78*b1cdbd2cSJim Jagielski        <ul>
79*b1cdbd2cSJim Jagielski        <li>Calendar day grouping: The group <em>Jan 03</em> will contain all
80*b1cdbd2cSJim Jagielski        members that contain the january 3rd, regardless of the year or time
81*b1cdbd2cSJim Jagielski        of the member, e.g. <em>2002-Jan-03 00:00:00</em> or
82*b1cdbd2cSJim Jagielski        <em>1999-Jan-03 02:12:45</em>.</li>
83*b1cdbd2cSJim Jagielski
84*b1cdbd2cSJim Jagielski        <li>Day range grouping: The group <em>2002-Jan-03 - 2002-Jan-09</em>
85*b1cdbd2cSJim Jagielski        will contain all members with a date/time in the range from
86*b1cdbd2cSJim Jagielski        2002-Jan-03 00:00:00 through 2002-Jan-09 23:59:59.</li>
87*b1cdbd2cSJim Jagielski        </ul></p>
88*b1cdbd2cSJim Jagielski
89*b1cdbd2cSJim Jagielski        <p>See descriptions for <member>XDataPilotFieldGrouping::createDateGroup
90*b1cdbd2cSJim Jagielski        </member> for more details about day grouping.</p>
91*b1cdbd2cSJim Jagielski     */
92*b1cdbd2cSJim Jagielski    const long DAYS = 8;
93*b1cdbd2cSJim Jagielski
94*b1cdbd2cSJim Jagielski    // -----------------------------------------------------------------------
95*b1cdbd2cSJim Jagielski    /** Groups all members of a DataPilot field containing a date/time value
96*b1cdbd2cSJim Jagielski        by their month.
97*b1cdbd2cSJim Jagielski
98*b1cdbd2cSJim Jagielski        <p>Example: The group <em>Jan</em> will contain all members with a
99*b1cdbd2cSJim Jagielski        date in the month january, regardless of the year, day, or time of the
100*b1cdbd2cSJim Jagielski        member, e.g. <em>2002-Jan-03 00:00:00</em> or
101*b1cdbd2cSJim Jagielski        <em>1999-Jan-02 02:12:45</em>.</p>
102*b1cdbd2cSJim Jagielski     */
103*b1cdbd2cSJim Jagielski    const long MONTHS = 16;
104*b1cdbd2cSJim Jagielski
105*b1cdbd2cSJim Jagielski    // -----------------------------------------------------------------------
106*b1cdbd2cSJim Jagielski    /** Groups all members of a DataPilot field containing a date/time value
107*b1cdbd2cSJim Jagielski        by their quarter.
108*b1cdbd2cSJim Jagielski
109*b1cdbd2cSJim Jagielski        <p>Example: The group <em>Q1</em> will contain all members with a
110*b1cdbd2cSJim Jagielski        date in the first quarter of a year (i.e. the months january,
111*b1cdbd2cSJim Jagielski        february, and march), regardless of the year, day, or time of the
112*b1cdbd2cSJim Jagielski        member, e.g. <em>2002-Jan-03 00:00:00</em> or
113*b1cdbd2cSJim Jagielski        <em>1999-Mar-02 02:12:45</em>.</p>
114*b1cdbd2cSJim Jagielski     */
115*b1cdbd2cSJim Jagielski    const long QUARTERS = 32;
116*b1cdbd2cSJim Jagielski
117*b1cdbd2cSJim Jagielski    // -----------------------------------------------------------------------
118*b1cdbd2cSJim Jagielski    /** Groups all members of a DataPilot field containing a date/time value
119*b1cdbd2cSJim Jagielski        by their year.
120*b1cdbd2cSJim Jagielski
121*b1cdbd2cSJim Jagielski        <p>Example: The group <em>1999</em> will contain all members with a
122*b1cdbd2cSJim Jagielski        date in the year 1999, regardless of the month, day, or time of the
123*b1cdbd2cSJim Jagielski        member, e.g. <em>1999-Jan-03 00:00:00</em> or
124*b1cdbd2cSJim Jagielski        <em>1999-May-02 02:12:45</em>.</p>
125*b1cdbd2cSJim Jagielski     */
126*b1cdbd2cSJim Jagielski    const long YEARS = 64;
127*b1cdbd2cSJim Jagielski};
128*b1cdbd2cSJim Jagielski
129*b1cdbd2cSJim Jagielski//=============================================================================
130*b1cdbd2cSJim Jagielski
131*b1cdbd2cSJim Jagielski}; }; }; };
132*b1cdbd2cSJim Jagielski
133*b1cdbd2cSJim Jagielski#endif
134*b1cdbd2cSJim Jagielski
135