diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-06-19 06:24:37 -0500 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-06-20 11:00:22 +0200 |
commit | 2bbebea59de3e2e22817ed4fbe0ce7b7df7c0342 (patch) | |
tree | 9f8271e3b701c2161cee29d1418d26b7b235a6c6 /vcl/win | |
parent | bb6fec1bd39be9f6d660623abd2b25400a34b9ac (diff) |
Rename the class ImplFontData into PhysicalFontFace
Change-Id: I402481e7c6ea605c8ccfdf6cb08166859b37e8de
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/source/gdi/salgdi3.cxx | 20 | ||||
-rw-r--r-- | vcl/win/source/gdi/winlayout.cxx | 4 |
2 files changed, 12 insertions, 12 deletions
diff --git a/vcl/win/source/gdi/salgdi3.cxx b/vcl/win/source/gdi/salgdi3.cxx index 59ee078a1e93..963ea3afa527 100644 --- a/vcl/win/source/gdi/salgdi3.cxx +++ b/vcl/win/source/gdi/salgdi3.cxx @@ -465,7 +465,7 @@ public: bool FindFontSubstitute( FontSelectPattern&, rtl::OUString& rMissingChars ) const; private: HDC mhDC; - bool HasMissingChars( const ImplFontData*, const rtl::OUString& rMissingChars ) const; + bool HasMissingChars( const PhysicalFontFace*, const rtl::OUString& rMissingChars ) const; }; inline WinGlyphFallbackSubstititution::WinGlyphFallbackSubstititution( HDC hDC ) @@ -476,7 +476,7 @@ void ImplGetLogFontFromFontSelect( HDC, const FontSelectPattern*, LOGFONTW&, bool /*bTestVerticalAvail*/ ); // does a font face hold the given missing characters? -bool WinGlyphFallbackSubstititution::HasMissingChars( const ImplFontData* pFace, const rtl::OUString& rMissingChars ) const +bool WinGlyphFallbackSubstititution::HasMissingChars( const PhysicalFontFace* pFace, const rtl::OUString& rMissingChars ) const { const ImplWinFontData* pWinFont = static_cast<const ImplWinFontData*>(pFace); const ImplFontCharMap* pCharMap = pWinFont->GetImplFontCharMap(); @@ -570,7 +570,7 @@ bool WinGlyphFallbackSubstititution::FindFontSubstitute( FontSelectPattern& rFon /*const*/ ImplDevFontListData* pDevFont = findDevFontListByLocale(*pDevFontList, aLocale); if( pDevFont ) { - const ImplFontData* pFace = pDevFont->FindBestFontFace( rFontSelData ); + const PhysicalFontFace* pFace = pDevFont->FindBestFontFace( rFontSelData ); if( HasMissingChars( pFace, rMissingChars ) ) { rFontSelData.maSearchName = pDevFont->GetSearchName(); @@ -584,7 +584,7 @@ bool WinGlyphFallbackSubstititution::FindFontSubstitute( FontSelectPattern& rFon rFontSelData.meItalic, rFontSelData.maSearchName ); if( pDevFont ) { - const ImplFontData* pFace = pDevFont->FindBestFontFace( rFontSelData ); + const PhysicalFontFace* pFace = pDevFont->FindBestFontFace( rFontSelData ); if( HasMissingChars( pFace, rMissingChars ) ) { rFontSelData.maSearchName = pDevFont->GetSearchName(); @@ -602,7 +602,7 @@ bool WinGlyphFallbackSubstititution::FindFontSubstitute( FontSelectPattern& rFon for( int i = 0; i < nTestFontCount; ++i ) { - const ImplFontData* pFace = pTestFontList->Get( i ); + const PhysicalFontFace* pFace = pTestFontList->Get( i ); if( !HasMissingChars( pFace, rMissingChars ) ) continue; rFontSelData.maSearchName = pFace->maName; @@ -1143,7 +1143,7 @@ const void * GrFontData::getTable(unsigned int name, size_t *len) const ImplWinFontData::ImplWinFontData( const ImplDevFontAttributes& rDFS, int nHeight, BYTE eWinCharSet, BYTE nPitchAndFamily ) -: ImplFontData( rDFS, 0 ), +: PhysicalFontFace( rDFS, 0 ), mnId( 0 ), mbDisableGlyphApi( false ), mbHasKoreanRange( false ), @@ -2563,7 +2563,7 @@ int ScopedTrueTypeFont::open(void * pBuffer, sal_uInt32 nLen, } sal_Bool WinSalGraphics::CreateFontSubset( const rtl::OUString& rToFile, - const ImplFontData* pFont, long* pGlyphIDs, sal_uInt8* pEncoding, + const PhysicalFontFace* pFont, long* pGlyphIDs, sal_uInt8* pEncoding, sal_Int32* pGlyphWidths, int nGlyphCount, FontSubsetInfo& rInfo ) { // TODO: use more of the central font-subsetting code, move stuff there if needed @@ -2719,7 +2719,7 @@ sal_Bool WinSalGraphics::CreateFontSubset( const rtl::OUString& rToFile, //-------------------------------------------------------------------------- -const void* WinSalGraphics::GetEmbedFontData( const ImplFontData* pFont, +const void* WinSalGraphics::GetEmbedFontData( const PhysicalFontFace* pFont, const sal_Unicode* pUnicodes, sal_Int32* pCharWidths, FontSubsetInfo& rInfo, long* pDataLen ) { @@ -2783,7 +2783,7 @@ void WinSalGraphics::FreeEmbedFontData( const void* pData, long /*nLen*/ ) //-------------------------------------------------------------------------- -const Ucs2SIntMap* WinSalGraphics::GetFontEncodingVector( const ImplFontData* pFont, const Ucs2OStrMap** pNonEncoded ) +const Ucs2SIntMap* WinSalGraphics::GetFontEncodingVector( const PhysicalFontFace* pFont, const Ucs2OStrMap** pNonEncoded ) { // TODO: even for builtin fonts we get here... why? if( !pFont->IsEmbeddable() ) @@ -2810,7 +2810,7 @@ const Ucs2SIntMap* WinSalGraphics::GetFontEncodingVector( const ImplFontData* pF //-------------------------------------------------------------------------- -void WinSalGraphics::GetGlyphWidths( const ImplFontData* pFont, +void WinSalGraphics::GetGlyphWidths( const PhysicalFontFace* pFont, bool bVertical, Int32Vector& rWidths, Ucs2UIntMap& rUnicodeEnc ) diff --git a/vcl/win/source/gdi/winlayout.cxx b/vcl/win/source/gdi/winlayout.cxx index 1df1a75816a6..2486c45215a2 100644 --- a/vcl/win/source/gdi/winlayout.cxx +++ b/vcl/win/source/gdi/winlayout.cxx @@ -3027,7 +3027,7 @@ bool ImplWinFontEntry::InitKashidaHandling( HDC hDC ) // ======================================================================= -ImplFontData* ImplWinFontData::Clone() const +PhysicalFontFace* ImplWinFontData::Clone() const { if( mpUnicodeMap ) mpUnicodeMap->AddReference(); @@ -3035,7 +3035,7 @@ ImplFontData* ImplWinFontData::Clone() const if ( mpGraphiteData ) mpGraphiteData->AddReference(); #endif - ImplFontData* pClone = new ImplWinFontData( *this ); + PhysicalFontFace* pClone = new ImplWinFontData( *this ); return pClone; } |