INTEGRATION: CWS chart22 (1.52.26); FILE MERGED

2008/04/17 11:30:14 iha 1.52.26.2: RESYNC: (1.52-1.53); FILE MERGED
2008/02/21 17:03:51 iha 1.52.26.1: #i65549# Plotting of missing values
This commit is contained in:
Rüdiger Timm 2008-07-30 10:56:29 +00:00
parent ee3c86f646
commit cb302f01ff

View file

@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: AreaChart.cxx,v $
* $Revision: 1.53 $
* $Revision: 1.54 $
*
* This file is part of OpenOffice.org.
*
@ -45,8 +45,10 @@
#include "LabelPositionHelper.hxx"
#include "Clipping.hxx"
#include "Stripe.hxx"
#include <com/sun/star/chart2/Symbol.hpp>
#include <com/sun/star/chart/DataLabelPlacement.hpp>
#include <com/sun/star/chart/MissingValueTreatment.hpp>
#include <tools/debug.hxx>
#include <svx/unoprnms.hxx>
#include <rtl/math.hxx>
@ -707,6 +709,23 @@ void AreaChart::createShapes()
if(!pSeries)
continue;
sal_Int32 nMissingValueTreatment = pSeries->getMissingValueTreatment();
switch( nMissingValueTreatment )
{
case ::com::sun::star::chart::MissingValueTreatment::LEAVE_GAP:
if( !m_bArea )
m_eNanHandling = NAN_AS_GAP;
break;
case ::com::sun::star::chart::MissingValueTreatment::USE_ZERO:
m_eNanHandling = NAN_AS_ZERO;
break;
case ::com::sun::star::chart::MissingValueTreatment::CONTINUE:
m_eNanHandling = NAN_AS_INTERPOLATED;
break;
default:
break;
}
/* #i70133# ignore points outside of series length in standard area
charts. Stacked area charts will use missing points as zeros. In
standard charts, pSeriesList contains only one series. */