diff options
Diffstat (limited to 'unotools/source/config/syslocaleoptions.cxx')
-rw-r--r-- | unotools/source/config/syslocaleoptions.cxx | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/unotools/source/config/syslocaleoptions.cxx b/unotools/source/config/syslocaleoptions.cxx index 4f0f964034cb..80946fd9c88a 100644 --- a/unotools/source/config/syslocaleoptions.cxx +++ b/unotools/source/config/syslocaleoptions.cxx @@ -79,14 +79,14 @@ class SvtSysLocaleOptions_Impl : public utl::ConfigItem OUString m_aCurrencyString; // USD-en-US or EUR-de-DE OUString m_aDatePatternsString; // "Y-M-D;M-D" sal_Bool m_bDecimalSeparator; //use decimal separator same as locale - sal_Bool m_bIgnoreLanguageChange; //OS language change doesn't affect LO document language + sal_Bool m_bIgnoreLanguageChange; //OS language change doesn't affect LO document language sal_Bool m_bROLocale; sal_Bool m_bROUILocale; sal_Bool m_bROCurrency; sal_Bool m_bRODatePatterns; sal_Bool m_bRODecimalSeparator; - sal_Bool m_bROIgnoreLanguageChange; + sal_Bool m_bROIgnoreLanguageChange; static const Sequence< /* const */ OUString > GetPropertyNames(); void MakeRealLocale(); @@ -117,9 +117,9 @@ public: sal_Bool IsDecimalSeparatorAsLocale() const { return m_bDecimalSeparator;} void SetDecimalSeparatorAsLocale( sal_Bool bSet); - - sal_Bool IsIgnoreLanguageChange() const { return m_bIgnoreLanguageChange;} - void SetIgnoreLanguageChange( sal_Bool bSet); + + sal_Bool IsIgnoreLanguageChange() const { return m_bIgnoreLanguageChange;} + void SetIgnoreLanguageChange( sal_Bool bSet); sal_Bool IsReadOnly( SvtSysLocaleOptions::EOption eOption ) const; const Locale& GetRealLocale() { return m_aRealLocale; } @@ -157,7 +157,7 @@ const Sequence< OUString > SvtSysLocaleOptions_Impl::GetPropertyNames() PROPERTYNAME_CURRENCY, PROPERTYNAME_DECIMALSEPARATOR, PROPERTYNAME_DATEPATTERNS, - PROPERTYNAME_IGNORELANGCHANGE + PROPERTYNAME_IGNORELANGCHANGE }; const Sequence< OUString > seqPropertyNames( pProperties, PROPERTYCOUNT ); return seqPropertyNames; @@ -173,7 +173,7 @@ SvtSysLocaleOptions_Impl::SvtSysLocaleOptions_Impl() , m_bROCurrency(CFG_READONLY_DEFAULT) , m_bRODatePatterns(CFG_READONLY_DEFAULT) , m_bRODecimalSeparator(sal_False) - , m_bROIgnoreLanguageChange(sal_False) + , m_bROIgnoreLanguageChange(sal_False) { if ( IsValidConfigMgr() ) @@ -253,8 +253,8 @@ SvtSysLocaleOptions_Impl::SvtSysLocaleOptions_Impl() m_bRODatePatterns = pROStates[nProp]; } break; - case PROPERTYHANDLE_IGNORELANGCHANGE : - { + case PROPERTYHANDLE_IGNORELANGCHANGE : + { sal_Bool bValue = sal_Bool(); if ( pValues[nProp] >>= bValue ) m_bIgnoreLanguageChange = bValue; @@ -263,8 +263,8 @@ SvtSysLocaleOptions_Impl::SvtSysLocaleOptions_Impl() SAL_WARN( "unotools.config", "Wrong property type!" ); } m_bROIgnoreLanguageChange = pROStates[nProp]; - } - break; + } + break; default: SAL_WARN( "unotools.config", "Wrong property type!" ); } @@ -406,14 +406,14 @@ void SvtSysLocaleOptions_Impl::Commit() ++nRealCount; } break; - case PROPERTYHANDLE_IGNORELANGCHANGE : - if (!m_bROIgnoreLanguageChange) - { - pNames[nRealCount] = aOrgNames[nProp]; - pValues[nRealCount] <<= m_bIgnoreLanguageChange; - ++nRealCount; - } - break; + case PROPERTYHANDLE_IGNORELANGCHANGE : + if (!m_bROIgnoreLanguageChange) + { + pNames[nRealCount] = aOrgNames[nProp]; + pValues[nRealCount] <<= m_bIgnoreLanguageChange; + ++nRealCount; + } + break; default: SAL_WARN( "unotools.config", "invalid index to save a path" ); } @@ -532,11 +532,11 @@ void SvtSysLocaleOptions_Impl::Notify( const Sequence< rtl::OUString >& seqPrope seqValues[nProp] >>= m_bDecimalSeparator; m_bRODecimalSeparator = seqROStates[nProp]; } - else if( seqPropertyNames[nProp] == PROPERTYNAME_IGNORELANGCHANGE ) - { - seqValues[nProp] >>= m_bIgnoreLanguageChange; - m_bROIgnoreLanguageChange = seqROStates[nProp]; - } + else if( seqPropertyNames[nProp] == PROPERTYNAME_IGNORELANGCHANGE ) + { + seqValues[nProp] >>= m_bIgnoreLanguageChange; + m_bROIgnoreLanguageChange = seqROStates[nProp]; + } else if( seqPropertyNames[nProp] == PROPERTYNAME_DATEPATTERNS ) { DBG_ASSERT( seqValues[nProp].getValueTypeClass() == TypeClass_STRING, "DatePatterns property type" ); |