pspgraphics.cxx (248a599f) | pspgraphics.cxx (54ae6a37) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 387 unchanged lines hidden (view full) --- 396 m_pPrinterGfx->DrawLine (Point(nX1, nY1), Point(nX2, nY2)); 397} 398 399void PspGraphics::drawRect( long nX, long nY, long nDX, long nDY ) 400{ 401 m_pPrinterGfx->DrawRect (Rectangle(Point(nX, nY), Size(nDX, nDY))); 402} 403 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 387 unchanged lines hidden (view full) --- 396 m_pPrinterGfx->DrawLine (Point(nX1, nY1), Point(nX2, nY2)); 397} 398 399void PspGraphics::drawRect( long nX, long nY, long nDX, long nDY ) 400{ 401 m_pPrinterGfx->DrawRect (Rectangle(Point(nX, nY), Size(nDX, nDY))); 402} 403 |
404void PspGraphics::drawPolyLine( sal_uLong nPoints, const SalPoint *pPtAry ) | 404void PspGraphics::drawPolyLine( sal_uInt32 nPoints, const SalPoint *pPtAry ) |
405{ 406 m_pPrinterGfx->DrawPolyLine (nPoints, (Point*)pPtAry); 407} 408 | 405{ 406 m_pPrinterGfx->DrawPolyLine (nPoints, (Point*)pPtAry); 407} 408 |
409void PspGraphics::drawPolygon( sal_uLong nPoints, const SalPoint* pPtAry ) | 409void PspGraphics::drawPolygon( sal_uInt32 nPoints, const SalPoint* pPtAry ) |
410{ 411 // Point must be equal to SalPoint! see vcl/inc/salgtype.hxx 412 m_pPrinterGfx->DrawPolygon (nPoints, (Point*)pPtAry); 413} 414 415void PspGraphics::drawPolyPolygon( sal_uInt32 nPoly, 416 const sal_uInt32 *pPoints, 417 PCONSTSALPOINT *pPtAry ) --- 13 unchanged lines hidden (view full) --- 431 const basegfx::B2DVector& /*rLineWidths*/, 432 basegfx::B2DLineJoin /*eJoin*/, 433 com::sun::star::drawing::LineCap /*eLineCap*/) 434{ 435 // TODO: a PS printer can draw B2DPolyLines almost directly 436 return false; 437} 438 | 410{ 411 // Point must be equal to SalPoint! see vcl/inc/salgtype.hxx 412 m_pPrinterGfx->DrawPolygon (nPoints, (Point*)pPtAry); 413} 414 415void PspGraphics::drawPolyPolygon( sal_uInt32 nPoly, 416 const sal_uInt32 *pPoints, 417 PCONSTSALPOINT *pPtAry ) --- 13 unchanged lines hidden (view full) --- 431 const basegfx::B2DVector& /*rLineWidths*/, 432 basegfx::B2DLineJoin /*eJoin*/, 433 com::sun::star::drawing::LineCap /*eLineCap*/) 434{ 435 // TODO: a PS printer can draw B2DPolyLines almost directly 436 return false; 437} 438 |
439sal_Bool PspGraphics::drawPolyLineBezier( sal_uLong nPoints, const SalPoint* pPtAry, const sal_uInt8* pFlgAry ) | 439sal_Bool PspGraphics::drawPolyLineBezier( sal_uInt32 nPoints, const SalPoint* pPtAry, const sal_uInt8* pFlgAry ) |
440{ 441 m_pPrinterGfx->DrawPolyLineBezier (nPoints, (Point*)pPtAry, pFlgAry); 442 return sal_True; 443} 444 | 440{ 441 m_pPrinterGfx->DrawPolyLineBezier (nPoints, (Point*)pPtAry, pFlgAry); 442 return sal_True; 443} 444 |
445sal_Bool PspGraphics::drawPolygonBezier( sal_uLong nPoints, const SalPoint* pPtAry, const sal_uInt8* pFlgAry ) | 445sal_Bool PspGraphics::drawPolygonBezier( sal_uInt32 nPoints, const SalPoint* pPtAry, const sal_uInt8* pFlgAry ) |
446{ 447 m_pPrinterGfx->DrawPolygonBezier (nPoints, (Point*)pPtAry, pFlgAry); 448 return sal_True; 449} 450 451sal_Bool PspGraphics::drawPolyPolygonBezier( sal_uInt32 nPoly, 452 const sal_uInt32* pPoints, 453 const SalPoint* const* pPtAry, 454 const sal_uInt8* const* pFlgAry ) 455{ 456 // Point must be equal to SalPoint! see vcl/inc/salgtype.hxx 457 m_pPrinterGfx->DrawPolyPolygonBezier (nPoly, pPoints, (Point**)pPtAry, (sal_uInt8**)pFlgAry); 458 return sal_True; 459} 460 | 446{ 447 m_pPrinterGfx->DrawPolygonBezier (nPoints, (Point*)pPtAry, pFlgAry); 448 return sal_True; 449} 450 451sal_Bool PspGraphics::drawPolyPolygonBezier( sal_uInt32 nPoly, 452 const sal_uInt32* pPoints, 453 const SalPoint* const* pPtAry, 454 const sal_uInt8* const* pFlgAry ) 455{ 456 // Point must be equal to SalPoint! see vcl/inc/salgtype.hxx 457 m_pPrinterGfx->DrawPolyPolygonBezier (nPoly, pPoints, (Point**)pPtAry, (sal_uInt8**)pFlgAry); 458 return sal_True; 459} 460 |
461void PspGraphics::invert( sal_uLong, 462 const SalPoint*, 463 SalInvert ) | 461void PspGraphics::invert( sal_uInt32, const SalPoint*, SalInvert ) |
464{ 465 DBG_ASSERT( 0, "Error: PrinterGfx::Invert() not implemented" ); 466} | 462{ 463 DBG_ASSERT( 0, "Error: PrinterGfx::Invert() not implemented" ); 464} |
465 |
|
467sal_Bool PspGraphics::drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, sal_uLong nSize ) 468{ 469 return m_pPrinterGfx->DrawEPS( Rectangle( Point( nX, nY ), Size( nWidth, nHeight ) ), pPtr, nSize ); 470} 471 472void PspGraphics::copyBits( const SalTwoRect&, 473 SalGraphics* ) 474{ --- 1065 unchanged lines hidden --- | 466sal_Bool PspGraphics::drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, sal_uLong nSize ) 467{ 468 return m_pPrinterGfx->DrawEPS( Rectangle( Point( nX, nY ), Size( nWidth, nHeight ) ), pPtr, nSize ); 469} 470 471void PspGraphics::copyBits( const SalTwoRect&, 472 SalGraphics* ) 473{ --- 1065 unchanged lines hidden --- |