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#ifndef com_sun_star_chart2_data_DataSequence_idl
24*b1cdbd2cSJim Jagielski#define com_sun_star_chart2_data_DataSequence_idl
25*b1cdbd2cSJim Jagielski
26*b1cdbd2cSJim Jagielski#include <com/sun/star/beans/XPropertySet.idl>
27*b1cdbd2cSJim Jagielski#include <com/sun/star/container/XIndexReplace.idl>
28*b1cdbd2cSJim Jagielski#include <com/sun/star/util/XCloneable.idl>
29*b1cdbd2cSJim Jagielski#include <com/sun/star/util/XModifyBroadcaster.idl>
30*b1cdbd2cSJim Jagielski
31*b1cdbd2cSJim Jagielski#include <com/sun/star/chart2/data/XDataSequence.idl>
32*b1cdbd2cSJim Jagielski#include <com/sun/star/chart2/data/XNumericalDataSequence.idl>
33*b1cdbd2cSJim Jagielski#include <com/sun/star/chart2/data/XTextualDataSequence.idl>
34*b1cdbd2cSJim Jagielski
35*b1cdbd2cSJim Jagielski#include <com/sun/star/chart2/data/DataSequenceRole.idl>
36*b1cdbd2cSJim Jagielski
37*b1cdbd2cSJim Jagielskimodule com
38*b1cdbd2cSJim Jagielski{
39*b1cdbd2cSJim Jagielskimodule sun
40*b1cdbd2cSJim Jagielski{
41*b1cdbd2cSJim Jagielskimodule star
42*b1cdbd2cSJim Jagielski{
43*b1cdbd2cSJim Jagielskimodule chart2
44*b1cdbd2cSJim Jagielski{
45*b1cdbd2cSJim Jagielskimodule data
46*b1cdbd2cSJim Jagielski{
47*b1cdbd2cSJim Jagielski
48*b1cdbd2cSJim Jagielski/** describes a container for a sequence of values.
49*b1cdbd2cSJim Jagielski
50*b1cdbd2cSJim Jagielski    <p>With the interface <type>XDataSequence</type> it is possible to
51*b1cdbd2cSJim Jagielski    transfer a complete sequence of values.
52*b1cdbd2cSJim Jagielski
53*b1cdbd2cSJim Jagielski    <p>With the optional
54*b1cdbd2cSJim Jagielski    <type scope="com::sun::star::container">XIndexReplace</type> it is
55*b1cdbd2cSJim Jagielski    possible to modify single elements, if the corresponding
56*b1cdbd2cSJim Jagielski    <type>DataProvider</type> supports modification of its values.</p>
57*b1cdbd2cSJim Jagielski  */
58*b1cdbd2cSJim Jagielskiservice DataSequence
59*b1cdbd2cSJim Jagielski{
60*b1cdbd2cSJim Jagielski    /** provides read- and write-access to the underlying data.
61*b1cdbd2cSJim Jagielski     */
62*b1cdbd2cSJim Jagielski    interface XDataSequence;
63*b1cdbd2cSJim Jagielski
64*b1cdbd2cSJim Jagielski    /** you may implement this interface to allow a fast acces to
65*b1cdbd2cSJim Jagielski        numerical data.  With this interface you can get a
66*b1cdbd2cSJim Jagielski        <atom>sequence</atom> of <atom>double</atom> values.
67*b1cdbd2cSJim Jagielski    */
68*b1cdbd2cSJim Jagielski    [optional] interface   XNumericalDataSequence;
69*b1cdbd2cSJim Jagielski
70*b1cdbd2cSJim Jagielski    /** you may implement this interface to allow a fast acces to
71*b1cdbd2cSJim Jagielski        textual data.  With this interface you can get a
72*b1cdbd2cSJim Jagielski        <atom>sequence</atom> of <atom>string</atom> values.
73*b1cdbd2cSJim Jagielski    */
74*b1cdbd2cSJim Jagielski    [optional] interface   XTextualDataSequence;
75*b1cdbd2cSJim Jagielski
76*b1cdbd2cSJim Jagielski    /** provides read- and write-access to single elements of the
77*b1cdbd2cSJim Jagielski        underlying data.
78*b1cdbd2cSJim Jagielski
79*b1cdbd2cSJim Jagielski        <p>Only when supporting this interface, it is possible for
80*b1cdbd2cSJim Jagielski        client applications to modify the content of the data that is
81*b1cdbd2cSJim Jagielski        provided by this <type>DataSequence</type>.</p>
82*b1cdbd2cSJim Jagielski     */
83*b1cdbd2cSJim Jagielski    [optional] interface ::com::sun::star::container::XIndexReplace;
84*b1cdbd2cSJim Jagielski
85*b1cdbd2cSJim Jagielski    /** Allows creating copies of data sequences.  If this interface
86*b1cdbd2cSJim Jagielski        is not supported, the same object will be shared if used by
87*b1cdbd2cSJim Jagielski        multiple objects.
88*b1cdbd2cSJim Jagielski
89*b1cdbd2cSJim Jagielski        <p>Cloning is especially useful when using identifiers.  A
90*b1cdbd2cSJim Jagielski        cloned data sequence will get a new identifier while the
91*b1cdbd2cSJim Jagielski        source range representation is identical to the original
92*b1cdbd2cSJim Jagielski        one.</p>
93*b1cdbd2cSJim Jagielski
94*b1cdbd2cSJim Jagielski        <p>Note that, when this interface is not implemented the
95*b1cdbd2cSJim Jagielski        releasing of identifiers at the <type>XDataProvider</type>
96*b1cdbd2cSJim Jagielski        will not work properly, because more than one object may use
97*b1cdbd2cSJim Jagielski        the same identifier.  So, when an object releases the
98*b1cdbd2cSJim Jagielski        identifier, another object might use a stale identifier.</p>
99*b1cdbd2cSJim Jagielski     */
100*b1cdbd2cSJim Jagielski    [optional] interface ::com::sun::star::util::XCloneable;
101*b1cdbd2cSJim Jagielski
102*b1cdbd2cSJim Jagielski    /** is used to broadcast change events whenever the content (data)
103*b1cdbd2cSJim Jagielski        or the range representations change.
104*b1cdbd2cSJim Jagielski     */
105*b1cdbd2cSJim Jagielski    interface com::sun::star::util::XModifyBroadcaster;
106*b1cdbd2cSJim Jagielski
107*b1cdbd2cSJim Jagielski    /** the property interface by which the properties of all
108*b1cdbd2cSJim Jagielski        supported services are exchanged
109*b1cdbd2cSJim Jagielski    */
110*b1cdbd2cSJim Jagielski    interface ::com::sun::star::beans::XPropertySet;
111*b1cdbd2cSJim Jagielski
112*b1cdbd2cSJim Jagielski    // ----------------------------------------------------------------------
113*b1cdbd2cSJim Jagielski
114*b1cdbd2cSJim Jagielski    /** The key (index) of the number format that this sequence should
115*b1cdbd2cSJim Jagielski        be formatted with.
116*b1cdbd2cSJim Jagielski
117*b1cdbd2cSJim Jagielski        <p>The key identifies a number format in an
118*b1cdbd2cSJim Jagielski        <type scope="com::sun::star::util">XNumberFormats</type>
119*b1cdbd2cSJim Jagielski        object.  This object can be retrieved by the
120*b1cdbd2cSJim Jagielski        <type scope="com::sun::star::util">XNumberFormatsSupplier</type>
121*b1cdbd2cSJim Jagielski        interface supported by
122*b1cdbd2cSJim Jagielski        <type scope="com::sun::star::chart">ChartDocument</type>.</p>
123*b1cdbd2cSJim Jagielski
124*b1cdbd2cSJim Jagielski        @todo use proper number format instead of a transient key.
125*b1cdbd2cSJim Jagielski     */
126*b1cdbd2cSJim Jagielski//     [optional, property] long                     NumberFormatKey;
127*b1cdbd2cSJim Jagielski
128*b1cdbd2cSJim Jagielski    /** The role of the series inside a data series.  This may be any
129*b1cdbd2cSJim Jagielski        string.  However some strings are predefined and should always
130*b1cdbd2cSJim Jagielski        be used in the same way.
131*b1cdbd2cSJim Jagielski
132*b1cdbd2cSJim Jagielski        @see DataSequenceRole
133*b1cdbd2cSJim Jagielski     */
134*b1cdbd2cSJim Jagielski    [property] DataSequenceRole                   Role;
135*b1cdbd2cSJim Jagielski
136*b1cdbd2cSJim Jagielski    /** If set to false <FALSE/>, values from hidden cells are not returned.
137*b1cdbd2cSJim Jagielski     */
138*b1cdbd2cSJim Jagielski    [optional, property] boolean                  IncludeHiddenCells;
139*b1cdbd2cSJim Jagielski
140*b1cdbd2cSJim Jagielski    /** a sequence of indexes that identify values that are hidden in the underlying
141*b1cdbd2cSJim Jagielski        data provider.
142*b1cdbd2cSJim Jagielski     */
143*b1cdbd2cSJim Jagielski    [optional, property] sequence< long >         HiddenValues;
144*b1cdbd2cSJim Jagielski};
145*b1cdbd2cSJim Jagielski
146*b1cdbd2cSJim Jagielski} ; // data
147*b1cdbd2cSJim Jagielski} ; // chart2
148*b1cdbd2cSJim Jagielski} ; // com
149*b1cdbd2cSJim Jagielski} ; // sun
150*b1cdbd2cSJim Jagielski} ; // star
151*b1cdbd2cSJim Jagielski
152*b1cdbd2cSJim Jagielski
153*b1cdbd2cSJim Jagielski#endif
154