diff options
author | Tomaž Vajngerl <quikee@gmail.com> | 2013-06-28 21:10:38 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2013-07-03 21:46:43 +0200 |
commit | df2b11415112be466d3c5a290683b08fceeff142 (patch) | |
tree | dd5f2e690f0d6cd204659344566e5f9154ccf6fc /oox | |
parent | 6085bd15740eb38de5f4c1079d11e8dd38fc166c (diff) |
Force intercept support for ooxml.
Change-Id: I065742bbe22f24169a99e33558399fe16c601238
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 |