diff options
author | Laurent Balland-Poirier <laurent.balland-poirier@laposte.net> | 2016-03-11 23:28:35 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-05-22 19:12:07 +0000 |
commit | 033b2ae8775d1dcf49f798e267761000cc51627c (patch) | |
tree | 83e276940761096572bc75875a381ffe4d88b13c /chart2/inc | |
parent | beeb71085036d09494e44f43670d6d26f30c6277 (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: https://gerrit.libreoffice.org/18397
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'chart2/inc')
-rw-r--r-- | chart2/inc/SpecialUnicodes.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chart2/inc/SpecialUnicodes.hxx b/chart2/inc/SpecialUnicodes.hxx index 6b3398daf840..db6e3b65fdb5 100644 --- a/chart2/inc/SpecialUnicodes.hxx +++ b/chart2/inc/SpecialUnicodes.hxx @@ -11,6 +11,8 @@ #define INCLUDED_CHART2_INC_SPECIALUNICODES_HXX const OUString aMinusSign ( sal_Unicode (0x2212) ); +const OUString aNewLine ("\n"); +const OUString aHashString ("###"); const sal_Unicode aSuperscriptFigures[10]={ 0x2070, 0x00B9, 0x00B2, 0x00B3, 0x2074, 0x2075, 0x2076, 0x2077, 0x2078, 0x2079 }; #endif |