1*d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*d1766043SAndrew Rist * distributed with this work for additional information
6*d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9*d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10*d1766043SAndrew Rist *
11*d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*d1766043SAndrew Rist *
13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*d1766043SAndrew Rist * software distributed under the License is distributed on an
15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17*d1766043SAndrew Rist * specific language governing permissions and limitations
18*d1766043SAndrew Rist * under the License.
19*d1766043SAndrew Rist *
20*d1766043SAndrew Rist *************************************************************/
21*d1766043SAndrew Rist
22*d1766043SAndrew Rist
23cdf0e10cSrcweir#ifndef com_sun_star_chart2_data_DataSequence_idl
24cdf0e10cSrcweir#define com_sun_star_chart2_data_DataSequence_idl
25cdf0e10cSrcweir
26cdf0e10cSrcweir#include <com/sun/star/beans/XPropertySet.idl>
27cdf0e10cSrcweir#include <com/sun/star/container/XIndexReplace.idl>
28cdf0e10cSrcweir#include <com/sun/star/util/XCloneable.idl>
29cdf0e10cSrcweir#include <com/sun/star/util/XModifyBroadcaster.idl>
30cdf0e10cSrcweir
31cdf0e10cSrcweir#include <com/sun/star/chart2/data/XDataSequence.idl>
32cdf0e10cSrcweir#include <com/sun/star/chart2/data/XNumericalDataSequence.idl>
33cdf0e10cSrcweir#include <com/sun/star/chart2/data/XTextualDataSequence.idl>
34cdf0e10cSrcweir
35cdf0e10cSrcweir#include <com/sun/star/chart2/data/DataSequenceRole.idl>
36cdf0e10cSrcweir
37cdf0e10cSrcweirmodule com
38cdf0e10cSrcweir{
39cdf0e10cSrcweirmodule sun
40cdf0e10cSrcweir{
41cdf0e10cSrcweirmodule star
42cdf0e10cSrcweir{
43cdf0e10cSrcweirmodule chart2
44cdf0e10cSrcweir{
45cdf0e10cSrcweirmodule data
46cdf0e10cSrcweir{
47cdf0e10cSrcweir
48cdf0e10cSrcweir/** describes a container for a sequence of values.
49cdf0e10cSrcweir
50cdf0e10cSrcweir    <p>With the interface <type>XDataSequence</type> it is possible to
51cdf0e10cSrcweir    transfer a complete sequence of values.
52cdf0e10cSrcweir
53cdf0e10cSrcweir    <p>With the optional
54cdf0e10cSrcweir    <type scope="com::sun::star::container">XIndexReplace</type> it is
55cdf0e10cSrcweir    possible to modify single elements, if the corresponding
56cdf0e10cSrcweir    <type>DataProvider</type> supports modification of its values.</p>
57cdf0e10cSrcweir  */
58cdf0e10cSrcweirservice DataSequence
59cdf0e10cSrcweir{
60cdf0e10cSrcweir    /** provides read- and write-access to the underlying data.
61cdf0e10cSrcweir     */
62cdf0e10cSrcweir    interface XDataSequence;
63cdf0e10cSrcweir
64cdf0e10cSrcweir    /** you may implement this interface to allow a fast acces to
65cdf0e10cSrcweir        numerical data.  With this interface you can get a
66cdf0e10cSrcweir        <atom>sequence</atom> of <atom>double</atom> values.
67cdf0e10cSrcweir    */
68cdf0e10cSrcweir    [optional] interface   XNumericalDataSequence;
69cdf0e10cSrcweir
70cdf0e10cSrcweir    /** you may implement this interface to allow a fast acces to
71cdf0e10cSrcweir        textual data.  With this interface you can get a
72cdf0e10cSrcweir        <atom>sequence</atom> of <atom>string</atom> values.
73cdf0e10cSrcweir    */
74cdf0e10cSrcweir    [optional] interface   XTextualDataSequence;
75cdf0e10cSrcweir
76cdf0e10cSrcweir    /** provides read- and write-access to single elements of the
77cdf0e10cSrcweir        underlying data.
78cdf0e10cSrcweir
79cdf0e10cSrcweir        <p>Only when supporting this interface, it is possible for
80cdf0e10cSrcweir        client applications to modify the content of the data that is
81cdf0e10cSrcweir        provided by this <type>DataSequence</type>.</p>
82cdf0e10cSrcweir     */
83cdf0e10cSrcweir    [optional] interface ::com::sun::star::container::XIndexReplace;
84cdf0e10cSrcweir
85cdf0e10cSrcweir    /** Allows creating copies of data sequences.  If this interface
86cdf0e10cSrcweir        is not supported, the same object will be shared if used by
87cdf0e10cSrcweir        multiple objects.
88cdf0e10cSrcweir
89cdf0e10cSrcweir        <p>Cloning is especially useful when using identifiers.  A
90cdf0e10cSrcweir        cloned data sequence will get a new identifier while the
91cdf0e10cSrcweir        source range representation is identical to the original
92cdf0e10cSrcweir        one.</p>
93cdf0e10cSrcweir
94cdf0e10cSrcweir        <p>Note that, when this interface is not implemented the
95cdf0e10cSrcweir        releasing of identifiers at the <type>XDataProvider</type>
96cdf0e10cSrcweir        will not work properly, because more than one object may use
97cdf0e10cSrcweir        the same identifier.  So, when an object releases the
98cdf0e10cSrcweir        identifier, another object might use a stale identifier.</p>
99cdf0e10cSrcweir     */
100cdf0e10cSrcweir    [optional] interface ::com::sun::star::util::XCloneable;
101cdf0e10cSrcweir
102cdf0e10cSrcweir    /** is used to broadcast change events whenever the content (data)
103cdf0e10cSrcweir        or the range representations change.
104cdf0e10cSrcweir     */
105cdf0e10cSrcweir    interface com::sun::star::util::XModifyBroadcaster;
106cdf0e10cSrcweir
107cdf0e10cSrcweir    /** the property interface by which the properties of all
108cdf0e10cSrcweir        supported services are exchanged
109cdf0e10cSrcweir    */
110cdf0e10cSrcweir    interface ::com::sun::star::beans::XPropertySet;
111cdf0e10cSrcweir
112cdf0e10cSrcweir    // ----------------------------------------------------------------------
113cdf0e10cSrcweir
114cdf0e10cSrcweir    /** The key (index) of the number format that this sequence should
115cdf0e10cSrcweir        be formatted with.
116cdf0e10cSrcweir
117cdf0e10cSrcweir        <p>The key identifies a number format in an
118cdf0e10cSrcweir        <type scope="com::sun::star::util">XNumberFormats</type>
119cdf0e10cSrcweir        object.  This object can be retrieved by the
120cdf0e10cSrcweir        <type scope="com::sun::star::util">XNumberFormatsSupplier</type>
121cdf0e10cSrcweir        interface supported by
122cdf0e10cSrcweir        <type scope="com::sun::star::chart">ChartDocument</type>.</p>
123cdf0e10cSrcweir
124cdf0e10cSrcweir        @todo use proper number format instead of a transient key.
125cdf0e10cSrcweir     */
126cdf0e10cSrcweir//     [optional, property] long                     NumberFormatKey;
127cdf0e10cSrcweir
128cdf0e10cSrcweir    /** The role of the series inside a data series.  This may be any
129cdf0e10cSrcweir        string.  However some strings are predefined and should always
130cdf0e10cSrcweir        be used in the same way.
131cdf0e10cSrcweir
132cdf0e10cSrcweir        @see DataSequenceRole
133cdf0e10cSrcweir     */
134cdf0e10cSrcweir    [property] DataSequenceRole                   Role;
135cdf0e10cSrcweir
136cdf0e10cSrcweir    /** If set to false <FALSE/>, values from hidden cells are not returned.
137cdf0e10cSrcweir     */
138cdf0e10cSrcweir    [optional, property] boolean                  IncludeHiddenCells;
139cdf0e10cSrcweir
140cdf0e10cSrcweir    /** a sequence of indexes that identify values that are hidden in the underlying
141cdf0e10cSrcweir        data provider.
142cdf0e10cSrcweir     */
143cdf0e10cSrcweir    [optional, property] sequence< long >         HiddenValues;
144cdf0e10cSrcweir};
145cdf0e10cSrcweir
146cdf0e10cSrcweir} ; // data
147cdf0e10cSrcweir} ; // chart2
148cdf0e10cSrcweir} ; // com
149cdf0e10cSrcweir} ; // sun
150cdf0e10cSrcweir} ; // star
151cdf0e10cSrcweir
152cdf0e10cSrcweir
153cdf0e10cSrcweir#endif
154