diff options
author | Chr. Rossmanith <Chr.Rossmanith@gmx.de> | 2012-04-25 13:53:37 +0530 |
---|---|---|
committer | Muthu Subramanian <sumuthu@suse.com> | 2012-04-25 13:53:37 +0530 |
commit | 5708f2bfa70db0479ddbf9b454329cd81e0f509d (patch) | |
tree | 69b6b662f2460dab41dacb3986156d93943dd63d /vcl | |
parent | d6b2189fee1df979dfee53ac3824f101278facdf (diff) |
Removed unused methods from psp::PrinterGfx
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/generic/print/bitmap_gfx.cxx | 28 | ||||
-rw-r--r-- | vcl/generic/print/common_gfx.cxx | 7 | ||||
-rw-r--r-- | vcl/generic/print/text_gfx.cxx | 17 | ||||
-rw-r--r-- | vcl/inc/generic/printergfx.hxx | 13 |
4 files changed, 1 insertions, 64 deletions
diff --git a/vcl/generic/print/bitmap_gfx.cxx b/vcl/generic/print/bitmap_gfx.cxx index 3b19b51e9d59..cfabe70ba1c2 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 662e696d91e9..d11ba20a7c40 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 237bb1be2c0f..f7d9acb1e093 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 57347f357393..9308ee37640e 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, |