Lines Matching refs:pLocaleItem

125 		LocaleItem* pLocaleItem = *it;  in ~StringResourceImpl()  local
126 delete pLocaleItem; in ~StringResourceImpl()
131 LocaleItem* pLocaleItem = *it; in ~StringResourceImpl() local
132 delete pLocaleItem; in ~StringResourceImpl()
192 ( const ::rtl::OUString& ResourceID, LocaleItem* pLocaleItem ) in implResolveString() argument
197 if( pLocaleItem != NULL && loadLocale( pLocaleItem ) ) in implResolveString()
199 IdToStringMap::iterator it = pLocaleItem->m_aIdToStringMap.find( ResourceID ); in implResolveString()
200 if( !( it == pLocaleItem->m_aIdToStringMap.end() ) ) in implResolveString()
226 LocaleItem* pLocaleItem = getItemForLocale( locale, false ); in resolveStringForLocale() local
227 return implResolveString( ResourceID, pLocaleItem ); in resolveStringForLocale()
230 …StringResourceImpl::implHasEntryForId( const ::rtl::OUString& ResourceID, LocaleItem* pLocaleItem ) in implHasEntryForId() argument
233 if( pLocaleItem != NULL && loadLocale( pLocaleItem ) ) in implHasEntryForId()
235 IdToStringMap::iterator it = pLocaleItem->m_aIdToStringMap.find( ResourceID ); in implHasEntryForId()
236 if( !( it == pLocaleItem->m_aIdToStringMap.end() ) ) in implHasEntryForId()
254 LocaleItem* pLocaleItem = getItemForLocale( locale, false ); in hasEntryForIdAndLocale() local
255 return implHasEntryForId( ResourceID, pLocaleItem ); in hasEntryForIdAndLocale()
258 Sequence< ::rtl::OUString > StringResourceImpl::implGetResourceIDs( LocaleItem* pLocaleItem ) in implGetResourceIDs() argument
261 if( pLocaleItem && loadLocale( pLocaleItem ) ) in implGetResourceIDs()
263 const IdToStringMap& rHashMap = pLocaleItem->m_aIdToStringMap; in implGetResourceIDs()
284 LocaleItem* pLocaleItem = getItemForLocale( locale, false ); in getResourceIDsForLocale() local
285 return implGetResourceIDs( pLocaleItem ); in getResourceIDsForLocale()
328 LocaleItem* pLocaleItem = *it; in getLocales() local
329 pLocales[iTarget] = pLocaleItem->m_locale; in getLocales()
361 LocaleItem* pLocaleItem = NULL; in implSetCurrentLocale() local
363 pLocaleItem = getClosestMatchItemForLocale( locale ); in implSetCurrentLocale()
365 pLocaleItem = getItemForLocale( locale, true ); in implSetCurrentLocale()
367 if( pLocaleItem == NULL && bUseDefaultIfNoMatch ) in implSetCurrentLocale()
368 pLocaleItem = m_pDefaultLocaleItem; in implSetCurrentLocale()
370 if( pLocaleItem != NULL ) in implSetCurrentLocale()
372 loadLocale( pLocaleItem ); in implSetCurrentLocale()
373 m_pCurrentLocaleItem = pLocaleItem; in implSetCurrentLocale()
393 LocaleItem* pLocaleItem = getItemForLocale( locale, true ); in setDefaultLocale() local
394 if( pLocaleItem && pLocaleItem != m_pDefaultLocaleItem ) in setDefaultLocale()
402 m_pDefaultLocaleItem = pLocaleItem; in setDefaultLocale()
409 const ::rtl::OUString& Str, LocaleItem* pLocaleItem ) in implSetString() argument
411 if( pLocaleItem != NULL && loadLocale( pLocaleItem ) ) in implSetString()
413 IdToStringMap& rHashMap = pLocaleItem->m_aIdToStringMap; in implSetString()
419 IdToIndexMap& rIndexMap = pLocaleItem->m_aIdToIndexMap; in implSetString()
420 rIndexMap[ ResourceID ] = pLocaleItem->m_nNextIndex++; in implSetString()
424 pLocaleItem->m_bModified = true; in implSetString()
443 LocaleItem* pLocaleItem = getItemForLocale( locale, false ); in setStringForLocale() local
444 implSetString( ResourceID, Str, pLocaleItem ); in setStringForLocale()
447 void StringResourceImpl::implRemoveId( const ::rtl::OUString& ResourceID, LocaleItem* pLocaleItem ) in implRemoveId() argument
450 if( pLocaleItem != NULL && loadLocale( pLocaleItem ) ) in implRemoveId()
452 IdToStringMap& rHashMap = pLocaleItem->m_aIdToStringMap; in implRemoveId()
461 pLocaleItem->m_bModified = true; in implRemoveId()
479 LocaleItem* pLocaleItem = getItemForLocale( locale, false ); in removeIdForLocale() local
480 implRemoveId( ResourceID, pLocaleItem ); in removeIdForLocale()
499 LocaleItem* pLocaleItem = new LocaleItem( locale ); in newLocale() local
500 m_aLocaleItemVector.push_back( pLocaleItem ); in newLocale()
501 pLocaleItem->m_bModified = true; in newLocale()
510 IdToStringMap& rTargetMap = pLocaleItem->m_aIdToStringMap; in newLocale()
520 IdToIndexMap& rTargetIndexMap = pLocaleItem->m_aIdToIndexMap; in newLocale()
528 pLocaleItem->m_nNextIndex = pCopyFromItem->m_nNextIndex; in newLocale()
532 m_pCurrentLocaleItem = pLocaleItem; in newLocale()
536 m_pDefaultLocaleItem = pLocaleItem; in newLocale()
568 LocaleItem* pLocaleItem = *it; in removeLocale() local
569 if( pLocaleItem != pRemoveItem ) in removeLocale()
571 pFallbackItem = pLocaleItem; in removeLocale()
588 LocaleItem* pLocaleItem = *it; in removeLocale() local
589 if( pLocaleItem == pRemoveItem ) in removeLocale()
592 m_aDeletedLocaleItemVector.push_back( pLocaleItem ); in removeLocale()
668 LocaleItem* pLocaleItem = *it; in getItemForLocale() local
669 if( pLocaleItem ) in getItemForLocale()
671 Locale& cmp_locale = pLocaleItem->m_locale; in getItemForLocale()
676 pRetItem = pLocaleItem; in getItemForLocale()
701 LocaleItem* pLocaleItem = *it; in getClosestMatchItemForLocale() local
702 if( pLocaleItem ) in getClosestMatchItemForLocale()
704 Locale& cmp_locale = pLocaleItem->m_locale; in getClosestMatchItemForLocale()
709 pRetItem = pLocaleItem; in getClosestMatchItemForLocale()
752 bool StringResourceImpl::loadLocale( LocaleItem* pLocaleItem ) in loadLocale() argument
755 (void)pLocaleItem; in loadLocale()
1039 LocaleItem* pLocaleItem = *it; in implStoreAtStorage() local
1040 if( pLocaleItem != NULL ) in implStoreAtStorage()
1042 ::rtl::OUString aStreamName = implGetFileNameForLocaleItem( pLocaleItem, m_aNameBase ); in implStoreAtStorage()
1053 delete pLocaleItem; in implStoreAtStorage()
1060 LocaleItem* pLocaleItem = *it; in implStoreAtStorage() local
1061 if( pLocaleItem != NULL && (bStoreAll || pLocaleItem->m_bModified) && in implStoreAtStorage()
1062 loadLocale( pLocaleItem ) ) in implStoreAtStorage()
1064 ::rtl::OUString aStreamName = implGetFileNameForLocaleItem( pLocaleItem, aNameBase ); in implStoreAtStorage()
1085 implWritePropertiesFile( pLocaleItem, xOutputStream, aComment ); in implStoreAtStorage()
1089 pLocaleItem->m_bModified = false; in implStoreAtStorage()
1099 LocaleItem* pLocaleItem = *it; in implStoreAtStorage() local
1100 if( pLocaleItem != NULL ) in implStoreAtStorage()
1102 ::rtl::OUString aStreamName = implGetFileNameForLocaleItem( pLocaleItem, m_aNameBase ); in implStoreAtStorage()
1112 delete pLocaleItem; in implStoreAtStorage()
1172 LocaleItem* pLocaleItem = *it; in implKillRemovedLocaleFiles() local
1173 if( pLocaleItem != NULL ) in implKillRemovedLocaleFiles()
1176 implGetPathForLocaleItem( pLocaleItem, aNameBase, Location ); in implKillRemovedLocaleFiles()
1181 delete pLocaleItem; in implKillRemovedLocaleFiles()
1198 LocaleItem* pLocaleItem = *it; in implKillChangedDefaultFiles() local
1199 if( pLocaleItem != NULL ) in implKillChangedDefaultFiles()
1202 implGetPathForLocaleItem( pLocaleItem, aNameBase, Location, true ); in implKillChangedDefaultFiles()
1206 delete pLocaleItem; in implKillChangedDefaultFiles()
1230 LocaleItem* pLocaleItem = *it; in implStoreAtLocation() local
1231 if( pLocaleItem != NULL && (bStoreAll || bKillAll || pLocaleItem->m_bModified) && in implStoreAtLocation()
1232 loadLocale( pLocaleItem ) ) in implStoreAtLocation()
1235 implGetPathForLocaleItem( pLocaleItem, aNameBase, Location ); in implStoreAtLocation()
1245 implWritePropertiesFile( pLocaleItem, xOutputStream, aComment ); in implStoreAtLocation()
1249 pLocaleItem->m_bModified = false; in implStoreAtLocation()
1433 LocaleItem* pLocaleItem = *it; in exportBinary() local
1434 if( pLocaleItem != NULL && loadLocale( pLocaleItem ) ) in exportBinary()
1436 if( m_pDefaultLocaleItem == pLocaleItem ) in exportBinary()
1440 implWriteLocaleBinary( pLocaleItem, aLocaleOut ); in exportBinary()
1485 ( LocaleItem* pLocaleItem, BinaryOutput& rOut ) in implWriteLocaleBinary() argument
1491 Locale& rLocale = pLocaleItem->m_locale; in implWriteLocaleBinary()
1495 implWritePropertiesFile( pLocaleItem, xOutputStream, m_aComment ); in implWriteLocaleBinary()
1683 LocaleItem* pLocaleItem = new LocaleItem( aLocale ); in importBinary() local
1685 pUseAsDefaultItem = pLocaleItem; in importBinary()
1686 m_aLocaleItemVector.push_back( pLocaleItem ); in importBinary()
1687 implReadPropertiesFile( pLocaleItem, xInput ); in importBinary()
1742 LocaleItem* pLocaleItem = *it; in implLoadAllLocales() local
1743 if( pLocaleItem != NULL ) in implLoadAllLocales()
1744 loadLocale( pLocaleItem ); in implLoadAllLocales()
1777 LocaleItem* pLocaleItem = new LocaleItem( aLocale, false ); in implScanLocaleNames() local
1778 m_aLocaleItemVector.push_back( pLocaleItem ); in implScanLocaleNames()
1781 m_pCurrentLocaleItem = pLocaleItem; in implScanLocaleNames()
1785 m_pDefaultLocaleItem = pLocaleItem; in implScanLocaleNames()
1801 LocaleItem* pLocaleItem = getItemForLocale( aDefaultLocale, false ); in implScanLocaleNames() local
1802 if( pLocaleItem ) in implScanLocaleNames()
1804 m_pDefaultLocaleItem = pLocaleItem; in implScanLocaleNames()
1817 bool StringResourcePersistenceImpl::loadLocale( LocaleItem* pLocaleItem ) in loadLocale() argument
1821 OSL_ENSURE( pLocaleItem, "StringResourcePersistenceImpl::loadLocale(): pLocaleItem == NULL" ); in loadLocale()
1822 if( pLocaleItem ) in loadLocale()
1824 if( pLocaleItem->m_bLoaded ) in loadLocale()
1830 bSuccess = implLoadLocale( pLocaleItem ); in loadLocale()
1831 pLocaleItem->m_bLoaded = true; // = bSuccess??? -> leads to more tries in loadLocale()
1844 ::rtl::OUString implGetNameScemeForLocaleItem( const LocaleItem* pLocaleItem ) in implGetNameScemeForLocaleItem() argument
1848 OSL_ENSURE( pLocaleItem, in implGetNameScemeForLocaleItem()
1850 Locale aLocale = pLocaleItem->m_locale; in implGetNameScemeForLocaleItem()
1872 ( LocaleItem* pLocaleItem, const ::rtl::OUString& aNameBase ) in implGetFileNameForLocaleItem() argument
1878 aFileName += implGetNameScemeForLocaleItem( pLocaleItem ); in implGetFileNameForLocaleItem()
1883 ( LocaleItem* pLocaleItem, const ::rtl::OUString& aNameBase, in implGetPathForLocaleItem() argument
1886 ::rtl::OUString aFileName = implGetFileNameForLocaleItem( pLocaleItem, aNameBase ); in implGetPathForLocaleItem()
2009 ( LocaleItem* pLocaleItem, const Reference< io::XInputStream >& xInputStream ) in implReadPropertiesFile() argument
2011 if( !xInputStream.is() || pLocaleItem == NULL ) in implReadPropertiesFile()
2130 pLocaleItem->m_aIdToStringMap[ aResourceID ] = aValueStr; in implReadPropertiesFile()
2132 IdToIndexMap& rIndexMap = pLocaleItem->m_aIdToIndexMap; in implReadPropertiesFile()
2133 rIndexMap[ aResourceID ] = pLocaleItem->m_nNextIndex++; in implReadPropertiesFile()
2226 bool StringResourcePersistenceImpl::implWritePropertiesFile( LocaleItem* pLocaleItem, in implWritePropertiesFile() argument
2232 if( !xOutputStream.is() || pLocaleItem == NULL ) in implWritePropertiesFile()
2254 const IdToStringMap& rHashMap = pLocaleItem->m_aIdToStringMap; in implWritePropertiesFile()
2258 const IdToIndexMap& rIndexMap = pLocaleItem->m_aIdToIndexMap; in implWritePropertiesFile()
2623 bool StringResourceWithStorageImpl::implLoadLocale( LocaleItem* pLocaleItem ) in implLoadLocale() argument
2628 ::rtl::OUString aStreamName = implGetFileNameForLocaleItem( pLocaleItem, m_aNameBase ); in implLoadLocale()
2639 bSuccess = StringResourcePersistenceImpl::implReadPropertiesFile( pLocaleItem, xInputStream ); in implLoadLocale()
2988 bool StringResourceWithLocationImpl::implLoadLocale( LocaleItem* pLocaleItem ) in implLoadLocale() argument
2996 implGetPathForLocaleItem( pLocaleItem, m_aNameBase, m_aLocation ); in implLoadLocale()
3007 bSuccess = StringResourcePersistenceImpl::implReadPropertiesFile( pLocaleItem, xInputStream ); in implLoadLocale()