diff options
author | Laurent Balland-Poirier <laurent.balland-poirier@laposte.net> | 2017-03-12 14:11:36 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-04-12 17:16:57 +0200 |
commit | 8a5173e71654291dc55a3e3d171757bb1774869a (patch) | |
tree | ec2b95e95cd3b6538751479d5e7136c0b1784cf1 /include | |
parent | 4b3854147cd80962a8cf5e63d275b43ae7e0b21b (diff) |
tdf#106253 Precision as shown for thousand dividor
Info().nThousand contains number of thousands dividors
after which digits are not displayed, i.e. 12345 is displayed
as 12 with format 0, (in en_US)
Change-Id: Ifa5540f2efd8ab006a07eade53f7aa0d31a19eac
Reviewed-on: https://gerrit.libreoffice.org/35097
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
(cherry picked from commit 60d7644a46970e6eaee882e0c5d65692da206c24)
Reviewed-on: https://gerrit.libreoffice.org/35204
(cherry picked from commit 506b228992ccb5a12486e2a8607ee3c81e3467a1)
Diffstat (limited to 'include')
-rw-r--r-- | include/svl/zformat.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/svl/zformat.hxx b/include/svl/zformat.hxx index 4d108815d9a7..ebd652c5e2ec 100644 --- a/include/svl/zformat.hxx +++ b/include/svl/zformat.hxx @@ -226,6 +226,12 @@ public: sal_uInt16 GetFormatIntegerDigits( sal_uInt16 nIx = 0 ) const { return NumFor[nIx].Info().nCntPre; } + /** Count of hidden integer digits with thousands dividor: + * formats like "0," to show only thousands + */ + sal_uInt16 GetThousandDivisorPrecision( sal_uInt16 nIx = 0 ) const + { return NumFor[nIx].Info().nThousand * 3; } + //! Read/write access on a special sal_uInt16 component, may only be used on the //! standard format 0, 5000, ... and only by the number formatter! sal_uInt16 GetLastInsertKey() const |