summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2021-04-07 10:15:09 +0900
committerTomaž Vajngerl <quikee@gmail.com>2021-04-07 17:40:04 +0200
commit5a251208fe423b8f102886368da0e7e9dddc1a9c (patch)
tree45e4ff04e1c04db5d5f0e1f96a2aa7f2d6f93268 /vcl/unx
parent43bcc236d8253dff80b0911836fe73504b561f9a (diff)
vcl: class to automatically delegate calls to SalGraphicImpl
A class for SalGraphic backends that delegates all the graphic drawing calls to SalGraphicImpl. Use this for GenPspGraphics. Change-Id: I0461259802732e9107d9011608530f1ffe2891ed Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113733 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/generic/print/genpspgraphics.cxx240
1 files changed, 0 insertions, 240 deletions
diff --git a/vcl/unx/generic/print/genpspgraphics.cxx b/vcl/unx/generic/print/genpspgraphics.cxx
index 0d255e2ec79d..92baa37f1011 100644
--- a/vcl/unx/generic/print/genpspgraphics.cxx
+++ b/vcl/unx/generic/print/genpspgraphics.cxx
@@ -86,193 +86,6 @@ void GenPspGraphics::GetResolution( sal_Int32 &rDPIX, sal_Int32 &rDPIY )
}
}
-sal_uInt16 GenPspGraphics::GetBitCount() const
-{
- return m_pBackend->GetBitCount();
-}
-
-tools::Long GenPspGraphics::GetGraphicsWidth() const
-{
- return m_pBackend->GetGraphicsWidth();
-}
-
-void GenPspGraphics::ResetClipRegion()
-{
- m_pBackend->ResetClipRegion();
-}
-
-bool GenPspGraphics::setClipRegion( const vcl::Region& i_rClip )
-{
- return m_pBackend->setClipRegion(i_rClip);
-}
-
-void GenPspGraphics::SetLineColor()
-{
- m_pBackend->SetLineColor();
-}
-
-void GenPspGraphics::SetLineColor( Color nColor )
-{
- m_pBackend->SetLineColor(nColor);
-}
-
-void GenPspGraphics::SetFillColor()
-{
- m_pBackend->SetFillColor();
-}
-
-void GenPspGraphics::SetFillColor( Color nColor )
-{
- m_pBackend->SetFillColor (nColor);
-}
-
-void GenPspGraphics::SetROPLineColor(SalROPColor aColor)
-{
- m_pBackend->SetROPLineColor(aColor);
-}
-
-void GenPspGraphics::SetROPFillColor( SalROPColor aColor)
-{
- m_pBackend->SetROPFillColor(aColor);
-}
-
-void GenPspGraphics::SetXORMode(bool bSet, bool bInvertOnly)
-{
- m_pBackend->SetXORMode(bSet, bInvertOnly);
-}
-
-void GenPspGraphics::drawPixel( tools::Long nX, tools::Long nY )
-{
- m_pBackend->drawPixel(nX, nY);
-}
-
-void GenPspGraphics::drawPixel( tools::Long nX, tools::Long nY, Color nColor )
-{
- m_pBackend->drawPixel(nX, nY, nColor);
-}
-
-void GenPspGraphics::drawLine( tools::Long nX1, tools::Long nY1, tools::Long nX2, tools::Long nY2 )
-{
- m_pBackend->drawLine(nX1, nY1, nX2, nY2);
-}
-
-void GenPspGraphics::drawRect( tools::Long nX, tools::Long nY, tools::Long nDX, tools::Long nDY )
-{
- m_pBackend->drawRect(nX, nY, nDX, nDY);
-}
-
-void GenPspGraphics::drawPolyLine( sal_uInt32 nPoints, const Point *pPtAry )
-{
- m_pBackend->drawPolyLine(nPoints, pPtAry);
-}
-
-void GenPspGraphics::drawPolygon( sal_uInt32 nPoints, const Point* pPtAry )
-{
- m_pBackend->drawPolygon(nPoints, pPtAry);
-}
-
-void GenPspGraphics::drawPolyPolygon( sal_uInt32 nPoly,
- const sal_uInt32 *pPoints,
- const Point* *pPtAry )
-{
- m_pBackend->drawPolyPolygon (nPoly, pPoints, pPtAry);
-}
-
-bool GenPspGraphics::drawPolyPolygon(
- const basegfx::B2DHomMatrix& rObjectToDevice,
- const basegfx::B2DPolyPolygon& rPolyPolygon,
- double fTransparency)
-{
- return m_pBackend->drawPolyPolygon(rObjectToDevice, rPolyPolygon, fTransparency);
-}
-
-bool GenPspGraphics::drawPolyLine(
- const basegfx::B2DHomMatrix& rObjectToDevice,
- const basegfx::B2DPolygon& rPolygon,
- double fTransparency,
- double fLineWidth,
- const std::vector< double >* pStroke, // MM01
- basegfx::B2DLineJoin eJoin,
- css::drawing::LineCap eLineCap,
- double fMiterMinimumAngle,
- bool bPixelSnapHairline)
-{
- return m_pBackend->drawPolyLine(rObjectToDevice, rPolygon, fTransparency, fLineWidth, pStroke, eJoin, eLineCap, fMiterMinimumAngle, bPixelSnapHairline);
-}
-
-bool GenPspGraphics::drawPolyLineBezier( sal_uInt32 nPoints, const Point* pPtAry, const PolyFlags* pFlgAry )
-{
- return m_pBackend->drawPolyLineBezier(nPoints, pPtAry, pFlgAry);
-}
-
-bool GenPspGraphics::drawPolygonBezier( sal_uInt32 nPoints, const Point* pPtAry, const PolyFlags* pFlgAry )
-{
- return m_pBackend->drawPolygonBezier(nPoints, pPtAry, pFlgAry);
-}
-
-bool GenPspGraphics::drawPolyPolygonBezier( sal_uInt32 nPoly,
- const sal_uInt32* pPoints,
- const Point* const* pPtAry,
- const PolyFlags* const* pFlgAry )
-{
- return m_pBackend->drawPolyPolygonBezier(nPoly, pPoints, pPtAry, pFlgAry);
-}
-
-void GenPspGraphics::invert(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight,
- SalInvert nFlags)
-{
- m_pBackend->invert(nX, nY, nWidth, nHeight, nFlags);
-}
-
-void GenPspGraphics::invert(sal_uInt32 nPoints, const Point* pPtAry, SalInvert nFlags)
-{
- m_pBackend->invert(nPoints, pPtAry, nFlags);
-}
-
-bool GenPspGraphics::drawEPS(tools::Long nX, tools::Long nY, tools::Long nWidth,
- tools::Long nHeight, void* pPtr, sal_uInt32 nSize)
-{
- return m_pBackend->drawEPS(nX, nY, nWidth, nHeight, pPtr, nSize);
-}
-
-void GenPspGraphics::copyBits(const SalTwoRect& rPosAry, SalGraphics* pSrcGraphics)
-{
- m_pBackend->copyBits(rPosAry, pSrcGraphics);
-}
-
-void GenPspGraphics::copyArea (tools::Long nDestX, tools::Long nDestY, tools::Long nSrcX,
- tools::Long nSrcY, tools::Long nSrcWidth, tools::Long nSrcHeight,
- bool bWindowInvalidate)
-{
- m_pBackend->copyArea(nDestX, nDestY, nSrcX, nSrcY, nSrcWidth, nSrcHeight, bWindowInvalidate);
-}
-
-void GenPspGraphics::drawBitmap(const SalTwoRect& rPosAry, const SalBitmap& rSalBitmap)
-{
- m_pBackend->drawBitmap(rPosAry, rSalBitmap);
-}
-
-void GenPspGraphics::drawBitmap(const SalTwoRect& rPosAry, const SalBitmap& rSalBitmap, const SalBitmap& rMaskBitmap)
-{
-
- m_pBackend->drawBitmap(rPosAry, rSalBitmap, rMaskBitmap);
-}
-
-void GenPspGraphics::drawMask(const SalTwoRect& rPosAry, const SalBitmap& rSalBitmap, Color nMaskColor)
-{
- m_pBackend->drawMask(rPosAry, rSalBitmap, nMaskColor);
-}
-
-std::shared_ptr<SalBitmap> GenPspGraphics::getBitmap(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight)
-{
- return m_pBackend->getBitmap(nX, nY, nWidth, nHeight);
-}
-
-Color GenPspGraphics::getPixel(tools::Long nX, tools::Long nY)
-{
- return m_pBackend->getPixel(nX, nY);
-}
-
namespace {
class ImplPspFontData : public FreetypeFontFace
@@ -621,59 +434,6 @@ void GenPspGraphics::AnnounceFonts( PhysicalFontCollection* pFontCollection, con
pFontCollection->Add( pFD.get() );
}
-bool GenPspGraphics::blendBitmap(const SalTwoRect& rPosAry, const SalBitmap& rBitmap)
-{
- return m_pBackend->blendBitmap(rPosAry, rBitmap);
-}
-
-bool GenPspGraphics::blendAlphaBitmap(const SalTwoRect& rPosAry, const SalBitmap& rSourceBitmap,
- const SalBitmap& rMaskBitmap, const SalBitmap& rAlphaBitmap)
-{
- return m_pBackend->blendAlphaBitmap(rPosAry, rSourceBitmap, rMaskBitmap, rAlphaBitmap);
-}
-
-bool GenPspGraphics::drawAlphaBitmap(const SalTwoRect& rPosAry, const SalBitmap& rSourceBitmap,
- const SalBitmap& rAlphaBitmap)
-{
- return m_pBackend->drawAlphaBitmap(rPosAry, rSourceBitmap, rAlphaBitmap);
-}
-
-bool GenPspGraphics::drawTransformedBitmap(const basegfx::B2DPoint& rNull,
- const basegfx::B2DPoint& rX,
- const basegfx::B2DPoint& rY,
- const SalBitmap& rSourceBitmap,
- const SalBitmap* pAlphaBitmap, double fAlpha)
-{
- return m_pBackend->drawTransformedBitmap(rNull, rX, rY, rSourceBitmap, pAlphaBitmap, fAlpha);
-}
-
-bool GenPspGraphics::hasFastDrawTransformedBitmap() const
-{
- return m_pBackend->hasFastDrawTransformedBitmap();
-}
-
-bool GenPspGraphics::drawAlphaRect(tools::Long nX, tools::Long nY, tools::Long nWidth,
- tools::Long nHeight, sal_uInt8 nTransparency)
-{
- return m_pBackend->drawAlphaRect(nX, nY, nWidth, nHeight, nTransparency);
-}
-
-bool GenPspGraphics::drawGradient(const tools::PolyPolygon& rPolygon, const Gradient& rGradient)
-{
- return m_pBackend->drawGradient(rPolygon, rGradient);
-}
-
-bool GenPspGraphics::implDrawGradient(basegfx::B2DPolyPolygon const& rPolyPolygon,
- SalGradient const& rGradient)
-{
- return m_pBackend->implDrawGradient(rPolyPolygon, rGradient);
-}
-
-bool GenPspGraphics::supportsOperation(OutDevSupportType eType) const
-{
- return m_pBackend->supportsOperation(eType);
-}
-
SystemGraphicsData GenPspGraphics::GetGraphicsData() const
{
return SystemGraphicsData();