diff options
author | Laurent Balland <laurent.balland@mailo.fr> | 2023-01-14 15:48:12 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2023-02-03 17:57:01 +0000 |
commit | bbd487dc26c7e37982f64f6e6159c65ac77a89f1 (patch) | |
tree | 4b4ebdd38543910807e13e6bbf14390ff87ac81b /svl | |
parent | fb42b73d50eb3856a96c8c6f269e37d9da2181f2 (diff) |
tdf#153023 Disable Thousand separator for NatNum12
Add some helper to get NatNum12 state
Modify both Number format dialog and Sidebar
Transform CAT_ defines in enum
Change-Id: Iaa3127bf07223caac60e409306a1bee2edc37428
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145513
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/zforlist.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx index ca8b6524b9e2..c85ae2ae838d 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -2257,6 +2257,13 @@ OUString SvNumberFormatter::GetLangDecimalSep( LanguageType nLang ) const return aRet; } +bool SvNumberFormatter::IsNatNum12( sal_uInt32 nFIndex ) const +{ + ::osl::MutexGuard aGuard( GetInstanceMutex() ); + const SvNumberformat* pFormat = GetFormatEntry( nFIndex ); + + return pFormat && pFormat->GetNatNumModifierString().startsWith( "[NatNum12" ); +} sal_uInt32 SvNumberFormatter::GetFormatSpecialInfo( const OUString& rFormatString, bool& bThousand, bool& IsRed, sal_uInt16& nPrecision, |