diff options
author | Eike Rathke <erack@redhat.com> | 2017-02-20 20:27:52 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-04-12 17:16:54 +0200 |
commit | c2c92cb5dc0b3bb625f3e8867c4b90633e9a9211 (patch) | |
tree | 55085b7941f433c3beae2e363df868fe99a64436 /include | |
parent | 2caec05af2ff90101c68b2f0acac1045b5e5074c (diff) |
don't obtain the underlying SvNumberformat thrice, tdf#105657 follow-up
... which all GetFormatTable()->...(nFormat) do.
Also introduce SvNumberformat::GetMaskedType() for convenience.
Change-Id: I9495d71b99116e74e8b877ffc9cd21bd36cc7b7f
(cherry picked from commit 820cb1f86f3fd177877b8719315fc03534e2049c)
Reviewed-on: https://gerrit.libreoffice.org/36366
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
(cherry picked from commit 2864c32733df6b0e9975ed5ee03a747cd2932472)
Diffstat (limited to 'include')
-rw-r--r-- | include/svl/zformat.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/svl/zformat.hxx b/include/svl/zformat.hxx index f798d4090638..dbfa04858c28 100644 --- a/include/svl/zformat.hxx +++ b/include/svl/zformat.hxx @@ -169,6 +169,9 @@ public: /// Get type of format, may include css::util::NumberFormat::DEFINED bit short GetType() const { return eType; } + /// Get type of format, does not include css::util::NumberFormat::DEFINED + short GetMaskedType() const { return eType & ~css::util::NumberFormat::DEFINED; } + void SetType(const short eSetType) { eType = eSetType; } // Standard means the I18N defined standard format of this type void SetStandard() { bStandard = true; } |