incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1179216 - /incubator/ooo/trunk/main/vcl/source/gdi/outdev3.cxx
Date Wed, 05 Oct 2011 13:28:42 GMT
Author: hdu
Date: Wed Oct  5 13:28:42 2011
New Revision: 1179216

URL: http://svn.apache.org/viewvc?rev=1179216&view=rev
Log:
OutDev::*KerningPairs* is obsolete

Modified:
    incubator/ooo/trunk/main/vcl/source/gdi/outdev3.cxx

Modified: incubator/ooo/trunk/main/vcl/source/gdi/outdev3.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/vcl/source/gdi/outdev3.cxx?rev=1179216&r1=1179215&r2=1179216&view=diff
==============================================================================
--- incubator/ooo/trunk/main/vcl/source/gdi/outdev3.cxx (original)
+++ incubator/ooo/trunk/main/vcl/source/gdi/outdev3.cxx Wed Oct  5 13:28:42 2011
@@ -7498,53 +7498,15 @@ xub_StrLen OutputDevice::ValidateKashida
 
 // -----------------------------------------------------------------------
 
-
 // TODO: best is to get rid of this method completely
+// until then these stubs are used for keeping the related UNO-API stable
 sal_uLong OutputDevice::GetKerningPairCount() const
 {
-    DBG_TRACE( "OutputDevice::GetKerningPairCount()" );
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
-
-    if( mbNewFont && !ImplNewFont() )
-        return 0;
-    if( mbInitFont )
-        ImplInitFont();
-
-    if( mpPDFWriter && mpPDFWriter->isBuiltinFont( mpFontEntry->maFontSelData.mpFontData
) )
-        return 0;
-
-    // get the kerning pair count from the device layer
-    int nKernPairs = mpGraphics->GetKernPairs( 0, NULL );
-    return nKernPairs;
-}
-
-// -----------------------------------------------------------------------
-
-inline bool CmpKernData( const KerningPair& a, const KerningPair& b )
-{
-    return (a.nChar1 < b.nChar1) || ((a.nChar1 == a.nChar2) && (a.nChar2 <
a.nChar2));
+	return 0;
 }
 
-// TODO: best is to get rid of this method completely
-void OutputDevice::GetKerningPairs( sal_uLong nRequestedPairs, KerningPair* pKernPairs )
const
-{
-    DBG_TRACE( "OutputDevice::GetKerningPairs()" );
-    DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
-
-    if( mbNewFont && !ImplNewFont() )
-        return;
-    if( mbInitFont )
-        ImplInitFont();
-
-    if( mpPDFWriter && mpPDFWriter->isBuiltinFont( mpFontEntry->maFontSelData.mpFontData
) )
-        return;
-
-    // get the kerning pairs directly from the device layer
-    int nKernPairs = mpGraphics->GetKernPairs( nRequestedPairs, (ImplKernPairData*)pKernPairs
);
-
-    // sort kerning pairs
-    std::sort( pKernPairs, pKernPairs+nKernPairs, CmpKernData );
-}
+void OutputDevice::GetKerningPairs( sal_uLong /*nRequestedPairs*/, KerningPair* /*pKernPairs*/
) const
+{}
 
 // -----------------------------------------------------------------------
 



Mime
View raw message