sspellimp.cxx (b63233d8) | sspellimp.cxx (ce54dccd) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 165 unchanged lines hidden (view full) --- 174 (void) e; 175 } 176 // get supported locales from the dictionaries-to-use... 177 sal_Int32 k = 0; 178 std::set< rtl::OUString, lt_rtl_OUString > aLocaleNamesSet; 179 std::list< SvtLinguConfigDictionaryEntry >::const_iterator aDictIt; 180 for (aDictIt = aDics.begin(); aDictIt != aDics.end(); ++aDictIt) 181 { | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 165 unchanged lines hidden (view full) --- 174 (void) e; 175 } 176 // get supported locales from the dictionaries-to-use... 177 sal_Int32 k = 0; 178 std::set< rtl::OUString, lt_rtl_OUString > aLocaleNamesSet; 179 std::list< SvtLinguConfigDictionaryEntry >::const_iterator aDictIt; 180 for (aDictIt = aDics.begin(); aDictIt != aDics.end(); ++aDictIt) 181 { |
182 uno::Sequence< rtl::OUString > aLocaleNames( aDictIt->aLocaleNames ); | |
183 uno::Sequence< rtl::OUString > aLocations( aDictIt->aLocations ); | 182 uno::Sequence< rtl::OUString > aLocations( aDictIt->aLocations ); |
184 sal_Int32 nLen2 = aLocaleNames.getLength(); 185 for (k = 0; k < nLen2; ++k) | 183 if ( xAccess.is() && aLocations.getLength() ) |
186 { | 184 { |
187 if (xAccess.is() && xAccess->exists(aLocations[k])) | 185 sal_Bool bAllFileExists = sal_False; 186 sal_Int32 nLength = aLocations.getLength(); 187 for (sal_Int32 i = 0; i < nLength; ++i) |
188 { | 188 { |
189 aLocaleNamesSet.insert( aLocaleNames[k] ); | 189 bAllFileExists |= xAccess->exists( aLocations[i] ); |
190 } | 190 } |
191 if ( bAllFileExists ) 192 { 193 uno::Sequence< rtl::OUString > aLocaleNames( aDictIt->aLocaleNames ); 194 sal_Int32 nLen2 = aLocaleNames.getLength(); 195 for (k = 0; k < nLen2; ++k) 196 { 197 aLocaleNamesSet.insert( aLocaleNames[k] ); 198 } 199 } |
|
191 } 192 } 193 // ... and add them to the resulting sequence 194 aSuppLocales.realloc( aLocaleNamesSet.size() ); 195 std::set< rtl::OUString, lt_rtl_OUString >::const_iterator aItB; 196 k = 0; 197 for (aItB = aLocaleNamesSet.begin(); aItB != aLocaleNamesSet.end(); ++aItB) 198 { --- 504 unchanged lines hidden --- | 200 } 201 } 202 // ... and add them to the resulting sequence 203 aSuppLocales.realloc( aLocaleNamesSet.size() ); 204 std::set< rtl::OUString, lt_rtl_OUString >::const_iterator aItB; 205 k = 0; 206 for (aItB = aLocaleNamesSet.begin(); aItB != aLocaleNamesSet.end(); ++aItB) 207 { --- 504 unchanged lines hidden --- |