salgdilayout.cxx (438a9ef9) salgdilayout.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

--- 426 unchanged lines hidden (view full) ---

435 double /*fTransparency*/,
436 const basegfx::B2DVector& /*rLineWidths*/,
437 basegfx::B2DLineJoin /*eLineJoin*/,
438 com::sun::star::drawing::LineCap /*eLineCap*/)
439{
440 return false;
441}
442
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

--- 426 unchanged lines hidden (view full) ---

435 double /*fTransparency*/,
436 const basegfx::B2DVector& /*rLineWidths*/,
437 basegfx::B2DLineJoin /*eLineJoin*/,
438 com::sun::star::drawing::LineCap /*eLineCap*/)
439{
440 return false;
441}
442
443void SalGraphics::DrawPolyLine( sal_uLong nPoints, const SalPoint* pPtAry, const OutputDevice *pOutDev )
443void SalGraphics::DrawPolyLine( sal_uInt32 nPoints, const SalPoint* pPtAry, const OutputDevice *pOutDev )
444{
445 if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
446 {
447 SalPoint* pPtAry2 = new SalPoint[nPoints];
448 sal_Bool bCopied = mirror( nPoints, pPtAry, pPtAry2, pOutDev );
449 drawPolyLine( nPoints, bCopied ? pPtAry2 : pPtAry );
450 delete [] pPtAry2;
451 }
452 else
453 drawPolyLine( nPoints, pPtAry );
454}
455
444{
445 if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
446 {
447 SalPoint* pPtAry2 = new SalPoint[nPoints];
448 sal_Bool bCopied = mirror( nPoints, pPtAry, pPtAry2, pOutDev );
449 drawPolyLine( nPoints, bCopied ? pPtAry2 : pPtAry );
450 delete [] pPtAry2;
451 }
452 else
453 drawPolyLine( nPoints, pPtAry );
454}
455
456void SalGraphics::DrawPolygon( sal_uLong nPoints, const SalPoint* pPtAry, const OutputDevice *pOutDev )
456void SalGraphics::DrawPolygon( sal_uInt32 nPoints, const SalPoint* pPtAry, const OutputDevice *pOutDev )
457{
458 if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
459 {
460 SalPoint* pPtAry2 = new SalPoint[nPoints];
461 sal_Bool bCopied = mirror( nPoints, pPtAry, pPtAry2, pOutDev );
462 drawPolygon( nPoints, bCopied ? pPtAry2 : pPtAry );
463 delete [] pPtAry2;
464 }

--- 38 unchanged lines hidden (view full) ---

503 return bRet;
504}
505
506bool SalGraphics::drawPolyPolygon( const ::basegfx::B2DPolyPolygon&, double /*fTransparency*/)
507{
508 return false;
509}
510
457{
458 if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
459 {
460 SalPoint* pPtAry2 = new SalPoint[nPoints];
461 sal_Bool bCopied = mirror( nPoints, pPtAry, pPtAry2, pOutDev );
462 drawPolygon( nPoints, bCopied ? pPtAry2 : pPtAry );
463 delete [] pPtAry2;
464 }

--- 38 unchanged lines hidden (view full) ---

503 return bRet;
504}
505
506bool SalGraphics::drawPolyPolygon( const ::basegfx::B2DPolyPolygon&, double /*fTransparency*/)
507{
508 return false;
509}
510
511sal_Bool SalGraphics::DrawPolyLineBezier( sal_uLong nPoints, const SalPoint* pPtAry, const sal_uInt8* pFlgAry, const OutputDevice* pOutDev )
511sal_Bool SalGraphics::DrawPolyLineBezier( sal_uInt32 nPoints, const SalPoint* pPtAry, const sal_uInt8* pFlgAry, const OutputDevice* pOutDev )
512{
513 sal_Bool bResult = sal_False;
514 if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
515 {
516 SalPoint* pPtAry2 = new SalPoint[nPoints];
517 sal_Bool bCopied = mirror( nPoints, pPtAry, pPtAry2, pOutDev );
518 bResult = drawPolyLineBezier( nPoints, bCopied ? pPtAry2 : pPtAry, pFlgAry );
519 delete [] pPtAry2;
520 }
521 else
522 bResult = drawPolyLineBezier( nPoints, pPtAry, pFlgAry );
523 return bResult;
524}
525
512{
513 sal_Bool bResult = sal_False;
514 if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
515 {
516 SalPoint* pPtAry2 = new SalPoint[nPoints];
517 sal_Bool bCopied = mirror( nPoints, pPtAry, pPtAry2, pOutDev );
518 bResult = drawPolyLineBezier( nPoints, bCopied ? pPtAry2 : pPtAry, pFlgAry );
519 delete [] pPtAry2;
520 }
521 else
522 bResult = drawPolyLineBezier( nPoints, pPtAry, pFlgAry );
523 return bResult;
524}
525
526sal_Bool SalGraphics::DrawPolygonBezier( sal_uLong nPoints, const SalPoint* pPtAry, const sal_uInt8* pFlgAry, const OutputDevice* pOutDev )
526sal_Bool SalGraphics::DrawPolygonBezier( sal_uInt32 nPoints, const SalPoint* pPtAry, const sal_uInt8* pFlgAry, const OutputDevice* pOutDev )
527{
528 sal_Bool bResult = sal_False;
529 if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
530 {
531 SalPoint* pPtAry2 = new SalPoint[nPoints];
532 sal_Bool bCopied = mirror( nPoints, pPtAry, pPtAry2, pOutDev );
533 bResult = drawPolygonBezier( nPoints, bCopied ? pPtAry2 : pPtAry, pFlgAry );
534 delete [] pPtAry2;

--- 141 unchanged lines hidden (view full) ---

676 return getPixel( nX, nY );
677}
678void SalGraphics::Invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags, const OutputDevice *pOutDev )
679{
680 if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
681 mirror( nX, nWidth, pOutDev );
682 invert( nX, nY, nWidth, nHeight, nFlags );
683}
527{
528 sal_Bool bResult = sal_False;
529 if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
530 {
531 SalPoint* pPtAry2 = new SalPoint[nPoints];
532 sal_Bool bCopied = mirror( nPoints, pPtAry, pPtAry2, pOutDev );
533 bResult = drawPolygonBezier( nPoints, bCopied ? pPtAry2 : pPtAry, pFlgAry );
534 delete [] pPtAry2;

--- 141 unchanged lines hidden (view full) ---

676 return getPixel( nX, nY );
677}
678void SalGraphics::Invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags, const OutputDevice *pOutDev )
679{
680 if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
681 mirror( nX, nWidth, pOutDev );
682 invert( nX, nY, nWidth, nHeight, nFlags );
683}
684void SalGraphics::Invert( sal_uLong nPoints, const SalPoint* pPtAry, SalInvert nFlags, const OutputDevice *pOutDev )
684void SalGraphics::Invert( sal_uInt32 nPoints, const SalPoint* pPtAry, SalInvert nFlags, const OutputDevice *pOutDev )
685{
686 if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
687 {
688 SalPoint* pPtAry2 = new SalPoint[nPoints];
689 sal_Bool bCopied = mirror( nPoints, pPtAry, pPtAry2, pOutDev );
690 invert( nPoints, bCopied ? pPtAry2 : pPtAry, nFlags );
691 delete [] pPtAry2;
692 }

--- 186 unchanged lines hidden ---
685{
686 if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
687 {
688 SalPoint* pPtAry2 = new SalPoint[nPoints];
689 sal_Bool bCopied = mirror( nPoints, pPtAry, pPtAry2, pOutDev );
690 invert( nPoints, bCopied ? pPtAry2 : pPtAry, nFlags );
691 delete [] pPtAry2;
692 }

--- 186 unchanged lines hidden ---