summaryrefslogtreecommitdiff
path: root/chart2/source/tools/ExplicitCategoriesProvider.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/tools/ExplicitCategoriesProvider.cxx')
-rw-r--r--chart2/source/tools/ExplicitCategoriesProvider.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/chart2/source/tools/ExplicitCategoriesProvider.cxx b/chart2/source/tools/ExplicitCategoriesProvider.cxx
index 7202d0e857fe..6916bc455b34 100644
--- a/chart2/source/tools/ExplicitCategoriesProvider.cxx
+++ b/chart2/source/tools/ExplicitCategoriesProvider.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -71,14 +71,14 @@ ExplicitCategoriesProvider::ExplicitCategoriesProvider( const Reference< chart2:
if( xChartDoc.is() )
{
uno::Reference< data::XDataProvider > xDataProvider( xChartDoc->getDataProvider() );
-
+
if( xDataProvider.is() )
{
OUString aCatgoriesRange( DataSourceHelper::getRangeFromValues( m_xOriginalCategories ) );
const bool bFirstCellAsLabel = false;
const bool bHasCategories = false;
const uno::Sequence< sal_Int32 > aSequenceMapping;
-
+
uno::Reference< data::XDataSource > xColumnCategoriesSource( xDataProvider->createDataSource(
DataSourceHelper::createArguments( aCatgoriesRange, aSequenceMapping, true /*bUseColumns*/
, bFirstCellAsLabel, bHasCategories ) ) );
@@ -176,7 +176,7 @@ uno::Sequence< rtl::OUString > lcl_DataToStringSequence( const uno::Reference< d
if( !xDataSequence.is() )
return aStrings;
-
+
uno::Reference< data::XTextualDataSequence > xTextualDataSequence( xDataSequence, uno::UNO_QUERY );
if( xTextualDataSequence.is() )
{
@@ -235,7 +235,7 @@ std::vector< ComplexCategory > lcl_DataSequenceToComplexCategoryVector(
, const std::vector<sal_Int32>& rLimitingBorders, bool bCreateSingleCategories )
{
std::vector< ComplexCategory > aResult;
-
+
sal_Int32 nMaxCount = rStrings.getLength();
OUString aPrevious;
sal_Int32 nCurrentCount=0;
@@ -262,7 +262,7 @@ std::vector< ComplexCategory > lcl_DataSequenceToComplexCategoryVector(
}
if( nCurrentCount )
aResult.push_back( ComplexCategory(aPrevious,nCurrentCount) );
-
+
return aResult;
}
@@ -370,7 +370,7 @@ void ExplicitCategoriesProvider::init()
{
m_aExplicitCategories.realloc(0);
m_aComplexCats.clear();//not one per index
-
+
if( m_xOriginalCategories.is() )
{
if( !hasComplexCategories() )