diff options
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/drawingml/chart/seriesconverter.cxx | 7 | ||||
-rw-r--r-- | oox/source/token/properties.txt | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/oox/source/drawingml/chart/seriesconverter.cxx b/oox/source/drawingml/chart/seriesconverter.cxx index a02e52abf35f..cc05567a4d99 100644 --- a/oox/source/drawingml/chart/seriesconverter.cxx +++ b/oox/source/drawingml/chart/seriesconverter.cxx @@ -436,6 +436,13 @@ void TrendlineConverter::convertFromModel( const Reference< XDataSeries >& rxDat aPropSet.setProperty( PROP_PolynomialDegree, mrModel.mnOrder ); aPropSet.setProperty( PROP_MovingAveragePeriod, mrModel.mnPeriod ); + // Intercept + sal_Bool hasIntercept = mrModel.mfIntercept.has(); + aPropSet.setProperty( PROP_ForceIntercept, hasIntercept); + if (hasIntercept) + aPropSet.setProperty( PROP_InterceptValue, mrModel.mfIntercept.get()); + + // Extrapolation if (mrModel.mfForward.has()) aPropSet.setProperty( PROP_ExtrapolateForward, mrModel.mfForward.get() ); if (mrModel.mfBackward.has()) diff --git a/oox/source/token/properties.txt b/oox/source/token/properties.txt index e292d144cc42..0acfe069fccf 100644 --- a/oox/source/token/properties.txt +++ b/oox/source/token/properties.txt @@ -185,6 +185,7 @@ FooterHeight FooterIsDynamicHeight FooterIsOn FooterIsShared +ForceIntercept FormulaConvention FrameIsAutomaticHeight Function @@ -238,6 +239,7 @@ ImageURL IncludeHiddenCells InputMessage InputTitle +InterceptValue IsActive IsAdjustHeightEnabled IsCaseSensitive |