summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2011-10-05 12:37:25 +0000
committerHerbert Dürr <hdu@apache.org>2011-10-05 12:37:25 +0000
commit4ee24a7d79d81dd69fcdc3d6dc77424c27a3998a (patch)
treed9f91e1365f861d638db1c4005ce5b00fde88db0 /toolkit
parent63e816d61b26cc1e137e5ba28c44effc238acc91 (diff)
remove the OutDev::GetKernPair* stubs completely
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxfont.cxx37
1 files changed, 2 insertions, 35 deletions
diff --git a/toolkit/source/awt/vclxfont.cxx b/toolkit/source/awt/vclxfont.cxx
index 9d46107d8522..ef80b944cdd9 100644
--- a/toolkit/source/awt/vclxfont.cxx
+++ b/toolkit/source/awt/vclxfont.cxx
@@ -194,42 +194,9 @@ sal_Int32 VCLXFont::getStringWidthArray( const ::rtl::OUString& str, ::com::sun:
return nRet;
}
-void VCLXFont::getKernPairs( ::com::sun::star::uno::Sequence< sal_Unicode >& rnChars1, ::com::sun::star::uno::Sequence< sal_Unicode >& rnChars2, ::com::sun::star::uno::Sequence< sal_Int16 >& rnKerns ) throw(::com::sun::star::uno::RuntimeException)
+void VCLXFont::getKernPairs( ::com::sun::star::uno::Sequence< sal_Unicode >& /*rnChars1*/, ::com::sun::star::uno::Sequence< sal_Unicode >& /*rnChars2*/, ::com::sun::star::uno::Sequence< sal_Int16 >& /*rnKerns*/ ) throw(::com::sun::star::uno::RuntimeException)
{
- ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
-
- OutputDevice* pOutDev = VCLUnoHelper::GetOutputDevice( mxDevice );
- if( pOutDev )
- {
- Font aOldFont = pOutDev->GetFont();
- pOutDev->SetFont( maFont );
-
- sal_uLong nPairs = pOutDev->GetKerningPairCount();
- if ( nPairs )
- {
- KerningPair* pData = new KerningPair[ nPairs ];
- pOutDev->GetKerningPairs( nPairs, pData );
-
- rnChars1 = ::com::sun::star::uno::Sequence<sal_Unicode>( nPairs );
- rnChars2 = ::com::sun::star::uno::Sequence<sal_Unicode>( nPairs );
- rnKerns = ::com::sun::star::uno::Sequence<sal_Int16>( nPairs );
-
- sal_Unicode* pChars1 = rnChars1.getArray();
- sal_Unicode* pChars2 = rnChars2.getArray();
- sal_Int16* pKerns = rnKerns.getArray();
-
- for ( sal_uLong n = 0; n < nPairs; n++ )
- {
- pChars1[n] = pData[n].nChar1;
- pChars2[n] = pData[n].nChar2;
- pKerns[n] = sal::static_int_cast< sal_Int16 >(pData[n].nKern);
- }
-
-
- delete[] pData;
- }
- pOutDev->SetFont( aOldFont );
- }
+ // NOTE: this empty method is just used for keeping the related UNO-API stable
}
// ::com::sun::star::awt::XFont2