diff options
Diffstat (limited to 'chart2/source/tools/DiagramHelper.cxx')
-rw-r--r-- | chart2/source/tools/DiagramHelper.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/chart2/source/tools/DiagramHelper.cxx b/chart2/source/tools/DiagramHelper.cxx index 7f8fbc22ee64..e56834ee3f1b 100644 --- a/chart2/source/tools/DiagramHelper.cxx +++ b/chart2/source/tools/DiagramHelper.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 @@ -380,7 +380,7 @@ StackMode DiagramHelper::getStackMode( const Reference< XDiagram > & xDiagram, b eGlobalStackMode = eLocalStackMode; } } - + return eGlobalStackMode; } @@ -446,7 +446,7 @@ StackMode DiagramHelper::getStackModeFromChartType( sal_Int32 nAxisIndex = 0; if( nSeriesCount ) nAxisIndex = DataSeriesHelper::getAttachedAxisIndex(aSeries[0]); - + Reference< chart2::XAxis > xAxis( xCorrespondingCoordinateSystem->getAxisByDimension( 1,nAxisIndex )); if( xAxis.is()) @@ -1032,7 +1032,7 @@ Sequence< rtl::OUString > DiagramHelper::getExplicitSimpleCategories( if(xChartModel.is()) { uno::Reference< chart2::XCoordinateSystem > xCooSys( ChartModelHelper::getFirstCoordinateSystem( xChartModel ) ); - ExplicitCategoriesProvider aExplicitCategoriesProvider( xCooSys, xChartModel ); + ExplicitCategoriesProvider aExplicitCategoriesProvider( xCooSys, xChartModel ); aRet = aExplicitCategoriesProvider.getSimpleCategories(); } return aRet; @@ -1175,7 +1175,7 @@ bool lcl_moveSeriesOrCheckIfMoveIsAllowed( else nNewSeriesIndex++; - + if( nNewSeriesIndex >= 0 && nNewSeriesIndex < aSeriesList.getLength() ) { //move series in the same charttype @@ -1318,7 +1318,7 @@ bool DiagramHelper::isPieOrDonutChart( const ::com::sun::star::uno::Reference< { uno::Reference< chart2::XChartType > xChartType( DiagramHelper::getChartTypeByIndex( xDiagram, 0 ) ); - + if( xChartType .is() ) { rtl::OUString aChartType = xChartType->getChartType(); @@ -1415,7 +1415,7 @@ sal_Int32 DiagramHelper::getCorrectedMissingValueTreatment( nResult = aAvailableMissingValueTreatments[0]; return nResult; } - + return nResult; } @@ -1472,7 +1472,7 @@ bool DiagramHelper::setDiagramPositioning( const uno::Reference< frame::XModel > aNewPos.Anchor = drawing::Alignment_TOP_LEFT; aNewPos.Primary = double(rPosRect.X)/double(aPageSize.Width); aNewPos.Secondary = double(rPosRect.Y)/double(aPageSize.Height); - + chart2::RelativeSize aNewSize; aNewSize.Primary = double(rPosRect.Width)/double(aPageSize.Width); aNewSize.Secondary = double(rPosRect.Height)/double(aPageSize.Height); @@ -1485,7 +1485,7 @@ bool DiagramHelper::setDiagramPositioning( const uno::Reference< frame::XModel > aNewPos.Primary = 1.0 - aNewSize.Primary; if( (aNewPos.Secondary + aNewSize.Secondary) > 1.0 ) aNewPos.Secondary = 1.0 - aNewSize.Secondary; - + xDiaProps->setPropertyValue( C2U( "RelativePosition" ), uno::makeAny(aNewPos) ); xDiaProps->setPropertyValue( C2U( "RelativeSize" ), uno::makeAny(aNewSize) ); @@ -1516,7 +1516,7 @@ awt::Rectangle DiagramHelper::getDiagramRectangleFromModel( const uno::Reference awt::Size aAbsSize( aRelSize.Primary * aPageSize.Width, aRelSize.Secondary * aPageSize.Height ); - + awt::Point aAbsPos( static_cast< sal_Int32 >( aRelPos.Primary * aPageSize.Width ), static_cast< sal_Int32 >( aRelPos.Secondary * aPageSize.Height )); @@ -1524,7 +1524,7 @@ awt::Rectangle DiagramHelper::getDiagramRectangleFromModel( const uno::Reference awt::Point aAbsPosLeftTop = RelativePositionHelper::getUpperLeftCornerOfAnchoredObject( aAbsPos, aAbsSize, aRelPos.Anchor ); aRet = awt::Rectangle(aAbsPosLeftTop.X, aAbsPosLeftTop.Y, aAbsSize.Width, aAbsSize.Height ); - + return aRet; } |