diff options
Diffstat (limited to 'include/svl/zformat.hxx')
-rw-r--r-- | include/svl/zformat.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/svl/zformat.hxx b/include/svl/zformat.hxx index cfb3e3a97368..85250ac23e08 100644 --- a/include/svl/zformat.hxx +++ b/include/svl/zformat.hxx @@ -226,10 +226,11 @@ public: sal_uInt16 GetFormatIntegerDigits() const { return NumFor[0].Info().nCntPre; } //! 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 + //! standard format 0, 10000, ... and only by the number formatter! + struct FormatterPrivateAccess { friend SvNumberFormatter; private: FormatterPrivateAccess() {} }; + sal_uInt16 GetLastInsertKey( const FormatterPrivateAccess& ) const { return NumFor[0].Info().nThousand; } - void SetLastInsertKey(sal_uInt16 nKey) + void SetLastInsertKey( sal_uInt16 nKey, const FormatterPrivateAccess& ) { NumFor[0].Info().nThousand = nKey; } //! Only onLoad: convert from stored to current system language/country |