From cc721291cc4a53503398b82dd86baa521b2b13cc Mon Sep 17 00:00:00 2001 From: Laurent Balland Date: Sat, 1 Jul 2023 10:43:39 +0200 Subject: tdf#153993 Extend ODF: lowercase for exponent char In scientific format, user may want to have clearer format such as: 0.000" "000" "e+" "0 This change - adds "exponent-lowercase" boolean attribute to scientific-number format to preserve "e" or "E" char - includes all positions up to exponent for embedded text of scientific number Add QA test Change-Id: Ie263f4ecf30a1a8dcd8046e1e048767020e54dc2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153824 Tested-by: Jenkins Reviewed-by: Laurent Balland --- include/xmloff/xmlnumfe.hxx | 2 +- include/xmloff/xmltoken.hxx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/xmloff/xmlnumfe.hxx b/include/xmloff/xmlnumfe.hxx index 64a66a27ef05..8421c5f7e323 100644 --- a/include/xmloff/xmlnumfe.hxx +++ b/include/xmloff/xmlnumfe.hxx @@ -71,7 +71,7 @@ private: bool bGrouping, sal_Int32 nTrailingThousands, const SvXMLEmbeddedTextEntryArr& rEmbeddedEntries ); SAL_DLLPRIVATE void WriteScientificElement_Impl( sal_Int32 nDecimals, sal_Int32 nMinDecimals, sal_Int32 nInteger, sal_Int32 nBlankInteger, - bool bGrouping, sal_Int32 nExp, sal_Int32 nExpInterval, bool bExpSign, + bool bGrouping, sal_Int32 nExp, sal_Int32 nExpInterval, bool bExpSign, bool bExponentLowercase, const SvXMLEmbeddedTextEntryArr& rEmbeddedEntries ); SAL_DLLPRIVATE void WriteFractionElement_Impl( sal_Int32 nInteger, sal_Int32 nBlankInteger, bool bGrouping, const SvNumberformat& rFormat, sal_uInt16 nPart ); diff --git a/include/xmloff/xmltoken.hxx b/include/xmloff/xmltoken.hxx index 066a55960e0b..62f3ebcd613d 100644 --- a/include/xmloff/xmltoken.hxx +++ b/include/xmloff/xmltoken.hxx @@ -3467,6 +3467,7 @@ namespace xmloff::token { XML_EXTERNALDATA, XML_EXPONENT_INTERVAL, + XML_EXPONENT_LOWERCASE, XML_FORCED_EXPONENT_SIGN, XML_MIN_DECIMAL_PLACES, XML_MAX_DENOMINATOR_VALUE, -- cgit