INTEGRATION: CWS chart25 (1.20.8); FILE MERGED

2008/05/07 15:16:46 iha 1.20.8.1: #i26497# Tickmarks not at the correct position for bar and column charts
This commit is contained in:
Rüdiger Timm 2008-06-06 08:16:42 +00:00
parent c8d8bd5858
commit 2c816b7ee0

View file

@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ChartTypeHelper.cxx,v $
* $Revision: 1.20 $
* $Revision: 1.21 $
*
* This file is part of OpenOffice.org.
*
@ -375,6 +375,18 @@ bool ChartTypeHelper::isSupportingStartingAngle( const uno::Reference< chart2::X
return false;
}
bool ChartTypeHelper::shiftTicksAtXAxisPerDefault( const uno::Reference< chart2::XChartType >& xChartType )
{
if(xChartType.is())
{
rtl::OUString aChartTypeName = xChartType->getChartType();
if( aChartTypeName.match(CHART2_SERVICE_NAME_CHARTTYPE_COLUMN)
|| aChartTypeName.match(CHART2_SERVICE_NAME_CHARTTYPE_BAR) )
return true;
}
return false;
}
bool ChartTypeHelper::noBordersForSimpleScheme( const uno::Reference< chart2::XChartType >& xChartType )
{
if(xChartType.is())