diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-03-16 20:54:05 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-03-20 16:11:56 -0500 |
commit | 98da670aef5c4f964c612cbdd4579c9b3eb39715 (patch) | |
tree | 2633eefce0f68fded33b9c4bfa35cf2c96bb6d85 /vcl/source | |
parent | cabee397b9e8d2b1bc400972db538c4bd79f7f59 (diff) |
replace DevFontList with PhysicalFontFamilies propagate the naming change
Change-Id: Ib3a4ce44d4bdde5570ece84e7399743ee7b8418f
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/gdi/outdev3.cxx | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx index 6550e161ae08..4ac03c3de9c4 100644 --- a/vcl/source/gdi/outdev3.cxx +++ b/vcl/source/gdi/outdev3.cxx @@ -1204,14 +1204,14 @@ void ImplDevFontList::Clear() mnFallbackCount = -1; // clear all entries in the device font list - DevFontList::iterator it = maDevFontList.begin(); - for(; it != maDevFontList.end(); ++it ) + PhysicalFontFamilies::iterator it = maPhysicalFontFamilies.begin(); + for(; it != maPhysicalFontFamilies.end(); ++it ) { PhysicalFontFamily* pEntry = (*it).second; delete pEntry; } - maDevFontList.clear(); + maPhysicalFontFamilies.clear(); // match data must be recalculated too mbMatchData = false; @@ -1408,15 +1408,15 @@ void ImplDevFontList::Add( PhysicalFontFace* pNewData ) OUString aSearchName = pNewData->GetFamilyName(); GetEnglishSearchFontName( aSearchName ); - DevFontList::const_iterator it = maDevFontList.find( aSearchName ); + PhysicalFontFamilies::const_iterator it = maPhysicalFontFamilies.find( aSearchName ); PhysicalFontFamily* pFoundData = NULL; - if( it != maDevFontList.end() ) + if( it != maPhysicalFontFamilies.end() ) pFoundData = (*it).second; if( !pFoundData ) { pFoundData = new PhysicalFontFamily( aSearchName ); - maDevFontList[ aSearchName ] = pFoundData; + maPhysicalFontFamilies[ aSearchName ] = pFoundData; } bool bKeepNewData = pFoundData->AddFontFace( pNewData ); @@ -1434,8 +1434,8 @@ PhysicalFontFamily* ImplDevFontList::ImplFindBySearchName( const OUString& rSear DBG_ASSERT( aTempName == rSearchName, "ImplDevFontList::ImplFindBySearchName() called with non-normalized name" ); #endif - DevFontList::const_iterator it = maDevFontList.find( rSearchName ); - if( it == maDevFontList.end() ) + PhysicalFontFamilies::const_iterator it = maPhysicalFontFamilies.find( rSearchName ); + if( it == maPhysicalFontFamilies.end() ) return NULL; PhysicalFontFamily* pFoundData = (*it).second; @@ -1455,8 +1455,8 @@ PhysicalFontFamily* ImplDevFontList::ImplFindByAliasName(const OUString& rSearch // use the font's alias names to find the font // TODO: get rid of linear search - DevFontList::const_iterator it = maDevFontList.begin(); - while( it != maDevFontList.end() ) + PhysicalFontFamilies::const_iterator it = maPhysicalFontFamilies.begin(); + while( it != maPhysicalFontFamilies.end() ) { PhysicalFontFamily* pData = (*it).second; if( pData->maMapNames.isEmpty() ) @@ -1549,8 +1549,8 @@ void ImplDevFontList::InitMatchData() const // calculate MatchData for all entries const FontSubstConfiguration& rFontSubst = FontSubstConfiguration::get(); - DevFontList::const_iterator it = maDevFontList.begin(); - for(; it != maDevFontList.end(); ++it ) + PhysicalFontFamilies::const_iterator it = maPhysicalFontFamilies.begin(); + for(; it != maPhysicalFontFamilies.end(); ++it ) { const OUString& rSearchName = (*it).first; PhysicalFontFamily* pEntry = (*it).second; @@ -1579,8 +1579,8 @@ PhysicalFontFamily* ImplDevFontList::ImplFindByAttributes( sal_uLong nSearchType long nBestMatch = 40000; sal_uLong nBestType = 0; - DevFontList::const_iterator it = maDevFontList.begin(); - for(; it != maDevFontList.end(); ++it ) + PhysicalFontFamilies::const_iterator it = maPhysicalFontFamilies.begin(); + for(; it != maPhysicalFontFamilies.end(); ++it ) { PhysicalFontFamily* pData = (*it).second; @@ -1946,8 +1946,8 @@ PhysicalFontFamily* ImplDevFontList::FindDefaultFont() const InitMatchData(); - DevFontList::const_iterator it = maDevFontList.begin(); - for(; it != maDevFontList.end(); ++it ) + PhysicalFontFamilies::const_iterator it = maPhysicalFontFamilies.begin(); + for(; it != maPhysicalFontFamilies.end(); ++it ) { PhysicalFontFamily* pData = (*it).second; if( pData->mnMatchType & IMPL_FONT_ATTR_SYMBOL ) @@ -1960,8 +1960,8 @@ PhysicalFontFamily* ImplDevFontList::FindDefaultFont() const return pFoundData; // finding any font is better than finding no font at all - it = maDevFontList.begin(); - if( it != maDevFontList.end() ) + it = maPhysicalFontFamilies.begin(); + if( it != maPhysicalFontFamilies.end() ) pFoundData = (*it).second; return pFoundData; @@ -1977,8 +1977,8 @@ ImplDevFontList* ImplDevFontList::Clone( bool bScalable, bool bEmbeddable ) cons // TODO: clone the config-font attributes too? pClonedList->mbMatchData = false; - DevFontList::const_iterator it = maDevFontList.begin(); - for(; it != maDevFontList.end(); ++it ) + PhysicalFontFamilies::const_iterator it = maPhysicalFontFamilies.begin(); + for(; it != maPhysicalFontFamilies.end(); ++it ) { const PhysicalFontFamily* pFontFace = (*it).second; pFontFace->UpdateCloneFontList( *pClonedList, bScalable, bEmbeddable ); @@ -1991,8 +1991,8 @@ ImplGetDevFontList* ImplDevFontList::GetDevFontList() const { ImplGetDevFontList* pGetDevFontList = new ImplGetDevFontList; - DevFontList::const_iterator it = maDevFontList.begin(); - for(; it != maDevFontList.end(); ++it ) + PhysicalFontFamilies::const_iterator it = maPhysicalFontFamilies.begin(); + for(; it != maPhysicalFontFamilies.end(); ++it ) { const PhysicalFontFamily* pFontFamily = (*it).second; pFontFamily->UpdateDevFontList( *pGetDevFontList ); |