:: com :: sun :: star :: chart2 ::

unpublished interface XDataInterpretation
Description
offers tooling to interpret different data sources in a structural and chart-type-independent way.

Methods' Summary
interpretSources re-interprets the given data source according to the interpretation rule given in  
mergeSources merges the source given in aSource.  
Methods' Details
interpretSources
XDataSource
interpretSources( [in] XDataSource  aSource,
[in] string  sInterpretation )
raises( ::com::sun::star::lang::IllegalArgumentException );

Description
re-interprets the given data source according to the interpretation rule given in
sInterpretation .
Parameter aSource
an XDataSource s that will be interpreted in a different way. This component has to find out in which way the data was formerly interpreted.
Parameter sInterpretation
may contain any string that was listed as valid by the service that implements this interface. A spreadsheet may allow strings like "InRows" and "InColumns" , or even "InSheets" .
Throws
com::sun::star::lang::IllegalArgumentException may be raised, if sInterpretation is unkonwn. It may also be raised, if aSource is of an unknown source, i.e., the range identifier stored at the XDataSequence s can not be parsed appropriately.
Returns
the new interpretation of aSources. If the data source was already interpreted in the requested way, the result will be identical to aSources.
mergeSources
XDataSource
mergeSources( [in] XDataSource  aExistingSource,
[in] XDataSource  aAdditionalSource );

Description
merges the source given in aSource.

This method may typically be used to add a data source that you got by drag and drop to the already existing data source.

Parameter aExistingSource
a data sources that has already been interpreted some time. Its structure may influence the way in which aAdditionalSource is merged.
Parameter aAdditionalSource
a data sources that should be added to aExistingSource .
Returns
the result of merging aExistingSource with aAdditionalSource .
Top of Page