summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <er@openoffice.org>2002-09-23 12:44:43 +0000
committerEike Rathke <er@openoffice.org>2002-09-23 12:44:43 +0000
commite6a14630c264129180a68428d9d5bb581c919416 (patch)
tree7f7150a02e09d9982b4d3f85eb5922a5b7c51281
parent5084e790332eac2d9312bc5cfac80cf662710b69 (diff)
#103059# Don't cure the symptoms, cure the cause instead. Assume SYSTEM defaults during Setup.
-rw-r--r--svtools/source/config/syslocaleoptions.cxx68
1 files changed, 35 insertions, 33 deletions
diff --git a/svtools/source/config/syslocaleoptions.cxx b/svtools/source/config/syslocaleoptions.cxx
index 5882c2a1f8e5..52e3749db309 100644
--- a/svtools/source/config/syslocaleoptions.cxx
+++ b/svtools/source/config/syslocaleoptions.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: syslocaleoptions.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: os $ $Date: 2002-09-23 10:44:00 $
+ * last change: $Author: er $ $Date: 2002-09-23 13:44:43 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -181,48 +181,50 @@ SvtSysLocaleOptions_Impl::SvtSysLocaleOptions_Impl()
, m_nBlockedHint( 0 )
, m_nBroadcastBlocked( 0 )
{
- const Sequence< OUString > aNames = GetPropertyNames();
- Sequence< Any > aValues = GetProperties( aNames );
- const Any* pValues = aValues.getConstArray();
- DBG_ASSERT( aValues.getLength() == aNames.getLength(), "GetProperties failed" );
- if ( aValues.getLength() == aNames.getLength() )
+ if ( !IsValidConfigMgr() )
+ ChangeLocaleSettings(); // assume SYSTEM defaults during Setup
+ else
{
- for ( sal_Int32 nProp = 0; nProp < aNames.getLength(); nProp++ )
+ const Sequence< OUString > aNames = GetPropertyNames();
+ Sequence< Any > aValues = GetProperties( aNames );
+ const Any* pValues = aValues.getConstArray();
+ DBG_ASSERT( aValues.getLength() == aNames.getLength(), "GetProperties failed" );
+ if ( aValues.getLength() == aNames.getLength() )
{
-#ifdef DBG_UTIL
- if(!pValues[nProp].hasValue())
- DBG_WARNING( "property value missing" );
-#endif
- if ( pValues[nProp].hasValue() )
+ for ( sal_Int32 nProp = 0; nProp < aNames.getLength(); nProp++ )
{
- switch ( nProp )
+ DBG_ASSERT( pValues[nProp].hasValue(), "property value missing" );
+ if ( pValues[nProp].hasValue() )
{
- case PROPERTYHANDLE_LOCALE :
- {
- OUString aStr;
- if ( pValues[nProp] >>= aStr )
- m_aLocaleString = aStr;
- else
- DBG_ERRORFILE( "Wrong property type!" );
- }
- break;
- case PROPERTYHANDLE_CURRENCY :
+ switch ( nProp )
{
- OUString aStr;
- if ( pValues[nProp] >>= aStr )
- m_aCurrencyString = aStr;
- else
+ case PROPERTYHANDLE_LOCALE :
+ {
+ OUString aStr;
+ if ( pValues[nProp] >>= aStr )
+ m_aLocaleString = aStr;
+ else
+ DBG_ERRORFILE( "Wrong property type!" );
+ }
+ break;
+ case PROPERTYHANDLE_CURRENCY :
+ {
+ OUString aStr;
+ if ( pValues[nProp] >>= aStr )
+ m_aCurrencyString = aStr;
+ else
+ DBG_ERRORFILE( "Wrong property type!" );
+ }
+ break;
+ default:
DBG_ERRORFILE( "Wrong property type!" );
}
- break;
- default:
- DBG_ERRORFILE( "Wrong property type!" );
}
}
}
+ ChangeLocaleSettings();
+ EnableNotification( aNames );
}
- ChangeLocaleSettings();
- EnableNotification( aNames );
}