summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/xechart.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/excel/xechart.cxx')
-rw-r--r--sc/source/filter/excel/xechart.cxx54
1 files changed, 27 insertions, 27 deletions
diff --git a/sc/source/filter/excel/xechart.cxx b/sc/source/filter/excel/xechart.cxx
index 2b2c3a6e7214..d6eee66871c6 100644
--- a/sc/source/filter/excel/xechart.cxx
+++ b/sc/source/filter/excel/xechart.cxx
@@ -329,7 +329,7 @@ const XclChFormatInfo& XclExpChRoot::GetFormatInfo( XclChObjectType eObjType ) c
return mxChData->mxFmtInfoProv->GetFormatInfo( eObjType );
}
-void XclExpChRoot::InitConversion( css::uno::Reference< css::chart2::XChartDocument > xChartDoc, const Rectangle& rChartRect ) const
+void XclExpChRoot::InitConversion( css::uno::Reference< css::chart2::XChartDocument > const & xChartDoc, const Rectangle& rChartRect ) const
{
mxChData->InitConversion( GetRoot(), xChartDoc, rChartRect );
}
@@ -886,7 +886,7 @@ XclExpChSourceLink::XclExpChSourceLink( const XclExpChRoot& rRoot, sal_uInt8 nDe
maData.mnLinkType = EXC_CHSRCLINK_DIRECTLY;
}
-sal_uInt16 XclExpChSourceLink::ConvertDataSequence( Reference< XDataSequence > xDataSeq, bool bSplitToColumns, sal_uInt16 nDefCount )
+sal_uInt16 XclExpChSourceLink::ConvertDataSequence( Reference< XDataSequence > const & xDataSeq, bool bSplitToColumns, sal_uInt16 nDefCount )
{
mxLinkFmla.reset();
maData.mnLinkType = EXC_CHSRCLINK_DEFAULT;
@@ -1176,7 +1176,7 @@ void XclExpChText::SetRotation( sal_uInt16 nRotation )
::insert_value( maData.mnFlags, XclTools::GetXclOrientFromRot( nRotation ), 8, 3 );
}
-void XclExpChText::ConvertTitle( Reference< XTitle > xTitle, sal_uInt16 nTarget, const OUString* pSubTitle )
+void XclExpChText::ConvertTitle( Reference< XTitle > const & xTitle, sal_uInt16 nTarget, const OUString* pSubTitle )
{
switch( nTarget )
{
@@ -1412,7 +1412,7 @@ void XclExpChText::WriteBody( XclExpStream& rStrm )
namespace {
/** Creates and returns an Excel text object from the passed title. */
-XclExpChTextRef lclCreateTitle( const XclExpChRoot& rRoot, Reference< XTitled > xTitled, sal_uInt16 nTarget,
+XclExpChTextRef lclCreateTitle( const XclExpChRoot& rRoot, Reference< XTitled > const & xTitled, sal_uInt16 nTarget,
const OUString* pSubTitle = nullptr )
{
Reference< XTitle > xTitle;
@@ -1645,7 +1645,7 @@ XclExpChSerTrendLine::XclExpChSerTrendLine( const XclExpChRoot& rRoot ) :
{
}
-bool XclExpChSerTrendLine::Convert( Reference< XRegressionCurve > xRegCurve, sal_uInt16 nSeriesIdx )
+bool XclExpChSerTrendLine::Convert( Reference< XRegressionCurve > const & xRegCurve, sal_uInt16 nSeriesIdx )
{
if( !xRegCurve.is() )
return false;
@@ -1812,7 +1812,7 @@ void XclExpChSerErrorBar::WriteBody( XclExpStream& rStrm )
namespace {
/** Returns the property set of the specified data point. */
-ScfPropertySet lclGetPointPropSet( Reference< XDataSeries > xDataSeries, sal_Int32 nPointIdx )
+ScfPropertySet lclGetPointPropSet( Reference< XDataSeries > const & xDataSeries, sal_Int32 nPointIdx )
{
ScfPropertySet aPropSet;
try
@@ -1843,7 +1843,7 @@ XclExpChSeries::XclExpChSeries( const XclExpChRoot& rRoot, sal_uInt16 nSeriesIdx
}
bool XclExpChSeries::ConvertDataSeries(
- Reference< XDiagram > xDiagram, Reference< XDataSeries > xDataSeries,
+ Reference< XDiagram > const & xDiagram, Reference< XDataSeries > const & xDataSeries,
const XclChExtTypeInfo& rTypeInfo, sal_uInt16 nGroupIdx, sal_uInt16 nFormatIdx )
{
bool bOk = false;
@@ -1963,7 +1963,7 @@ bool XclExpChSeries::ConvertDataSeries(
return bOk;
}
-bool XclExpChSeries::ConvertStockSeries( css::uno::Reference< css::chart2::XDataSeries > xDataSeries,
+bool XclExpChSeries::ConvertStockSeries( css::uno::Reference< css::chart2::XDataSeries > const & xDataSeries,
const OUString& rValueRole, sal_uInt16 nGroupIdx, sal_uInt16 nFormatIdx, bool bCloseSymbol )
{
bool bOk = false;
@@ -2005,7 +2005,7 @@ bool XclExpChSeries::ConvertStockSeries( css::uno::Reference< css::chart2::XData
return bOk;
}
-bool XclExpChSeries::ConvertTrendLine( const XclExpChSeries& rParent, Reference< XRegressionCurve > xRegCurve )
+bool XclExpChSeries::ConvertTrendLine( const XclExpChSeries& rParent, Reference< XRegressionCurve > const & xRegCurve )
{
InitFromParent( rParent );
@@ -2039,7 +2039,7 @@ bool XclExpChSeries::ConvertErrorBar( const XclExpChSeries& rParent, const ScfPr
return bOk;
}
-void XclExpChSeries::ConvertCategSequence( Reference< XLabeledDataSequence > xCategSeq )
+void XclExpChSeries::ConvertCategSequence( Reference< XLabeledDataSequence > const & xCategSeq )
{
if( xCategSeq.is() )
maData.mnCategCount = mxCategLink->ConvertDataSequence( xCategSeq->getValues(), false );
@@ -2071,7 +2071,7 @@ void XclExpChSeries::InitFromParent( const XclExpChSeries& rParent )
maData.mnValueCount = rParent.maData.mnValueCount;
}
-void XclExpChSeries::CreateTrendLines( css::uno::Reference< css::chart2::XDataSeries > xDataSeries )
+void XclExpChSeries::CreateTrendLines( css::uno::Reference< css::chart2::XDataSeries > const & xDataSeries )
{
Reference< XRegressionCurveContainer > xRegCurveCont( xDataSeries, UNO_QUERY );
if( xRegCurveCont.is() )
@@ -2127,7 +2127,7 @@ XclExpChType::XclExpChType( const XclExpChRoot& rRoot ) :
{
}
-void XclExpChType::Convert( Reference< XDiagram > xDiagram, Reference< XChartType > xChartType,
+void XclExpChType::Convert( Reference< XDiagram > const & xDiagram, Reference< XChartType > const & xChartType,
sal_Int32 nApiAxesSetIdx, bool bSwappedAxesSet, bool bHasXLabels )
{
if( xChartType.is() )
@@ -2406,7 +2406,7 @@ XclExpChTypeGroup::XclExpChTypeGroup( const XclExpChRoot& rRoot, sal_uInt16 nGro
}
void XclExpChTypeGroup::ConvertType(
- Reference< XDiagram > xDiagram, Reference< XChartType > xChartType,
+ Reference< XDiagram > const & xDiagram, Reference< XChartType > const & xChartType,
sal_Int32 nApiAxesSetIdx, bool b3dChart, bool bSwappedAxesSet, bool bHasXLabels )
{
// chart type settings
@@ -2431,7 +2431,7 @@ void XclExpChTypeGroup::ConvertType(
}
void XclExpChTypeGroup::ConvertSeries(
- Reference< XDiagram > xDiagram, Reference< XChartType > xChartType,
+ Reference< XDiagram > const & xDiagram, Reference< XChartType > const & xChartType,
sal_Int32 nGroupAxesSetIdx, bool bPercent, bool bConnectBars )
{
Reference< XDataSeriesContainer > xSeriesCont( xChartType, UNO_QUERY );
@@ -2501,7 +2501,7 @@ void XclExpChTypeGroup::ConvertSeries(
}
}
-void XclExpChTypeGroup::ConvertCategSequence( Reference< XLabeledDataSequence > xCategSeq )
+void XclExpChTypeGroup::ConvertCategSequence( Reference< XLabeledDataSequence > const & xCategSeq )
{
for( size_t nIdx = 0, nSize = maSeries.GetSize(); nIdx < nSize; ++nIdx )
maSeries.GetRecord( nIdx )->ConvertCategSequence( xCategSeq );
@@ -2535,7 +2535,7 @@ sal_uInt16 XclExpChTypeGroup::GetFreeFormatIdx() const
}
void XclExpChTypeGroup::CreateDataSeries(
- Reference< XDiagram > xDiagram, Reference< XDataSeries > xDataSeries )
+ Reference< XDiagram > const & xDiagram, Reference< XDataSeries > const & xDataSeries )
{
// let chart create series object with correct series index
XclExpChSeriesRef xSeries = GetChartData().CreateSeries();
@@ -2549,7 +2549,7 @@ void XclExpChTypeGroup::CreateDataSeries(
}
void XclExpChTypeGroup::CreateAllStockSeries(
- Reference< XChartType > xChartType, Reference< XDataSeries > xDataSeries )
+ Reference< XChartType > const & xChartType, Reference< XDataSeries > const & xDataSeries )
{
// create existing series objects
bool bHasOpen = CreateStockSeries( xDataSeries, EXC_CHPROP_ROLE_OPENVALUES, false );
@@ -2586,7 +2586,7 @@ void XclExpChTypeGroup::CreateAllStockSeries(
}
}
-bool XclExpChTypeGroup::CreateStockSeries( Reference< XDataSeries > xDataSeries,
+bool XclExpChTypeGroup::CreateStockSeries( Reference< XDataSeries > const & xDataSeries,
const OUString& rValueRole, bool bCloseSymbol )
{
bool bOk = false;
@@ -2889,7 +2889,7 @@ void XclExpChTick::WriteBody( XclExpStream& rStrm )
namespace {
/** Returns an API axis object from the passed coordinate system. */
-Reference< XAxis > lclGetApiAxis( Reference< XCoordinateSystem > xCoordSystem,
+Reference< XAxis > lclGetApiAxis( Reference< XCoordinateSystem > const & xCoordSystem,
sal_Int32 nApiAxisDim, sal_Int32 nApiAxesSetIdx )
{
Reference< XAxis > xAxis;
@@ -2903,7 +2903,7 @@ Reference< XAxis > lclGetApiAxis( Reference< XCoordinateSystem > xCoordSystem,
return xAxis;
}
-Reference< cssc::XAxis > lclGetApiChart1Axis( Reference< XChartDocument > xChartDoc,
+Reference< cssc::XAxis > lclGetApiChart1Axis( Reference< XChartDocument > const & xChartDoc,
sal_Int32 nApiAxisDim, sal_Int32 nApiAxesSetIdx )
{
Reference< cssc::XAxis > xChart1Axis;
@@ -2949,8 +2949,8 @@ void XclExpChAxis::SetRotation( sal_uInt16 nRotation )
mxTick->SetRotation( nRotation );
}
-void XclExpChAxis::Convert( Reference< XAxis > xAxis, Reference< XAxis > xCrossingAxis,
- Reference< cssc::XAxis > xChart1Axis, const XclChExtTypeInfo& rTypeInfo )
+void XclExpChAxis::Convert( Reference< XAxis > const & xAxis, Reference< XAxis > const & xCrossingAxis,
+ Reference< cssc::XAxis > const & xChart1Axis, const XclChExtTypeInfo& rTypeInfo )
{
ScfPropertySet aAxisProp( xAxis );
bool bCategoryAxis = ((GetAxisType() == EXC_CHAXIS_X) && rTypeInfo.mbCategoryAxis) || (GetAxisType() == EXC_CHAXIS_Z);
@@ -3023,7 +3023,7 @@ void XclExpChAxis::Convert( Reference< XAxis > xAxis, Reference< XAxis > xCrossi
}
}
-void XclExpChAxis::ConvertWall( css::uno::Reference< css::chart2::XDiagram > xDiagram )
+void XclExpChAxis::ConvertWall( css::uno::Reference< css::chart2::XDiagram > const & xDiagram )
{
if( xDiagram.is() ) switch( GetAxisType() )
{
@@ -3080,7 +3080,7 @@ XclExpChAxesSet::XclExpChAxesSet( const XclExpChRoot& rRoot, sal_uInt16 nAxesSet
maData.maRect.mnHeight = 2633;
}
-sal_uInt16 XclExpChAxesSet::Convert( Reference< XDiagram > xDiagram, sal_uInt16 nFirstGroupIdx )
+sal_uInt16 XclExpChAxesSet::Convert( Reference< XDiagram > const & xDiagram, sal_uInt16 nFirstGroupIdx )
{
/* First unused chart type group index is passed to be able to continue
counting of chart type groups for secondary axes set. */
@@ -3266,7 +3266,7 @@ XclExpChTypeGroupRef XclExpChAxesSet::GetLastTypeGroup() const
void XclExpChAxesSet::ConvertAxis(
XclExpChAxisRef& rxChAxis, sal_uInt16 nAxisType,
XclExpChTextRef& rxChAxisTitle, sal_uInt16 nTitleTarget,
- Reference< XCoordinateSystem > xCoordSystem, const XclChExtTypeInfo& rTypeInfo,
+ Reference< XCoordinateSystem > const & xCoordSystem, const XclChExtTypeInfo& rTypeInfo,
sal_Int32 nCrossingAxisDim )
{
// create and convert axis object
@@ -3308,7 +3308,7 @@ static void lcl_getChartSubTitle(const Reference<XChartDocument>& xChartDoc,
}
XclExpChChart::XclExpChChart( const XclExpRoot& rRoot,
- Reference< XChartDocument > xChartDoc, const Rectangle& rChartRect ) :
+ Reference< XChartDocument > const & xChartDoc, const Rectangle& rChartRect ) :
XclExpChGroupBase( XclExpChRoot( rRoot, *this ), EXC_CHFRBLOCK_TYPE_CHART, EXC_ID_CHCHART, 16 )
{
Size aPtSize = OutputDevice::LogicToLogic( rChartRect.GetSize(), MapMode( MAP_100TH_MM ), MapMode( MAP_POINT ) );
@@ -3468,7 +3468,7 @@ void XclExpChartDrawing::Save( XclExpStream& rStrm )
mxObjRecs->Save( rStrm );
}
-XclExpChart::XclExpChart( const XclExpRoot& rRoot, Reference< XModel > xModel, const Rectangle& rChartRect ) :
+XclExpChart::XclExpChart( const XclExpRoot& rRoot, Reference< XModel > const & xModel, const Rectangle& rChartRect ) :
XclExpSubStream( EXC_BOF_CHART ),
XclExpRoot( rRoot )
{