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 .
31 /** describes a container for a sequence of values.
33 <p>With the interface XDataSequence it is possible to
34 transfer a complete sequence of values.
37 com::sun::star::container::XIndexReplace it is
38 possible to modify single elements, if the corresponding
39 DataProvider supports modification of its values.</p>
43 /** provides read- and write-access to the underlying data.
45 interface XDataSequence
;
47 /** you may implement this interface to allow a fast access to
48 numerical data. With this interface you can get a
49 `sequence` of `double` values.
51 [optional] interface XNumericalDataSequence
;
53 /** you may implement this interface to allow a fast access to
54 textual data. With this interface you can get a
55 `sequence` of `string` values.
57 [optional] interface XTextualDataSequence
;
59 /** provides read- and write-access to single elements of the
62 <p>Only when supporting this interface, it is possible for
63 client applications to modify the content of the data that is
64 provided by this DataSequence.</p>
66 [optional] interface ::com
::sun
::star
::container
::XIndexReplace
;
68 /** Allows creating copies of data sequences. If this interface
69 is not supported, the same object will be shared if used by
72 <p>Cloning is especially useful when using identifiers. A
73 cloned data sequence will get a new identifier while the
74 source range representation is identical to the original
77 <p>Note that, when this interface is not implemented the
78 releasing of identifiers at the XDataProvider
79 will not work properly, because more than one object may use
80 the same identifier. So, when an object releases the
81 identifier, another object might use a stale identifier.</p>
83 [optional] interface ::com
::sun
::star
::util
::XCloneable
;
85 /** is used to broadcast change events whenever the content (data)
86 or the range representations change.
88 interface com
::sun
::star
::util
::XModifyBroadcaster
;
90 /** the property interface by which the properties of all
91 supported services are exchanged
93 interface ::com
::sun
::star
::beans
::XPropertySet
;
96 /** The key (index) of the number format that this sequence should
99 <p>The key identifies a number format in an
100 com::sun::star::util::XNumberFormats
101 object. This object can be retrieved by the
102 com::sun::star::util::XNumberFormatsSupplier
103 interface supported by
104 com::sun::star::chart::ChartDocument.</p>
106 @todo use proper number format instead of a transient key.
108 // [optional, property] long NumberFormatKey;
110 /** The role of the series inside a data series. This may be any
111 string. However some strings are predefined and should always
112 be used in the same way.
114 @see DataSequenceRole
116 [property
] DataSequenceRole Role
;
118 /** If set to false `FALSE`, values from hidden cells are not returned.
120 [optional, property
] boolean IncludeHiddenCells
;
122 /** a sequence of indexes that identify values that are hidden in the underlying
125 [optional, property
] sequence
< long > HiddenValues
;
135 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */