Lines Matching refs:aLine
1147 OStringBuffer aLine( "PDFWriterImpl::PDFPage::beginStream, +" ); in beginStream() local
1148 m_pWriter->emitComment( aLine.getStr() ); in beginStream()
1157 OStringBuffer aLine; in beginStream() local
1158 aLine.append( m_aStreamObjects.back() ); in beginStream()
1159 aLine.append( " 0 obj\n<</Length " ); in beginStream()
1160 aLine.append( m_nStreamLengthObject ); in beginStream()
1161 aLine.append( " 0 R" ); in beginStream()
1163 aLine.append( "/Filter/FlateDecode" ); in beginStream()
1165 aLine.append( ">>\nstream\n" ); in beginStream()
1166 if( ! m_pWriter->writeBuffer( aLine.getStr(), aLine.getLength() ) ) in beginStream()
1197 OStringBuffer aLine; in endStream() local
1198 aLine.append( m_nStreamLengthObject ); in endStream()
1199 aLine.append( " 0 obj\n" ); in endStream()
1200 aLine.append( (sal_Int64)(nEndStreamPos-m_nBeginStreamPos) ); in endStream()
1201 aLine.append( "\nendobj\n\n" ); in endStream()
1202 m_pWriter->writeBuffer( aLine.getStr(), aLine.getLength() ); in endStream()
1210 OStringBuffer aLine; in emit() local
1212 aLine.append( m_nPageObject ); in emit()
1213 aLine.append( " 0 obj\n" in emit()
1215 aLine.append( nParentObject ); in emit()
1216 aLine.append( " 0 R" ); in emit()
1217 aLine.append( "/Resources " ); in emit()
1218 aLine.append( m_pWriter->getResourceDictObj() ); in emit()
1219 aLine.append( " 0 R" ); in emit()
1222 aLine.append( "/MediaBox[0 0 " ); in emit()
1223 aLine.append( m_nPageWidth ); in emit()
1224 aLine.append( ' ' ); in emit()
1225 aLine.append( m_nPageHeight ); in emit()
1226 aLine.append( "]" ); in emit()
1230 case PDFWriter::Landscape: aLine.append( "/Rotate 90\n" );break; in emit()
1231 case PDFWriter::Seascape: aLine.append( "/Rotate -90\n" );break; in emit()
1232 case PDFWriter::Portrait: aLine.append( "/Rotate 0\n" );break; in emit()
1241 aLine.append( "/Annots[\n" ); in emit()
1244 aLine.append( m_aAnnotations[i] ); in emit()
1245 aLine.append( " 0 R" ); in emit()
1246 aLine.append( ((i+1)%15) ? " " : "\n" ); in emit()
1248 aLine.append( "]\n" ); in emit()
1253 aLine.append( " /Tabs /S\n" ); in emit()
1269 aLine.append( "/StructParents " ); in emit()
1270 aLine.append( sal_Int32(m_pWriter->m_aStructParentTree.size()-1) ); in emit()
1271 aLine.append( "\n" ); in emit()
1275 aLine.append( "/Dur " ); in emit()
1276 aLine.append( (sal_Int32)m_nDuration ); in emit()
1277 aLine.append( "\n" ); in emit()
1282 aLine.append( "/Trans<</D " ); in emit()
1283 appendDouble( (double)m_nTransTime/1000.0, aLine, 3 ); in emit()
1284 aLine.append( "\n" ); in emit()
1326 aLine.append( "/S/" ); in emit()
1327 aLine.append( pStyle ); in emit()
1328 aLine.append( "\n" ); in emit()
1332 aLine.append( "/Dm/" ); in emit()
1333 aLine.append( pDm ); in emit()
1334 aLine.append( "\n" ); in emit()
1338 aLine.append( "/M/" ); in emit()
1339 aLine.append( pM ); in emit()
1340 aLine.append( "\n" ); in emit()
1344 aLine.append( "/Di " ); in emit()
1345 aLine.append( pDi ); in emit()
1346 aLine.append( "\n" ); in emit()
1348 aLine.append( ">>\n" ); in emit()
1352 aLine.append( "/Group<</S/Transparency/CS/DeviceRGB/I true>>" ); in emit()
1354 aLine.append( "/Contents" ); in emit()
1357 aLine.append( '[' ); in emit()
1360 aLine.append( ' ' ); in emit()
1361 aLine.append( m_aStreamObjects[i] ); in emit()
1362 aLine.append( " 0 R" ); in emit()
1365 aLine.append( ']' ); in emit()
1366 aLine.append( ">>\nendobj\n\n" ); in emit()
1367 return m_pWriter->writeBuffer( aLine.getStr(), aLine.getLength() ); in emit()
2103 OStringBuffer aLine( 64 ); in emitComment() local
2104 aLine.append( "% " ); in emitComment()
2105 aLine.append( (const sal_Char*)pComment ); in emitComment()
2106 aLine.append( "\n" ); in emitComment()
2107 writeBuffer( aLine.getStr(), aLine.getLength() ); in emitComment()
2573 OStringBuffer aLine( 1024 ); in emitStructParentTree() local
2575 aLine.append( nObject ); in emitStructParentTree()
2576 aLine.append( " 0 obj\n" in emitStructParentTree()
2581 aLine.append( n ); in emitStructParentTree()
2582 aLine.append( ' ' ); in emitStructParentTree()
2583 aLine.append( m_aStructParentTree[n] ); in emitStructParentTree()
2584 aLine.append( "\n" ); in emitStructParentTree()
2586 aLine.append( "]>>\nendobj\n\n" ); in emitStructParentTree()
2588 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in emitStructParentTree()
2746 OStringBuffer aLine( "unresolved link id " ); in emitStructureAttributes() local
2747 aLine.append( nLink ); in emitStructureAttributes()
2748 aLine.append( " for Link structure" ); in emitStructureAttributes()
2749 emitComment( aLine.getStr() ); in emitStructureAttributes()
2859 OStringBuffer aLine( 512 ); in emitStructure() local
2860 aLine.append( rEle.m_nObject ); in emitStructure()
2861 aLine.append( " 0 obj\n" in emitStructure()
2868 aLine.append( "/StructTreeRoot\n" ); in emitStructure()
2869 aLine.append( "/ParentTree " ); in emitStructure()
2870 aLine.append( nParentTree ); in emitStructure()
2871 aLine.append( " 0 R\n" ); in emitStructure()
2874 aLine.append( "/RoleMap<<" ); in emitStructure()
2878 aLine.append( '/' ); in emitStructure()
2879 aLine.append(it->first); in emitStructure()
2880 aLine.append( '/' ); in emitStructure()
2881 aLine.append( it->second ); in emitStructure()
2882 aLine.append( '\n' ); in emitStructure()
2884 aLine.append( ">>\n" ); in emitStructure()
2889 aLine.append( "/StructElem\n" in emitStructure()
2892 aLine.append( rEle.m_aAlias ); in emitStructure()
2894 aLine.append( getStructureTag( rEle.m_eType ) ); in emitStructure()
2895 aLine.append( "\n" in emitStructure()
2897 aLine.append( m_aStructure[ rEle.m_nParentElement ].m_nObject ); in emitStructure()
2898 aLine.append( " 0 R\n" in emitStructure()
2900 aLine.append( rEle.m_nFirstPageObject ); in emitStructure()
2901 aLine.append( " 0 R\n" ); in emitStructure()
2904 aLine.append( "/ActualText" ); in emitStructure()
2905 appendUnicodeTextStringEncrypt( rEle.m_aActualText, rEle.m_nObject, aLine ); in emitStructure()
2906 aLine.append( "\n" ); in emitStructure()
2910 aLine.append( "/Alt" ); in emitStructure()
2911 appendUnicodeTextStringEncrypt( rEle.m_aAltText, rEle.m_nObject, aLine ); in emitStructure()
2912 aLine.append( "\n" ); in emitStructure()
2920 aLine.append( "/A" ); in emitStructure()
2921 aLine.append( aAttribs ); in emitStructure()
2922 aLine.append( "\n" ); in emitStructure()
2934 aLine.append( "/Lang" ); in emitStructure()
2935 appendLiteralStringEncrypt( aLocBuf.makeStringAndClear(), rEle.m_nObject, aLine ); in emitStructure()
2936 aLine.append( "\n" ); in emitStructure()
2941 aLine.append( "/K[" ); in emitStructure()
2947 aLine.append( it->nObject ); in emitStructure()
2948 aLine.append( " 0 R" ); in emitStructure()
2949 aLine.append( ( (i & 15) == 15 ) ? "\n" : " " ); in emitStructure()
2955 aLine.append( it->nMCID ); in emitStructure()
2956 aLine.append( " " ); in emitStructure()
2960 aLine.append( "<</Type/MCR/Pg " ); in emitStructure()
2961 aLine.append( it->nObject ); in emitStructure()
2962 aLine.append( " 0 R /MCID " ); in emitStructure()
2963 aLine.append( it->nMCID ); in emitStructure()
2964 aLine.append( ">>\n" ); in emitStructure()
2968 aLine.append( "]\n" ); in emitStructure()
2970 aLine.append( ">>\nendobj\n\n" ); in emitStructure()
2973 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in emitStructure()
3093 OStringBuffer aLine( 1024 ); in emitBuiltinFont() local
3098 aLine.append( nFontObject ); in emitBuiltinFont()
3099 aLine.append( " 0 obj\n" in emitBuiltinFont()
3101 appendName( pBuiltinFont->m_pPSName, aLine ); in emitBuiltinFont()
3102 aLine.append( "\n" ); in emitBuiltinFont()
3104 aLine.append( "/Encoding/WinAnsiEncoding\n" ); in emitBuiltinFont()
3105 aLine.append( ">>\nendobj\n\n" ); in emitBuiltinFont()
3106 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in emitBuiltinFont()
3193 OStringBuffer aLine( 1024 ); in emitSystemFont() local
3194 aLine.append( nObject ); in emitSystemFont()
3195 aLine.append( " 0 obj\n" in emitSystemFont()
3197 aLine.append( aSubType ); in emitSystemFont()
3198 aLine.append( "/BaseFont/" ); in emitSystemFont()
3199 appendName( aInfo.m_aPSName, aLine ); in emitSystemFont()
3200 aLine.append( "\n" ); in emitSystemFont()
3202 aLine.append( "/Encoding/WinAnsiEncoding\n" ); in emitSystemFont()
3203 aLine.append( "/FirstChar 32 /LastChar 255\n" in emitSystemFont()
3207 aLine.append( pWidths[i] ); in emitSystemFont()
3208 aLine.append( ((i&15) == 15) ? "\n" : " " ); in emitSystemFont()
3210 aLine.append( "]\n" in emitSystemFont()
3212 aLine.append( nFontDescriptor ); in emitSystemFont()
3213 aLine.append( " 0 R>>\n" in emitSystemFont()
3215 writeBuffer( aLine.getStr(), aLine.getLength() ); in emitSystemFont()
3491 OStringBuffer aLine( 512 ); in emitEmbeddedFont() local
3496 aLine.append( nStreamObject ); in emitEmbeddedFont()
3497 aLine.append( " 0 obj\n" in emitEmbeddedFont()
3499 aLine.append( nStreamLengthObject ); in emitEmbeddedFont()
3500 aLine.append( " 0 R" in emitEmbeddedFont()
3505 aLine.append( nLength1 ); in emitEmbeddedFont()
3506 aLine.append( " /Length2 " ); in emitEmbeddedFont()
3507 aLine.append( nLength2 ); in emitEmbeddedFont()
3508 aLine.append( " /Length3 "); in emitEmbeddedFont()
3509 aLine.append( nLength3 ); in emitEmbeddedFont()
3510 aLine.append( ">>\n" in emitEmbeddedFont()
3512 if( !writeBuffer( aLine.getStr(), aLine.getLength() ) ) in emitEmbeddedFont()
3645 aLine.setLength( 0 ); in emitEmbeddedFont()
3646 aLine.append( "\nendstream\nendobj\n\n" ); in emitEmbeddedFont()
3647 if( ! writeBuffer( aLine.getStr(), aLine.getLength() ) ) in emitEmbeddedFont()
3651 aLine.setLength( 0 ); in emitEmbeddedFont()
3654 aLine.append( nStreamLengthObject ); in emitEmbeddedFont()
3655 aLine.append( " 0 obj\n" ); in emitEmbeddedFont()
3656 aLine.append( (sal_Int64)(nEndStreamPos-nBeginStreamPos ) ); in emitEmbeddedFont()
3657 aLine.append( "\nendobj\n\n" ); in emitEmbeddedFont()
3658 if( ! writeBuffer( aLine.getStr(), aLine.getLength() ) ) in emitEmbeddedFont()
3690 OStringBuffer aLine( 1024 ); in emitEmbeddedFont() local
3691 aLine.append( nObject ); in emitEmbeddedFont()
3692 aLine.append( " 0 obj\n" in emitEmbeddedFont()
3694 appendName( aInfo.m_aPSName, aLine ); in emitEmbeddedFont()
3695 aLine.append( "\n" ); in emitEmbeddedFont()
3697 aLine.append( "/Encoding/WinAnsiEncoding\n" ); in emitEmbeddedFont()
3700 aLine.append( "/ToUnicode " ); in emitEmbeddedFont()
3701 aLine.append( nToUnicodeStream ); in emitEmbeddedFont()
3702 aLine.append( " 0 R\n" ); in emitEmbeddedFont()
3704 aLine.append( "/FirstChar 0 /LastChar 255\n" in emitEmbeddedFont()
3708 aLine.append( pWidths[i] ); in emitEmbeddedFont()
3709 aLine.append( ((i&15) == 15) ? "\n" : " " ); in emitEmbeddedFont()
3711 aLine.append( "]\n" in emitEmbeddedFont()
3713 aLine.append( nFontDescriptor ); in emitEmbeddedFont()
3714 aLine.append( " 0 R>>\n" in emitEmbeddedFont()
3716 if( ! writeBuffer( aLine.getStr(), aLine.getLength() ) ) in emitEmbeddedFont()
3742 aLine.setLength( 0 ); in emitEmbeddedFont()
3743 aLine.append( nEncObject ); in emitEmbeddedFont()
3744 aLine.append( " 0 obj\n" in emitEmbeddedFont()
3758 aLine.append( " /" ); in emitEmbeddedFont()
3759 aLine.append( str_it->m_aName ); in emitEmbeddedFont()
3761 aLine.append( "\n" ); in emitEmbeddedFont()
3763 aLine.append( "]>>\n" in emitEmbeddedFont()
3768 if( ! writeBuffer( aLine.getStr(), aLine.getLength() ) ) in emitEmbeddedFont()
3777 aLine.setLength( 0 ); in emitEmbeddedFont()
3778 aLine.append( nObject ); in emitEmbeddedFont()
3779 aLine.append( " 0 obj\n" in emitEmbeddedFont()
3781 appendName( aInfo.m_aPSName, aLine ); in emitEmbeddedFont()
3782 aLine.append( "\n" ); in emitEmbeddedFont()
3783 aLine.append( "/Encoding " ); in emitEmbeddedFont()
3784 aLine.append( nEncObject ); in emitEmbeddedFont()
3785 aLine.append( " 0 R\n" ); in emitEmbeddedFont()
3788 aLine.append( "/ToUnicode " ); in emitEmbeddedFont()
3789 aLine.append( nToUnicodeStream ); in emitEmbeddedFont()
3790 aLine.append( " 0 R\n" ); in emitEmbeddedFont()
3792 aLine.append( "/FirstChar 0\n" in emitEmbeddedFont()
3794 aLine.append( (sal_Int32)(nEncoded-1) ); in emitEmbeddedFont()
3795 aLine.append( "\n" in emitEmbeddedFont()
3799 aLine.append( aEncWidths[i] ); in emitEmbeddedFont()
3800 aLine.append( ((i&15) == 15) ? "\n" : " " ); in emitEmbeddedFont()
3802 aLine.append( " ]\n" in emitEmbeddedFont()
3804 aLine.append( nFontDescriptor ); in emitEmbeddedFont()
3805 aLine.append( " 0 R>>\n" in emitEmbeddedFont()
3807 if( ! writeBuffer( aLine.getStr(), aLine.getLength() ) ) in emitEmbeddedFont()
3918 OStringBuffer aLine( 40 ); in createToUnicodeCMap() local
3920 aLine.append( nStream ); in createToUnicodeCMap()
3921 aLine.append( " 0 obj\n<</Length " ); in createToUnicodeCMap()
3925 aLine.append( nLen ); in createToUnicodeCMap()
3926 aLine.append( "/Filter/FlateDecode" ); in createToUnicodeCMap()
3928 aLine.append( aContents.getLength() ); in createToUnicodeCMap()
3930 aLine.append( ">>\nstream\n" ); in createToUnicodeCMap()
3931 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in createToUnicodeCMap()
3939 aLine.setLength( 0 ); in createToUnicodeCMap()
3940 aLine.append( "\nendstream\n" in createToUnicodeCMap()
3942 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in createToUnicodeCMap()
3948 OStringBuffer aLine( 1024 ); in emitFontDescriptor() local
3964 aLine.setLength( 0 ); in emitFontDescriptor()
3965 aLine.append( nFontDescriptor ); in emitFontDescriptor()
3966 aLine.append( " 0 obj\n" in emitFontDescriptor()
3968 appendSubsetName( nSubsetID, rInfo.m_aPSName, aLine ); in emitFontDescriptor()
3969 aLine.append( "\n" in emitFontDescriptor()
3971 aLine.append( nFontFlags ); in emitFontDescriptor()
3972 aLine.append( "\n" in emitFontDescriptor()
3975 aLine.append( (sal_Int32)rInfo.m_aFontBBox.TopLeft().X() ); in emitFontDescriptor()
3976 aLine.append( ' ' ); in emitFontDescriptor()
3977 aLine.append( (sal_Int32)rInfo.m_aFontBBox.TopLeft().Y() ); in emitFontDescriptor()
3978 aLine.append( ' ' ); in emitFontDescriptor()
3979 aLine.append( (sal_Int32)rInfo.m_aFontBBox.BottomRight().X() ); in emitFontDescriptor()
3980 aLine.append( ' ' ); in emitFontDescriptor()
3981 aLine.append( (sal_Int32)(rInfo.m_aFontBBox.BottomRight().Y()+1) ); in emitFontDescriptor()
3982 aLine.append( "]/ItalicAngle " ); in emitFontDescriptor()
3984 aLine.append( "-30" ); in emitFontDescriptor()
3986 aLine.append( "0" ); in emitFontDescriptor()
3987 aLine.append( "\n" in emitFontDescriptor()
3989 aLine.append( (sal_Int32)rInfo.m_nAscent ); in emitFontDescriptor()
3990 aLine.append( "\n" in emitFontDescriptor()
3992 aLine.append( (sal_Int32)-rInfo.m_nDescent ); in emitFontDescriptor()
3993 aLine.append( "\n" in emitFontDescriptor()
3995 aLine.append( (sal_Int32)rInfo.m_nCapHeight ); in emitFontDescriptor()
3998 aLine.append( "\n" in emitFontDescriptor()
4002 aLine.append( "/FontFile" ); in emitFontDescriptor()
4006 aLine.append( '2' ); in emitFontDescriptor()
4016 aLine.append( ' ' ); in emitFontDescriptor()
4017 aLine.append( nFontStream ); in emitFontDescriptor()
4018 aLine.append( " 0 R\n" ); in emitFontDescriptor()
4020 aLine.append( ">>\n" in emitFontDescriptor()
4022 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in emitFontDescriptor()
4044 OStringBuffer aLine( 1024 ); in emitFonts() local
4109 aLine.setLength( 0 ); in emitFonts()
4110 aLine.append( nFontStream ); in emitFonts()
4111 aLine.append( " 0 obj\n" in emitFonts()
4113 aLine.append( (sal_Int32)nStreamLengthObject ); in emitFonts()
4114 aLine.append( " 0 R" in emitFonts()
4123 aLine.append( (sal_Int32)nLength1 ); in emitFonts()
4125 aLine.append( ">>\n" in emitFonts()
4127 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in emitFonts()
4161 aLine.append( (sal_Int32)aSegmentLengths[0] ); in emitFonts()
4162 aLine.append( "/Length2 " ); in emitFonts()
4163 aLine.append( (sal_Int32)aSegmentLengths[1] ); in emitFonts()
4164 aLine.append( "/Length3 " ); in emitFonts()
4165 aLine.append( (sal_Int32)aSegmentLengths[2] ); in emitFonts()
4167 aLine.append( ">>\n" in emitFonts()
4169 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in emitFonts()
4182 aLine.append( "0 >>\nstream\n" ); in emitFonts()
4193 aLine.setLength( 0 ); in emitFonts()
4194 aLine.append( "\nendstream\nendobj\n\n" ); in emitFonts()
4195 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in emitFonts()
4199 aLine.setLength( 0 ); in emitFonts()
4200 aLine.append( nStreamLengthObject ); in emitFonts()
4201 aLine.append( " 0 obj\n" ); in emitFonts()
4202 aLine.append( (sal_Int64)(nEndPos-nStartPos) ); in emitFonts()
4203 aLine.append( "\nendobj\n\n" ); in emitFonts()
4204 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in emitFonts()
4214 aLine.setLength( 0 ); in emitFonts()
4215 aLine.append( nFontObject ); in emitFonts()
4217 aLine.append( " 0 obj\n" ); in emitFonts()
4218 aLine.append( ((aSubsetInfo.m_nFontType & FontSubsetInfo::ANY_TYPE1) != 0) ? in emitFonts()
4221 appendSubsetName( lit->m_nFontID, aSubsetInfo.m_aPSName, aLine ); in emitFonts()
4222 aLine.append( "\n" in emitFonts()
4225 aLine.append( (sal_Int32)(nGlyphs-1) ); in emitFonts()
4226 aLine.append( "\n" in emitFonts()
4230 aLine.append( pWidths[ i ] ); in emitFonts()
4231 aLine.append( ((i & 15) == 15) ? "\n" : " " ); in emitFonts()
4233 aLine.append( "]\n" in emitFonts()
4235 aLine.append( nFontDescriptor ); in emitFonts()
4236 aLine.append( " 0 R\n" ); in emitFonts()
4239 aLine.append( "/ToUnicode " ); in emitFonts()
4240 aLine.append( nToUnicodeStream ); in emitFonts()
4241 aLine.append( " 0 R\n" ); in emitFonts()
4243 aLine.append( ">>\n" in emitFonts()
4245 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in emitFonts()
4333 OStringBuffer aLine( 512 ); in emitResources() local
4336 aLine.setLength( 0 ); in emitResources()
4337 aLine.append( nResourceDict ); in emitResources()
4338 aLine.append( " 0 obj\n" ); in emitResources()
4339 m_aGlobalResourceDict.append( aLine, getFontDictObject() ); in emitResources()
4340 aLine.append( "endobj\n\n" ); in emitResources()
4341 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in emitResources()
4426 OStringBuffer aLine( 1024 ); in emitOutline() local
4429 aLine.append( rItem.m_nObject ); in emitOutline()
4430 aLine.append( " 0 obj\n" ); in emitOutline()
4431 aLine.append( "<<" ); in emitOutline()
4435 aLine.append( "/Count " ); in emitOutline()
4436 aLine.append( aCounts[i] ); in emitOutline()
4441 aLine.append( "/First " ); in emitOutline()
4442 aLine.append( m_aOutline[rItem.m_aChildren.front()].m_nObject ); in emitOutline()
4443 aLine.append( " 0 R/Last " ); in emitOutline()
4444 aLine.append( m_aOutline[rItem.m_aChildren.back()].m_nObject ); in emitOutline()
4445 aLine.append( " 0 R\n" ); in emitOutline()
4450 aLine.append( "/Title" ); in emitOutline()
4451 appendUnicodeTextStringEncrypt( rItem.m_aTitle, rItem.m_nObject, aLine ); in emitOutline()
4452 aLine.append( "\n" ); in emitOutline()
4456 aLine.append( "/Dest" ); in emitOutline()
4457 appendDest( rItem.m_nDestID, aLine ); in emitOutline()
4459 aLine.append( "/Parent " ); in emitOutline()
4460 aLine.append( rItem.m_nParentObject ); in emitOutline()
4461 aLine.append( " 0 R" ); in emitOutline()
4464 aLine.append( "/Prev " ); in emitOutline()
4465 aLine.append( rItem.m_nPrevObject ); in emitOutline()
4466 aLine.append( " 0 R" ); in emitOutline()
4470 aLine.append( "/Next " ); in emitOutline()
4471 aLine.append( rItem.m_nNextObject ); in emitOutline()
4472 aLine.append( " 0 R" ); in emitOutline()
4475 aLine.append( ">>\nendobj\n\n" ); in emitOutline()
4476 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in emitOutline()
4560 OStringBuffer aLine( 1024 ); in emitLinkAnnotations() local
4561 aLine.append( rLink.m_nObject ); in emitLinkAnnotations()
4562 aLine.append( " 0 obj\n" ); in emitLinkAnnotations()
4565 aLine.append( "<</Type/Annot" ); in emitLinkAnnotations()
4567 aLine.append( "/F 4" ); in emitLinkAnnotations()
4568 aLine.append( "/Subtype/Link/Border[0 0 0]/Rect[" ); in emitLinkAnnotations()
4570 …appendFixedInt( rLink.m_aRect.Left()-7, aLine );//the +7 to have a better shape of the border rect… in emitLinkAnnotations()
4571 aLine.append( ' ' ); in emitLinkAnnotations()
4572 appendFixedInt( rLink.m_aRect.Top(), aLine ); in emitLinkAnnotations()
4573 aLine.append( ' ' ); in emitLinkAnnotations()
4574 …appendFixedInt( rLink.m_aRect.Right()+7, aLine );//the +7 to have a better shape of the border rec… in emitLinkAnnotations()
4575 aLine.append( ' ' ); in emitLinkAnnotations()
4576 appendFixedInt( rLink.m_aRect.Bottom(), aLine ); in emitLinkAnnotations()
4577 aLine.append( "]" ); in emitLinkAnnotations()
4580 aLine.append( "/Dest" ); in emitLinkAnnotations()
4581 appendDest( rLink.m_nDest, aLine ); in emitLinkAnnotations()
4670 aLine.append( "/A<</Type/Action/S"); in emitLinkAnnotations()
4673 aLine.append( "/Launch/Win<</F" ); in emitLinkAnnotations()
4675 … appendLiteralStringEncrypt( rLink.m_aURL, rLink.m_nObject, aLine, osl_getThreadTextEncoding() ); in emitLinkAnnotations()
4676 aLine.append( ">>" ); in emitLinkAnnotations()
4694 aLine.append( "/URI/URI" ); in emitLinkAnnotations()
4706 aLine.append( "/URI/URI" ); in emitLinkAnnotations()
4709 aLine.append( "/Launch/F" ); in emitLinkAnnotations()
4719 aLine.append("/GoToR"); in emitLinkAnnotations()
4720 aLine.append("/F"); in emitLinkAnnotations()
4725 aURLNoMark, rLink.m_nObject, aLine, osl_getThreadTextEncoding() ); in emitLinkAnnotations()
4728 aLine.append("/D/"); in emitLinkAnnotations()
4729 appendDestinationName( aFragment , aLine ); in emitLinkAnnotations()
4753 aURL , rLink.m_nObject, aLine, osl_getThreadTextEncoding() ); in emitLinkAnnotations()
4757 aLine.append( ">>\n" ); in emitLinkAnnotations()
4761 aLine.append( "/StructParent " ); in emitLinkAnnotations()
4762 aLine.append( rLink.m_nStructParent ); in emitLinkAnnotations()
4764 aLine.append( ">>\nendobj\n\n" ); in emitLinkAnnotations()
4765 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in emitLinkAnnotations()
4781 OStringBuffer aLine( 1024 ); in emitNoteAnnotations() local
4782 aLine.append( rNote.m_nObject ); in emitNoteAnnotations()
4783 aLine.append( " 0 obj\n" ); in emitNoteAnnotations()
4786 aLine.append( "<</Type/Annot" ); in emitNoteAnnotations()
4788 aLine.append( "/F 4" ); in emitNoteAnnotations()
4789 aLine.append( "/Subtype/Text/Rect[" ); in emitNoteAnnotations()
4791 appendFixedInt( rNote.m_aRect.Left(), aLine ); in emitNoteAnnotations()
4792 aLine.append( ' ' ); in emitNoteAnnotations()
4793 appendFixedInt( rNote.m_aRect.Top(), aLine ); in emitNoteAnnotations()
4794 aLine.append( ' ' ); in emitNoteAnnotations()
4795 appendFixedInt( rNote.m_aRect.Right(), aLine ); in emitNoteAnnotations()
4796 aLine.append( ' ' ); in emitNoteAnnotations()
4797 appendFixedInt( rNote.m_aRect.Bottom(), aLine ); in emitNoteAnnotations()
4798 aLine.append( "]" ); in emitNoteAnnotations()
4801 aLine.append( "/Contents\n" ); in emitNoteAnnotations()
4802 appendUnicodeTextStringEncrypt( rNote.m_aContents.Contents, rNote.m_nObject, aLine ); in emitNoteAnnotations()
4803 aLine.append( "\n" ); in emitNoteAnnotations()
4808 aLine.append( "/T" ); in emitNoteAnnotations()
4809 appendUnicodeTextStringEncrypt( rNote.m_aContents.Title, rNote.m_nObject, aLine ); in emitNoteAnnotations()
4810 aLine.append( "\n" ); in emitNoteAnnotations()
4813 aLine.append( ">>\nendobj\n\n" ); in emitNoteAnnotations()
4814 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in emitNoteAnnotations()
5412 OStringBuffer aLine; in emitAppearances() local
5413 aLine.append( nObject ); in emitAppearances()
5415 aLine.append( " 0 obj\n" in emitAppearances()
5419 appendFixedInt( rWidget.m_aRect.GetWidth()-1, aLine ); in emitAppearances()
5420 aLine.append( " " ); in emitAppearances()
5421 appendFixedInt( rWidget.m_aRect.GetHeight()-1, aLine ); in emitAppearances()
5422 aLine.append( "]\n" in emitAppearances()
5424 aLine.append( getResourceDictObj() ); in emitAppearances()
5425 aLine.append( " 0 R\n" in emitAppearances()
5427 aLine.append( nStreamLen ); in emitAppearances()
5428 aLine.append( "\n" ); in emitAppearances()
5430 aLine.append( "/Filter/FlateDecode\n" ); in emitAppearances()
5431 aLine.append( ">>\nstream\n" ); in emitAppearances()
5432 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in emitAppearances()
5473 OStringBuffer aLine( 1024 ); in emitWidgetAnnotations() local
5475 aLine.append( rWidget.m_nObject ); in emitWidgetAnnotations()
5476 aLine.append( " 0 obj\n" in emitWidgetAnnotations()
5483 aLine.append( "/Type/Annot/Subtype/Widget/F 4\n" in emitWidgetAnnotations()
5485 appendFixedInt( rWidget.m_aRect.Left()-1, aLine ); in emitWidgetAnnotations()
5486 aLine.append( ' ' ); in emitWidgetAnnotations()
5487 appendFixedInt( rWidget.m_aRect.Top()+1, aLine ); in emitWidgetAnnotations()
5488 aLine.append( ' ' ); in emitWidgetAnnotations()
5489 appendFixedInt( rWidget.m_aRect.Right()+1, aLine ); in emitWidgetAnnotations()
5490 aLine.append( ' ' ); in emitWidgetAnnotations()
5491 appendFixedInt( rWidget.m_aRect.Bottom()-1, aLine ); in emitWidgetAnnotations()
5492 aLine.append( "]\n" ); in emitWidgetAnnotations()
5494 aLine.append( "/FT/" ); in emitWidgetAnnotations()
5514 aLine.append( "Btn" ); in emitWidgetAnnotations()
5536 aLine.append( "Ch" ); in emitWidgetAnnotations()
5540 aLine.append( "Ch" ); in emitWidgetAnnotations()
5543 aLine.append( "Tx" ); in emitWidgetAnnotations()
5549 aLine.append( "\n" ); in emitWidgetAnnotations()
5550 aLine.append( "/P " ); in emitWidgetAnnotations()
5551 aLine.append( m_aPages[ rWidget.m_nPage ].m_nPageObject ); in emitWidgetAnnotations()
5552 aLine.append( " 0 R\n" ); in emitWidgetAnnotations()
5556 aLine.append( "/Parent " ); in emitWidgetAnnotations()
5557 aLine.append( rWidget.m_nParent ); in emitWidgetAnnotations()
5558 aLine.append( " 0 R\n" ); in emitWidgetAnnotations()
5562 aLine.append( "/Kids[" ); in emitWidgetAnnotations()
5565 aLine.append( rWidget.m_aKids[i] ); in emitWidgetAnnotations()
5566 aLine.append( " 0 R" ); in emitWidgetAnnotations()
5567 aLine.append( ( (i&15) == 15 ) ? "\n" : " " ); in emitWidgetAnnotations()
5569 aLine.append( "]\n" ); in emitWidgetAnnotations()
5573 aLine.append( "/T" ); in emitWidgetAnnotations()
5574 appendLiteralStringEncrypt( rWidget.m_aName, rWidget.m_nObject, aLine ); in emitWidgetAnnotations()
5575 aLine.append( "\n" ); in emitWidgetAnnotations()
5581 aLine.append( "/TU" ); in emitWidgetAnnotations()
5582 appendUnicodeTextStringEncrypt( rWidget.m_aDescription, rWidget.m_nObject, aLine ); in emitWidgetAnnotations()
5583 aLine.append( "\n" ); in emitWidgetAnnotations()
5588 aLine.append( "/Ff " ); in emitWidgetAnnotations()
5589 aLine.append( rWidget.m_nFlags ); in emitWidgetAnnotations()
5590 aLine.append( "\n" ); in emitWidgetAnnotations()
5595 aLine.append( "/V " ); in emitWidgetAnnotations()
5596 aLine.append( aVal ); in emitWidgetAnnotations()
5597 aLine.append( "\n" in emitWidgetAnnotations()
5599 aLine.append( aVal ); in emitWidgetAnnotations()
5600 aLine.append( "\n" ); in emitWidgetAnnotations()
5605 aLine.append( "/Opt[\n" ); in emitWidgetAnnotations()
5609 appendUnicodeTextStringEncrypt( *it, rWidget.m_nObject, aLine ); in emitWidgetAnnotations()
5610 aLine.append( "\n" ); in emitWidgetAnnotations()
5614 aLine.append( "]\n" ); in emitWidgetAnnotations()
5617 aLine.append( "/TI " ); in emitWidgetAnnotations()
5618 aLine.append( nTI ); in emitWidgetAnnotations()
5619 aLine.append( "\n" ); in emitWidgetAnnotations()
5622 aLine.append( "/I [" ); in emitWidgetAnnotations()
5623 aLine.append( nTI ); in emitWidgetAnnotations()
5624 aLine.append( "]\n" ); in emitWidgetAnnotations()
5630 aLine.append( "/MaxLen " ); in emitWidgetAnnotations()
5631 aLine.append( rWidget.m_nMaxLen ); in emitWidgetAnnotations()
5632 aLine.append( "\n" ); in emitWidgetAnnotations()
5641 aLine.append( "/AA<</D<</Type/Action/S/GoTo/D " ); in emitWidgetAnnotations()
5642 aLine.append( aDest.makeStringAndClear() ); in emitWidgetAnnotations()
5643 aLine.append( ">>>>\n" ); in emitWidgetAnnotations()
5648 aLine.append( "/AA<</D<</Type/Action/S/ResetForm>>>>\n" ); in emitWidgetAnnotations()
5653 aLine.append( "/AA<</D<</Type/Action/S/SubmitForm/F" ); in emitWidgetAnnotations()
5654 …dLiteralStringEncrypt( rWidget.m_aListEntries.front(), rWidget.m_nObject, aLine, osl_getThreadText… in emitWidgetAnnotations()
5655 aLine.append( "/Flags " ); in emitWidgetAnnotations()
5677 aLine.append( nFlags ); in emitWidgetAnnotations()
5678 aLine.append( ">>>>\n" ); in emitWidgetAnnotations()
5683 aLine.append( "/AA<</D<</Type/Action/S/URI/URI(" ); in emitWidgetAnnotations()
5684 … aLine.append( OUStringToOString( rWidget.m_aListEntries.front(), RTL_TEXTENCODING_ASCII_US ) ); in emitWidgetAnnotations()
5685 aLine.append( ")>>>>\n" ); in emitWidgetAnnotations()
5695 aLine.append( "/DR<<" ); in emitWidgetAnnotations()
5696 aLine.append( rWidget.m_aDRDict ); in emitWidgetAnnotations()
5697 aLine.append( ">>\n" ); in emitWidgetAnnotations()
5701 aLine.append( "/DR<</Font<<" ); in emitWidgetAnnotations()
5702 appendBuiltinFontsToDict( aLine ); in emitWidgetAnnotations()
5703 aLine.append( ">>>>\n" ); in emitWidgetAnnotations()
5705 aLine.append( "/DA" ); in emitWidgetAnnotations()
5706 appendLiteralStringEncrypt( rWidget.m_aDAString, rWidget.m_nObject, aLine ); in emitWidgetAnnotations()
5707 aLine.append( "\n" ); in emitWidgetAnnotations()
5709 aLine.append( "/Q 1\n" ); in emitWidgetAnnotations()
5711 aLine.append( "/Q 2\n" ); in emitWidgetAnnotations()
5718 aLine.append( "/MK<<" ); in emitWidgetAnnotations()
5719 aLine.append( rWidget.m_aMKDict ); in emitWidgetAnnotations()
5721 appendLiteralStringEncrypt(rWidget.m_aMKDictCAString, rWidget.m_nObject, aLine); in emitWidgetAnnotations()
5722 aLine.append( ">>\n" ); in emitWidgetAnnotations()
5725 CHECK_RETURN( emitAppearances( rWidget, aLine ) ); in emitWidgetAnnotations()
5727 aLine.append( ">>\n" in emitWidgetAnnotations()
5730 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in emitWidgetAnnotations()
5792 OStringBuffer aLine( 2048 ); in emitCatalog() local
5793 aLine.append( nTreeNode ); in emitCatalog()
5794 aLine.append( " 0 obj\n" ); in emitCatalog()
5795 aLine.append( "<</Type/Pages\n" ); in emitCatalog()
5796 aLine.append( "/Resources " ); in emitCatalog()
5797 aLine.append( getResourceDictObj() ); in emitCatalog()
5798 aLine.append( " 0 R\n" ); in emitCatalog()
5802 case PDFWriter::Landscape: aLine.append( "/Rotate 90\n" );break; in emitCatalog()
5803 case PDFWriter::Seascape: aLine.append( "/Rotate -90\n" );break; in emitCatalog()
5827 aLine.append( "/MediaBox[ 0 0 " ); in emitCatalog()
5828 aLine.append( nMediaBoxWidth ); in emitCatalog()
5829 aLine.append( ' ' ); in emitCatalog()
5830 aLine.append( nMediaBoxHeight ); in emitCatalog()
5831 aLine.append( " ]\n" in emitCatalog()
5836 aLine.append( iter->m_nPageObject ); in emitCatalog()
5837 aLine.append( " 0 R" ); in emitCatalog()
5838 aLine.append( ( (i&15) == 15 ) ? "\n" : " " ); in emitCatalog()
5840 aLine.append( "]\n" in emitCatalog()
5842 aLine.append( (sal_Int32)m_aPages.size() ); in emitCatalog()
5843 aLine.append( ">>\n" in emitCatalog()
5845 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in emitCatalog()
5854 aLine.setLength( 0 ); in emitCatalog()
5855 aLine.append( m_nCatalogObject ); in emitCatalog()
5856 aLine.append( " 0 obj\n" in emitCatalog()
5858 aLine.append( nTreeNode ); in emitCatalog()
5859 aLine.append( " 0 R\n" ); in emitCatalog()
5864 aLine.append("/Dests "); in emitCatalog()
5865 aLine.append( nNamedDestinationsDictionary ); in emitCatalog()
5866 aLine.append( " 0 R\n" ); in emitCatalog()
5874 aLine.append( "/PageLayout/SinglePage\n" ); in emitCatalog()
5877 aLine.append( "/PageLayout/OneColumn\n" ); in emitCatalog()
5881 aLine.append( "/PageLayout/TwoColumnRight\n" );//odd page on the right side in emitCatalog()
5888 aLine.append( "/PageMode/UseNone\n" ); in emitCatalog()
5891 aLine.append( "/PageMode/UseOutlines\n" ); //document is opened with outline pane open in emitCatalog()
5894 aLine.append( "/PageMode/UseThumbs\n" ); //document is opened with thumbnails pane open in emitCatalog()
5898 aLine.append( "/PageMode/FullScreen\n" ); //document is opened full screen in emitCatalog()
5914 aLine.append( "/OpenAction[" ); in emitCatalog()
5915 aLine.append( aInitPageRef ); in emitCatalog()
5916 aLine.append( " /XYZ null null 0]\n" ); in emitCatalog()
5920 aLine.append( "/OpenAction[" ); in emitCatalog()
5921 aLine.append( aInitPageRef ); in emitCatalog()
5922 aLine.append( " /Fit]\n" ); //Open fit page in emitCatalog()
5925 aLine.append( "/OpenAction[" ); in emitCatalog()
5926 aLine.append( aInitPageRef ); in emitCatalog()
5927 aLine.append( " /FitH " ); in emitCatalog()
5928 aLine.append( m_nInheritedPageHeight );//Open fit width in emitCatalog()
5929 aLine.append( "]\n" ); in emitCatalog()
5932 aLine.append( "/OpenAction[" ); in emitCatalog()
5933 aLine.append( aInitPageRef ); in emitCatalog()
5934 aLine.append( " /FitBH " ); in emitCatalog()
5935 aLine.append( m_nInheritedPageHeight );//Open fit visible in emitCatalog()
5936 aLine.append( "]\n" ); in emitCatalog()
5939 aLine.append( "/OpenAction[" ); in emitCatalog()
5940 aLine.append( aInitPageRef ); in emitCatalog()
5941 aLine.append( " /XYZ null null " ); in emitCatalog()
5943 aLine.append( (double)m_aContext.Zoom/100.0 ); in emitCatalog()
5945 aLine.append( "0" ); in emitCatalog()
5946 aLine.append( "]\n" ); in emitCatalog()
5957 aLine.append( "/ViewerPreferences<<" ); in emitCatalog()
5959 aLine.append( "/HideToolbar true\n" ); in emitCatalog()
5961 aLine.append( "/HideMenubar true\n" ); in emitCatalog()
5963 aLine.append( "/HideWindowUI true\n" ); in emitCatalog()
5965 aLine.append( "/FitWindow true\n" ); in emitCatalog()
5967 aLine.append( "/CenterWindow true\n" ); in emitCatalog()
5969 aLine.append( "/DisplayDocTitle true\n" ); in emitCatalog()
5971 aLine.append( "/Direction/R2L\n" ); in emitCatalog()
5977 aLine.append( "/NonFullScreenPageMode/UseNone\n" ); in emitCatalog()
5980 aLine.append( "/NonFullScreenPageMode/UseOutlines\n" ); in emitCatalog()
5983 aLine.append( "/NonFullScreenPageMode/UseThumbs\n" ); in emitCatalog()
5986 aLine.append( ">>\n" ); in emitCatalog()
5991 aLine.append( "/Outlines " ); in emitCatalog()
5992 aLine.append( nOutlineDict ); in emitCatalog()
5993 aLine.append( " 0 R\n" ); in emitCatalog()
5997 aLine.append( "/StructTreeRoot " ); in emitCatalog()
5998 aLine.append( nStructureDict ); in emitCatalog()
5999 aLine.append( " 0 R\n" ); in emitCatalog()
6010 aLine.append( "/Lang" ); in emitCatalog()
6011 appendLiteralStringEncrypt( aLocBuf.makeStringAndClear(), m_nCatalogObject, aLine ); in emitCatalog()
6012 aLine.append( "\n" ); in emitCatalog()
6016 aLine.append( "/MarkInfo<</Marked true>>\n" ); in emitCatalog()
6020 aLine.append( "/AcroForm<</Fields[\n" ); in emitCatalog()
6028 aLine.append( m_aWidgets[j].m_nObject ); in emitCatalog()
6029 aLine.append( (nOut++ % 5)==4 ? " 0 R\n" : " 0 R " ); in emitCatalog()
6032 aLine.append( "\n]/DR " ); in emitCatalog()
6033 aLine.append( getResourceDictObj() ); in emitCatalog()
6034 aLine.append( " 0 R" ); in emitCatalog()
6036 aLine.append( ">>\n" ); in emitCatalog()
6038 aLine.append( "/NeedAppearances true>>\n" ); in emitCatalog()
6044 aLine.append("/OutputIntents["); in emitCatalog()
6045 aLine.append( nOutputIntentObject ); in emitCatalog()
6046 aLine.append( " 0 R]" ); in emitCatalog()
6050 aLine.append("/Metadata "); in emitCatalog()
6051 aLine.append( nMetadataObject ); in emitCatalog()
6052 aLine.append( " 0 R" ); in emitCatalog()
6055 aLine.append( ">>\n" in emitCatalog()
6057 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in emitCatalog()
6068 OStringBuffer aLine( 1024 ); in emitInfoDict() local
6069 aLine.append( nObject ); in emitInfoDict()
6070 aLine.append( " 0 obj\n" in emitInfoDict()
6074 aLine.append( "/Title" ); in emitInfoDict()
6075 appendUnicodeTextStringEncrypt( m_aContext.DocumentInfo.Title, nObject, aLine ); in emitInfoDict()
6076 aLine.append( "\n" ); in emitInfoDict()
6080 aLine.append( "/Author" ); in emitInfoDict()
6081 appendUnicodeTextStringEncrypt( m_aContext.DocumentInfo.Author, nObject, aLine ); in emitInfoDict()
6082 aLine.append( "\n" ); in emitInfoDict()
6086 aLine.append( "/Subject" ); in emitInfoDict()
6087 appendUnicodeTextStringEncrypt( m_aContext.DocumentInfo.Subject, nObject, aLine ); in emitInfoDict()
6088 aLine.append( "\n" ); in emitInfoDict()
6092 aLine.append( "/Keywords" ); in emitInfoDict()
6093 appendUnicodeTextStringEncrypt( m_aContext.DocumentInfo.Keywords, nObject, aLine ); in emitInfoDict()
6094 aLine.append( "\n" ); in emitInfoDict()
6098 aLine.append( "/Creator" ); in emitInfoDict()
6099 appendUnicodeTextStringEncrypt( m_aContext.DocumentInfo.Creator, nObject, aLine ); in emitInfoDict()
6100 aLine.append( "\n" ); in emitInfoDict()
6104 aLine.append( "/Producer" ); in emitInfoDict()
6105 appendUnicodeTextStringEncrypt( m_aContext.DocumentInfo.Producer, nObject, aLine ); in emitInfoDict()
6106 aLine.append( "\n" ); in emitInfoDict()
6109 aLine.append( "/CreationDate" ); in emitInfoDict()
6110 appendLiteralStringEncrypt( m_aCreationDateString, nObject, aLine ); in emitInfoDict()
6111 aLine.append( ">>\nendobj\n\n" ); in emitInfoDict()
6112 if( ! writeBuffer( aLine.getStr(), aLine.getLength() ) ) in emitInfoDict()
6136 OStringBuffer aLine( 1024 ); in emitNamedDestinations() local
6137 aLine.append( nObject ); in emitNamedDestinations()
6138 aLine.append( " 0 obj\n" in emitNamedDestinations()
6157 aLine.append( '/' ); in emitNamedDestinations()
6158 …appendDestinationName( aName, aLine ); // this conversion must be done when forming the link to ta… in emitNamedDestinations()
6159 …aLine.append( '[' ); // the '[' can be emitted immediately, because the appendDestinationName func… in emitNamedDestinations()
6161 aLine.append( rDestPage.m_nPageObject ); in emitNamedDestinations()
6162 aLine.append( " 0 R" ); in emitNamedDestinations()
6168 aLine.append( "/XYZ " ); in emitNamedDestinations()
6169 appendFixedInt( rDest.m_aRect.Left(), aLine ); in emitNamedDestinations()
6170 aLine.append( ' ' ); in emitNamedDestinations()
6171 appendFixedInt( rDest.m_aRect.Bottom(), aLine ); in emitNamedDestinations()
6172 aLine.append( " 0" ); in emitNamedDestinations()
6175 aLine.append( "/Fit" ); in emitNamedDestinations()
6178 aLine.append( "/FitR " ); in emitNamedDestinations()
6179 appendFixedInt( rDest.m_aRect.Left(), aLine ); in emitNamedDestinations()
6180 aLine.append( ' ' ); in emitNamedDestinations()
6181 appendFixedInt( rDest.m_aRect.Top(), aLine ); in emitNamedDestinations()
6182 aLine.append( ' ' ); in emitNamedDestinations()
6183 appendFixedInt( rDest.m_aRect.Right(), aLine ); in emitNamedDestinations()
6184 aLine.append( ' ' ); in emitNamedDestinations()
6185 appendFixedInt( rDest.m_aRect.Bottom(), aLine ); in emitNamedDestinations()
6188 aLine.append( "/FitH " ); in emitNamedDestinations()
6189 appendFixedInt( rDest.m_aRect.Bottom(), aLine ); in emitNamedDestinations()
6192 aLine.append( "/FitV " ); in emitNamedDestinations()
6193 appendFixedInt( rDest.m_aRect.Left(), aLine ); in emitNamedDestinations()
6196 aLine.append( "/FitB" ); in emitNamedDestinations()
6199 aLine.append( "/FitBH " ); in emitNamedDestinations()
6200 appendFixedInt( rDest.m_aRect.Bottom(), aLine ); in emitNamedDestinations()
6203 aLine.append( "/FitBV " ); in emitNamedDestinations()
6204 appendFixedInt( rDest.m_aRect.Left(), aLine ); in emitNamedDestinations()
6207 aLine.append( "]\n" ); in emitNamedDestinations()
6211 aLine.append( ">>\nendobj\n\n" ); in emitNamedDestinations()
6212 if( ! writeBuffer( aLine.getStr(), aLine.getLength() ) ) in emitNamedDestinations()
6232 OStringBuffer aLine( 1024 ); in emitOutputIntent() local
6236 aLine.append( nICCObject ); in emitOutputIntent()
6238 aLine.append( " 0 obj\n<</N 3/Length " ); in emitOutputIntent()
6239 aLine.append( nStreamLengthObject ); in emitOutputIntent()
6240 aLine.append( " 0 R" ); in emitOutputIntent()
6242 aLine.append( "/Filter/FlateDecode" ); in emitOutputIntent()
6244 aLine.append( ">>\nstream\n" ); in emitOutputIntent()
6246 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in emitOutputIntent()
6262 aLine.setLength( 0 ); in emitOutputIntent()
6266 aLine.setLength( 0 ); in emitOutputIntent()
6267 aLine.append( nStreamLengthObject ); in emitOutputIntent()
6268 aLine.append( " 0 obj\n" ); in emitOutputIntent()
6269 aLine.append( (sal_Int64)(nEndStreamPos-nBeginStreamPos) ); in emitOutputIntent()
6270 aLine.append( "\nendobj\n\n" ); in emitOutputIntent()
6271 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in emitOutputIntent()
6272 aLine.setLength( 0 ); in emitOutputIntent()
6277 aLine.append( nOIObject ); in emitOutputIntent()
6278 aLine.append( " 0 obj\n" in emitOutputIntent()
6282 appendLiteralStringEncrypt( aComment ,nOIObject, aLine ); in emitOutputIntent()
6283 aLine.append("/DestOutputProfile "); in emitOutputIntent()
6284 aLine.append( nICCObject ); in emitOutputIntent()
6285 aLine.append( " 0 R>>\nendobj\n\n" );; in emitOutputIntent()
6286 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in emitOutputIntent()
6525 OStringBuffer aLine; in emitTrailer() local
6526 aLine.append( "0 " ); in emitTrailer()
6527 aLine.append( (sal_Int32)(nObjects+1) ); in emitTrailer()
6528 aLine.append( "\n" ); in emitTrailer()
6529 aLine.append( "0000000000 65535 f \n" ); in emitTrailer()
6530 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in emitTrailer()
6534 aLine.setLength( 0 ); in emitTrailer()
6537 aLine.append( '0' ); in emitTrailer()
6538 aLine.append( aOffset ); in emitTrailer()
6539 aLine.append( " 00000 n \n" ); in emitTrailer()
6540 DBG_ASSERT( aLine.getLength() == 20, "invalid xref entry" ); in emitTrailer()
6541 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in emitTrailer()
6555 aLine.setLength( 0 ); in emitTrailer()
6556 aLine.append( "trailer\n" in emitTrailer()
6558 aLine.append( (sal_Int32)(nObjects+1) ); in emitTrailer()
6559 aLine.append( "/Root " ); in emitTrailer()
6560 aLine.append( m_nCatalogObject ); in emitTrailer()
6561 aLine.append( " 0 R\n" ); in emitTrailer()
6564 aLine.append( "/Encrypt "); in emitTrailer()
6565 aLine.append( nSecObject ); in emitTrailer()
6566 aLine.append( " 0 R\n" ); in emitTrailer()
6570 aLine.append( "/Info " ); in emitTrailer()
6571 aLine.append( nDocInfoObject ); in emitTrailer()
6572 aLine.append( " 0 R\n" ); in emitTrailer()
6576 aLine.append( "/ID [ <" ); in emitTrailer()
6580 appendHex( sal_Int8(*it), aLine ); in emitTrailer()
6582 aLine.append( ">\n" in emitTrailer()
6587 appendHex( sal_Int8(*it), aLine ); in emitTrailer()
6589 aLine.append( "> ]\n" ); in emitTrailer()
6593 aLine.append( "/DocChecksum /" ); in emitTrailer()
6594 aLine.append( aDocChecksum ); in emitTrailer()
6595 aLine.append( "\n" ); in emitTrailer()
6599 aLine.append( "/AdditionalStreams [" ); in emitTrailer()
6602 aLine.append( "/" ); in emitTrailer()
6603 appendName( m_aAdditionalStreams[i].m_aMimeType, aLine ); in emitTrailer()
6604 aLine.append( " " ); in emitTrailer()
6605 aLine.append( m_aAdditionalStreams[i].m_nStreamObject ); in emitTrailer()
6606 aLine.append( " 0 R\n" ); in emitTrailer()
6608 aLine.append( "]\n" ); in emitTrailer()
6610 aLine.append( ">>\n" in emitTrailer()
6612 aLine.append( (sal_Int64)nXRefOffset ); in emitTrailer()
6613 aLine.append( "\n" in emitTrailer()
6615 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in emitTrailer()
6776 OStringBuffer aLine; in emitAdditionalStreams() local
6777 aLine.append( rStream.m_nStreamObject ); in emitAdditionalStreams()
6778 aLine.append( " 0 obj\n<</Length " ); in emitAdditionalStreams()
6779 aLine.append( nSizeObject ); in emitAdditionalStreams()
6780 aLine.append( " 0 R" ); in emitAdditionalStreams()
6782 aLine.append( "/Filter/FlateDecode" ); in emitAdditionalStreams()
6783 aLine.append( ">>\nstream\n" ); in emitAdditionalStreams()
6784 if( ! writeBuffer( aLine.getStr(), aLine.getLength() ) ) in emitAdditionalStreams()
6817 aLine.setLength( 0 ); in emitAdditionalStreams()
6818 aLine.append( nSizeObject ); in emitAdditionalStreams()
6819 aLine.append( " 0 obj\n" ); in emitAdditionalStreams()
6820 aLine.append( (sal_Int64)(nEndStreamPos-nBeginStreamPos) ); in emitAdditionalStreams()
6821 aLine.append( "\nendobj\n\n" ); in emitAdditionalStreams()
6822 if( ! writeBuffer( aLine.getStr(), aLine.getLength() ) ) in emitAdditionalStreams()
7323 OStringBuffer aLine( 512 ); in drawLayout() local
7399 aLine.append( "q " ); in drawLayout()
7420 aLine.append( "q " ); in drawLayout()
7422 appendStrokingColor( aStrokeColor, aLine ); in drawLayout()
7423 aLine.append( "\n" ); in drawLayout()
7428 aLine.append( "q " ); in drawLayout()
7430 appendNonStrokingColor( aNonStrokeColor, aLine ); in drawLayout()
7431 aLine.append( "\n" ); in drawLayout()
7435 aLine.append( "BT\n" ); in drawLayout()
7440 aLine.append( "2 Tr " ); // fill, then stroke in drawLayout()
7446 aLine.append( "0.25 w \n" ); in drawLayout()
7451 m_aPages.back().appendMappedLength( fW, aLine ); in drawLayout()
7452 aLine.append ( " w\n" ); in drawLayout()
7547 …drawVerticalGlyphs( aGlyphs, aLine, aAlignOffset, aRotScale, fAngle, fXScale, fSkew, nFontHeight ); in drawLayout()
7549 …drawHorizontalGlyphs( aGlyphs, aLine, aAlignOffset, fAngle, fXScale, fSkew, nFontHeight, nPixelFon… in drawLayout()
7553 aLine.append( "ET\n" ); in drawLayout()
7555 aLine.append( "Q\n" ); in drawLayout()
7557 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawLayout()
7629 aLine.setLength( 0 ); in drawLayout()
7630 aLine.append( "q\n" ); in drawLayout()
7656 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawLayout()
7804 OStringBuffer aLine; in drawText() local
7805 aLine.append( "q " ); in drawText()
7806 m_aPages.back().appendRect( rRect, aLine ); in drawText()
7807 aLine.append( " W* n\n" ); in drawText()
7808 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawText()
7926 aLine.setLength( 0 ); in drawText()
7927 aLine.append( "Q\n" ); in drawText()
7928 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawText()
7940 OStringBuffer aLine; in drawLine() local
7941 m_aPages.back().appendPoint( rStart, aLine ); in drawLine()
7942 aLine.append( " m " ); in drawLine()
7943 m_aPages.back().appendPoint( rStop, aLine ); in drawLine()
7944 aLine.append( " l S\n" ); in drawLine()
7946 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawLine()
7963 OStringBuffer aLine; in drawLine() local
7965 aLine.append( "q " ); in drawLine()
7966 if( m_aPages.back().appendLineInfo( rInfo, aLine ) ) in drawLine()
7968 m_aPages.back().appendPoint( rStart, aLine ); in drawLine()
7969 aLine.append( " m " ); in drawLine()
7970 m_aPages.back().appendPoint( rStop, aLine ); in drawLine()
7971 aLine.append( " l S Q\n" ); in drawLine()
7973 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawLine()
7998 OStringBuffer aLine( 512 ); in drawWaveLine() local
7999 aLine.append( "q " ); in drawWaveLine()
8000 m_aPages.back().appendMappedLength( nLineWidth, aLine, true ); in drawWaveLine()
8001 aLine.append( " w " ); in drawWaveLine()
8003 appendDouble( (double)aDiff.X()/fLen, aLine ); in drawWaveLine()
8004 aLine.append( ' ' ); in drawWaveLine()
8005 appendDouble( -(double)aDiff.Y()/fLen, aLine ); in drawWaveLine()
8006 aLine.append( ' ' ); in drawWaveLine()
8007 appendDouble( (double)aDiff.Y()/fLen, aLine ); in drawWaveLine()
8008 aLine.append( ' ' ); in drawWaveLine()
8009 appendDouble( (double)aDiff.X()/fLen, aLine ); in drawWaveLine()
8010 aLine.append( ' ' ); in drawWaveLine()
8011 m_aPages.back().appendPoint( rStart, aLine ); in drawWaveLine()
8012 aLine.append( " cm " ); in drawWaveLine()
8013 m_aPages.back().appendWaveLine( (sal_Int32)fLen, 0, nDelta, aLine ); in drawWaveLine()
8014 aLine.append( "Q\n" ); in drawWaveLine()
8015 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawWaveLine()
8021 void PDFWriterImpl::drawWaveTextLine( OStringBuffer& aLine, long nWidth, FontUnderline eTextLine, C… in drawWaveTextLine() argument
8028 appendStrokingColor( aColor, aLine ); in drawWaveTextLine()
8029 aLine.append( "\n" ); in drawWaveTextLine()
8055 m_aPages.back().appendMappedLength( (sal_Int32)nLineWidth, aLine ); in drawWaveTextLine()
8056 aLine.append( " w " ); in drawWaveTextLine()
8078 m_aPages.back().appendWaveLine( nWidth, -nLinePos, 2*nLineHeight, aLine ); in drawWaveTextLine()
8081 m_aPages.back().appendWaveLine( nWidth, -nLinePos, 2*nLineHeight, aLine ); in drawWaveTextLine()
8087 m_aPages.back().appendWaveLine( nWidth, -nLinePos, nLineHeight, aLine ); in drawWaveTextLine()
8091 void PDFWriterImpl::drawStraightTextLine( OStringBuffer& aLine, long nWidth, FontUnderline eTextLin… in drawStraightTextLine() argument
8170 m_aPages.back().appendMappedLength( (sal_Int32)nLineHeight, aLine, true ); in drawStraightTextLine()
8171 aLine.append( " w " ); in drawStraightTextLine()
8172 appendStrokingColor( aColor, aLine ); in drawStraightTextLine()
8173 aLine.append( "\n" ); in drawStraightTextLine()
8179 aLine.append( "[ " ); in drawStraightTextLine()
8180 m_aPages.back().appendMappedLength( (sal_Int32)nLineHeight, aLine, false ); in drawStraightTextLine()
8181 aLine.append( " ] 0 d\n" ); in drawStraightTextLine()
8193 aLine.append( "[ " ); in drawStraightTextLine()
8194 m_aPages.back().appendMappedLength( nDashLength, aLine, false ); in drawStraightTextLine()
8195 aLine.append( ' ' ); in drawStraightTextLine()
8196 m_aPages.back().appendMappedLength( nVoidLength, aLine, false ); in drawStraightTextLine()
8197 aLine.append( " ] 0 d\n" ); in drawStraightTextLine()
8205 aLine.append( "[ " ); in drawStraightTextLine()
8206 m_aPages.back().appendMappedLength( nDashLength, aLine, false ); in drawStraightTextLine()
8207 aLine.append( ' ' ); in drawStraightTextLine()
8208 m_aPages.back().appendMappedLength( nVoidLength, aLine, false ); in drawStraightTextLine()
8209 aLine.append( ' ' ); in drawStraightTextLine()
8210 m_aPages.back().appendMappedLength( (sal_Int32)nLineHeight, aLine, false ); in drawStraightTextLine()
8211 aLine.append( ' ' ); in drawStraightTextLine()
8212 m_aPages.back().appendMappedLength( nVoidLength, aLine, false ); in drawStraightTextLine()
8213 aLine.append( " ] 0 d\n" ); in drawStraightTextLine()
8221 aLine.append( "[ " ); in drawStraightTextLine()
8222 m_aPages.back().appendMappedLength( nDashLength, aLine, false ); in drawStraightTextLine()
8223 aLine.append( ' ' ); in drawStraightTextLine()
8224 m_aPages.back().appendMappedLength( nVoidLength, aLine, false ); in drawStraightTextLine()
8225 aLine.append( ' ' ); in drawStraightTextLine()
8226 m_aPages.back().appendMappedLength( (sal_Int32)nLineHeight, aLine, false ); in drawStraightTextLine()
8227 aLine.append( ' ' ); in drawStraightTextLine()
8228 m_aPages.back().appendMappedLength( nVoidLength, aLine, false ); in drawStraightTextLine()
8229 aLine.append( ' ' ); in drawStraightTextLine()
8230 m_aPages.back().appendMappedLength( (sal_Int32)nLineHeight, aLine, false ); in drawStraightTextLine()
8231 aLine.append( ' ' ); in drawStraightTextLine()
8232 m_aPages.back().appendMappedLength( nVoidLength, aLine, false ); in drawStraightTextLine()
8233 aLine.append( " ] 0 d\n" ); in drawStraightTextLine()
8240 aLine.append( "0 " ); in drawStraightTextLine()
8241 m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos), aLine, true ); in drawStraightTextLine()
8242 aLine.append( " m " ); in drawStraightTextLine()
8243 m_aPages.back().appendMappedLength( (sal_Int32)nWidth, aLine, false ); in drawStraightTextLine()
8244 aLine.append( ' ' ); in drawStraightTextLine()
8245 m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos), aLine, true ); in drawStraightTextLine()
8246 aLine.append( " l S\n" ); in drawStraightTextLine()
8249 aLine.append( "0 " ); in drawStraightTextLine()
8250 m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos2-nLineHeight), aLine, true ); in drawStraightTextLine()
8251 aLine.append( " m " ); in drawStraightTextLine()
8252 m_aPages.back().appendMappedLength( (sal_Int32)nWidth, aLine, false ); in drawStraightTextLine()
8253 aLine.append( ' ' ); in drawStraightTextLine()
8254 m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos2-nLineHeight), aLine, true ); in drawStraightTextLine()
8255 aLine.append( " l S\n" ); in drawStraightTextLine()
8260 void PDFWriterImpl::drawStrikeoutLine( OStringBuffer& aLine, long nWidth, FontStrikeout eStrikeout,… in drawStrikeoutLine() argument
8298 m_aPages.back().appendMappedLength( (sal_Int32)nLineHeight, aLine, true ); in drawStrikeoutLine()
8299 aLine.append( " w " ); in drawStrikeoutLine()
8300 appendStrokingColor( aColor, aLine ); in drawStrikeoutLine()
8301 aLine.append( "\n" ); in drawStrikeoutLine()
8303 aLine.append( "0 " ); in drawStrikeoutLine()
8304 m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos), aLine, true ); in drawStrikeoutLine()
8305 aLine.append( " m " ); in drawStrikeoutLine()
8306 m_aPages.back().appendMappedLength( (sal_Int32)nWidth, aLine, true ); in drawStrikeoutLine()
8307 aLine.append( ' ' ); in drawStrikeoutLine()
8308 m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos), aLine, true ); in drawStrikeoutLine()
8309 aLine.append( " l S\n" ); in drawStrikeoutLine()
8313 aLine.append( "0 " ); in drawStrikeoutLine()
8314 m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos2-nLineHeight), aLine, true ); in drawStrikeoutLine()
8315 aLine.append( " m " ); in drawStrikeoutLine()
8316 m_aPages.back().appendMappedLength( (sal_Int32)nWidth, aLine, true ); in drawStrikeoutLine()
8317 aLine.append( ' ' ); in drawStrikeoutLine()
8318 m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos2-nLineHeight), aLine, true ); in drawStrikeoutLine()
8319 aLine.append( " l S\n" ); in drawStrikeoutLine()
8392 OStringBuffer aLine( 512 ); in drawTextLine() local
8394 aLine.append( "q " ); in drawTextLine()
8401 aMat.append( m_aPages.back(), aLine ); in drawTextLine()
8402 aLine.append( " cm\n" ); in drawTextLine()
8412 drawWaveTextLine( aLine, nWidth, eUnderline, aUnderlineColor, bUnderlineAbove ); in drawTextLine()
8421 drawWaveTextLine( aLine, nWidth, eOverline, aOverlineColor, true ); in drawTextLine()
8427 drawStraightTextLine( aLine, nWidth, eUnderline, aUnderlineColor, bUnderlineAbove ); in drawTextLine()
8432 drawStraightTextLine( aLine, nWidth, eOverline, aOverlineColor, true ); in drawTextLine()
8437 drawStrikeoutLine( aLine, nWidth, eStrikeout, aStrikeoutColor ); in drawTextLine()
8440 aLine.append( "Q\n" ); in drawTextLine()
8441 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawTextLine()
8455 OStringBuffer aLine( 20 * nPoints ); in drawPolygon() local
8456 m_aPages.back().appendPolygon( rPoly, aLine ); in drawPolygon()
8459 aLine.append( "B*\n" ); in drawPolygon()
8461 aLine.append( "S\n" ); in drawPolygon()
8463 aLine.append( "f*\n" ); in drawPolygon()
8465 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawPolygon()
8480 OStringBuffer aLine( 40 * nPolygons ); in drawPolyPolygon() local
8481 m_aPages.back().appendPolyPolygon( rPolyPoly, aLine ); in drawPolyPolygon()
8484 aLine.append( "B*\n" ); in drawPolyPolygon()
8486 aLine.append( "S\n" ); in drawPolyPolygon()
8488 aLine.append( "f*\n" ); in drawPolyPolygon()
8490 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawPolyPolygon()
8546 OStringBuffer aLine( 80 ); in drawTransparent() local
8548 aLine.append( "q /" ); in drawTransparent()
8549 aLine.append( aExtName ); in drawTransparent()
8550 aLine.append( " gs /" ); in drawTransparent()
8551 aLine.append( aTrName ); in drawTransparent()
8552 aLine.append( " Do Q\n" ); in drawTransparent()
8553 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawTransparent()
8682 OStringBuffer aLine( 80 ); in endTransparencyGroup() local
8684 aLine.append( "q /" ); in endTransparencyGroup()
8685 aLine.append( aExtName ); in endTransparencyGroup()
8686 aLine.append( " gs /" ); in endTransparencyGroup()
8687 aLine.append( aTrName ); in endTransparencyGroup()
8688 aLine.append( " Do Q\n" ); in endTransparencyGroup()
8689 writeBuffer( aLine.getStr(), aLine.getLength() ); in endTransparencyGroup()
8724 OStringBuffer aLine( 80 ); in endTransparencyGroup() local
8726 aLine.append( "q /" ); in endTransparencyGroup()
8727 aLine.append( aExtName ); in endTransparencyGroup()
8728 aLine.append( " gs /" ); in endTransparencyGroup()
8729 aLine.append( aTrName ); in endTransparencyGroup()
8730 aLine.append( " Do Q\n" ); in endTransparencyGroup()
8731 writeBuffer( aLine.getStr(), aLine.getLength() ); in endTransparencyGroup()
8748 OStringBuffer aLine( 40 ); in drawRectangle() local
8749 m_aPages.back().appendRect( rRect, aLine ); in drawRectangle()
8753 aLine.append( " B*\n" ); in drawRectangle()
8755 aLine.append( " S\n" ); in drawRectangle()
8757 aLine.append( " f*\n" ); in drawRectangle()
8759 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawRectangle()
8806 OStringBuffer aLine( 80 ); in drawRectangle() local
8807 m_aPages.back().appendPoint( aPoints[1], aLine ); in drawRectangle()
8808 aLine.append( " m " ); in drawRectangle()
8809 m_aPages.back().appendPoint( aPoints[2], aLine ); in drawRectangle()
8810 aLine.append( " l " ); in drawRectangle()
8811 m_aPages.back().appendPoint( aPoints[3], aLine ); in drawRectangle()
8812 aLine.append( ' ' ); in drawRectangle()
8813 m_aPages.back().appendPoint( aPoints[4], aLine ); in drawRectangle()
8814 aLine.append( ' ' ); in drawRectangle()
8815 m_aPages.back().appendPoint( aPoints[5], aLine ); in drawRectangle()
8816 aLine.append( " c\n" ); in drawRectangle()
8817 m_aPages.back().appendPoint( aPoints[6], aLine ); in drawRectangle()
8818 aLine.append( " l " ); in drawRectangle()
8819 m_aPages.back().appendPoint( aPoints[7], aLine ); in drawRectangle()
8820 aLine.append( ' ' ); in drawRectangle()
8821 m_aPages.back().appendPoint( aPoints[8], aLine ); in drawRectangle()
8822 aLine.append( ' ' ); in drawRectangle()
8823 m_aPages.back().appendPoint( aPoints[9], aLine ); in drawRectangle()
8824 aLine.append( " c\n" ); in drawRectangle()
8825 m_aPages.back().appendPoint( aPoints[10], aLine ); in drawRectangle()
8826 aLine.append( " l " ); in drawRectangle()
8827 m_aPages.back().appendPoint( aPoints[11], aLine ); in drawRectangle()
8828 aLine.append( ' ' ); in drawRectangle()
8829 m_aPages.back().appendPoint( aPoints[12], aLine ); in drawRectangle()
8830 aLine.append( ' ' ); in drawRectangle()
8831 m_aPages.back().appendPoint( aPoints[13], aLine ); in drawRectangle()
8832 aLine.append( " c\n" ); in drawRectangle()
8833 m_aPages.back().appendPoint( aPoints[14], aLine ); in drawRectangle()
8834 aLine.append( " l " ); in drawRectangle()
8835 m_aPages.back().appendPoint( aPoints[15], aLine ); in drawRectangle()
8836 aLine.append( ' ' ); in drawRectangle()
8837 m_aPages.back().appendPoint( aPoints[0], aLine ); in drawRectangle()
8838 aLine.append( ' ' ); in drawRectangle()
8839 m_aPages.back().appendPoint( aPoints[1], aLine ); in drawRectangle()
8840 aLine.append( " c " ); in drawRectangle()
8844 aLine.append( "b*\n" ); in drawRectangle()
8846 aLine.append( "s\n" ); in drawRectangle()
8848 aLine.append( "f*\n" ); in drawRectangle()
8850 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawRectangle()
8884 OStringBuffer aLine( 80 ); in drawEllipse() local
8885 m_aPages.back().appendPoint( aPoints[1], aLine ); in drawEllipse()
8886 aLine.append( " m " ); in drawEllipse()
8887 m_aPages.back().appendPoint( aPoints[2], aLine ); in drawEllipse()
8888 aLine.append( ' ' ); in drawEllipse()
8889 m_aPages.back().appendPoint( aPoints[3], aLine ); in drawEllipse()
8890 aLine.append( ' ' ); in drawEllipse()
8891 m_aPages.back().appendPoint( aPoints[4], aLine ); in drawEllipse()
8892 aLine.append( " c\n" ); in drawEllipse()
8893 m_aPages.back().appendPoint( aPoints[5], aLine ); in drawEllipse()
8894 aLine.append( ' ' ); in drawEllipse()
8895 m_aPages.back().appendPoint( aPoints[6], aLine ); in drawEllipse()
8896 aLine.append( ' ' ); in drawEllipse()
8897 m_aPages.back().appendPoint( aPoints[7], aLine ); in drawEllipse()
8898 aLine.append( " c\n" ); in drawEllipse()
8899 m_aPages.back().appendPoint( aPoints[8], aLine ); in drawEllipse()
8900 aLine.append( ' ' ); in drawEllipse()
8901 m_aPages.back().appendPoint( aPoints[9], aLine ); in drawEllipse()
8902 aLine.append( ' ' ); in drawEllipse()
8903 m_aPages.back().appendPoint( aPoints[10], aLine ); in drawEllipse()
8904 aLine.append( " c\n" ); in drawEllipse()
8905 m_aPages.back().appendPoint( aPoints[11], aLine ); in drawEllipse()
8906 aLine.append( ' ' ); in drawEllipse()
8907 m_aPages.back().appendPoint( aPoints[0], aLine ); in drawEllipse()
8908 aLine.append( ' ' ); in drawEllipse()
8909 m_aPages.back().appendPoint( aPoints[1], aLine ); in drawEllipse()
8910 aLine.append( " c " ); in drawEllipse()
8914 aLine.append( "b*\n" ); in drawEllipse()
8916 aLine.append( "s\n" ); in drawEllipse()
8918 aLine.append( "f*\n" ); in drawEllipse()
8920 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawEllipse()
8963 OStringBuffer aLine( 30*nFragments ); in drawArc() local
8967 m_aPages.back().appendPoint( aPoint, aLine ); in drawArc()
8968 aLine.append( " m " ); in drawArc()
8978 m_aPages.back().appendPoint( aPoint, aLine ); in drawArc()
8979 aLine.append( ' ' ); in drawArc()
8984 m_aPages.back().appendPoint( aPoint, aLine ); in drawArc()
8985 aLine.append( ' ' ); in drawArc()
8990 m_aPages.back().appendPoint( aPoint, aLine ); in drawArc()
8991 aLine.append( " c\n" ); in drawArc()
8998 m_aPages.back().appendPoint( aCenter, aLine ); in drawArc()
8999 aLine.append( " l " ); in drawArc()
9001 aLine.append( "h " ); in drawArc()
9004 aLine.append( "S\n" ); in drawArc()
9007 aLine.append( "B*\n" ); in drawArc()
9009 aLine.append( "S\n" ); in drawArc()
9011 aLine.append( "f*\n" ); in drawArc()
9013 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawArc()
9029 OStringBuffer aLine( 20 * nPoints ); in drawPolyLine() local
9030 m_aPages.back().appendPolygon( rPoly, aLine, rPoly[0] == rPoly[nPoints-1] ); in drawPolyLine()
9031 aLine.append( "S\n" ); in drawPolyLine()
9033 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawPolyLine()
9045 OStringBuffer aLine; in drawPolyLine() local
9046 aLine.append( "q " ); in drawPolyLine()
9047 if( m_aPages.back().appendLineInfo( rInfo, aLine ) ) in drawPolyLine()
9049 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawPolyLine()
9150 OStringBuffer aLine; in drawPolyLine() local
9151 aLine.append( "q " ); in drawPolyLine()
9152 m_aPages.back().appendMappedLength( rInfo.m_fLineWidth, aLine ); in drawPolyLine()
9153 aLine.append( " w" ); in drawPolyLine()
9159 case PDFWriter::capButt: aLine.append( " 0 J" );break; in drawPolyLine()
9160 case PDFWriter::capRound: aLine.append( " 1 J" );break; in drawPolyLine()
9161 case PDFWriter::capSquare: aLine.append( " 2 J" );break; in drawPolyLine()
9173 aLine.append( " 0 j " ); in drawPolyLine()
9174 appendDouble( fLimit, aLine ); in drawPolyLine()
9175 aLine.append( " M" ); in drawPolyLine()
9178 case PDFWriter::joinRound: aLine.append( " 1 j" );break; in drawPolyLine()
9179 case PDFWriter::joinBevel: aLine.append( " 2 j" );break; in drawPolyLine()
9183 aLine.append( " [ " ); in drawPolyLine()
9187 m_aPages.back().appendMappedLength( *it, aLine ); in drawPolyLine()
9188 aLine.append( ' ' ); in drawPolyLine()
9190 aLine.append( "] 0 d" ); in drawPolyLine()
9192 aLine.append( "\n" ); in drawPolyLine()
9193 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawPolyLine()
9212 aLine.append( (nPoly != 0 && (nPoly & 7) == 0) ? "\n" : " " ); in drawPolyLine()
9224 aLine.append( " " ); in drawPolyLine()
9230 aLine ); in drawPolyLine()
9231 aLine.append( " m " ); in drawPolyLine()
9234 aLine ); in drawPolyLine()
9235 aLine.append( " l" ); in drawPolyLine()
9242 aLine.append( " S " ); in drawPolyLine()
9243 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawPolyLine()
9280 OStringBuffer aLine( 20 ); in drawPixel() local
9281 m_aPages.back().appendPoint( rPoint, aLine ); in drawPixel()
9282 aLine.append( ' ' ); in drawPixel()
9283 appendDouble( 1.0/double(getReferenceDevice()->ImplGetDPIX()), aLine ); in drawPixel()
9284 aLine.append( ' ' ); in drawPixel()
9285 appendDouble( 1.0/double(getReferenceDevice()->ImplGetDPIY()), aLine ); in drawPixel()
9286 aLine.append( " re f\n" ); in drawPixel()
9287 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawPixel()
9302 OStringBuffer aLine( nPoints*40 ); in drawPixel() local
9303 aLine.append( "q " ); in drawPixel()
9306 appendNonStrokingColor( m_aGraphicsStack.front().m_aLineColor, aLine ); in drawPixel()
9307 aLine.append( ' ' ); in drawPixel()
9323 appendNonStrokingColor( pColors[i], aLine ); in drawPixel()
9324 aLine.append( ' ' ); in drawPixel()
9326 m_aPages.back().appendPoint( rPoints[i], aLine ); in drawPixel()
9327 aLine.append( aPixelStr ); in drawPixel()
9328 aLine.append( " re f\n" ); in drawPixel()
9330 aLine.append( "Q\n" ); in drawPixel()
9331 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawPixel()
9353 OStringBuffer aLine( 512 ); in writeTransparentObject() local
9355 aLine.append( rObject.m_nObject ); in writeTransparentObject()
9356 aLine.append( " 0 obj\n" in writeTransparentObject()
9360 appendFixedInt( rObject.m_aBoundRect.Left(), aLine ); in writeTransparentObject()
9361 aLine.append( ' ' ); in writeTransparentObject()
9362 appendFixedInt( rObject.m_aBoundRect.Top(), aLine ); in writeTransparentObject()
9363 aLine.append( ' ' ); in writeTransparentObject()
9364 appendFixedInt( rObject.m_aBoundRect.Right(), aLine ); in writeTransparentObject()
9365 aLine.append( ' ' ); in writeTransparentObject()
9366 appendFixedInt( rObject.m_aBoundRect.Bottom()+1, aLine ); in writeTransparentObject()
9367 aLine.append( " ]\n" ); in writeTransparentObject()
9372 aLine.append( "/Group<</S/Transparency/CS/DeviceRGB/K true>>\n" ); in writeTransparentObject()
9383 aLine.append( " /Resources " ); in writeTransparentObject()
9384 aLine.append( getResourceDictObj() ); in writeTransparentObject()
9385 aLine.append( " 0 R\n" ); in writeTransparentObject()
9388 aLine.append( "/Length " ); in writeTransparentObject()
9389 aLine.append( (sal_Int32)(nSize) ); in writeTransparentObject()
9390 aLine.append( "\n" ); in writeTransparentObject()
9392 aLine.append( "/Filter/FlateDecode\n" ); in writeTransparentObject()
9393 aLine.append( ">>\n" in writeTransparentObject()
9395 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in writeTransparentObject()
9399 aLine.setLength( 0 ); in writeTransparentObject()
9400 aLine.append( "\n" in writeTransparentObject()
9403 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in writeTransparentObject()
9406 aLine.setLength( 0 ); in writeTransparentObject()
9407 aLine.append( rObject.m_nExtGStateObject ); in writeTransparentObject()
9408 aLine.append( " 0 obj\n" in writeTransparentObject()
9415 aLine.append( "/CA 1.0/ca 1.0" ); in writeTransparentObject()
9420 aLine.append( "/CA " ); in writeTransparentObject()
9421 appendDouble( rObject.m_fAlpha, aLine ); in writeTransparentObject()
9422 aLine.append( "\n" in writeTransparentObject()
9424 appendDouble( rObject.m_fAlpha, aLine ); in writeTransparentObject()
9426 aLine.append( "\n" ); in writeTransparentObject()
9432 aLine.append( "/SMask/None" ); in writeTransparentObject()
9441 aLine.append( "/SMask<</Type/Mask/S/Luminosity/G " ); in writeTransparentObject()
9442 aLine.append( nMaskObject ); in writeTransparentObject()
9443 aLine.append( " 0 R>>\n" ); in writeTransparentObject()
9462 aLine.append( "/Resources " ); in writeTransparentObject()
9483 aLine.append( ">>\n" in writeTransparentObject()
9486 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in writeTransparentObject()
9515 OStringBuffer aLine( 120 ); in writeGradientFunction() local
9516 aLine.append( nFunctionObject ); in writeGradientFunction()
9517 aLine.append( " 0 obj\n" in writeGradientFunction()
9521 aLine.append( (sal_Int32)aSize.Width() ); in writeGradientFunction()
9522 aLine.append( ' ' ); in writeGradientFunction()
9523 aLine.append( (sal_Int32)aSize.Height() ); in writeGradientFunction()
9524 aLine.append( " ]\n" in writeGradientFunction()
9529 aLine.append( nStreamLengthObject ); in writeGradientFunction()
9530 aLine.append( " 0 R\n" in writeGradientFunction()
9536 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in writeGradientFunction()
9561 aLine.setLength( 0 ); in writeGradientFunction()
9562 aLine.append( "\nendstream\nendobj\n\n" ); in writeGradientFunction()
9563 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in writeGradientFunction()
9567 aLine.setLength( 0 ); in writeGradientFunction()
9568 aLine.append( nStreamLengthObject ); in writeGradientFunction()
9569 aLine.append( " 0 obj\n" ); in writeGradientFunction()
9570 aLine.append( (sal_Int64)(nEndStreamPos-nStartStreamPos) ); in writeGradientFunction()
9571 aLine.append( "\nendobj\n\n" ); in writeGradientFunction()
9572 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in writeGradientFunction()
9575 aLine.setLength( 0 ); in writeGradientFunction()
9576 aLine.append( rObject.m_nObject ); in writeGradientFunction()
9577 aLine.append( " 0 obj\n" in writeGradientFunction()
9583 aLine.append( (sal_Int32)aSize.Width() ); in writeGradientFunction()
9584 aLine.append( " 0 0 " ); in writeGradientFunction()
9585 aLine.append( (sal_Int32)aSize.Height() ); in writeGradientFunction()
9586 aLine.append( " 0 0 ]\n" in writeGradientFunction()
9588 aLine.append( nFunctionObject ); in writeGradientFunction()
9589 aLine.append( " 0 R\n" in writeGradientFunction()
9592 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in writeGradientFunction()
9626 OStringBuffer aLine(200); in writeJPG() local
9627 aLine.append( rObject.m_nObject ); in writeJPG()
9628 aLine.append( " 0 obj\n" in writeJPG()
9630 aLine.append( (sal_Int32)rObject.m_aID.m_aPixelSize.Width() ); in writeJPG()
9631 aLine.append( " /Height " ); in writeJPG()
9632 aLine.append( (sal_Int32)rObject.m_aID.m_aPixelSize.Height() ); in writeJPG()
9633 aLine.append( " /BitsPerComponent 8 " ); in writeJPG()
9635 aLine.append( "/ColorSpace/DeviceRGB" ); in writeJPG()
9637 aLine.append( "/ColorSpace/DeviceGray" ); in writeJPG()
9638 aLine.append( "/Filter/DCTDecode/Length " ); in writeJPG()
9639 aLine.append( nLength ); in writeJPG()
9642 aLine.append( rObject.m_aMask.GetBitCount() == 1 ? " /Mask " : " /SMask " ); in writeJPG()
9643 aLine.append( nMaskObject ); in writeJPG()
9644 aLine.append( " 0 R " ); in writeJPG()
9646 aLine.append( ">>\nstream\n" ); in writeJPG()
9647 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in writeJPG()
9653 aLine.setLength( 0 ); in writeJPG()
9654 aLine.append( "\nendstream\nendobj\n\n" ); in writeJPG()
9655 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in writeJPG()
9747 OStringBuffer aLine(1024); in writeBitmapObject() local
9748 aLine.append( rObject.m_nObject ); in writeBitmapObject()
9749 aLine.append( " 0 obj\n" in writeBitmapObject()
9751 aLine.append( (sal_Int32)aBitmap.GetSizePixel().Width() ); in writeBitmapObject()
9752 aLine.append( "/Height " ); in writeBitmapObject()
9753 aLine.append( (sal_Int32)aBitmap.GetSizePixel().Height() ); in writeBitmapObject()
9754 aLine.append( "/BitsPerComponent " ); in writeBitmapObject()
9755 aLine.append( nBitsPerComponent ); in writeBitmapObject()
9756 aLine.append( "/Length " ); in writeBitmapObject()
9757 aLine.append( nStreamLengthObject ); in writeBitmapObject()
9758 aLine.append( " 0 R\n" ); in writeBitmapObject()
9762 aLine.append( "/Filter/FlateDecode" ); in writeBitmapObject()
9766 aLine.append( "/Filter/CCITTFaxDecode/DecodeParms<</K -1/BlackIs1 true/Columns " ); in writeBitmapObject()
9767 aLine.append( (sal_Int32)aBitmap.GetSizePixel().Width() ); in writeBitmapObject()
9768 aLine.append( ">>\n" ); in writeBitmapObject()
9773 aLine.append( "/ColorSpace" ); in writeBitmapObject()
9775 aLine.append( "/DeviceRGB\n" ); in writeBitmapObject()
9778 aLine.append( "/DeviceGray\n" ); in writeBitmapObject()
9785 aLine.append( "/Decode[1 0]\n" ); in writeBitmapObject()
9790 aLine.append( "[ /Indexed/DeviceRGB " ); in writeBitmapObject()
9791 aLine.append( (sal_Int32)(pAccess->GetPaletteEntryCount()-1) ); in writeBitmapObject()
9792 aLine.append( "\n<" ); in writeBitmapObject()
9814 appendHex(m_pEncryptionBuffer[nChar++], aLine ); in writeBitmapObject()
9815 appendHex(m_pEncryptionBuffer[nChar++], aLine ); in writeBitmapObject()
9816 appendHex(m_pEncryptionBuffer[nChar++], aLine ); in writeBitmapObject()
9825 appendHex( rColor.GetRed(), aLine ); in writeBitmapObject()
9826 appendHex( rColor.GetGreen(), aLine ); in writeBitmapObject()
9827 appendHex( rColor.GetBlue(), aLine ); in writeBitmapObject()
9830 aLine.append( ">\n]\n" ); in writeBitmapObject()
9837 aLine.append( "/ImageMask true\n" ); in writeBitmapObject()
9841 aLine.append( "/Decode[ 1 0 ]\n" ); in writeBitmapObject()
9843 aLine.append( "/Decode[ 0 1 ]\n" ); in writeBitmapObject()
9847 aLine.append( "/ColorSpace/DeviceGray\n" in writeBitmapObject()
9858 aLine.append( "/SMask " ); in writeBitmapObject()
9860 aLine.append( "/Mask " ); in writeBitmapObject()
9861 aLine.append( nMaskObject ); in writeBitmapObject()
9862 aLine.append( " 0 R\n" ); in writeBitmapObject()
9866 aLine.append( "/Mask[ " ); in writeBitmapObject()
9869 aLine.append( (sal_Int32)aTransparentColor.GetRed() ); in writeBitmapObject()
9870 aLine.append( ' ' ); in writeBitmapObject()
9871 aLine.append( (sal_Int32)aTransparentColor.GetRed() ); in writeBitmapObject()
9872 aLine.append( ' ' ); in writeBitmapObject()
9873 aLine.append( (sal_Int32)aTransparentColor.GetGreen() ); in writeBitmapObject()
9874 aLine.append( ' ' ); in writeBitmapObject()
9875 aLine.append( (sal_Int32)aTransparentColor.GetGreen() ); in writeBitmapObject()
9876 aLine.append( ' ' ); in writeBitmapObject()
9877 aLine.append( (sal_Int32)aTransparentColor.GetBlue() ); in writeBitmapObject()
9878 aLine.append( ' ' ); in writeBitmapObject()
9879 aLine.append( (sal_Int32)aTransparentColor.GetBlue() ); in writeBitmapObject()
9884 aLine.append( nIndex ); in writeBitmapObject()
9886 aLine.append( " ]\n" ); in writeBitmapObject()
9892 aLine.append( ">>\n" in writeBitmapObject()
9894 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in writeBitmapObject()
9939 aLine.setLength( 0 ); in writeBitmapObject()
9940 aLine.append( "\nendstream\nendobj\n\n" ); in writeBitmapObject()
9941 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in writeBitmapObject()
9943 aLine.setLength( 0 ); in writeBitmapObject()
9944 aLine.append( nStreamLengthObject ); in writeBitmapObject()
9945 aLine.append( " 0 obj\n" ); in writeBitmapObject()
9946 aLine.append( (sal_Int64)(nEndPos-nStartPos) ); in writeBitmapObject()
9947 aLine.append( "\nendobj\n\n" ); in writeBitmapObject()
9948 CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) ); in writeBitmapObject()
9965 OStringBuffer aLine( 80 ); in drawJPGBitmap() local
10023 aLine.append( "q " ); in drawJPGBitmap()
10025 …m_aPages.back().appendMappedLength( (sal_Int32)rTargetArea.GetWidth(), aLine, false, &nCheckWidth … in drawJPGBitmap()
10026 aLine.append( " 0 0 " ); in drawJPGBitmap()
10028 …m_aPages.back().appendMappedLength( (sal_Int32)rTargetArea.GetHeight(), aLine, true, &nCheckHeight… in drawJPGBitmap()
10029 aLine.append( ' ' ); in drawJPGBitmap()
10030 m_aPages.back().appendPoint( rTargetArea.BottomLeft(), aLine ); in drawJPGBitmap()
10031 aLine.append( " cm\n/Im" ); in drawJPGBitmap()
10032 aLine.append( it->m_nObject ); in drawJPGBitmap()
10033 aLine.append( " Do Q\n" ); in drawJPGBitmap()
10037 aLine.setLength( 0 ); in drawJPGBitmap()
10038 aLine.append( "\n%jpeg image /Im" ); in drawJPGBitmap()
10039 aLine.append( it->m_nObject ); in drawJPGBitmap()
10040 aLine.append( " scaled to zero size, omitted\n" ); in drawJPGBitmap()
10042 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawJPGBitmap()
10053 OStringBuffer aLine( 80 ); in drawBitmap() local
10056 aLine.append( "q " ); in drawBitmap()
10059 appendNonStrokingColor( rFillColor, aLine ); in drawBitmap()
10060 aLine.append( ' ' ); in drawBitmap()
10063 m_aPages.back().appendMappedLength( (sal_Int32)rDestSize.Width(), aLine, false, &nCheckWidth ); in drawBitmap()
10064 aLine.append( " 0 0 " ); in drawBitmap()
10066 m_aPages.back().appendMappedLength( (sal_Int32)rDestSize.Height(), aLine, true, &nCheckHeight ); in drawBitmap()
10067 aLine.append( ' ' ); in drawBitmap()
10068 m_aPages.back().appendPoint( rDestPoint + Point( 0, rDestSize.Height()-1 ), aLine ); in drawBitmap()
10069 aLine.append( " cm\n/Im" ); in drawBitmap()
10070 aLine.append( rBitmap.m_nObject ); in drawBitmap()
10071 aLine.append( " Do Q\n" ); in drawBitmap()
10075 aLine.setLength( 0 ); in drawBitmap()
10076 aLine.append( "\n%bitmap image /Im" ); in drawBitmap()
10077 aLine.append( rBitmap.m_nObject ); in drawBitmap()
10078 aLine.append( " scaled to zero size, omitted\n" ); in drawBitmap()
10080 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawBitmap()
10227 OStringBuffer aLine( 80 ); in drawGradient() local
10228 aLine.append( "q 1 0 0 1 " ); in drawGradient()
10229 m_aPages.back().appendPoint( aTranslate, aLine ); in drawGradient()
10230 aLine.append( " cm " ); in drawGradient()
10233 aLine.append( "q " ); in drawGradient()
10234 aLine.append( "0 0 " ); in drawGradient()
10235 m_aPages.back().appendMappedLength( (sal_Int32)rRect.GetWidth(), aLine, false ); in drawGradient()
10236 aLine.append( ' ' ); in drawGradient()
10237 m_aPages.back().appendMappedLength( (sal_Int32)rRect.GetHeight(), aLine, true ); in drawGradient()
10238 aLine.append( " re W n\n" ); in drawGradient()
10240 aLine.append( "/P" ); in drawGradient()
10241 aLine.append( nGradient ); in drawGradient()
10242 aLine.append( " sh " ); in drawGradient()
10245 aLine.append( "Q 0 0 " ); in drawGradient()
10246 m_aPages.back().appendMappedLength( (sal_Int32)rRect.GetWidth(), aLine, false ); in drawGradient()
10247 aLine.append( ' ' ); in drawGradient()
10248 m_aPages.back().appendMappedLength( (sal_Int32)rRect.GetHeight(), aLine, true ); in drawGradient()
10249 aLine.append( " re S " ); in drawGradient()
10251 aLine.append( "Q\n" ); in drawGradient()
10252 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawGradient()
10273 OStringBuffer aLine( 80*nPolygons ); in drawGradient() local
10274 aLine.append( "q " ); in drawGradient()
10276 m_aPages.back().appendPolyPolygon( rPolyPoly, aLine ); in drawGradient()
10277 aLine.append( "W* n\n" ); in drawGradient()
10278 aLine.append( "1 0 0 1 " ); in drawGradient()
10279 m_aPages.back().appendPoint( aTranslate, aLine ); in drawGradient()
10280 aLine.append( " cm\n" ); in drawGradient()
10281 aLine.append( "/P" ); in drawGradient()
10282 aLine.append( nGradient ); in drawGradient()
10283 aLine.append( " sh Q\n" ); in drawGradient()
10287 m_aPages.back().appendPolyPolygon( rPolyPoly, aLine ); in drawGradient()
10288 aLine.append( "S\n" ); in drawGradient()
10290 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawGradient()
10423 OStringBuffer aLine( 100 ); in drawWallpaper() local
10424 aLine.append( "q /Pattern cs /" ); in drawWallpaper()
10425 aLine.append( aPatternName ); in drawWallpaper()
10426 aLine.append( " scn " ); in drawWallpaper()
10427 m_aPages.back().appendRect( rRect, aLine ); in drawWallpaper()
10428 aLine.append( " f Q\n" ); in drawWallpaper()
10429 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawWallpaper()
10470 OStringBuffer aLine( 20 ); in drawWallpaper() local
10471 aLine.append( "q " ); in drawWallpaper()
10472 m_aPages.back().appendRect( rRect, aLine ); in drawWallpaper()
10473 aLine.append( " W n\n" ); in drawWallpaper()
10474 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawWallpaper()
10571 OStringBuffer aLine( 512 ); in drawPolyPolygon() local
10572 aLine.append( nXObject ); in drawPolyPolygon()
10573 aLine.append( " 0 obj\n" in drawPolyPolygon()
10575 appendFixedInt( aConvObjRect.GetWidth(), aLine ); in drawPolyPolygon()
10576 aLine.append( ' ' ); in drawPolyPolygon()
10577 appendFixedInt( aConvObjRect.GetHeight(), aLine ); in drawPolyPolygon()
10578 aLine.append( "]/Length " ); in drawPolyPolygon()
10579 aLine.append( nStreamLen ); in drawPolyPolygon()
10581 aLine.append( "/Filter/FlateDecode" ); in drawPolyPolygon()
10582 aLine.append( ">>\n" in drawPolyPolygon()
10584 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawPolyPolygon()
10591 OStringBuffer aLine( 80 ); in drawPolyPolygon() local
10592 aLine.append( "q 1 0 0 1 " ); in drawPolyPolygon()
10593 m_aPages.back().appendPoint( aObjRect.BottomLeft(), aLine ); in drawPolyPolygon()
10594 aLine.append( " cm/" ); in drawPolyPolygon()
10595 aLine.append( aObjName ); in drawPolyPolygon()
10596 aLine.append( " Do Q\n" ); in drawPolyPolygon()
10597 writeBuffer( aLine.getStr(), aLine.getLength() ); in drawPolyPolygon()
10602 OStringBuffer aLine( 256 ); in updateGraphicsState() local
10615 aLine.append( "Q " ); in updateGraphicsState()
10628 aLine.append( "q " ); in updateGraphicsState()
10629 m_aPages.back().appendPolyPolygon( rNewState.m_aClipRegion, aLine ); in updateGraphicsState()
10630 aLine.append( "W* n\n" ); in updateGraphicsState()
10669 appendStrokingColor( rNewState.m_aLineColor, aLine ); in updateGraphicsState()
10670 aLine.append( "\n" ); in updateGraphicsState()
10680 appendNonStrokingColor( rNewState.m_aFillColor, aLine ); in updateGraphicsState()
10681 aLine.append( "\n" ); in updateGraphicsState()
10696 if( aLine.getLength() ) in updateGraphicsState()
10697 writeBuffer( aLine.getStr(), aLine.getLength() ); in updateGraphicsState()
11090 OStringBuffer aLine( 128 ); in beginStructureElementMCSeq() local
11092 aLine.append( "/" ); in beginStructureElementMCSeq()
11094 aLine.append( rEle.m_aAlias ); in beginStructureElementMCSeq()
11096 aLine.append( getStructureTag( rEle.m_eType ) ); in beginStructureElementMCSeq()
11097 aLine.append( "<</MCID " ); in beginStructureElementMCSeq()
11098 aLine.append( nMCID ); in beginStructureElementMCSeq()
11099 aLine.append( ">>BDC\n" ); in beginStructureElementMCSeq()
11100 writeBuffer( aLine.getStr(), aLine.getLength() ); in beginStructureElementMCSeq()
11122 OStringBuffer aLine( 128 ); in beginStructureElementMCSeq() local
11123 aLine.append( "/Artifact BMC\n" ); in beginStructureElementMCSeq()
11124 writeBuffer( aLine.getStr(), aLine.getLength() ); in beginStructureElementMCSeq()
11225 OStringBuffer aLine( "beginStructureElement " ); in beginStructureElement() local
11226 aLine.append( m_nCurrentStructElement ); in beginStructureElement()
11227 aLine.append( ": " ); in beginStructureElement()
11228 aLine.append( getStructureTag( eType ) ); in beginStructureElement()
11231 aLine.append( " aliased as \"" ); in beginStructureElement()
11232 aLine.append( rEle.m_aAlias ); in beginStructureElement()
11233 aLine.append( '\"' ); in beginStructureElement()
11235 emitComment( aLine.getStr() ); in beginStructureElement()
11269 OStringBuffer aLine( "endStructureElement " ); in endStructureElement() local
11270 aLine.append( m_nCurrentStructElement ); in endStructureElement()
11271 aLine.append( ": " ); in endStructureElement()
11272 aLine.append( getStructureTag( m_aStructure[ m_nCurrentStructElement ].m_eType ) ); in endStructureElement()
11275 aLine.append( " aliased as \"" ); in endStructureElement()
11276 aLine.append( m_aStructure[ m_nCurrentStructElement ].m_aAlias ); in endStructureElement()
11277 aLine.append( '\"' ); in endStructureElement()
11289 emitComment( aLine.getStr() ); in endStructureElement()
11407 OStringBuffer aLine( "setCurrentStructureElement " ); in setCurrentStructureElement() local
11408 aLine.append( m_nCurrentStructElement ); in setCurrentStructureElement()
11409 aLine.append( ": " ); in setCurrentStructureElement()
11410 aLine.append( getStructureTag( m_aStructure[ m_nCurrentStructElement ].m_eType ) ); in setCurrentStructureElement()
11413 aLine.append( " aliased as \"" ); in setCurrentStructureElement()
11414 aLine.append( m_aStructure[ m_nCurrentStructElement ].m_aAlias ); in setCurrentStructureElement()
11415 aLine.append( '\"' ); in setCurrentStructureElement()
11418 aLine.append( " (inside NonStruct)" ); in setCurrentStructureElement()
11419 emitComment( aLine.getStr() ); in setCurrentStructureElement()