path: root/offapi/com/sun/star
diff options
authorLaurent Balland-Poirier <>2016-03-11 23:28:35 +0100
committerMarkus Mohrhard <>2016-05-22 19:12:07 +0000
commit033b2ae8775d1dcf49f798e267761000cc51627c (patch)
tree83e276940761096572bc75875a381ffe4d88b13c /offapi/com/sun/star
parentbeeb71085036d09494e44f43670d6d26f30c6277 (diff)
tdf#94004 Trendline: wrap equation to fit in chart area
If equation is too long compared to chart width: equation is wrapped and if equation has General format, the number of digits is reduced In this patch, only polynomial equation is treated. If this approach is ok, I will extend to other regression curves. Conflicts: chart2/source/view/charttypes/VSeriesPlotter.cxx Change-Id: I1bfd897881d752655faec6df034c0dde7f78c51b Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Markus Mohrhard <>
Diffstat (limited to 'offapi/com/sun/star')
1 files changed, 4 insertions, 2 deletions
diff --git a/offapi/com/sun/star/chart2/XRegressionCurveCalculator.idl b/offapi/com/sun/star/chart2/XRegressionCurveCalculator.idl
index 71510596b04c..ce0632c861c9 100644
--- a/offapi/com/sun/star/chart2/XRegressionCurveCalculator.idl
+++ b/offapi/com/sun/star/chart2/XRegressionCurveCalculator.idl
@@ -154,12 +154,14 @@ interface XRegressionCurveCalculator : com::sun::star::uno::XInterface
string getRepresentation();
/** Returns a representation using the given number format for formatting all numbers
- contained in the formula.
+ contained in the formula. Wrap equation to fit in nFormulaLength characters
@see getRepresentation
string getFormattedRepresentation( [in] com::sun::star::util::XNumberFormatsSupplier xNumFmtSupplier,
- [in] long nNumberFormatKey );
+ [in] long nNumberFormatKey,
+ [in] long nFormulaLength );
} ; // chart2