diff options
author | Oliver Bolte <obo@openoffice.org> | 2004-03-17 09:04:44 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2004-03-17 09:04:44 +0000 |
commit | 7b92727d250b49379619f693132d789a0e75cf6b (patch) | |
tree | 881c1730d147ec2154f4f680b9f903fdf2be18c0 /vcl/source/app/settings.cxx | |
parent | de9f0da5ad4059c55d82e21a5915ce568a8d2e43 (diff) |
INTEGRATION: CWS vcl18 (1.41.26); FILE MERGED
2004/02/02 10:45:43 ssa 1.41.26.1: #i1820# support localized decimal separator
Diffstat (limited to 'vcl/source/app/settings.cxx')
-rw-r--r-- | vcl/source/app/settings.cxx | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx index 5296b3c15a88..d42e94c15d00 100644 --- a/vcl/source/app/settings.cxx +++ b/vcl/source/app/settings.cxx @@ -2,9 +2,9 @@ * * $RCSfile: settings.cxx,v $ * - * $Revision: 1.41 $ + * $Revision: 1.42 $ * - * last change: $Author: vg $ $Date: 2004-01-06 13:12:15 $ + * last change: $Author: obo $ $Date: 2004-03-17 10:04:44 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1118,6 +1118,8 @@ ImplMiscData::ImplMiscData() mnRefCount = 1; mnTwoDigitYearStart = 1930; mnEnableATT = ~0; + static const char* pEnv = getenv("SAL_DECIMALSEP_ENABLED" ); // set default without UI + mbEnableLocalizedDecimalSep = (pEnv != NULL) ? TRUE : FALSE; } // ----------------------------------------------------------------------- @@ -1127,6 +1129,7 @@ ImplMiscData::ImplMiscData( const ImplMiscData& rData ) mnRefCount = 1; mnTwoDigitYearStart = rData.mnTwoDigitYearStart; mnEnableATT = rData.mnEnableATT; + mbEnableLocalizedDecimalSep = rData.mbEnableLocalizedDecimalSep; } // ----------------------------------------------------------------------- @@ -1198,7 +1201,8 @@ BOOL MiscSettings::operator ==( const MiscSettings& rSet ) const return TRUE; if ( (mpData->mnTwoDigitYearStart == rSet.mpData->mnTwoDigitYearStart ) && - (mpData->mnEnableATT == rSet.mpData->mnEnableATT ) ) + (mpData->mnEnableATT == rSet.mpData->mnEnableATT ) && + (mpData->mbEnableLocalizedDecimalSep == rSet.mpData->mbEnableLocalizedDecimalSep ) ) return TRUE; else return FALSE; @@ -1348,6 +1352,19 @@ void MiscSettings::SetEnableATToolSupport( BOOL bEnable ) } } +void MiscSettings::SetEnableLocalizedDecimalSep( BOOL bEnable ) +{ + CopyData(); + mpData->mbEnableLocalizedDecimalSep = bEnable; +} + +BOOL MiscSettings::GetEnableLocalizedDecimalSep() const +{ + return mpData->mbEnableLocalizedDecimalSep; +} + + + // ======================================================================= ImplSoundData::ImplSoundData() |