[Libreoffice-commits] .: unotools/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Nov 15 03:54:53 PST 2012


 unotools/source/config/syslocaleoptions.cxx |   48 ++++++++++++++--------------
 1 file changed, 24 insertions(+), 24 deletions(-)

New commits:
commit 4a2236a4a8c069a7ab82ac9c2fe3d6bd5630d1aa
Author: Eike Rathke <erack at redhat.com>
Date:   Thu Nov 15 12:53:36 2012 +0100

    changed tabs to spaces
    
    tabs creeped in with b4d1aaa074e2be9fd778134c40f99d2ab8a01e93
    
    Change-Id: Idb73a4db82970a3af06e7d50e4d71d4a3ece44cf

diff --git a/unotools/source/config/syslocaleoptions.cxx b/unotools/source/config/syslocaleoptions.cxx
index 4f0f964..80946fd 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" );


More information about the Libreoffice-commits mailing list