From cc8a2d00387d554cd4d694503dd25fa8f950a78f Mon Sep 17 00:00:00 2001 From: Laurent Balland-Poirier Date: Fri, 20 Feb 2015 09:54:01 +0100 Subject: tdf#88835 Calc: General format: 2 digits in exponent Create 4 new formats enums rtl_math_StringFormat: rtl_math_StringFormat_E1, rtl_math_StringFormat_E2, rtl_math_StringFormat_G1, rtl_math_StringFormat_G2 to 1 or 2 digits in exponent for scientific notation. Set General format to use rtl_math_StringFormat_E2. Set trendline equation in status bar to use rtl_math_StringFormat_E1 Change-Id: I41466a6d4ba808ba5b9b38ba252b37c6b4560f12 Reviewed-on: https://gerrit.libreoffice.org/14562 Reviewed-by: Eike Rathke Tested-by: Eike Rathke --- include/rtl/math.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'include') diff --git a/include/rtl/math.h b/include/rtl/math.h index 99a4b71cfa80..40440a7c1e08 100644 --- a/include/rtl/math.h +++ b/include/rtl/math.h @@ -53,6 +53,26 @@ enum rtl_math_StringFormat */ rtl_math_StringFormat_Automatic, + /** Same 'E', but with only 1 minimum digits in exponent. + @since LibreOffice 4.5 + */ + rtl_math_StringFormat_E1, + + /** Same 'E', but with only 2 minimum digits in exponent. + @since LibreOffice 4.5 + */ + rtl_math_StringFormat_E2, + + /** Same 'G', but with only 1 minimum digits in exponent. + @since LibreOffice 4.5 + */ + rtl_math_StringFormat_G1, + + /** Same 'G', but with only 2 minimum digits in exponent. + @since LibreOffice 4.5 + */ + rtl_math_StringFormat_G2, + /** @cond INTERNAL */ rtl_math_StringFormat_FORCE_EQUAL_SIZE = SAL_MAX_ENUM /** @endcond */ -- cgit