summaryrefslogtreecommitdiff
path: root/offapi/com/sun/star/chart2/data/XPivotChartDataProvider.idl
blob: 60c76baf889e1fbd82c21e9b4d35c912abea86c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

#ifndef com_sun_star_chart2_data_XPivotChartDataProvider_idl
#define com_sun_star_chart2_data_XPivotChartDataProvider_idl

#include <com/sun/star/uno/XInterface.idl>
#include <com/sun/star/chart2/data/PivotTableFieldEntry.idl>

module com { module sun { module star { module chart2 { module data {

/**
 * Data provider specific for pivot chart data.
 *
 * @since LibreOffice 5.4
 */
interface XPivotChartDataProvider : com::sun::star::uno::XInterface
{
    /** names of column fields from the associated pivot table
     *
     * @since LibreOffice 5.4
     */
    sequence<com::sun::star::chart2::data::PivotTableFieldEntry> getColumnFields();

    /** names of row fields from the associated pivot table
     *
     * @since LibreOffice 5.4
     */
    sequence<com::sun::star::chart2::data::PivotTableFieldEntry> getRowFields();

    /** names of page fields from the associated pivot table
     *
     * @since LibreOffice 5.4
     */
    sequence<com::sun::star::chart2::data::PivotTableFieldEntry> getPageFields();

    /** names of data fields from the associated pivot table
     *
     * @since LibreOffice 5.4
     */
    sequence<com::sun::star::chart2::data::PivotTableFieldEntry> getDataFields();

    /** get the associated pivot table name
     *
     * @since LibreOffice 5.4
     */
    string getPivotTableName();

    /** set the associated pivot table name
     *
     * @since LibreOffice 5.4
     */
     void setPivotTableName([in] string sPivotTableName);

    /** creates a single data sequence of values for the given data series index.
     *
     *  @param nIndex
     *      index of the data series
     *
     *  @since LibreOffice 5.4
     */
    XDataSequence createDataSequenceOfValuesByIndex([in] long nIndex);

    /** creates a single data sequence of label(s) for the given data series index.
     *
     *  @param nIndex
     *      index of the data series
     *
     *  @since LibreOffice 5.4
     */
     XDataSequence createDataSequenceOfLabelsByIndex([in] long nIndex);

    /** creates a single data sequence of categories.
     *
     *  @since LibreOffice 5.4
     */
    XDataSequence createDataSequenceOfCategories();
};

};};};};};

#endif

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */