1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24#ifndef __com_sun_star_sheet_DataPilotSource_idl__
25#define __com_sun_star_sheet_DataPilotSource_idl__
26
27#ifndef __com_sun_star_sheet_XDimensionsSupplier_idl__
28#include <com/sun/star/sheet/XDimensionsSupplier.idl>
29#endif
30
31#ifndef __com_sun_star_sheet_XDataPilotResults_idl__
32#include <com/sun/star/sheet/XDataPilotResults.idl>
33#endif
34
35#ifndef __com_sun_star_util_XRefreshable_idl__
36#include <com/sun/star/util/XRefreshable.idl>
37#endif
38
39#ifndef __com_sun_star_beans_XPropertySet_idl__
40#include <com/sun/star/beans/XPropertySet.idl>
41#endif
42
43//=============================================================================
44
45module com {  module sun {  module star {  module sheet {
46
47//=============================================================================
48
49/** represents a data pilot source.
50
51	<p>A component that implements this service can be used as data source
52	for a data pilot table in a spreadsheet document.</p>
53 */
54published service DataPilotSource
55{
56	//-------------------------------------------------------------------------
57
58	/** provides access to the collection of the dimensions of the data
59		pilot source.
60	 */
61	interface com::sun::star::sheet::XDimensionsSupplier;
62
63	//-------------------------------------------------------------------------
64
65	/** gives access to the results of the data pilot table.
66	 */
67	interface com::sun::star::sheet::XDataPilotResults;
68
69	//-------------------------------------------------------------------------
70
71	/** provides methods to refresh the data pilot table, that means to
72		read the data again from the data pilot source.
73	 */
74	interface com::sun::star::util::XRefreshable;
75
76	//-------------------------------------------------------------------------
77
78//!published service PropertySet
79	/** provides access to the properties.
80	 */
81	interface com::sun::star::beans::XPropertySet;
82
83	//=========================================================================
84
85	/** specifies if grand totals for the columns are inserted.
86	 */
87	[property] boolean ColumnGrand;
88
89	//-------------------------------------------------------------------------
90
91	/** specifies if grand totals for the rows are inserted.
92	 */
93	[property] boolean RowGrand;
94
95    //-------------------------------------------------------------------------
96
97    /** specifies the number of row fields.
98
99        @since OOo 3.0
100     */
101    [readonly, property, optional] long RowFieldCount;
102
103    //-------------------------------------------------------------------------
104
105    /** specifies the number of column fields.
106
107        @since OOo 3.0
108     */
109    [readonly, property, optional] long ColumnFieldCount;
110
111    //-------------------------------------------------------------------------
112
113    /** specifies the number of data fields.
114
115        @since OOo 3.0
116     */
117    [readonly, property, optional] long DataFieldCount;
118};
119
120//=============================================================================
121
122}; }; }; };
123
124#endif
125
126