Lines Matching refs:rBuffer
511 static void appendHex( sal_Int8 nInt, OStringBuffer& rBuffer ) in appendHex() argument
515 rBuffer.append( pHexDigits[ (nInt >> 4) & 15 ] ); in appendHex()
516 rBuffer.append( pHexDigits[ nInt & 15 ] ); in appendHex()
519 static void appendName( const OUString& rStr, OStringBuffer& rBuffer ) in appendName() argument
540 rBuffer.append( pStr[i] ); in appendName()
544 rBuffer.append( '#' ); in appendName()
545 appendHex( (sal_Int8)pStr[i], rBuffer ); in appendName()
550 static void appendName( const sal_Char* pStr, OStringBuffer& rBuffer ) in appendName() argument
560 rBuffer.append( *pStr ); in appendName()
564 rBuffer.append( '#' ); in appendName()
565 appendHex( (sal_Int8)*pStr, rBuffer ); in appendName()
572 static void appendLiteralString( const sal_Char* pStr, sal_Int32 nLength, OStringBuffer& rBuffer ) in appendLiteralString() argument
579 rBuffer.append( "\\n" ); in appendLiteralString()
582 rBuffer.append( "\\r" ); in appendLiteralString()
585 rBuffer.append( "\\t" ); in appendLiteralString()
588 rBuffer.append( "\\b" ); in appendLiteralString()
591 rBuffer.append( "\\f" ); in appendLiteralString()
596 rBuffer.append( "\\" ); in appendLiteralString()
597 rBuffer.append( (sal_Char) *pStr ); in appendLiteralString()
600 rBuffer.append( (sal_Char) *pStr ); in appendLiteralString()
631 static void appendDestinationName( const rtl::OUString& rString, OStringBuffer& rBuffer ) in appendDestinationName() argument
643 rBuffer.append((sal_Char)aChar); in appendDestinationName()
649 appendHex( aValueHigh, rBuffer ); in appendDestinationName()
650 appendHex( (sal_Int8)(aChar & 255 ), rBuffer ); in appendDestinationName()
656 static void appendUnicodeTextString( const rtl::OUString& rString, OStringBuffer& rBuffer ) in appendUnicodeTextString() argument
658 rBuffer.append( "FEFF" ); in appendUnicodeTextString()
664 appendHex( (sal_Int8)(aChar >> 8), rBuffer ); in appendUnicodeTextString()
665 appendHex( (sal_Int8)(aChar & 255 ), rBuffer ); in appendUnicodeTextString()
827 static void appendFixedInt( sal_Int32 nValue, OStringBuffer& rBuffer, sal_Int32 nPrecision = nLog10… in appendFixedInt() argument
831 rBuffer.append( '-' ); in appendFixedInt()
839 rBuffer.append( nInt ); in appendFixedInt()
845 rBuffer.append( '.' ); in appendFixedInt()
849 rBuffer.append( nDecimal ); in appendFixedInt()
856 static void appendDouble( double fValue, OStringBuffer& rBuffer, sal_Int32 nPrecision = 5 ) in appendDouble() argument
880 rBuffer.append( '-' ); in appendDouble()
881 rBuffer.append( nInt ); in appendDouble()
885 rBuffer.append( '.' ); in appendDouble()
891 rBuffer.append( nNumb ); in appendDouble()
898 static void appendColor( const Color& rColor, OStringBuffer& rBuffer, bool bConvertToGrey = false ) in appendColor() argument
906 appendDouble( (double)cByte / 255.0, rBuffer ); in appendColor()
910 appendDouble( (double)rColor.GetRed() / 255.0, rBuffer ); in appendColor()
911 rBuffer.append( ' ' ); in appendColor()
912 appendDouble( (double)rColor.GetGreen() / 255.0, rBuffer ); in appendColor()
913 rBuffer.append( ' ' ); in appendColor()
914 appendDouble( (double)rColor.GetBlue() / 255.0, rBuffer ); in appendColor()
919 void PDFWriterImpl::appendStrokingColor( const Color& rColor, OStringBuffer& rBuffer ) in appendStrokingColor() argument
924 appendColor( rColor, rBuffer, bGrey ); in appendStrokingColor()
925 rBuffer.append( bGrey ? " G" : " RG" ); in appendStrokingColor()
929 void PDFWriterImpl::appendNonStrokingColor( const Color& rColor, OStringBuffer& rBuffer ) in appendNonStrokingColor() argument
934 appendColor( rColor, rBuffer, bGrey ); in appendNonStrokingColor()
935 rBuffer.append( bGrey ? " g" : " rg" ); in appendNonStrokingColor()
963 void append( PDFWriterImpl::PDFPage& rPage, OStringBuffer& rBuffer, Point* pBack = NULL );
1068 void Matrix3::append( PDFWriterImpl::PDFPage& rPage, OStringBuffer& rBuffer, Point* pBack ) in append() argument
1070 appendDouble( f[0], rBuffer ); in append()
1071 rBuffer.append( ' ' ); in append()
1072 appendDouble( f[1], rBuffer ); in append()
1073 rBuffer.append( ' ' ); in append()
1074 appendDouble( f[2], rBuffer ); in append()
1075 rBuffer.append( ' ' ); in append()
1076 appendDouble( f[3], rBuffer ); in append()
1077 rBuffer.append( ' ' ); in append()
1078 rPage.appendPoint( Point( (long)f[4], (long)f[5] ), rBuffer, false, pBack ); in append()
1388 void PDFWriterImpl::PDFPage::appendPoint( const Point& rPoint, OStringBuffer& rBuffer, bool bNeg, P… in appendPoint() argument
1408 appendFixedInt( nValue, rBuffer ); in appendPoint()
1410 rBuffer.append( ' ' ); in appendPoint()
1416 appendFixedInt( nValue, rBuffer ); in appendPoint()
1419 …terImpl::PDFPage::appendPixelPoint( const basegfx::B2DPoint& rPoint, OStringBuffer& rBuffer ) const in appendPixelPoint()
1423 appendDouble( fValue, rBuffer, nLog10Divisor ); in appendPixelPoint()
1425 rBuffer.append( ' ' ); in appendPixelPoint()
1429 appendDouble( fValue, rBuffer, nLog10Divisor ); in appendPixelPoint()
1432 void PDFWriterImpl::PDFPage::appendRect( const Rectangle& rRect, OStringBuffer& rBuffer ) const in appendRect()
1434 appendPoint( rRect.BottomLeft() + Point( 0, 1 ), rBuffer ); in appendRect()
1435 rBuffer.append( ' ' ); in appendRect()
1436 appendMappedLength( (sal_Int32)rRect.GetWidth(), rBuffer, false ); in appendRect()
1437 rBuffer.append( ' ' ); in appendRect()
1438 appendMappedLength( (sal_Int32)rRect.GetHeight(), rBuffer, true ); in appendRect()
1439 rBuffer.append( " re" ); in appendRect()
1459 void PDFWriterImpl::PDFPage::appendPolygon( const Polygon& rPoly, OStringBuffer& rBuffer, bool bClo… in appendPolygon() argument
1465 sal_uInt32 nBufLen = rBuffer.getLength(); in appendPolygon()
1469 appendPoint( rPoly[0], rBuffer ); in appendPolygon()
1470 rBuffer.append( " m\n" ); in appendPolygon()
1477 appendPoint( rPoly[i], rBuffer ); in appendPolygon()
1478 rBuffer.append( " " ); in appendPolygon()
1479 appendPoint( rPoly[i+1], rBuffer ); in appendPolygon()
1480 rBuffer.append( " " ); in appendPolygon()
1481 appendPoint( rPoly[i+2], rBuffer ); in appendPolygon()
1482 rBuffer.append( " c" ); in appendPolygon()
1488 appendPoint( rPoly[i], rBuffer ); in appendPolygon()
1489 rBuffer.append( " l" ); in appendPolygon()
1491 if( (rBuffer.getLength() - nBufLen) > 65 ) in appendPolygon()
1493 rBuffer.append( "\n" ); in appendPolygon()
1494 nBufLen = rBuffer.getLength(); in appendPolygon()
1497 rBuffer.append( " " ); in appendPolygon()
1500 rBuffer.append( "h\n" ); in appendPolygon()
1504 …PDFPage::appendPolygon( const basegfx::B2DPolygon& rPoly, OStringBuffer& rBuffer, bool bClose ) co… in appendPolygon() argument
1515 appendPixelPoint( aBL, rBuffer ); in appendPolygon()
1516 rBuffer.append( ' ' ); in appendPolygon()
1517 appendMappedLength( aRange.getWidth(), rBuffer, false, NULL, nLog10Divisor ); in appendPolygon()
1518 rBuffer.append( ' ' ); in appendPolygon()
1519 appendMappedLength( aRange.getHeight(), rBuffer, true, NULL, nLog10Divisor ); in appendPolygon()
1520 rBuffer.append( " re\n" ); in appendPolygon()
1526 sal_uInt32 nBufLen = rBuffer.getLength(); in appendPolygon()
1528 appendPixelPoint( aLastPoint, rBuffer ); in appendPolygon()
1529 rBuffer.append( " m\n" ); in appendPolygon()
1540 appendPixelPoint( aPoly.getNextControlPoint( nLastPoint ), rBuffer ); in appendPolygon()
1541 rBuffer.append( ' ' ); in appendPolygon()
1542 appendPixelPoint( aPoly.getPrevControlPoint( nCurPoint ), rBuffer ); in appendPolygon()
1543 rBuffer.append( ' ' ); in appendPolygon()
1544 appendPixelPoint( aPoint, rBuffer ); in appendPolygon()
1545 rBuffer.append( " c" ); in appendPolygon()
1549 appendPixelPoint( aPoly.getNextControlPoint( nLastPoint ), rBuffer ); in appendPolygon()
1550 rBuffer.append( ' ' ); in appendPolygon()
1551 appendPixelPoint( aPoint, rBuffer ); in appendPolygon()
1552 rBuffer.append( " y" ); in appendPolygon()
1556 appendPixelPoint( aPoly.getPrevControlPoint( nCurPoint ), rBuffer ); in appendPolygon()
1557 rBuffer.append( ' ' ); in appendPolygon()
1558 appendPixelPoint( aPoint, rBuffer ); in appendPolygon()
1559 rBuffer.append( " v" ); in appendPolygon()
1563 appendPixelPoint( aPoint, rBuffer ); in appendPolygon()
1564 rBuffer.append( " l" ); in appendPolygon()
1566 if( (rBuffer.getLength() - nBufLen) > 65 ) in appendPolygon()
1568 rBuffer.append( "\n" ); in appendPolygon()
1569 nBufLen = rBuffer.getLength(); in appendPolygon()
1572 rBuffer.append( " " ); in appendPolygon()
1576 rBuffer.append( "h\n" ); in appendPolygon()
1580 …PDFPage::appendPolyPolygon( const PolyPolygon& rPolyPoly, OStringBuffer& rBuffer, bool bClose ) co… in appendPolyPolygon() argument
1584 appendPolygon( rPolyPoly[n], rBuffer, bClose ); in appendPolyPolygon()
1587 …endPolyPolygon( const basegfx::B2DPolyPolygon& rPolyPoly, OStringBuffer& rBuffer, bool bClose ) co… in appendPolyPolygon() argument
1591 appendPolygon( rPolyPoly.getB2DPolygon( n ), rBuffer, bClose ); in appendPolyPolygon()
1594 void PDFWriterImpl::PDFPage::appendMappedLength( sal_Int32 nLength, OStringBuffer& rBuffer, bool bV… in appendMappedLength() argument
1599 rBuffer.append( '-' ); in appendMappedLength()
1610 appendFixedInt( nValue, rBuffer, 1 ); in appendMappedLength()
1613 void PDFWriterImpl::PDFPage::appendMappedLength( double fLength, OStringBuffer& rBuffer, bool bVert… in appendMappedLength() argument
1622 appendDouble( fLength, rBuffer, nPrecision ); in appendMappedLength()
1625 bool PDFWriterImpl::PDFPage::appendLineInfo( const LineInfo& rInfo, OStringBuffer& rBuffer ) const in appendLineInfo()
1651 rBuffer.append( "[ " ); in appendLineInfo()
1654 appendMappedLength( (sal_Int32)rInfo.GetDashLen(), rBuffer ); in appendLineInfo()
1655 rBuffer.append( ' ' ); in appendLineInfo()
1656 appendMappedLength( (sal_Int32)rInfo.GetDistance(), rBuffer ); in appendLineInfo()
1657 rBuffer.append( ' ' ); in appendLineInfo()
1663 appendMappedLength( (sal_Int32)rInfo.GetDashLen(), rBuffer ); in appendLineInfo()
1664 rBuffer.append( ' ' ); in appendLineInfo()
1665 appendMappedLength( (sal_Int32)rInfo.GetDistance(), rBuffer ); in appendLineInfo()
1666 rBuffer.append( ' ' ); in appendLineInfo()
1670 appendMappedLength( (sal_Int32)rInfo.GetDotLen(), rBuffer ); in appendLineInfo()
1671 rBuffer.append( ' ' ); in appendLineInfo()
1672 appendMappedLength( (sal_Int32)rInfo.GetDistance(), rBuffer ); in appendLineInfo()
1673 rBuffer.append( ' ' ); in appendLineInfo()
1676 rBuffer.append( "] 0 d\n" ); in appendLineInfo()
1681 appendMappedLength( (sal_Int32)rInfo.GetWidth(), rBuffer ); in appendLineInfo()
1682 rBuffer.append( " w\n" ); in appendLineInfo()
1687 appendDouble( 72.0/double(m_pWriter->getReferenceDevice()->ImplGetDPIX()), rBuffer ); in appendLineInfo()
1688 rBuffer.append( " w\n" ); in appendLineInfo()
1694 …e::appendWaveLine( sal_Int32 nWidth, sal_Int32 nY, sal_Int32 nDelta, OStringBuffer& rBuffer ) const in appendWaveLine()
1701 rBuffer.append( "0 " ); in appendWaveLine()
1702 appendMappedLength( nY, rBuffer, true ); in appendWaveLine()
1703 rBuffer.append( " m\n" ); in appendWaveLine()
1707 appendMappedLength( n, rBuffer, false ); in appendWaveLine()
1708 rBuffer.append( ' ' ); in appendWaveLine()
1709 appendMappedLength( nDelta+nY, rBuffer, true ); in appendWaveLine()
1710 rBuffer.append( ' ' ); in appendWaveLine()
1712 appendMappedLength( n, rBuffer, false ); in appendWaveLine()
1713 rBuffer.append( ' ' ); in appendWaveLine()
1714 appendMappedLength( nY, rBuffer, true ); in appendWaveLine()
1715 rBuffer.append( " v " ); in appendWaveLine()
1719 appendMappedLength( n, rBuffer, false ); in appendWaveLine()
1720 rBuffer.append( ' ' ); in appendWaveLine()
1721 appendMappedLength( nY-nDelta, rBuffer, true ); in appendWaveLine()
1722 rBuffer.append( ' ' ); in appendWaveLine()
1724 appendMappedLength( n, rBuffer, false ); in appendWaveLine()
1725 rBuffer.append( ' ' ); in appendWaveLine()
1726 appendMappedLength( nY, rBuffer, true ); in appendWaveLine()
1727 rBuffer.append( " v\n" ); in appendWaveLine()
1730 rBuffer.append( "S\n" ); in appendWaveLine()
3827 static void appendSubsetName( int nSubsetID, const OUString& rPSName, OStringBuffer& rBuffer ) in appendSubsetName() argument
3835 rBuffer.append( (sal_Char)('A'+nOffset) ); in appendSubsetName()
3837 rBuffer.append( '+' ); in appendSubsetName()
3839 appendName( rPSName, rBuffer ); in appendSubsetName()
4485 bool PDFWriterImpl::appendDest( sal_Int32 nDestID, OStringBuffer& rBuffer ) in appendDest() argument
4499 rBuffer.append( '[' ); in appendDest()
4500 rBuffer.append( rDestPage.m_nPageObject ); in appendDest()
4501 rBuffer.append( " 0 R" ); in appendDest()
4507 rBuffer.append( "/XYZ " ); in appendDest()
4508 appendFixedInt( rDest.m_aRect.Left(), rBuffer ); in appendDest()
4509 rBuffer.append( ' ' ); in appendDest()
4510 appendFixedInt( rDest.m_aRect.Bottom(), rBuffer ); in appendDest()
4511 rBuffer.append( " 0" ); in appendDest()
4514 rBuffer.append( "/Fit" ); in appendDest()
4517 rBuffer.append( "/FitR " ); in appendDest()
4518 appendFixedInt( rDest.m_aRect.Left(), rBuffer ); in appendDest()
4519 rBuffer.append( ' ' ); in appendDest()
4520 appendFixedInt( rDest.m_aRect.Top(), rBuffer ); in appendDest()
4521 rBuffer.append( ' ' ); in appendDest()
4522 appendFixedInt( rDest.m_aRect.Right(), rBuffer ); in appendDest()
4523 rBuffer.append( ' ' ); in appendDest()
4524 appendFixedInt( rDest.m_aRect.Bottom(), rBuffer ); in appendDest()
4527 rBuffer.append( "/FitH " ); in appendDest()
4528 appendFixedInt( rDest.m_aRect.Bottom(), rBuffer ); in appendDest()
4531 rBuffer.append( "/FitV " ); in appendDest()
4532 appendFixedInt( rDest.m_aRect.Left(), rBuffer ); in appendDest()
4535 rBuffer.append( "/FitB" ); in appendDest()
4538 rBuffer.append( "/FitBH " ); in appendDest()
4539 appendFixedInt( rDest.m_aRect.Bottom(), rBuffer ); in appendDest()
4542 rBuffer.append( "/FitBV " ); in appendDest()
4543 appendFixedInt( rDest.m_aRect.Left(), rBuffer ); in appendDest()
4546 rBuffer.append( ']' ); in appendDest()