vcl/generic/print/bitmap_gfx.cxx | 28 ---------------------------- vcl/generic/print/common_gfx.cxx | 7 ------- vcl/generic/print/text_gfx.cxx | 17 ----------------- vcl/inc/generic/printergfx.hxx | 13 +------------ 4 files changed, 1 insertion(+), 64 deletions(-)
New commits: commit 5708f2bfa70db0479ddbf9b454329cd81e0f509d Author: Chr. Rossmanith <chr.rossman...@gmx.de> Date: Wed Apr 25 13:53:37 2012 +0530 Removed unused methods from psp::PrinterGfx diff --git a/vcl/generic/print/bitmap_gfx.cxx b/vcl/generic/print/bitmap_gfx.cxx index 3b19b51..cfabe70 100644 --- a/vcl/generic/print/bitmap_gfx.cxx +++ b/vcl/generic/print/bitmap_gfx.cxx @@ -467,34 +467,6 @@ PrinterGfx::DrawBitmap (const Rectangle& rDest, const Rectangle& rSrc, PSGRestore (); } -/* XXX does not work XXX */ -void -PrinterGfx::DrawBitmap (const Rectangle& rDest, const Rectangle& rSrc, - const PrinterBmp& /*rBitmap*/, const PrinterBmp& /*rTransBitmap*/) -{ - double fScaleX = (double)rDest.GetWidth() / (double)rSrc.GetWidth(); - double fScaleY = (double)rDest.GetHeight() / (double)rSrc.GetHeight(); - - PSGSave (); - PSTranslate (rDest.BottomLeft()); - PSScale (fScaleX, fScaleY); - PSGRestore (); -} - -/* XXX does not work XXX */ -void -PrinterGfx::DrawMask (const Rectangle& rDest, const Rectangle& rSrc, - const PrinterBmp &/*rBitmap*/, PrinterColor& /*rMaskColor*/) -{ - double fScaleX = (double)rDest.GetWidth() / (double)rSrc.GetWidth(); - double fScaleY = (double)rDest.GetHeight() / (double)rSrc.GetHeight(); - - PSGSave (); - PSTranslate (rDest.BottomLeft()); - PSScale (fScaleX, fScaleY); - PSGRestore (); -} - /* * * Implementation: PS Level 1 diff --git a/vcl/generic/print/common_gfx.cxx b/vcl/generic/print/common_gfx.cxx index 662e696..d11ba20 100644 --- a/vcl/generic/print/common_gfx.cxx +++ b/vcl/generic/print/common_gfx.cxx @@ -104,13 +104,6 @@ PrinterGfx::Init (const JobData& rData) return sal_True; } -void -PrinterGfx::GetResolution (sal_Int32 &rDpiX, sal_Int32 &rDpiY) const -{ - rDpiX = mnDpi; - rDpiY = mnDpi; -} - sal_uInt16 PrinterGfx::GetBitCount () { diff --git a/vcl/generic/print/text_gfx.cxx b/vcl/generic/print/text_gfx.cxx index 237bb1b..f7d9acb 100644 --- a/vcl/generic/print/text_gfx.cxx +++ b/vcl/generic/print/text_gfx.cxx @@ -697,23 +697,6 @@ const ::std::list< KernPair >& PrinterGfx::getKernPairs( bool bVertical ) const } /* - * advanced glyph handling - */ - -sal_Bool -PrinterGfx::GetGlyphBoundRect (sal_Unicode /*c*/, Rectangle& /*rOutRect*/) -{ - return 0; -} - -sal_uInt32 -PrinterGfx::GetGlyphOutline (sal_Unicode /*c*/, - sal_uInt16 **/*ppPolySizes*/, Point **/*ppPoints*/, sal_uInt8 **/*ppFlags*/) -{ - return 0; -} - -/* * spool the converted truetype fonts to the page header after the page body is * complete * for Type1 fonts spool additional reencoding vectors that are necessary to access the diff --git a/vcl/inc/generic/printergfx.hxx b/vcl/inc/generic/printergfx.hxx index 57347f3..9308ee3 100644 --- a/vcl/inc/generic/printergfx.hxx +++ b/vcl/inc/generic/printergfx.hxx @@ -334,8 +334,7 @@ public: sal_Bool Init (const JobData& rData); void Clear(); - // query depth and size - void GetResolution (sal_Int32 &rDpiX, sal_Int32 &rDpiY) const; + // query depth sal_uInt16 GetBitCount (); // clip region @@ -379,11 +378,6 @@ public: // image drawing void DrawBitmap (const Rectangle& rDest, const Rectangle& rSrc, const PrinterBmp& rBitmap); - void DrawBitmap (const Rectangle& rDest, const Rectangle& rSrc, - const PrinterBmp& rBitmap, - const PrinterBmp& rTransBitmap); - void DrawMask (const Rectangle& rDest, const Rectangle& rSrc, - const PrinterBmp &rBitmap, PrinterColor& rMaskColor); // font and text handling sal_uInt16 SetFont ( @@ -417,11 +411,6 @@ public: sal_Int32 GetCharWidth (sal_uInt16 nFrom, sal_uInt16 nTo, long *pWidthArray); const ::std::list< KernPair >& getKernPairs( bool bVertical = false ) const; - // advanced font handling - sal_Bool GetGlyphBoundRect (sal_Unicode c, Rectangle& rOutRect); - sal_uInt32 GetGlyphOutline (sal_Unicode c, - sal_uInt16 **ppPolySizes, Point **ppPoints, - sal_uInt8 **ppFlags); // for CTL void DrawGlyphs( const Point& rPoint, _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits