Hi,
an easyhack, to get a feeling of success while trying to understand
import of SVGs.
Christina
From 5b90ab4c0053c09bbd49f1bf3024d70cfb32af6e Mon Sep 17 00:00:00 2001
From: "Chr. Rossmanith" <Chr.Rossmanith@gmx.de>
Date: Tue, 24 Apr 2012 20:09:33 +0200
Subject: [PATCH] Removed unused methods from psp::PrinterGfx
---
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(-)
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,
--
1.7.9.5
Context
- [PATCH] Removed unused methods from psp::PrinterGfx · Christina Roßmanith
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.