merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / chart2 / data / XDataReceiver.idl
blob10602cee2f3402138cd5d20457179f24336652ef
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef com_sun_star_chart2_data_XDataReceiver_idl
28 #define com_sun_star_chart2_data_XDataReceiver_idl
30 #ifndef __com_sun_star_uno_XInterface_idl__
31 #include <com/sun/star/uno/XInterface.idl>
32 #endif
33 #ifndef __com_sun_star_lang_IllegalArgumentException_idl__
34 #include <com/sun/star/lang/IllegalArgumentException.idl>
35 #endif
37 #ifndef com_sun_star_chart2_data_XDataProvider_idl
38 #include <com/sun/star/chart2/data/XDataProvider.idl>
39 #endif
41 #ifndef com_sun_star_chart2_data_XRangeHighlighter_idl
42 #include <com/sun/star/chart2/data/XRangeHighlighter.idl>
43 #endif
45 #ifndef com_sun_star_beans_PropertyValue_idl
46 #include <com/sun/star/beans/PropertyValue.idl>
47 #endif
49 #ifndef __com_sun_star_util_XNumberFormatsSupplier_idl__
50 #include <com/sun/star/util/XNumberFormatsSupplier.idl>
51 #endif
53 module com
55 module sun
57 module star
59 module chart2
61 module data
64 interface XDataReceiver : ::com::sun::star::uno::XInterface
66 /** attaches a component that provides data for the document.
68 <p>The previously set data provider will be released.</p>
70 @param xProvider
71 The new DataProvider. If it is an empty reference, the
72 ChartDocument will have no data.
74 void attachDataProvider( [in] XDataProvider xProvider );
76 void setArguments( [in] sequence< com::sun::star::beans::PropertyValue > aArguments )
77 raises( com::sun::star::lang::IllegalArgumentException );
79 /** returns a list of all range strings for which data has been
80 requested by the most recently attached data provider, and
81 which is still used.
83 <p>This list may be used by the data provider to swap charts
84 out of memory, but still get informed by changes of ranges
85 while the chart is not loaded.</p>
86 @return a list of used range strings.
88 sequence< string > getUsedRangeRepresentations();
90 /** Returns the data requested by the most recently attached data
91 provider, that is still used.
93 XDataSource getUsedData();
95 /** attaches an <type>XNumberFormatsSupplier</type> to this
96 <type>XDataReceiver</type>.
98 <p>The given number formats will be used for display purposes.</p>
100 void attachNumberFormatsSupplier( [in] com::sun::star::util::XNumberFormatsSupplier xSupplier );
102 /** Returns a component at which a view representing the data of
103 the attached data provider may listen for highlighting the
104 data ranges used by the currently selected objects in the data
105 receiver component.
107 <p>This is typically used by a spreadsheet to hightlight the
108 ranges used by the currently selected object in a chart.</p>
110 <p>The range hightlighter is optional, i.e., this method may
111 return an empty object.</p>
113 XRangeHighlighter getRangeHighlighter();
116 } ; // data
117 } ; // chart2
118 } ; // com
119 } ; // sun
120 } ; // star
122 #endif