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_XDataInterpreter_idl
28 #define com_sun_star_chart2_XDataInterpreter_idl
30 #ifndef __com_sun_star_uno_XInterface_idl__
31 #include
<com
/sun
/star
/uno
/XInterface.idl
>
33 #ifndef __com_sun_star_beans_PropertyValue_idl__
34 #include
<com
/sun
/star
/beans
/PropertyValue.idl
>
37 #include
<com
/sun
/star
/chart2
/InterpretedData.idl
>
38 #include
<com
/sun
/star
/chart2
/data
/XDataSource.idl
>
39 #include
<com
/sun
/star
/chart2
/XDataSeries.idl
>
50 /** offers tooling to interpret different data sources in a structural
51 and chart-type-dependent way.
53 interface XDataInterpreter
: ::com
::sun
::star
::uno
::XInterface
55 /** Interprets the given data.
58 Arguments that tell the template how to slice the given
59 range. The properties should be defined in a separate
62 <p>For standard parameters that may be used, see the
63 service <type>StandardDiagramCreationParameters</type>.
67 use all the data series given here for the result before
70 InterpretedData interpretDataSource
(
71 [in] data
::XDataSource xSource
,
72 [in] sequence
< com
::sun
::star
::beans
::PropertyValue
> aArguments
,
73 [in] sequence
< XDataSeries
> aSeriesToReUse
);
75 /** Re-interprets the data given in <code>aInterpretedData</code>
76 while keeping the number of data series and the categories.
78 InterpretedData reinterpretDataSeries
( [in] InterpretedData aInterpretedData
);
80 /** parses the given data and states, if a
81 <member>reinterpretDataSeries</member> call can be done
85 <TRUE/>, if the data given in
86 <code>aInterpretedData</code> has a similar structure than
87 the one required is used as output of the data interpreter.
89 boolean isDataCompatible
( [in] InterpretedData aInterpretedData
);
91 /** Try to reverse the operation done in
92 <member>interpretDataSource</member>.
94 <p>In case <code>aInterpretedData</code> is the result of
95 <member>interpretDataSource</member>( <code>xSource</code> ),
96 the result of this method should be <code>xSource</code>.</p>
98 data
::XDataSource mergeInterpretedData
( [in] InterpretedData aInterpretedData
);