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
>
33 #ifndef __com_sun_star_lang_IllegalArgumentException_idl__
34 #include
<com
/sun
/star
/lang
/IllegalArgumentException.idl
>
37 #ifndef com_sun_star_chart2_data_XDataProvider_idl
38 #include
<com
/sun
/star
/chart2
/data
/XDataProvider.idl
>
41 #ifndef com_sun_star_chart2_data_XRangeHighlighter_idl
42 #include
<com
/sun
/star
/chart2
/data
/XRangeHighlighter.idl
>
45 #ifndef com_sun_star_beans_PropertyValue_idl
46 #include
<com
/sun
/star
/beans
/PropertyValue.idl
>
49 #ifndef __com_sun_star_util_XNumberFormatsSupplier_idl__
50 #include
<com
/sun
/star
/util
/XNumberFormatsSupplier.idl
>
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>
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
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
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
();