cvtsvm.cxx (9f62ea84) | cvtsvm.cxx (5aaf853b) |
---|---|
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 --- 585 unchanged lines hidden (view full) --- 594 case (GDI_LINEJOIN_ACTION) : 595 { 596 sal_Int16 nLineJoin(0); 597 rIStm >> nLineJoin; 598 aLineInfo.SetLineJoin((basegfx::B2DLineJoin)nLineJoin); 599 } 600 break; 601 | 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 --- 585 unchanged lines hidden (view full) --- 594 case (GDI_LINEJOIN_ACTION) : 595 { 596 sal_Int16 nLineJoin(0); 597 rIStm >> nLineJoin; 598 aLineInfo.SetLineJoin((basegfx::B2DLineJoin)nLineJoin); 599 } 600 break; 601 |
602 case (GDI_LINECAP_ACTION) : 603 { 604 sal_Int16 nLineCap(0); 605 rIStm >> nLineCap; 606 aLineInfo.SetLineCap((com::sun::star::drawing::LineCap)nLineCap); 607 } 608 break; 609 |
|
602 case (GDI_LINEDASHDOT_ACTION) : 603 { 604 sal_Int16 a(0); 605 sal_Int32 b(0); 606 607 rIStm >> a; aLineInfo.SetDashCount(a); 608 rIStm >> b; aLineInfo.SetDashLen(b); 609 rIStm >> a; aLineInfo.SetDotCount(a); --- 842 unchanged lines hidden (view full) --- 1452 break; 1453 1454 case( META_LINE_ACTION ): 1455 { 1456 MetaLineAction* pAct = (MetaLineAction*) pAction; 1457 const LineInfo& rInfo = pAct->GetLineInfo(); 1458 const bool bFatLine(!rInfo.IsDefault() && (LINE_NONE != rInfo.GetStyle())); 1459 const bool bLineJoin(bFatLine && basegfx::B2DLINEJOIN_ROUND != rInfo.GetLineJoin()); | 610 case (GDI_LINEDASHDOT_ACTION) : 611 { 612 sal_Int16 a(0); 613 sal_Int32 b(0); 614 615 rIStm >> a; aLineInfo.SetDashCount(a); 616 rIStm >> b; aLineInfo.SetDashLen(b); 617 rIStm >> a; aLineInfo.SetDotCount(a); --- 842 unchanged lines hidden (view full) --- 1460 break; 1461 1462 case( META_LINE_ACTION ): 1463 { 1464 MetaLineAction* pAct = (MetaLineAction*) pAction; 1465 const LineInfo& rInfo = pAct->GetLineInfo(); 1466 const bool bFatLine(!rInfo.IsDefault() && (LINE_NONE != rInfo.GetStyle())); 1467 const bool bLineJoin(bFatLine && basegfx::B2DLINEJOIN_ROUND != rInfo.GetLineJoin()); |
1468 const bool bLineCap(bFatLine && com::sun::star::drawing::LineCap_BUTT != rInfo.GetLineCap()); |
|
1460 const bool bLineDashDot(LINE_DASH == rInfo.GetStyle()); 1461 1462 if( bFatLine ) 1463 { 1464 ImplWritePushAction( rOStm ); 1465 ImplWriteLineColor( rOStm, rLineCol, 1, rInfo.GetWidth() ); 1466 1467 if(bLineJoin) 1468 { 1469 rOStm << (sal_Int16) GDI_LINEJOIN_ACTION; 1470 rOStm << (sal_Int32) 6; 1471 rOStm << (sal_Int16) rInfo.GetLineJoin(); 1472 } 1473 | 1469 const bool bLineDashDot(LINE_DASH == rInfo.GetStyle()); 1470 1471 if( bFatLine ) 1472 { 1473 ImplWritePushAction( rOStm ); 1474 ImplWriteLineColor( rOStm, rLineCol, 1, rInfo.GetWidth() ); 1475 1476 if(bLineJoin) 1477 { 1478 rOStm << (sal_Int16) GDI_LINEJOIN_ACTION; 1479 rOStm << (sal_Int32) 6; 1480 rOStm << (sal_Int16) rInfo.GetLineJoin(); 1481 } 1482 |
1474 if(bLineDashDot) 1475 { 1476 rOStm << (sal_Int16) GDI_LINEDASHDOT_ACTION; 1477 rOStm << (sal_Int32) 4 + 16; 1478 rOStm << (sal_Int16)rInfo.GetDashCount(); 1479 rOStm << (sal_Int32)rInfo.GetDashLen(); 1480 rOStm << (sal_Int16)rInfo.GetDotCount(); 1481 rOStm << (sal_Int32)rInfo.GetDotLen(); 1482 rOStm << (sal_Int32)rInfo.GetDistance(); 1483 } | 1483 if(bLineCap) 1484 { 1485 rOStm << (sal_Int16) GDI_LINECAP_ACTION; 1486 rOStm << (sal_Int32) 6; 1487 rOStm << (sal_Int16) rInfo.GetLineCap(); 1488 } |
1484 } 1485 | 1489 } 1490 |
1491 if(bLineDashDot) 1492 { 1493 rOStm << (sal_Int16) GDI_LINEDASHDOT_ACTION; 1494 rOStm << (sal_Int32) 4 + 16; 1495 rOStm << (sal_Int16)rInfo.GetDashCount(); 1496 rOStm << (sal_Int32)rInfo.GetDashLen(); 1497 rOStm << (sal_Int16)rInfo.GetDotCount(); 1498 rOStm << (sal_Int32)rInfo.GetDotLen(); 1499 rOStm << (sal_Int32)rInfo.GetDistance(); 1500 } 1501 |
|
1486 rOStm << (sal_Int16) GDI_LINE_ACTION; 1487 rOStm << (sal_Int32) 20; 1488 rOStm << pAct->GetStartPoint(); 1489 rOStm << pAct->GetEndPoint(); 1490 nCount++; 1491 1492 if( bFatLine ) 1493 { 1494 ImplWritePopAction( rOStm ); 1495 nCount += 3; 1496 1497 if(bLineJoin) 1498 { 1499 nCount += 1; 1500 } | 1502 rOStm << (sal_Int16) GDI_LINE_ACTION; 1503 rOStm << (sal_Int32) 20; 1504 rOStm << pAct->GetStartPoint(); 1505 rOStm << pAct->GetEndPoint(); 1506 nCount++; 1507 1508 if( bFatLine ) 1509 { 1510 ImplWritePopAction( rOStm ); 1511 nCount += 3; 1512 1513 if(bLineJoin) 1514 { 1515 nCount += 1; 1516 } |
1501 1502 if(bLineDashDot) 1503 { 1504 nCount += 1; 1505 } | 1517 1518 if(bLineCap) 1519 { 1520 nCount += 1; 1521 } |
1506 } | 1522 } |
1523 1524 if(bLineDashDot) 1525 { 1526 nCount += 1; 1527 } |
|
1507 } 1508 break; 1509 1510 case( META_RECT_ACTION ): 1511 { 1512 MetaRectAction* pAct = (MetaRectAction*) pAction; 1513 1514 rOStm << (sal_Int16) GDI_RECT_ACTION; --- 80 unchanged lines hidden (view full) --- 1595 // ignored (for all those Years). Adapted to at least write 1596 // a polygon representing the curve as good as possible 1597 Polygon aSimplePoly; 1598 pAct->GetPolygon().AdaptiveSubdivide(aSimplePoly); 1599 const LineInfo& rInfo = pAct->GetLineInfo(); 1600 const sal_uInt16 nPoints(aSimplePoly.GetSize()); 1601 const bool bFatLine(!rInfo.IsDefault() && (LINE_NONE != rInfo.GetStyle())); 1602 const bool bLineJoin(bFatLine && basegfx::B2DLINEJOIN_ROUND != rInfo.GetLineJoin()); | 1528 } 1529 break; 1530 1531 case( META_RECT_ACTION ): 1532 { 1533 MetaRectAction* pAct = (MetaRectAction*) pAction; 1534 1535 rOStm << (sal_Int16) GDI_RECT_ACTION; --- 80 unchanged lines hidden (view full) --- 1616 // ignored (for all those Years). Adapted to at least write 1617 // a polygon representing the curve as good as possible 1618 Polygon aSimplePoly; 1619 pAct->GetPolygon().AdaptiveSubdivide(aSimplePoly); 1620 const LineInfo& rInfo = pAct->GetLineInfo(); 1621 const sal_uInt16 nPoints(aSimplePoly.GetSize()); 1622 const bool bFatLine(!rInfo.IsDefault() && (LINE_NONE != rInfo.GetStyle())); 1623 const bool bLineJoin(bFatLine && basegfx::B2DLINEJOIN_ROUND != rInfo.GetLineJoin()); |
1624 const bool bLineCap(bFatLine && com::sun::star::drawing::LineCap_BUTT != rInfo.GetLineCap()); |
|
1603 const bool bLineDashDot(LINE_DASH == rInfo.GetStyle()); 1604 1605 if( bFatLine ) 1606 { 1607 ImplWritePushAction( rOStm ); 1608 ImplWriteLineColor( rOStm, rLineCol, 1, rInfo.GetWidth() ); 1609 1610 if(bLineJoin) 1611 { 1612 rOStm << (sal_Int16) GDI_LINEJOIN_ACTION; 1613 rOStm << (sal_Int32) 6; 1614 rOStm << (sal_Int16) rInfo.GetLineJoin(); 1615 } | 1625 const bool bLineDashDot(LINE_DASH == rInfo.GetStyle()); 1626 1627 if( bFatLine ) 1628 { 1629 ImplWritePushAction( rOStm ); 1630 ImplWriteLineColor( rOStm, rLineCol, 1, rInfo.GetWidth() ); 1631 1632 if(bLineJoin) 1633 { 1634 rOStm << (sal_Int16) GDI_LINEJOIN_ACTION; 1635 rOStm << (sal_Int32) 6; 1636 rOStm << (sal_Int16) rInfo.GetLineJoin(); 1637 } |
1638 1639 if(bLineCap) 1640 { 1641 rOStm << (sal_Int16) GDI_LINECAP_ACTION; 1642 rOStm << (sal_Int32) 6; 1643 rOStm << (sal_Int16) rInfo.GetLineCap(); 1644 } |
|
1616 } 1617 1618 if(bLineDashDot) 1619 { 1620 rOStm << (sal_Int16) GDI_LINEDASHDOT_ACTION; 1621 rOStm << (sal_Int32) 4 + 16; 1622 rOStm << (sal_Int16)rInfo.GetDashCount(); 1623 rOStm << (sal_Int32)rInfo.GetDashLen(); --- 23 unchanged lines hidden (view full) --- 1647 { 1648 ImplWritePopAction( rOStm ); 1649 nCount += 3; 1650 1651 if(bLineJoin) 1652 { 1653 nCount += 1; 1654 } | 1645 } 1646 1647 if(bLineDashDot) 1648 { 1649 rOStm << (sal_Int16) GDI_LINEDASHDOT_ACTION; 1650 rOStm << (sal_Int32) 4 + 16; 1651 rOStm << (sal_Int16)rInfo.GetDashCount(); 1652 rOStm << (sal_Int32)rInfo.GetDashLen(); --- 23 unchanged lines hidden (view full) --- 1676 { 1677 ImplWritePopAction( rOStm ); 1678 nCount += 3; 1679 1680 if(bLineJoin) 1681 { 1682 nCount += 1; 1683 } |
1684 1685 if(bLineCap) 1686 { 1687 nCount += 1; 1688 } |
|
1655 } 1656 1657 if(bLineDashDot) 1658 { 1659 nCount += 1; 1660 } 1661 } 1662 break; --- 850 unchanged lines hidden --- | 1689 } 1690 1691 if(bLineDashDot) 1692 { 1693 nCount += 1; 1694 } 1695 } 1696 break; --- 850 unchanged lines hidden --- |