From 7bf5fa1dea5165c1b3e7c15e6bd6787aeb9e86be Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sat, 18 Feb 2012 19:40:50 +0100 Subject: vcl: remove some more unused windows code --- vcl/win/source/gdi/salgdi3.cxx | 40 ---------------------------------------- 1 file changed, 40 deletions(-) (limited to 'vcl/win') diff --git a/vcl/win/source/gdi/salgdi3.cxx b/vcl/win/source/gdi/salgdi3.cxx index e3e94b4a3f3a..cbcea3d5d1d9 100644 --- a/vcl/win/source/gdi/salgdi3.cxx +++ b/vcl/win/source/gdi/salgdi3.cxx @@ -1465,28 +1465,6 @@ int CALLBACK SalEnumQueryFontProcExW( const ENUMLOGFONTEXW*, // ----------------------------------------------------------------------- -bool ImplIsFontAvailable( HDC hDC, const UniString& rName ) -{ - // Test, if Font available - LOGFONTW aLogFont; - memset( &aLogFont, 0, sizeof( aLogFont ) ); - aLogFont.lfCharSet = DEFAULT_CHARSET; - - UINT nNameLen = rName.Len(); - if ( nNameLen > (sizeof( aLogFont.lfFaceName )/sizeof( wchar_t ))-1 ) - nNameLen = (sizeof( aLogFont.lfFaceName )/sizeof( wchar_t ))-1; - memcpy( aLogFont.lfFaceName, rName.GetBuffer(), nNameLen*sizeof( wchar_t ) ); - aLogFont.lfFaceName[nNameLen] = 0; - - bool bAvailable = false; - EnumFontFamiliesExW( hDC, &aLogFont, (FONTENUMPROCW)SalEnumQueryFontProcExW, - (LPARAM)(void*)&bAvailable, 0 ); - - return bAvailable; -} - -// ----------------------------------------------------------------------- - void ImplGetLogFontFromFontSelect( HDC hDC, const FontSelectPattern* pFont, LOGFONTW& rLogFont, @@ -1787,24 +1765,6 @@ void WinSalGraphics::GetFontMetric( ImplFontMetricData* pMetric, int nFallbackLe // ----------------------------------------------------------------------- -int CALLBACK SalEnumCharSetsProcExA( const ENUMLOGFONTEXA* pLogFont, - const NEWTEXTMETRICEXA* /*pMetric*/, - DWORD /*nFontType*/, LPARAM lParam ) -{ - WinSalGraphics* pData = (WinSalGraphics*)lParam; - // Charset already in the list? - for ( BYTE i = 0; i < pData->mnFontCharSetCount; i++ ) - { - if ( pData->mpFontCharSets[i] == pLogFont->elfLogFont.lfCharSet ) - return 1; - } - pData->mpFontCharSets[pData->mnFontCharSetCount] = pLogFont->elfLogFont.lfCharSet; - pData->mnFontCharSetCount++; - return 1; -} - -// ----------------------------------------------------------------------- - sal_uLong WinSalGraphics::GetKernPairs( sal_uLong nPairs, ImplKernPairData* pKernPairs ) { DBG_ASSERT( sizeof( KERNINGPAIR ) == sizeof( ImplKernPairData ), -- cgit