salgdi.cxx (8a718ffc) salgdi.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

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

499 Ft2Move( mhPS, &aPt );
500 aPt.x = nX + nWidth - 1;
501 aPt.y = TY( nY + nHeight - 1 );
502 Ft2Box( mhPS, lControl, &aPt, 0, 0 );
503}
504
505// -----------------------------------------------------------------------
506
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

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

499 Ft2Move( mhPS, &aPt );
500 aPt.x = nX + nWidth - 1;
501 aPt.y = TY( nY + nHeight - 1 );
502 Ft2Box( mhPS, lControl, &aPt, 0, 0 );
503}
504
505// -----------------------------------------------------------------------
506
507void Os2SalGraphics::drawPolyLine( ULONG nPoints, const SalPoint* pPtAry )
507void Os2SalGraphics::drawPolyLine( sal_uInt32 nPoints, const SalPoint* pPtAry )
508{
509 // convert all points to sys orientation
510 POINTL* pOS2PtAry = new POINTL[ nPoints ];
511 POINTL* pTempOS2PtAry = pOS2PtAry;
512 const SalPoint* pTempPtAry = pPtAry;
508{
509 // convert all points to sys orientation
510 POINTL* pOS2PtAry = new POINTL[ nPoints ];
511 POINTL* pTempOS2PtAry = pOS2PtAry;
512 const SalPoint* pTempPtAry = pPtAry;
513 ULONG nTempPoints = nPoints;
513 sal_uInt32 nTempPoints = nPoints;
514 long nHeight = mnHeight - 1;
515
516 while( nTempPoints-- )
517 {
518 (*pTempOS2PtAry).x = (*pTempPtAry).mnX;
519 (*pTempOS2PtAry).y = nHeight - (*pTempPtAry).mnY;
520 pTempOS2PtAry++;
521 pTempPtAry++;
522 }
523
524 Ft2Move( mhPS, pOS2PtAry );
525 GpiPolyLine( mhPS, nPoints, pOS2PtAry );
526 delete [] pOS2PtAry;
527}
528
529// -----------------------------------------------------------------------
530
514 long nHeight = mnHeight - 1;
515
516 while( nTempPoints-- )
517 {
518 (*pTempOS2PtAry).x = (*pTempPtAry).mnX;
519 (*pTempOS2PtAry).y = nHeight - (*pTempPtAry).mnY;
520 pTempOS2PtAry++;
521 pTempPtAry++;
522 }
523
524 Ft2Move( mhPS, pOS2PtAry );
525 GpiPolyLine( mhPS, nPoints, pOS2PtAry );
526 delete [] pOS2PtAry;
527}
528
529// -----------------------------------------------------------------------
530
531void Os2SalGraphics::drawPolygon( ULONG nPoints, const SalPoint* pPtAry )
531void Os2SalGraphics::drawPolygon( sal_uInt32 nPoints, const SalPoint* pPtAry )
532{
533 PM_POLYGON aPolygon;
534
535 // create polygon
536 aPolygon.aPointl = new POINTL[ nPoints ];
537 aPolygon.ulPoints = nPoints;
538
539 // convert all points to sys orientation
540 POINTL* pTempOS2PtAry = aPolygon.aPointl;
541 const SalPoint* pTempPtAry = pPtAry;
532{
533 PM_POLYGON aPolygon;
534
535 // create polygon
536 aPolygon.aPointl = new POINTL[ nPoints ];
537 aPolygon.ulPoints = nPoints;
538
539 // convert all points to sys orientation
540 POINTL* pTempOS2PtAry = aPolygon.aPointl;
541 const SalPoint* pTempPtAry = pPtAry;
542 ULONG nTempPoints = nPoints;
542 sal_uInt32 nTempPoints = nPoints;
543 long nHeight = mnHeight - 1;
544
545 while( nTempPoints-- )
546 {
547 (*pTempOS2PtAry).x = (*pTempPtAry).mnX;
548 (*pTempOS2PtAry).y = nHeight - (*pTempPtAry).mnY;
549 pTempOS2PtAry++;
550 pTempPtAry++;

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

591 }
592 }
593
594 delete [] aPolygon.aPointl;
595}
596
597// -----------------------------------------------------------------------
598
543 long nHeight = mnHeight - 1;
544
545 while( nTempPoints-- )
546 {
547 (*pTempOS2PtAry).x = (*pTempPtAry).mnX;
548 (*pTempOS2PtAry).y = nHeight - (*pTempPtAry).mnY;
549 pTempOS2PtAry++;
550 pTempPtAry++;

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

591 }
592 }
593
594 delete [] aPolygon.aPointl;
595}
596
597// -----------------------------------------------------------------------
598
599void Os2SalGraphics::drawPolyPolygon( ULONG nPoly, const ULONG* pPoints,
599void Os2SalGraphics::drawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32* pPoints,
600 PCONSTSALPOINT* pPtAry )
601{
602 ULONG i;
603 long nHeight = mnHeight - 1;
604 PM_POLYGON* aPolygonAry = new PM_POLYGON[ nPoly ];
605
606 for( i = 0; i < nPoly; i++ )
607 {

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

689 com::sun::star::drawing::LineCap /*eLineCap*/)
690{
691 // TODO: implement
692 return false;
693}
694
695// -----------------------------------------------------------------------
696
600 PCONSTSALPOINT* pPtAry )
601{
602 ULONG i;
603 long nHeight = mnHeight - 1;
604 PM_POLYGON* aPolygonAry = new PM_POLYGON[ nPoly ];
605
606 for( i = 0; i < nPoly; i++ )
607 {

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

689 com::sun::star::drawing::LineCap /*eLineCap*/)
690{
691 // TODO: implement
692 return false;
693}
694
695// -----------------------------------------------------------------------
696
697sal_Bool Os2SalGraphics::drawPolyLineBezier( ULONG nPoints, const SalPoint* pPtAry, const sal_uInt8* pFlgAry )
697sal_Bool Os2SalGraphics::drawPolyLineBezier( sal_uInt32 /*nPoints*/, const SalPoint* pPtAry, const sal_uInt8* pFlgAry )
698{
699 return sal_False;
700}
701
702// -----------------------------------------------------------------------
703
698{
699 return sal_False;
700}
701
702// -----------------------------------------------------------------------
703
704sal_Bool Os2SalGraphics::drawPolygonBezier( ULONG nPoints, const SalPoint* pPtAry, const sal_uInt8* pFlgAry )
704sal_Bool Os2SalGraphics::drawPolygonBezier( sal_uInt32 /*nPoints*/, const SalPoint* pPtAry, const sal_uInt8* pFlgAry )
705{
706 return sal_False;
707}
708
709// -----------------------------------------------------------------------
710
705{
706 return sal_False;
707}
708
709// -----------------------------------------------------------------------
710
711sal_Bool Os2SalGraphics::drawPolyPolygonBezier( ULONG nPoly, const ULONG* pPoints,
711sal_Bool Os2SalGraphics::drawPolyPolygonBezier( sal_uInt32 /*nPoly*/, const sal_uInt32* /*pPoints*/,
712 const SalPoint* const* pPtAry, const sal_uInt8* const* pFlgAry )
713{
714 return sal_False;
715}
716
717// =======================================================================
718
719// MAXIMUM BUFSIZE EQ 0xFFFF

--- 339 unchanged lines hidden ---
712 const SalPoint* const* pPtAry, const sal_uInt8* const* pFlgAry )
713{
714 return sal_False;
715}
716
717// =======================================================================
718
719// MAXIMUM BUFSIZE EQ 0xFFFF

--- 339 unchanged lines hidden ---