1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef com_sun_star_chart2_data_DataSequence_idl
20 #define com_sun_star_chart2_data_DataSequence_idl
22 #include
<com
/sun
/star
/beans
/XPropertySet.idl
>
23 #include
<com
/sun
/star
/container
/XIndexReplace.idl
>
24 #include
<com
/sun
/star
/util
/XCloneable.idl
>
25 #include
<com
/sun
/star
/util
/XModifyBroadcaster.idl
>
26 #include
<com
/sun
/star
/chart2
/data
/XDataSequence.idl
>
27 #include
<com
/sun
/star
/chart2
/data
/XNumericalDataSequence.idl
>
28 #include
<com
/sun
/star
/chart2
/data
/XTextualDataSequence.idl
>
29 #include
<com
/sun
/star
/chart2
/data
/DataSequenceRole.idl
>
42 /** describes a container for a sequence of values.
44 <p>With the interface XDataSequence it is possible to
45 transfer a complete sequence of values.
48 com::sun::star::container::XIndexReplace it is
49 possible to modify single elements, if the corresponding
50 DataProvider supports modification of its values.</p>
54 /** provides read- and write-access to the underlying data.
56 interface XDataSequence
;
58 /** you may implement this interface to allow a fast access to
59 numerical data. With this interface you can get a
60 `sequence` of `double` values.
62 [optional] interface XNumericalDataSequence
;
64 /** you may implement this interface to allow a fast access to
65 textual data. With this interface you can get a
66 `sequence` of `string` values.
68 [optional] interface XTextualDataSequence
;
70 /** provides read- and write-access to single elements of the
73 <p>Only when supporting this interface, it is possible for
74 client applications to modify the content of the data that is
75 provided by this DataSequence.</p>
77 [optional] interface ::com
::sun
::star
::container
::XIndexReplace
;
79 /** Allows creating copies of data sequences. If this interface
80 is not supported, the same object will be shared if used by
83 <p>Cloning is especially useful when using identifiers. A
84 cloned data sequence will get a new identifier while the
85 source range representation is identical to the original
88 <p>Note that, when this interface is not implemented the
89 releasing of identifiers at the XDataProvider
90 will not work properly, because more than one object may use
91 the same identifier. So, when an object releases the
92 identifier, another object might use a stale identifier.</p>
94 [optional] interface ::com
::sun
::star
::util
::XCloneable
;
96 /** is used to broadcast change events whenever the content (data)
97 or the range representations change.
99 interface com
::sun
::star
::util
::XModifyBroadcaster
;
101 /** the property interface by which the properties of all
102 supported services are exchanged
104 interface ::com
::sun
::star
::beans
::XPropertySet
;
107 /** The key (index) of the number format that this sequence should
110 <p>The key identifies a number format in an
111 com::sun::star::util::XNumberFormats
112 object. This object can be retrieved by the
113 com::sun::star::util::XNumberFormatsSupplier
114 interface supported by
115 com::sun::star::chart::ChartDocument.</p>
117 @todo use proper number format instead of a transient key.
119 // [optional, property] long NumberFormatKey;
121 /** The role of the series inside a data series. This may be any
122 string. However some strings are predefined and should always
123 be used in the same way.
125 @see DataSequenceRole
127 [property
] DataSequenceRole Role
;
129 /** If set to false `FALSE`, values from hidden cells are not returned.
131 [optional, property
] boolean IncludeHiddenCells
;
133 /** a sequence of indexes that identify values that are hidden in the underlying
136 [optional, property
] sequence
< long > HiddenValues
;
148 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */