LibreOffice Module chart2 (master) 1
Static Public Member Functions | List of all members
chart::DataSourceHelper Class Reference

#include <DataSourceHelper.hxx>

Static Public Member Functions

static css::uno::Reference< css::chart2::data::XDataSequence > createCachedDataSequence ()
 
static css::uno::Reference< css::chart2::data::XDataSequence > createCachedDataSequence (const OUString &rSingleText)
 
static rtl::Reference< LabeledDataSequencecreateLabeledDataSequence (const css::uno::Reference< css::chart2::data::XDataSequence > &xValues, const css::uno::Reference< css::chart2::data::XDataSequence > &xLabels)
 
static rtl::Reference< LabeledDataSequencecreateLabeledDataSequence (const css::uno::Reference< css::chart2::data::XDataSequence > &xValues)
 
static rtl::Reference< LabeledDataSequencecreateLabeledDataSequence ()
 
static css::uno::Sequence< css::beans::PropertyValue > createArguments (bool bUseColumns, bool bFirstCellAsLabel, bool bHasCategories)
 
static css::uno::Sequence< css::beans::PropertyValue > createArguments (const OUString &rRangeRepresentation, const css::uno::Sequence< sal_Int32 > &rSequenceMapping, bool bUseColumns, bool bFirstCellAsLabel, bool bHasCategories)
 
static SAL_DLLPRIVATE void readArguments (const css::uno::Sequence< css::beans::PropertyValue > &rArguments, OUString &rRangeRepresentation, css::uno::Sequence< sal_Int32 > &rSequenceMapping, bool &bUseColumns, bool &bFirstCellAsLabel, bool &bHasCategories)
 
static rtl::Reference< ::chart::DataSourcepressUsedDataIntoRectangularFormat (const rtl::Reference< ::chart::ChartModel > &xChartDoc)
 
static SAL_DLLPRIVATE css::uno::Sequence< OUString > getUsedDataRanges (const rtl::Reference< ::chart::Diagram > &xDiagram)
 
static css::uno::Sequence< OUString > getUsedDataRanges (const rtl::Reference<::chart::ChartModel > &xChartModel)
 
static rtl::Reference< ::chart::DataSourcegetUsedData (ChartModel &rModel)
 
static bool detectRangeSegmentation (const rtl::Reference<::chart::ChartModel > &xChartModel, OUString &rOutRangeString, css::uno::Sequence< sal_Int32 > &rSequenceMapping, bool &rOutUseColumns, bool &rOutFirstCellAsLabel, bool &rOutHasCategories)
 
static void setRangeSegmentation (const rtl::Reference<::chart::ChartModel > &xChartModel, const css::uno::Sequence< sal_Int32 > &rSequenceMapping, bool bUseColumns, bool bFirstCellAsLabel, bool bUseCategories)
 
static bool allArgumentsForRectRangeDetected (const rtl::Reference<::chart::ChartModel > &xChartDocument)
 Returns true, if all arguments necessary for getting all data by a rectangular region are returned by detectArguments at the given document's data provider. More...
 
static SAL_DLLPRIVATE css::uno::Sequence< OUString > getRangesFromLabeledDataSequence (const css::uno::Reference< css::chart2::data::XLabeledDataSequence > &xLSeq)
 
static SAL_DLLPRIVATE OUString getRangeFromValues (const css::uno::Reference< css::chart2::data::XLabeledDataSequence > &xLSeq)
 
static SAL_DLLPRIVATE css::uno::Sequence< OUString > getRangesFromDataSource (const css::uno::Reference< css::chart2::data::XDataSource > &xSource)
 

Detailed Description

Definition at line 42 of file DataSourceHelper.hxx.

Member Function Documentation

◆ allArgumentsForRectRangeDetected()

bool chart::DataSourceHelper::allArgumentsForRectRangeDetected ( const rtl::Reference<::chart::ChartModel > &  xChartDocument)
static

Returns true, if all arguments necessary for getting all data by a rectangular region are returned by detectArguments at the given document's data provider.

Currently, this is: CellRangeRepresentation, DataRowSource, HasCategories and FirstCellAsLabel.

Definition at line 336 of file DataSourceHelper.cxx.

References aArguments, DBG_UNHANDLED_EXCEPTION, and pressUsedDataIntoRectangularFormat().

Referenced by chart::DialogModel::allArgumentsForRectRangeDetected().

◆ createArguments() [1/2]

uno::Sequence< beans::PropertyValue > chart::DataSourceHelper::createArguments ( bool  bUseColumns,
bool  bFirstCellAsLabel,
bool  bHasCategories 
)
static

◆ createArguments() [2/2]

static css::uno::Sequence< css::beans::PropertyValue > chart::DataSourceHelper::createArguments ( const OUString &  rRangeRepresentation,
const css::uno::Sequence< sal_Int32 > &  rSequenceMapping,
bool  bUseColumns,
bool  bFirstCellAsLabel,
bool  bHasCategories 
)
static

◆ createCachedDataSequence() [1/2]

Reference< chart2::data::XDataSequence > chart::DataSourceHelper::createCachedDataSequence ( )
static

Definition at line 118 of file DataSourceHelper.cxx.

◆ createCachedDataSequence() [2/2]

Reference< chart2::data::XDataSequence > chart::DataSourceHelper::createCachedDataSequence ( const OUString &  rSingleText)
static

Definition at line 123 of file DataSourceHelper.cxx.

◆ createLabeledDataSequence() [1/3]

rtl::Reference< LabeledDataSequence > chart::DataSourceHelper::createLabeledDataSequence ( )
static

◆ createLabeledDataSequence() [2/3]

static rtl::Reference< LabeledDataSequence > chart::DataSourceHelper::createLabeledDataSequence ( const css::uno::Reference< css::chart2::data::XDataSequence > &  xValues)
static

◆ createLabeledDataSequence() [3/3]

static rtl::Reference< LabeledDataSequence > chart::DataSourceHelper::createLabeledDataSequence ( const css::uno::Reference< css::chart2::data::XDataSequence > &  xValues,
const css::uno::Reference< css::chart2::data::XDataSequence > &  xLabels 
)
static

◆ detectRangeSegmentation()

bool chart::DataSourceHelper::detectRangeSegmentation ( const rtl::Reference<::chart::ChartModel > &  xChartModel,
OUString &  rOutRangeString,
css::uno::Sequence< sal_Int32 > &  rSequenceMapping,
bool &  rOutUseColumns,
bool &  rOutFirstCellAsLabel,
bool &  rOutHasCategories 
)
static

◆ getRangeFromValues()

OUString chart::DataSourceHelper::getRangeFromValues ( const css::uno::Reference< css::chart2::data::XLabeledDataSequence > &  xLSeq)
static

Definition at line 442 of file DataSourceHelper.cxx.

◆ getRangesFromDataSource()

Sequence< OUString > chart::DataSourceHelper::getRangesFromDataSource ( const css::uno::Reference< css::chart2::data::XDataSource > &  xSource)
static

◆ getRangesFromLabeledDataSequence()

Sequence< OUString > chart::DataSourceHelper::getRangesFromLabeledDataSequence ( const css::uno::Reference< css::chart2::data::XLabeledDataSequence > &  xLSeq)
static

◆ getUsedData()

rtl::Reference< DataSource > chart::DataSourceHelper::getUsedData ( ChartModel &  rModel)
static

◆ getUsedDataRanges() [1/2]

static SAL_DLLPRIVATE css::uno::Sequence< OUString > chart::DataSourceHelper::getUsedDataRanges ( const rtl::Reference< ::chart::Diagram > &  xDiagram)
static

◆ getUsedDataRanges() [2/2]

uno::Sequence< OUString > chart::DataSourceHelper::getUsedDataRanges ( const rtl::Reference<::chart::ChartModel > &  xChartModel)
static

Definition at line 274 of file DataSourceHelper.cxx.

References getUsedDataRanges().

◆ pressUsedDataIntoRectangularFormat()

rtl::Reference< DataSource > chart::DataSourceHelper::pressUsedDataIntoRectangularFormat ( const rtl::Reference< ::chart::ChartModel > &  xChartDoc)
static

◆ readArguments()

void chart::DataSourceHelper::readArguments ( const css::uno::Sequence< css::beans::PropertyValue > &  rArguments,
OUString &  rRangeRepresentation,
css::uno::Sequence< sal_Int32 > &  rSequenceMapping,
bool &  bUseColumns,
bool &  bFirstCellAsLabel,
bool &  bHasCategories 
)
static

◆ setRangeSegmentation()

void chart::DataSourceHelper::setRangeSegmentation ( const rtl::Reference<::chart::ChartModel > &  xChartModel,
const css::uno::Sequence< sal_Int32 > &  rSequenceMapping,
bool  bUseColumns,
bool  bFirstCellAsLabel,
bool  bUseCategories 
)
static

The documentation for this class was generated from the following files: