xref: /AOO41X/main/offapi/com/sun/star/sheet/XDataPilotTable2.idl (revision fbef625e460ef3feded438b39e36a4c8f360d8f1)
1d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5d1766043SAndrew Rist * distributed with this work for additional information
6d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
11d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14d1766043SAndrew Rist * software distributed under the License is distributed on an
15d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17d1766043SAndrew Rist * specific language governing permissions and limitations
18d1766043SAndrew Rist * under the License.
19cdf0e10cSrcweir *
20d1766043SAndrew Rist *************************************************************/
21d1766043SAndrew Rist
22d1766043SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#ifndef __com_sun_star_sheet_XDataPilotTable2_idl__
25cdf0e10cSrcweir#define __com_sun_star_sheet_XDataPilotTable2_idl__
26cdf0e10cSrcweir
27cdf0e10cSrcweir#ifndef __com_sun_star_uno_XInterface_idl__
28cdf0e10cSrcweir#include <com/sun/star/uno/XInterface.idl>
29cdf0e10cSrcweir#endif
30cdf0e10cSrcweir
31cdf0e10cSrcweir#ifndef __com_sun_star_table_CellAddress_idl__
32cdf0e10cSrcweir#include <com/sun/star/table/CellAddress.idl>
33cdf0e10cSrcweir#endif
34cdf0e10cSrcweir
35cdf0e10cSrcweir#ifndef __com_sun_star_table_CellRangeAddress_idl__
36cdf0e10cSrcweir#include <com/sun/star/table/CellRangeAddress.idl>
37cdf0e10cSrcweir#endif
38cdf0e10cSrcweir
39cdf0e10cSrcweir#ifndef __com_sun_star_sheet_XDataPilotTable_idl__
40cdf0e10cSrcweir#include <com/sun/star/sheet/XDataPilotTable.idl>
41cdf0e10cSrcweir#endif
42cdf0e10cSrcweir
43cdf0e10cSrcweir#ifndef __com_sun_star_sheet_DataPilotOutputRangeType_idl__
44cdf0e10cSrcweir#include <com/sun/star/sheet/DataPilotOutputRangeType.idl>
45cdf0e10cSrcweir#endif
46cdf0e10cSrcweir
47cdf0e10cSrcweir#ifndef __com_sun_star_sheet_DataPilotFieldFilter_idl__
48cdf0e10cSrcweir#include <com/sun/star/sheet/DataPilotFieldFilter.idl>
49cdf0e10cSrcweir#endif
50cdf0e10cSrcweir
51cdf0e10cSrcweir#include <com/sun/star/sheet/DataPilotTablePositionData.idl>
52cdf0e10cSrcweir#include <com/sun/star/lang/IllegalArgumentException.idl>
53cdf0e10cSrcweir
54cdf0e10cSrcweirmodule com {  module sun {  module star {  module sheet {
55cdf0e10cSrcweir
56cdf0e10cSrcweir/** additional methods to extend <type scope="com::sun::star::sheet">XDataPilotTable</type>.
57cdf0e10cSrcweir
58cdf0e10cSrcweir   <type scope="com::sun::star::sheet">XDataPilotTable2</type> extends the old
59cdf0e10cSrcweir   <type scope="com::sun::star::sheet">XDataPilotTable</type> interface with
60cdf0e10cSrcweir   additional methods.
61cdf0e10cSrcweir
62cdf0e10cSrcweir   @see com::sun::star::sheet::XDataPilotTable
63cdf0e10cSrcweir
64*fbef625eSJürgen Schmidt   @since OpenOffice 3.0
65cdf0e10cSrcweir */
66cdf0e10cSrcweirinterface XDataPilotTable2: com::sun::star::sheet::XDataPilotTable
67cdf0e10cSrcweir{
68cdf0e10cSrcweir    /** When the address of a cell within the result area is given,
69cdf0e10cSrcweir        <method>XDataPilotTable2::getDrillDownData</method> returns its drill-down
70cdf0e10cSrcweir        output table that includes only those rows that contribute to the value of
71cdf0e10cSrcweir        that cell.
72cdf0e10cSrcweir
73cdf0e10cSrcweir        @param aAddr cell address within the result area of a DataPilot table.
74cdf0e10cSrcweir
75cdf0e10cSrcweir        @returns drill-down output as 2-dimensional sequence, including the header row.
76cdf0e10cSrcweir
77cdf0e10cSrcweir        @see <method>XDataPilotTable2::insertDrillDownSheet</method>
78cdf0e10cSrcweir     */
79cdf0e10cSrcweir    sequence< sequence< any > > getDrillDownData( [in] com::sun::star::table::CellAddress aAddr );
80cdf0e10cSrcweir
81cdf0e10cSrcweir    /** Given a cell address, it returns the information about that cell.  The
82cdf0e10cSrcweir        type of information returned depends upon whether the cell is within
83cdf0e10cSrcweir        the result area or column/row header area.
84cdf0e10cSrcweir
85cdf0e10cSrcweir        @param aAddr address of the cell whose information is to be returned.
86cdf0e10cSrcweir
87cdf0e10cSrcweir        @returns <type>DataPilotTablePositionData</type> which contains the
88cdf0e10cSrcweir        position type and the information for that cell position.
89cdf0e10cSrcweir
90cdf0e10cSrcweir        @see com::sun::star::sheet::DataPilotTablePositionData
91cdf0e10cSrcweir        @see com::sun::star::sheet::DataPilotTableHeaderData
92cdf0e10cSrcweir        @see com::sun::star::sheet::DataPilotTableResultData
93cdf0e10cSrcweir     */
94cdf0e10cSrcweir    DataPilotTablePositionData getPositionData( [in] com::sun::star::table::CellAddress aAddr );
95cdf0e10cSrcweir
96cdf0e10cSrcweir    /** <p>This method inserts a new sheet to display the drill-down data for a
97cdf0e10cSrcweir        specified result cell.  A drill-down data for a result cell consists
98cdf0e10cSrcweir        of a subset of rows from the original data source that contribute to
99cdf0e10cSrcweir        the value displayed in that cell.</p>
100cdf0e10cSrcweir
101cdf0e10cSrcweir        <p>The new sheet is always inserted to the immediate left of the current
102cdf0e10cSrcweir        sheet where the DataPilot table is.  Note that when the drill-down data
103cdf0e10cSrcweir        is empty, no new sheet is inserted.</p>
104cdf0e10cSrcweir
105cdf0e10cSrcweir        @param aAddr address of a result cell
106cdf0e10cSrcweir
107cdf0e10cSrcweir        @returns <void/>
108cdf0e10cSrcweir     */
109cdf0e10cSrcweir    void insertDrillDownSheet( [in] com::sun::star::table::CellAddress aAddr );
110cdf0e10cSrcweir
111cdf0e10cSrcweir    /** <p>This method returns a different output range of a DataPilot table
112cdf0e10cSrcweir        per specified output range type.</p>
113cdf0e10cSrcweir
114cdf0e10cSrcweir        @returns <type scope="com::sun::star::table">CellRangeAddress</type> depicting
115cdf0e10cSrcweir        the range specified.  See <type>DataPilotOutputRangeType</type> for a set
116cdf0e10cSrcweir        of possible output range types.
117cdf0e10cSrcweir
118cdf0e10cSrcweir        @see com::sun::star::sheet::DataPilotOutputRangeType
119cdf0e10cSrcweir     */
120cdf0e10cSrcweir    com::sun::star::table::CellRangeAddress getOutputRangeByType( [in] long nType )
121cdf0e10cSrcweir        raises (com::sun::star::lang::IllegalArgumentException);
122cdf0e10cSrcweir};
123cdf0e10cSrcweir
124cdf0e10cSrcweir}; }; }; };
125cdf0e10cSrcweir
126cdf0e10cSrcweir#endif
127cdf0e10cSrcweir
128