diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2012-02-18 19:40:50 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2012-02-18 21:32:59 +0100 |
commit | 7bf5fa1dea5165c1b3e7c15e6bd6787aeb9e86be (patch) | |
tree | e7c7f873e2ab6d427a9105c48fccdee7b59fc788 /vcl/win | |
parent | 949214fab82258f919b2668bd7d1b57d562feaf7 (diff) |
vcl: remove some more unused windows code
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/source/gdi/salgdi3.cxx | 40 |
1 files changed, 0 insertions, 40 deletions
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 ), |