LibreOffice Module vcl (master)  1
pdfwriter.cxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #include "pdfwriter_impl.hxx"
21 #include <vcl/bitmapex.hxx>
22 
23 using namespace vcl;
24 
26 {
27 }
28 
29 PDFWriter::PDFWriter( const PDFWriter::PDFWriterContext& rContext, const css::uno::Reference< css::beans::XMaterialHolder >& xEnc )
30  :
31  xImplementation( VclPtr<PDFWriterImpl>::Create(rContext, xEnc, *this) )
32 {
33 }
34 
36 {
37 }
38 
40 {
41  return xImplementation.get();
42 }
43 
44 void PDFWriter::NewPage( double nPageWidth, double nPageHeight, Orientation eOrientation )
45 {
46  xImplementation->newPage( nPageWidth, nPageHeight, eOrientation );
47 }
48 
50 {
51  return xImplementation->emit();
52 }
53 
54 void PDFWriter::SetDocumentLocale( const css::lang::Locale& rLoc )
55 {
56  xImplementation->setDocumentLocale( rLoc );
57 }
58 
59 void PDFWriter::SetFont( const vcl::Font& rFont )
60 {
61  xImplementation->setFont( rFont );
62 }
63 
64 void PDFWriter::DrawText( const Point& rPos, const OUString& rText )
65 {
66  xImplementation->drawText( rPos, rText, 0, rText.getLength() );
67 }
68 
70  const Point& rPos,
71  long nWidth,
72  FontStrikeout eStrikeout,
73  FontLineStyle eUnderline,
74  FontLineStyle eOverline )
75 {
76  xImplementation->drawTextLine( rPos, nWidth, eStrikeout, eUnderline, eOverline, false/*bUnderlineAbove*/ );
77 }
78 
80  const Point& rStartPt,
81  const OUString& rStr,
82  const long* pDXAry,
83  sal_Int32 nIndex,
84  sal_Int32 nLen )
85 {
86  xImplementation->drawTextArray( rStartPt, rStr, pDXAry, nIndex, nLen );
87 }
88 
90  const Point& rStartPt,
91  sal_uLong nWidth,
92  const OUString& rStr,
93  sal_Int32 nIndex,
94  sal_Int32 nLen )
95 {
96  xImplementation->drawStretchText( rStartPt, nWidth, rStr, nIndex, nLen );
97 }
98 
100  const tools::Rectangle& rRect,
101  const OUString& rStr,
102  DrawTextFlags nStyle )
103 {
104  xImplementation->drawText( rRect, rStr, nStyle );
105 }
106 
107 void PDFWriter::DrawLine( const Point& rStart, const Point& rStop )
108 {
109  xImplementation->drawLine( rStart, rStop );
110 }
111 
112 void PDFWriter::DrawLine( const Point& rStart, const Point& rStop, const LineInfo& rInfo )
113 {
114  xImplementation->drawLine( rStart, rStop, rInfo );
115 }
116 
118 {
119  xImplementation->drawPolygon( rPoly );
120 }
121 
123 {
124  xImplementation->drawPolyLine( rPoly );
125 }
126 
128 {
129  xImplementation->drawRectangle( rRect );
130 }
131 
132 void PDFWriter::DrawRect( const tools::Rectangle& rRect, sal_uLong nHorzRound, sal_uLong nVertRound )
133 {
134  xImplementation->drawRectangle( rRect, nHorzRound, nVertRound );
135 }
136 
138 {
139  xImplementation->drawEllipse( rRect );
140 }
141 
142 void PDFWriter::DrawArc( const tools::Rectangle& rRect, const Point& rStart, const Point& rStop )
143 {
144  xImplementation->drawArc( rRect, rStart, rStop, false, false );
145 }
146 
147 void PDFWriter::DrawPie( const tools::Rectangle& rRect, const Point& rStart, const Point& rStop )
148 {
149  xImplementation->drawArc( rRect, rStart, rStop, true, false );
150 }
151 
152 void PDFWriter::DrawChord( const tools::Rectangle& rRect, const Point& rStart, const Point& rStop )
153 {
154  xImplementation->drawArc( rRect, rStart, rStop, false, true );
155 }
156 
157 void PDFWriter::DrawPolyLine( const tools::Polygon& rPoly, const LineInfo& rInfo )
158 {
159  xImplementation->drawPolyLine( rPoly, rInfo );
160 }
161 
162 void PDFWriter::DrawPolyLine( const tools::Polygon& rPoly, const ExtLineInfo& rInfo )
163 {
164  xImplementation->drawPolyLine( rPoly, rInfo );
165 }
166 
168 {
169  xImplementation->drawPolyPolygon( rPolyPoly );
170 }
171 
172 void PDFWriter::DrawPixel( const Point& rPos, const Color& rColor )
173 {
174  xImplementation->drawPixel( rPos, rColor );
175 }
176 
177 void PDFWriter::DrawBitmap( const Point& rDestPt, const Size& rDestSize, const Bitmap& rBitmap, const Graphic& rGraphic )
178 {
179  xImplementation->drawBitmap( rDestPt, rDestSize, rBitmap, rGraphic );
180 }
181 
182 void PDFWriter::DrawBitmapEx( const Point& rDestPt, const Size& rDestSize, const BitmapEx& rBitmap )
183 {
184  xImplementation->drawBitmap( rDestPt, rDestSize, rBitmap );
185 }
186 
187 void PDFWriter::DrawHatch( const tools::PolyPolygon& rPolyPoly, const Hatch& rHatch )
188 {
189  xImplementation->drawHatch( rPolyPoly, rHatch );
190 }
191 
192 void PDFWriter::DrawGradient( const tools::Rectangle& rRect, const Gradient& rGradient )
193 {
194  xImplementation->drawGradient( rRect, rGradient );
195 }
196 
197 void PDFWriter::DrawGradient( const tools::PolyPolygon& rPolyPoly, const Gradient& rGradient )
198 {
200  xImplementation->setClipRegion( rPolyPoly.getB2DPolyPolygon() );
201  xImplementation->drawGradient( rPolyPoly.GetBoundRect(), rGradient );
202  xImplementation->pop();
203 }
204 
205 void PDFWriter::DrawWallpaper( const tools::Rectangle& rRect, const Wallpaper& rWallpaper )
206 {
207  xImplementation->drawWallpaper( rRect, rWallpaper );
208 }
209 
210 void PDFWriter::DrawTransparent( const tools::PolyPolygon& rPolyPoly, sal_uInt16 nTransparencePercent )
211 {
212  xImplementation->drawTransparent( rPolyPoly, nTransparencePercent );
213 }
214 
216 {
217  xImplementation->beginTransparencyGroup();
218 }
219 
220 void PDFWriter::EndTransparencyGroup( const tools::Rectangle& rRect, sal_uInt16 nTransparentPercent )
221 {
222  xImplementation->endTransparencyGroup( rRect, nTransparentPercent );
223 }
224 
226 {
227  xImplementation->push( nFlags );
228 }
229 
231 {
232  xImplementation->pop();
233 }
234 
235 void PDFWriter::SetMapMode( const MapMode& rMapMode )
236 {
237  xImplementation->setMapMode( rMapMode );
238 }
239 
240 void PDFWriter::SetLineColor( const Color& rColor )
241 {
242  xImplementation->setLineColor( rColor );
243 }
244 
245 void PDFWriter::SetFillColor( const Color& rColor )
246 {
247  xImplementation->setFillColor( rColor );
248 }
249 
251 {
252  xImplementation->clearClipRegion();
253 }
254 
256 {
257  xImplementation->setClipRegion( rRegion );
258 }
259 
260 void PDFWriter::MoveClipRegion( long nHorzMove, long nVertMove )
261 {
262  xImplementation->moveClipRegion( nHorzMove, nVertMove );
263 }
264 
266 {
267  xImplementation->intersectClipRegion( rRegion );
268 }
269 
271 {
272  xImplementation->intersectClipRegion( rRect );
273 }
274 
276 {
277  xImplementation->setLayoutMode( nMode );
278 }
279 
281 {
282  xImplementation->setDigitLanguage( eLang );
283 }
284 
285 void PDFWriter::SetTextColor( const Color& rColor )
286 {
287  xImplementation->setTextColor( rColor );
288 }
289 
291 {
292  xImplementation->setTextFillColor();
293 }
294 
295 void PDFWriter::SetTextFillColor( const Color& rColor )
296 {
297  xImplementation->setTextFillColor( rColor );
298 }
299 
301 {
302  xImplementation->setTextLineColor();
303 }
304 
305 void PDFWriter::SetTextLineColor( const Color& rColor )
306 {
307  xImplementation->setTextLineColor( rColor );
308 }
309 
311 {
312  xImplementation->setOverlineColor();
313 }
314 
315 void PDFWriter::SetOverlineColor( const Color& rColor )
316 {
317  xImplementation->setOverlineColor( rColor );
318 }
319 
321 {
322  xImplementation->setTextAlign( eAlign );
323 }
324 
325 void PDFWriter::DrawJPGBitmap( SvStream& rStreamData, bool bIsTrueColor, const Size& rSrcSizePixel, const tools::Rectangle& rTargetArea, const Bitmap& rMask, const Graphic& rGraphic )
326 {
327  xImplementation->drawJPGBitmap( rStreamData, bIsTrueColor, rSrcSizePixel, rTargetArea, rMask, rGraphic );
328 }
329 
330 sal_Int32 PDFWriter::CreateLink( const tools::Rectangle& rRect, sal_Int32 nPageNr )
331 {
332  return xImplementation->createLink( rRect, nPageNr );
333 }
334 
335 sal_Int32 PDFWriter::CreateScreen(const tools::Rectangle& rRect, sal_Int32 nPageNr)
336 {
337  return xImplementation->createScreen(rRect, nPageNr);
338 }
339 
340 sal_Int32 PDFWriter::RegisterDestReference( sal_Int32 nDestId, const tools::Rectangle& rRect, sal_Int32 nPageNr, DestAreaType eType )
341 {
342  return xImplementation->registerDestReference( nDestId, rRect, nPageNr, eType );
343 }
344 //--->i56629
345 sal_Int32 PDFWriter::CreateNamedDest( const OUString& sDestName, const tools::Rectangle& rRect, sal_Int32 nPageNr, PDFWriter::DestAreaType eType )
346 {
347  return xImplementation->createNamedDest( sDestName, rRect, nPageNr, eType );
348 }
349 sal_Int32 PDFWriter::CreateDest( const tools::Rectangle& rRect, sal_Int32 nPageNr, PDFWriter::DestAreaType eType )
350 {
351  return xImplementation->createDest( rRect, nPageNr, eType );
352 }
353 
354 void PDFWriter::SetLinkDest( sal_Int32 nLinkId, sal_Int32 nDestId )
355 {
356  xImplementation->setLinkDest( nLinkId, nDestId );
357 }
358 
359 void PDFWriter::SetLinkURL( sal_Int32 nLinkId, const OUString& rURL )
360 {
361  xImplementation->setLinkURL( nLinkId, rURL );
362 }
363 
364 void PDFWriter::SetScreenURL(sal_Int32 nScreenId, const OUString& rURL)
365 {
366  xImplementation->setScreenURL(nScreenId, rURL);
367 }
368 
369 void PDFWriter::SetScreenStream(sal_Int32 nScreenId, const OUString& rURL)
370 {
371  xImplementation->setScreenStream(nScreenId, rURL);
372 }
373 
374 void PDFWriter::SetLinkPropertyID( sal_Int32 nLinkId, sal_Int32 nPropertyId )
375 {
376  xImplementation->setLinkPropertyId( nLinkId, nPropertyId );
377 }
378 
379 sal_Int32 PDFWriter::CreateOutlineItem( sal_Int32 nParent, const OUString& rText, sal_Int32 nDestID )
380 {
381  return xImplementation->createOutlineItem( nParent, rText, nDestID );
382 }
383 
384 void PDFWriter::CreateNote( const tools::Rectangle& rRect, const PDFNote& rNote, sal_Int32 nPageNr )
385 {
386  xImplementation->createNote( rRect, rNote, nPageNr );
387 }
388 
389 sal_Int32 PDFWriter::BeginStructureElement( PDFWriter::StructElement eType, const OUString& rAlias )
390 {
391  return xImplementation->beginStructureElement( eType, rAlias );
392 }
393 
395 {
396  xImplementation->endStructureElement();
397 }
398 
400 {
401  xImplementation->setCurrentStructureElement( nID );
402 }
403 
405 {
406  xImplementation->setStructureAttribute( eAttr, eVal );
407 }
408 
409 void PDFWriter::SetStructureAttributeNumerical( enum StructAttribute eAttr, sal_Int32 nValue )
410 {
411  xImplementation->setStructureAttributeNumerical( eAttr, nValue );
412 }
413 
415 {
416  xImplementation->setStructureBoundingBox( rRect );
417 }
418 
419 void PDFWriter::SetActualText( const OUString& rText )
420 {
421  xImplementation->setActualText( rText );
422 }
423 
424 void PDFWriter::SetAlternateText( const OUString& rText )
425 {
426  xImplementation->setAlternateText( rText );
427 }
428 
429 void PDFWriter::SetPageTransition( PDFWriter::PageTransition eType, sal_uInt32 nMilliSec, sal_Int32 nPageNr )
430 {
431  xImplementation->setPageTransition( eType, nMilliSec, nPageNr );
432 }
433 
434 sal_Int32 PDFWriter::CreateControl( const PDFWriter::AnyWidget& rControl )
435 {
436  return xImplementation->createControl( rControl );
437 }
438 
440 {
441 }
442 
443 void PDFWriter::AddStream( const OUString& rMimeType, PDFOutputStream* pStream )
444 {
445  xImplementation->addStream( rMimeType, pStream );
446 }
447 
448 std::set< PDFWriter::ErrorCode > const & PDFWriter::GetErrors() const
449 {
450  return xImplementation->getErrors();
451 }
452 
453 css::uno::Reference< css::beans::XMaterialHolder >
454 PDFWriter::InitEncryption( const OUString& i_rOwnerPassword,
455  const OUString& i_rUserPassword
456  )
457 {
458  return PDFWriterImpl::initEncryption( i_rOwnerPassword, i_rUserPassword );
459 }
460 
461 void PDFWriter::PlayMetafile( const GDIMetaFile& i_rMTF, const vcl::PDFWriter::PlayMetafileContext& i_rPlayContext, PDFExtOutDevData* i_pData )
462 {
463  xImplementation->playMetafile( i_rMTF, i_pData, i_rPlayContext );
464 }
465 
466 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void DrawTransparent(const tools::PolyPolygon &rPolyPoly, sal_uInt16 nTransparencePercent)
Definition: pdfwriter.cxx:210
void DrawChord(const tools::Rectangle &rRect, const Point &rStartPt, const Point &rEndPt)
Definition: pdfwriter.cxx:152
void DrawPie(const tools::Rectangle &rRect, const Point &rStartPt, const Point &rEndPt)
Definition: pdfwriter.cxx:147
Definition: hatch.hxx:44
void DrawBitmapEx(const Point &rDestPt, const Size &rDestSize, const BitmapEx &rBitmapEx)
Definition: pdfwriter.cxx:182
void DrawPolygon(const tools::Polygon &rPoly)
Definition: pdfwriter.cxx:117
void SetPageTransition(PageTransition eType, sal_uInt32 nMilliSec, sal_Int32 nPageNr)
Sets the transitional effect to be applied when the current page gets shown.
Definition: pdfwriter.cxx:429
A thin wrapper around rtl::Reference to implement the acquire and dispose semantics we want for refer...
Definition: button.hxx:32
void SetDigitLanguage(LanguageType eLang)
Definition: pdfwriter.cxx:280
void DrawTextLine(const Point &rPos, long nWidth, FontStrikeout eStrikeout, FontLineStyle eUnderline, FontLineStyle eOverline)
Definition: pdfwriter.cxx:69
sal_uIntPtr sal_uLong
void DrawEllipse(const tools::Rectangle &rRect)
Definition: pdfwriter.cxx:137
void MoveClipRegion(long nHorzMove, long nVertMove)
Definition: pdfwriter.cxx:260
sal_Int32 BeginStructureElement(enum StructElement eType, const OUString &rAlias)
begin a new logical structure element
Definition: pdfwriter.cxx:389
void SetTextLineColor()
Definition: pdfwriter.cxx:300
void SetActualText(const OUString &rText)
set the ActualText attribute of a structural element
Definition: pdfwriter.cxx:419
static css::uno::Reference< css::beans::XMaterialHolder > InitEncryption(const OUString &i_rOwnerPassword, const OUString &i_rUserPassword)
Definition: pdfwriter.cxx:454
void SetFont(const vcl::Font &rNewFont)
Definition: pdfwriter.cxx:59
void SetStructureBoundingBox(const tools::Rectangle &rRect)
set the bounding box of a structural element
Definition: pdfwriter.cxx:414
void DrawPolyLine(const tools::Polygon &rPoly)
Definition: pdfwriter.cxx:122
void DrawLine(const Point &rStartPt, const Point &rEndPt)
Definition: pdfwriter.cxx:107
void SetLinkPropertyID(sal_Int32 nLinkId, sal_Int32 nPropertyID)
Resolve link in logical structure.
Definition: pdfwriter.cxx:374
Play a metafile like an outputdevice would do.
Definition: pdfwriter.hxx:662
void DrawRect(const tools::Rectangle &rRect)
Definition: pdfwriter.cxx:127
void EndStructureElement()
end the current logical structure element
Definition: pdfwriter.cxx:394
void DrawPolyPolygon(const tools::PolyPolygon &rPolyPoly)
Definition: pdfwriter.cxx:167
sal_Int32 CreateNamedDest(const OUString &sDestName, const tools::Rectangle &rRect, sal_Int32 nPageNr, DestAreaType eType)
Create a new named destination to be used in a link from another PDF document.
Definition: pdfwriter.cxx:345
PDFWriter(const PDFWriter &)=delete
void DrawStretchText(const Point &rStartPt, sal_uLong nWidth, const OUString &rStr, sal_Int32 nIndex, sal_Int32 nLen)
Definition: pdfwriter.cxx:89
void DrawGradient(const tools::Rectangle &rRect, const Gradient &rGradient)
Definition: pdfwriter.cxx:192
PushFlags
Definition: outdevstate.hxx:38
void PlayMetafile(const GDIMetaFile &, const PlayMetafileContext &, vcl::PDFExtOutDevData *pDevDat=nullptr)
Definition: pdfwriter.cxx:461
void DrawJPGBitmap(SvStream &rJPGData, bool bIsTrueColor, const Size &rSrcSizePixel, const tools::Rectangle &rTargetArea, const Bitmap &rMask, const Graphic &rGraphic)
Insert a JPG encoded image (optionally with mask)
Definition: pdfwriter.cxx:325
std::set< ErrorCode > const & GetErrors() const
Definition: pdfwriter.cxx:448
void DrawArc(const tools::Rectangle &rRect, const Point &rStartPt, const Point &rEndPt)
Definition: pdfwriter.cxx:142
void NewPage(double nPageWidth, double nPageHeight, Orientation eOrientation=Orientation::Inherit)
Creates a new page to fill If width and height are not set the page size is inherited from the page t...
Definition: pdfwriter.cxx:44
void SetAlternateText(const OUString &rText)
set the Alt attribute of a strutural element
Definition: pdfwriter.cxx:424
void BeginTransparencyGroup()
Start a transparency group.
Definition: pdfwriter.cxx:215
void SetLinkDest(sal_Int32 nLinkId, sal_Int32 nDestId)
Set the destination for a link will change a URL type link to a dest link if necessary.
Definition: pdfwriter.cxx:354
ComplexTextLayoutFlags
Definition: outdevstate.hxx:66
void EndTransparencyGroup(const tools::Rectangle &rBoundRect, sal_uInt16 nTransparencePercent)
End a transparency group with constant transparency factor.
Definition: pdfwriter.cxx:220
void SetTextAlign(::TextAlign eAlign)
Definition: pdfwriter.cxx:320
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
Definition: outdev.hxx:304
void SetStructureAttributeNumerical(enum StructAttribute eAttr, sal_Int32 nValue)
set a structure attribute on the current structural element
Definition: pdfwriter.cxx:409
virtual ~PDFOutputStream()
Definition: pdfwriter.cxx:439
void AddStream(const OUString &rMimeType, PDFOutputStream *pStream)
Inserts an additional stream to the PDF file.
Definition: pdfwriter.cxx:443
void Push(PushFlags nFlags=PushFlags::ALL)
Definition: pdfwriter.cxx:225
DrawTextFlags
Definition: outdev.hxx:144
void SetMapMode(const MapMode &rNewMapMode)
Definition: pdfwriter.cxx:235
void SetLineColor()
Definition: pdfwriter.hxx:715
void DrawBitmap(const Point &rDestPt, const Size &rDestSize, const Bitmap &rBitmap, const Graphic &rGraphic)
Definition: pdfwriter.cxx:177
sal_Int32 RegisterDestReference(sal_Int32 nDestId, const tools::Rectangle &rRect, sal_Int32 nPageNr, DestAreaType eType)
creates a destination which is not intended to be referred to by a link, but by a public destination ...
Definition: pdfwriter.cxx:340
void IntersectClipRegion(const tools::Rectangle &rRect)
Definition: pdfwriter.cxx:270
void SetDocumentLocale(const css::lang::Locale &rDocLocale)
Definition: pdfwriter.cxx:54
VclPtr< PDFWriterImpl > xImplementation
Definition: pdfwriter.hxx:77
sal_Int32 CreateControl(const AnyWidget &rControlType)
create a new form control
Definition: pdfwriter.cxx:434
void SetFillColor()
Definition: pdfwriter.hxx:718
sal_Int32 CreateOutlineItem(sal_Int32 nParent, const OUString &rText, sal_Int32 nDestID)
Create a new outline item.
Definition: pdfwriter.cxx:379
void SetLayoutMode(ComplexTextLayoutFlags nMode)
Definition: pdfwriter.cxx:275
void DrawHatch(const tools::PolyPolygon &rPolyPoly, const Hatch &rHatch)
Definition: pdfwriter.cxx:187
void SetStructureAttribute(enum StructAttribute eAttr, enum StructAttributeValue eVal)
set a structure attribute on the current structural element
Definition: pdfwriter.cxx:404
OutputDevice * GetReferenceDevice()
Returns an OutputDevice for formatting This Output device is guaranteed to use the same font metrics ...
Definition: pdfwriter.cxx:39
sal_Int32 CreateLink(const tools::Rectangle &rRect, sal_Int32 nPageNr)
Create a new link on a page.
Definition: pdfwriter.cxx:330
::basegfx::B2DPolyPolygon getB2DPolyPolygon() const
void SetScreenURL(sal_Int32 nScreenId, const OUString &rURL)
Sets the URL of a linked screen annotation.
Definition: pdfwriter.cxx:364
void SetOverlineColor()
Definition: pdfwriter.cxx:310
void Create(SwFormatVertOrient &rItem, SvStream &rStrm, sal_uInt16 nVersionAbusedAsSize)
void SetLinkURL(sal_Int32 nLinkId, const OUString &rURL)
Set the URL for a link will change a dest type link to a URL type link if necessary.
Definition: pdfwriter.cxx:359
void SetTextFillColor()
Definition: pdfwriter.cxx:290
void SetTextColor(const Color &rColor)
Definition: pdfwriter.cxx:285
void DrawText(const Point &rPos, const OUString &rText)
Definition: pdfwriter.cxx:64
void DrawPixel(const Point &rPt, const Color &rColor)
Definition: pdfwriter.cxx:172
void DrawWallpaper(const tools::Rectangle &rRect, const Wallpaper &rWallpaper)
Definition: pdfwriter.cxx:205
sal_Int32 CreateDest(const tools::Rectangle &rRect, sal_Int32 nPageNr, DestAreaType eType)
Create a new destination to be used in a link.
Definition: pdfwriter.cxx:349
void DrawTextArray(const Point &rStartPt, const OUString &rStr, const long *pDXAry, sal_Int32 nIndex, sal_Int32 nLen)
Definition: pdfwriter.cxx:79
tools::Rectangle GetBoundRect() const
void CreateNote(const tools::Rectangle &rRect, const PDFNote &rNote, sal_Int32 nPageNr)
Create a new note on a page.
Definition: pdfwriter.cxx:384
sal_Int32 CreateScreen(const tools::Rectangle &rRect, sal_Int32 nPageNr)
Creates a screen annotation.
Definition: pdfwriter.cxx:335
static css::uno::Reference< css::beans::XMaterialHolder > initEncryption(const OUString &i_rOwnerPassword, const OUString &i_rUserPassword)
FontLineStyle
void SetScreenStream(sal_Int32 nScreenId, const OUString &rURL)
Sets the URL of an embedded screen annotation.
Definition: pdfwriter.cxx:369
void SetClipRegion()
Definition: pdfwriter.cxx:250
FontStrikeout
TextAlign
void SetCurrentStructureElement(sal_Int32 nElement)
set the current structure element
Definition: pdfwriter.cxx:399