Lines Matching refs:aWriter

127     PDFWriter aWriter( aContext );  in doTestCode()  local
128 aWriter.NewPage( 595, 842 ); in doTestCode()
129 aWriter.BeginStructureElement( PDFWriter::Document ); in doTestCode()
131 aWriter.SetAutoAdvanceTime( 3 ); in doTestCode()
132 aWriter.SetMapMode( MapMode( MAP_100TH_MM ) ); in doTestCode()
134 aWriter.SetFillColor( Color( COL_LIGHTRED ) ); in doTestCode()
135 aWriter.SetLineColor( Color( COL_LIGHTGREEN ) ); in doTestCode()
136 aWriter.DrawRect( Rectangle( Point( 2000, 200 ), Size( 8000, 3000 ) ), 5000, 2000 ); in doTestCode()
138 aWriter.SetFont( Font( String( RTL_CONSTASCII_USTRINGPARAM( "Times" ) ), Size( 0, 500 ) ) ); in doTestCode()
139 aWriter.SetTextColor( Color( COL_BLACK ) ); in doTestCode()
140 aWriter.SetLineColor( Color( COL_BLACK ) ); in doTestCode()
141 aWriter.SetFillColor( Color( COL_LIGHTBLUE ) ); in doTestCode()
144 aWriter.DrawRect( aRect ); in doTestCode()
145 aWriter.DrawText( aRect, String( RTL_CONSTASCII_USTRINGPARAM( "Link annot 1" ) ) ); in doTestCode()
146 sal_Int32 nFirstLink = aWriter.CreateLink( aRect ); in doTestCode()
150aWriter.CreateNote( Rectangle( Point( aRect.Right(), aRect.Top() ), Size( 6000, 3000 ) ), aNote ); in doTestCode()
153 aWriter.SetFillColor( Color( COL_LIGHTGREEN ) ); in doTestCode()
154 aWriter.DrawRect( aTargetRect ); in doTestCode()
155 aWriter.DrawText( aTargetRect, String( RTL_CONSTASCII_USTRINGPARAM( "Dest second link" ) ) ); in doTestCode()
156 sal_Int32 nSecondDest = aWriter.CreateDest( aTargetRect ); in doTestCode()
158 aWriter.BeginStructureElement( PDFWriter::Section ); in doTestCode()
159 aWriter.BeginStructureElement( PDFWriter::Heading ); in doTestCode()
160aWriter.DrawText( Point(4500, 9000), String( RTL_CONSTASCII_USTRINGPARAM( "A small structure test"… in doTestCode()
161 aWriter.EndStructureElement(); in doTestCode()
162 aWriter.BeginStructureElement( PDFWriter::Paragraph ); in doTestCode()
163 aWriter.SetStructureAttribute( PDFWriter::WritingMode, PDFWriter::LrTb ); in doTestCode()
164 aWriter.SetStructureAttribute( PDFWriter::TextDecorationType, PDFWriter::Underline ); in doTestCode()
165 aWriter.DrawText( Rectangle( Point( 4500, 10000 ), Size( 12000, 6000 ) ), in doTestCode()
169aWriter.SetActualText( String( RTL_CONSTASCII_USTRINGPARAM( "It was the best of PDF, it was the wo… in doTestCode()
170aWriter.SetAlternateText( String( RTL_CONSTASCII_USTRINGPARAM( "This paragraph contains some lengt… in doTestCode()
171 aWriter.EndStructureElement(); in doTestCode()
172 sal_Int32 nLongPara = aWriter.BeginStructureElement( PDFWriter::Paragraph ); in doTestCode()
173 aWriter.SetStructureAttribute( PDFWriter::WritingMode, PDFWriter::LrTb ); in doTestCode()
174 aWriter.DrawText( Rectangle( Point( 4500, 19000 ), Size( 12000, 1000 ) ), in doTestCode()
179 aWriter.NewPage( 595, 842 ); in doTestCode()
181aWriter.AddStream( String( RTL_CONSTASCII_USTRINGPARAM( "text/plain" ) ), new PDFTestOutputStream(… in doTestCode()
183 aWriter.SetPageTransition( PDFWriter::WipeRightToLeft, 1500 ); in doTestCode()
184 aWriter.SetMapMode( MapMode( MAP_100TH_MM ) ); in doTestCode()
185 aWriter.SetTextColor( Color( COL_BLACK ) ); in doTestCode()
186 aWriter.SetFont( Font( String( RTL_CONSTASCII_USTRINGPARAM( "Times" ) ), Size( 0, 500 ) ) ); in doTestCode()
187 aWriter.DrawText( Rectangle( Point( 4500, 1500 ), Size( 12000, 3000 ) ), in doTestCode()
191 aWriter.EndStructureElement(); in doTestCode()
193 aWriter.SetFillColor( Color( COL_LIGHTBLUE ) ); in doTestCode()
195 aWriter.BeginStructureElement( PDFWriter::NonStructElement ); in doTestCode()
196 aWriter.DrawRect( aRect ); in doTestCode()
197 aWriter.BeginStructureElement( PDFWriter::Paragraph ); in doTestCode()
198 aWriter.DrawText( aRect, String( RTL_CONSTASCII_USTRINGPARAM( "Link annot 2" ) ) ); in doTestCode()
199 sal_Int32 nSecondLink = aWriter.CreateLink( aRect ); in doTestCode()
201 aWriter.SetFillColor( Color( COL_LIGHTGREEN ) ); in doTestCode()
202 aWriter.BeginStructureElement( PDFWriter::ListItem ); in doTestCode()
203 aWriter.DrawRect( aTargetRect ); in doTestCode()
204 aWriter.DrawText( aTargetRect, String( RTL_CONSTASCII_USTRINGPARAM( "Dest first link" ) ) ); in doTestCode()
205 sal_Int32 nFirstDest = aWriter.CreateDest( aTargetRect ); in doTestCode()
207 aWriter.EndStructureElement(); in doTestCode()
209 sal_Int32 nSaveStruct = aWriter.GetCurrentStructureElement(); in doTestCode()
210 aWriter.SetCurrentStructureElement( nLongPara ); in doTestCode()
211 aWriter.DrawText( Rectangle( Point( 4500,4500 ), Size( 12000, 1000 ) ), in doTestCode()
214 aWriter.SetCurrentStructureElement( nSaveStruct ); in doTestCode()
215 aWriter.EndStructureElement(); in doTestCode()
216 aWriter.EndStructureElement(); in doTestCode()
217 aWriter.BeginStructureElement( PDFWriter::Figure ); in doTestCode()
218 aWriter.BeginStructureElement( PDFWriter::Caption ); in doTestCode()
219aWriter.DrawText( Point( 4500, 9000 ), String( RTL_CONSTASCII_USTRINGPARAM( "Some drawing stuff in… in doTestCode()
220 aWriter.EndStructureElement(); in doTestCode()
233 aWriter.Push( PUSH_CLIPREGION | PUSH_FILLCOLOR ); in doTestCode()
234 aWriter.SetClipRegion( aClip ); in doTestCode()
235 aWriter.DrawEllipse( Rectangle( Point( 4500, 9600 ), Size( 12000, 3000 ) ) ); in doTestCode()
236 aWriter.MoveClipRegion( 1000, 500 ); in doTestCode()
237 aWriter.SetFillColor( Color( COL_RED ) ); in doTestCode()
238 aWriter.DrawEllipse( Rectangle( Point( 4500, 9600 ), Size( 12000, 3000 ) ) ); in doTestCode()
239 aWriter.Pop(); in doTestCode()
243 aWriter.SetFillColor( Color( COL_LIGHTRED ) ); in doTestCode()
244 aWriter.DrawRect( aTranspRect ); in doTestCode()
245 aWriter.BeginTransparencyGroup(); in doTestCode()
247 aWriter.SetFillColor( Color( COL_LIGHTGREEN ) ); in doTestCode()
248 aWriter.DrawEllipse( aTranspRect ); in doTestCode()
249 aWriter.SetTextColor( Color( COL_LIGHTBLUE ) ); in doTestCode()
250 aWriter.DrawText( aTranspRect, in doTestCode()
254 aWriter.EndTransparencyGroup( aTranspRect, 50 ); in doTestCode()
266 aWriter.DrawBitmap( Point( 600, 13500 ), Size( 3000, 3000 ), aTransMask ); in doTestCode()
269 aWriter.SetFillColor( Color( COL_LIGHTRED ) ); in doTestCode()
270 aWriter.DrawRect( aTranspRect ); in doTestCode()
271 aWriter.SetFillColor( Color( COL_LIGHTGREEN ) ); in doTestCode()
272 aWriter.DrawEllipse( aTranspRect ); in doTestCode()
273 aWriter.SetTextColor( Color( COL_LIGHTBLUE ) ); in doTestCode()
274 aWriter.DrawText( aTranspRect, in doTestCode()
278 aWriter.SetFillColor( Color( COL_LIGHTRED ) ); in doTestCode()
279 aWriter.DrawRect( aTranspRect ); in doTestCode()
280 aWriter.BeginTransparencyGroup(); in doTestCode()
281 aWriter.SetFillColor( Color( COL_LIGHTGREEN ) ); in doTestCode()
282 aWriter.DrawEllipse( aTranspRect ); in doTestCode()
283 aWriter.SetTextColor( Color( COL_LIGHTBLUE ) ); in doTestCode()
284 aWriter.DrawText( aTranspRect, in doTestCode()
287 aWriter.EndTransparencyGroup( aTranspRect, aTransMask ); in doTestCode()
295 aWriter.DrawBitmapEx( Point( 1500, 19500 ), Size( 4800, 3000 ), aBmpEx ); in doTestCode()
298 aWriter.EndStructureElement(); in doTestCode()
299 aWriter.EndStructureElement(); in doTestCode()
311 aWriter.SetLineColor( Color( COL_BLUE ) ); in doTestCode()
312 aWriter.SetFillColor(); in doTestCode()
313 aWriter.DrawPolyLine( aLIPoly, aLI ); in doTestCode()
317 aWriter.DrawPolyLine( aLIPoly, aLI ); in doTestCode()
319 aWriter.NewPage( 595, 842 ); in doTestCode()
320 aWriter.SetMapMode( MapMode( MAP_100TH_MM ) ); in doTestCode()
323 aWriter.DrawWallpaper( Rectangle( Point( 4400, 4200 ), Size( 10200, 6300 ) ), aWall ); in doTestCode()
325 aWriter.Push( PUSH_ALL ); in doTestCode()
326 aWriter.BeginPattern(Rectangle(Point(0,0),Size(2000,1000))); in doTestCode()
327 aWriter.SetFillColor( Color( COL_RED ) ); in doTestCode()
328 aWriter.SetLineColor( Color( COL_LIGHTBLUE ) ); in doTestCode()
332 aWriter.DrawPolygon( Polygon( 3, aFillPoints ) ); in doTestCode()
333 aWriter.DrawBitmap( Point( 200, 200 ), Size( 1600, 600 ), aTransMask ); in doTestCode()
334aWriter.DrawText( Rectangle( Point( 200, 200 ), Size( 1600, 600 ) ), String( RTL_CONSTASCII_USTRIN… in doTestCode()
335 sal_Int32 nPattern = aWriter.EndPattern( SvtGraphicFill::Transform() ); in doTestCode()
336 aWriter.Pop(); in doTestCode()
338 aWriter.DrawPolyPolygon( PolyPolygon( Polygon( aPolyRect ) ), nPattern, true ); in doTestCode()
339 aWriter.SetFillColor(); in doTestCode()
340 aWriter.SetLineColor( Color( COL_LIGHTBLUE ) ); in doTestCode()
341 aWriter.DrawRect( aPolyRect ); in doTestCode()
343 aWriter.NewPage( 595, 842 ); in doTestCode()
344 aWriter.SetMapMode( MapMode( MAP_100TH_MM ) ); in doTestCode()
345 aWriter.SetFont( Font( String( RTL_CONSTASCII_USTRINGPARAM( "Times" ) ), Size( 0, 500 ) ) ); in doTestCode()
346 aWriter.SetTextColor( Color( COL_BLACK ) ); in doTestCode()
348 aWriter.DrawRect( aRect ); in doTestCode()
349 aWriter.DrawText( aRect, String( RTL_CONSTASCII_USTRINGPARAM( "www.heise.de" ) ) ); in doTestCode()
350 sal_Int32 nURILink = aWriter.CreateLink( aRect ); in doTestCode()
351aWriter.SetLinkURL( nURILink, OUString( RTL_CONSTASCII_USTRINGPARAM( "http://www.heise.de" ) ) ); in doTestCode()
353 aWriter.SetLinkDest( nFirstLink, nFirstDest ); in doTestCode()
354 aWriter.SetLinkDest( nSecondLink, nSecondDest ); in doTestCode()
363 aWriter.CreateControl( aBtn ); in doTestCode()
373 aWriter.CreateControl( aUriBtn ); in doTestCode()
383 aWriter.CreateControl( aDstBtn ); in doTestCode()
392 aWriter.CreateControl( aCBox ); in doTestCode()
402 aWriter.CreateControl( aCBox2 ); in doTestCode()
417 aWriter.CreateControl( aRB1 ); in doTestCode()
426 aWriter.CreateControl( aRB2 ); in doTestCode()
435 aWriter.CreateControl( aRB3 ); in doTestCode()
446 aWriter.CreateControl( aEditBox ); in doTestCode()
464 aWriter.CreateControl( aLstBox ); in doTestCode()
470 aWriter.CreateControl( aLstBox ); in doTestCode()
480 aWriter.CreateControl( aComboBox ); in doTestCode()
483 sal_Int32 nPage1OL = aWriter.CreateOutlineItem(); in doTestCode()
484 aWriter.SetOutlineItemText( nPage1OL, OUString( RTL_CONSTASCII_USTRINGPARAM( "Page 1" ) ) ); in doTestCode()
485 aWriter.SetOutlineItemDest( nPage1OL, nSecondDest ); in doTestCode()
486aWriter.CreateOutlineItem( nPage1OL, OUString( RTL_CONSTASCII_USTRINGPARAM( "Dest 2" ) ), nSecondD… in doTestCode()
487aWriter.CreateOutlineItem( nPage1OL, OUString( RTL_CONSTASCII_USTRINGPARAM( "Dest 2 revisited" ) )… in doTestCode()
488aWriter.CreateOutlineItem( nPage1OL, OUString( RTL_CONSTASCII_USTRINGPARAM( "Dest 2 again" ) ), nS… in doTestCode()
489 sal_Int32 nPage2OL = aWriter.CreateOutlineItem(); in doTestCode()
490 aWriter.SetOutlineItemText( nPage2OL, OUString( RTL_CONSTASCII_USTRINGPARAM( "Page 2" ) ) ); in doTestCode()
491aWriter.CreateOutlineItem( nPage2OL, OUString( RTL_CONSTASCII_USTRINGPARAM( "Dest 1" ) ), nFirstDe… in doTestCode()
493 aWriter.EndStructureElement(); // close document in doTestCode()
494 aWriter.Emit(); in doTestCode()