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  xImplementation.disposeAndClear();
38 }
39 
41 {
42  return xImplementation.get();
43 }
44 
45 void PDFWriter::NewPage( double nPageWidth, double nPageHeight, Orientation eOrientation )
46 {
47  xImplementation->newPage( nPageWidth, nPageHeight, eOrientation );
48 }
49 
51 {
52  return xImplementation->emit();
53 }
54 
55 void PDFWriter::SetDocumentLocale( const css::lang::Locale& rLoc )
56 {
57  xImplementation->setDocumentLocale( rLoc );
58 }
59 
60 void PDFWriter::SetFont( const vcl::Font& rFont )
61 {
62  xImplementation->setFont( rFont );
63 }
64 
65 void PDFWriter::DrawText( const Point& rPos, const OUString& rText )
66 {
67  xImplementation->drawText( rPos, rText, 0, rText.getLength() );
68 }
69 
71  const Point& rPos,
72  long nWidth,
73  FontStrikeout eStrikeout,
74  FontLineStyle eUnderline,
75  FontLineStyle eOverline )
76 {
77  xImplementation->drawTextLine( rPos, nWidth, eStrikeout, eUnderline, eOverline, false/*bUnderlineAbove*/ );
78 }
79 
81  const Point& rStartPt,
82  const OUString& rStr,
83  const long* pDXAry,
84  sal_Int32 nIndex,
85  sal_Int32 nLen )
86 {
87  xImplementation->drawTextArray( rStartPt, rStr, pDXAry, nIndex, nLen );
88 }
89 
91  const Point& rStartPt,
92  sal_uLong nWidth,
93  const OUString& rStr,
94  sal_Int32 nIndex,
95  sal_Int32 nLen )
96 {
97  xImplementation->drawStretchText( rStartPt, nWidth, rStr, nIndex, nLen );
98 }
99 
101  const tools::Rectangle& rRect,
102  const OUString& rStr,
103  DrawTextFlags nStyle )
104 {
105  xImplementation->drawText( rRect, rStr, nStyle );
106 }
107 
108 void PDFWriter::DrawLine( const Point& rStart, const Point& rStop )
109 {
110  xImplementation->drawLine( rStart, rStop );
111 }
112 
113 void PDFWriter::DrawLine( const Point& rStart, const Point& rStop, const LineInfo& rInfo )
114 {
115  xImplementation->drawLine( rStart, rStop, rInfo );
116 }
117 
119 {
120  xImplementation->drawPolygon( rPoly );
121 }
122 
124 {
125  xImplementation->drawPolyLine( rPoly );
126 }
127 
129 {
130  xImplementation->drawRectangle( rRect );
131 }
132 
133 void PDFWriter::DrawRect( const tools::Rectangle& rRect, sal_uLong nHorzRound, sal_uLong nVertRound )
134 {
135  xImplementation->drawRectangle( rRect, nHorzRound, nVertRound );
136 }
137 
139 {
140  xImplementation->drawEllipse( rRect );
141 }
142 
143 void PDFWriter::DrawArc( const tools::Rectangle& rRect, const Point& rStart, const Point& rStop )
144 {
145  xImplementation->drawArc( rRect, rStart, rStop, false, false );
146 }
147 
148 void PDFWriter::DrawPie( const tools::Rectangle& rRect, const Point& rStart, const Point& rStop )
149 {
150  xImplementation->drawArc( rRect, rStart, rStop, true, false );
151 }
152 
153 void PDFWriter::DrawChord( const tools::Rectangle& rRect, const Point& rStart, const Point& rStop )
154 {
155  xImplementation->drawArc( rRect, rStart, rStop, false, true );
156 }
157 
158 void PDFWriter::DrawPolyLine( const tools::Polygon& rPoly, const LineInfo& rInfo )
159 {
160  xImplementation->drawPolyLine( rPoly, rInfo );
161 }
162 
163 void PDFWriter::DrawPolyLine( const tools::Polygon& rPoly, const ExtLineInfo& rInfo )
164 {
165  xImplementation->drawPolyLine( rPoly, rInfo );
166 }
167 
169 {
170  xImplementation->drawPolyPolygon( rPolyPoly );
171 }
172 
173 void PDFWriter::DrawPixel( const Point& rPos, const Color& rColor )
174 {
175  xImplementation->drawPixel( rPos, rColor );
176 }
177 
178 void PDFWriter::DrawBitmap( const Point& rDestPt, const Size& rDestSize, const Bitmap& rBitmap, const Graphic& rGraphic )
179 {
180  xImplementation->drawBitmap( rDestPt, rDestSize, rBitmap, rGraphic );
181 }
182 
183 void PDFWriter::DrawBitmapEx( const Point& rDestPt, const Size& rDestSize, const BitmapEx& rBitmap )
184 {
185  xImplementation->drawBitmap( rDestPt, rDestSize, rBitmap );
186 }
187 
188 void PDFWriter::DrawHatch( const tools::PolyPolygon& rPolyPoly, const Hatch& rHatch )
189 {
190  xImplementation->drawHatch( rPolyPoly, rHatch );
191 }
192 
193 void PDFWriter::DrawGradient( const tools::Rectangle& rRect, const Gradient& rGradient )
194 {
195  xImplementation->drawGradient( rRect, rGradient );
196 }
197 
198 void PDFWriter::DrawGradient( const tools::PolyPolygon& rPolyPoly, const Gradient& rGradient )
199 {
201  xImplementation->setClipRegion( rPolyPoly.getB2DPolyPolygon() );
202  xImplementation->drawGradient( rPolyPoly.GetBoundRect(), rGradient );
203  xImplementation->pop();
204 }
205 
206 void PDFWriter::DrawWallpaper( const tools::Rectangle& rRect, const Wallpaper& rWallpaper )
207 {
208  xImplementation->drawWallpaper( rRect, rWallpaper );
209 }
210 
211 void PDFWriter::DrawTransparent( const tools::PolyPolygon& rPolyPoly, sal_uInt16 nTransparencePercent )
212 {
213  xImplementation->drawTransparent( rPolyPoly, nTransparencePercent );
214 }
215 
217 {
218  xImplementation->beginTransparencyGroup();
219 }
220 
221 void PDFWriter::EndTransparencyGroup( const tools::Rectangle& rRect, sal_uInt16 nTransparentPercent )
222 {
223  xImplementation->endTransparencyGroup( rRect, nTransparentPercent );
224 }
225 
227 {
228  xImplementation->push( nFlags );
229 }
230 
232 {
233  xImplementation->pop();
234 }
235 
236 void PDFWriter::SetMapMode( const MapMode& rMapMode )
237 {
238  xImplementation->setMapMode( rMapMode );
239 }
240 
241 void PDFWriter::SetLineColor( const Color& rColor )
242 {
243  xImplementation->setLineColor( rColor );
244 }
245 
246 void PDFWriter::SetFillColor( const Color& rColor )
247 {
248  xImplementation->setFillColor( rColor );
249 }
250 
252 {
253  xImplementation->clearClipRegion();
254 }
255 
257 {
258  xImplementation->setClipRegion( rRegion );
259 }
260 
261 void PDFWriter::MoveClipRegion( long nHorzMove, long nVertMove )
262 {
263  xImplementation->moveClipRegion( nHorzMove, nVertMove );
264 }
265 
267 {
268  xImplementation->intersectClipRegion( rRegion );
269 }
270 
272 {
273  xImplementation->intersectClipRegion( rRect );
274 }
275 
277 {
278  xImplementation->setLayoutMode( nMode );
279 }
280 
282 {
283  xImplementation->setDigitLanguage( eLang );
284 }
285 
286 void PDFWriter::SetTextColor( const Color& rColor )
287 {
288  xImplementation->setTextColor( rColor );
289 }
290 
292 {
293  xImplementation->setTextFillColor();
294 }
295 
296 void PDFWriter::SetTextFillColor( const Color& rColor )
297 {
298  xImplementation->setTextFillColor( rColor );
299 }
300 
302 {
303  xImplementation->setTextLineColor();
304 }
305 
306 void PDFWriter::SetTextLineColor( const Color& rColor )
307 {
308  xImplementation->setTextLineColor( rColor );
309 }
310 
312 {
313  xImplementation->setOverlineColor();
314 }
315 
316 void PDFWriter::SetOverlineColor( const Color& rColor )
317 {
318  xImplementation->setOverlineColor( rColor );
319 }
320 
322 {
323  xImplementation->setTextAlign( eAlign );
324 }
325 
326 void PDFWriter::DrawJPGBitmap( SvStream& rStreamData, bool bIsTrueColor, const Size& rSrcSizePixel, const tools::Rectangle& rTargetArea, const Bitmap& rMask, const Graphic& rGraphic )
327 {
328  xImplementation->drawJPGBitmap( rStreamData, bIsTrueColor, rSrcSizePixel, rTargetArea, rMask, rGraphic );
329 }
330 
331 sal_Int32 PDFWriter::CreateLink( const tools::Rectangle& rRect, sal_Int32 nPageNr )
332 {
333  return xImplementation->createLink( rRect, nPageNr );
334 }
335 
336 sal_Int32 PDFWriter::CreateScreen(const tools::Rectangle& rRect, sal_Int32 nPageNr)
337 {
338  return xImplementation->createScreen(rRect, nPageNr);
339 }
340 
341 sal_Int32 PDFWriter::RegisterDestReference( sal_Int32 nDestId, const tools::Rectangle& rRect, sal_Int32 nPageNr, DestAreaType eType )
342 {
343  return xImplementation->registerDestReference( nDestId, rRect, nPageNr, eType );
344 }
345 //--->i56629
346 sal_Int32 PDFWriter::CreateNamedDest( const OUString& sDestName, const tools::Rectangle& rRect, sal_Int32 nPageNr, PDFWriter::DestAreaType eType )
347 {
348  return xImplementation->createNamedDest( sDestName, rRect, nPageNr, eType );
349 }
350 sal_Int32 PDFWriter::CreateDest( const tools::Rectangle& rRect, sal_Int32 nPageNr, PDFWriter::DestAreaType eType )
351 {
352  return xImplementation->createDest( rRect, nPageNr, eType );
353 }
354 
355 void PDFWriter::SetLinkDest( sal_Int32 nLinkId, sal_Int32 nDestId )
356 {
357  xImplementation->setLinkDest( nLinkId, nDestId );
358 }
359 
360 void PDFWriter::SetLinkURL( sal_Int32 nLinkId, const OUString& rURL )
361 {
362  xImplementation->setLinkURL( nLinkId, rURL );
363 }
364 
365 void PDFWriter::SetScreenURL(sal_Int32 nScreenId, const OUString& rURL)
366 {
367  xImplementation->setScreenURL(nScreenId, rURL);
368 }
369 
370 void PDFWriter::SetScreenStream(sal_Int32 nScreenId, const OUString& rURL)
371 {
372  xImplementation->setScreenStream(nScreenId, rURL);
373 }
374 
375 void PDFWriter::SetLinkPropertyID( sal_Int32 nLinkId, sal_Int32 nPropertyId )
376 {
377  xImplementation->setLinkPropertyId( nLinkId, nPropertyId );
378 }
379 
380 sal_Int32 PDFWriter::CreateOutlineItem( sal_Int32 nParent, const OUString& rText, sal_Int32 nDestID )
381 {
382  return xImplementation->createOutlineItem( nParent, rText, nDestID );
383 }
384 
385 void PDFWriter::CreateNote( const tools::Rectangle& rRect, const PDFNote& rNote, sal_Int32 nPageNr )
386 {
387  xImplementation->createNote( rRect, rNote, nPageNr );
388 }
389 
390 sal_Int32 PDFWriter::BeginStructureElement( PDFWriter::StructElement eType, const OUString& rAlias )
391 {
392  return xImplementation->beginStructureElement( eType, rAlias );
393 }
394 
396 {
397  xImplementation->endStructureElement();
398 }
399 
401 {
402  xImplementation->setCurrentStructureElement( nID );
403 }
404 
406 {
407  xImplementation->setStructureAttribute( eAttr, eVal );
408 }
409 
410 void PDFWriter::SetStructureAttributeNumerical( enum StructAttribute eAttr, sal_Int32 nValue )
411 {
412  xImplementation->setStructureAttributeNumerical( eAttr, nValue );
413 }
414 
416 {
417  xImplementation->setStructureBoundingBox( rRect );
418 }
419 
420 void PDFWriter::SetActualText( const OUString& rText )
421 {
422  xImplementation->setActualText( rText );
423 }
424 
425 void PDFWriter::SetAlternateText( const OUString& rText )
426 {
427  xImplementation->setAlternateText( rText );
428 }
429 
430 void PDFWriter::SetPageTransition( PDFWriter::PageTransition eType, sal_uInt32 nMilliSec, sal_Int32 nPageNr )
431 {
432  xImplementation->setPageTransition( eType, nMilliSec, nPageNr );
433 }
434 
435 sal_Int32 PDFWriter::CreateControl( const PDFWriter::AnyWidget& rControl )
436 {
437  return xImplementation->createControl( rControl );
438 }
439 
441 {
442 }
443 
444 void PDFWriter::AddStream( const OUString& rMimeType, PDFOutputStream* pStream )
445 {
446  xImplementation->addStream( rMimeType, pStream );
447 }
448 
449 std::set< PDFWriter::ErrorCode > const & PDFWriter::GetErrors() const
450 {
451  return xImplementation->getErrors();
452 }
453 
454 css::uno::Reference< css::beans::XMaterialHolder >
455 PDFWriter::InitEncryption( const OUString& i_rOwnerPassword,
456  const OUString& i_rUserPassword
457  )
458 {
459  return PDFWriterImpl::initEncryption( i_rOwnerPassword, i_rUserPassword );
460 }
461 
462 void PDFWriter::PlayMetafile( const GDIMetaFile& i_rMTF, const vcl::PDFWriter::PlayMetafileContext& i_rPlayContext, PDFExtOutDevData* i_pData )
463 {
464  xImplementation->playMetafile( i_rMTF, i_pData, i_rPlayContext );
465 }
466 
467 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void DrawTransparent(const tools::PolyPolygon &rPolyPoly, sal_uInt16 nTransparencePercent)
Definition: pdfwriter.cxx:211
void DrawChord(const tools::Rectangle &rRect, const Point &rStartPt, const Point &rEndPt)
Definition: pdfwriter.cxx:153
void DrawPie(const tools::Rectangle &rRect, const Point &rStartPt, const Point &rEndPt)
Definition: pdfwriter.cxx:148
Definition: hatch.hxx:44
void DrawBitmapEx(const Point &rDestPt, const Size &rDestSize, const BitmapEx &rBitmapEx)
Definition: pdfwriter.cxx:183
void DrawPolygon(const tools::Polygon &rPoly)
Definition: pdfwriter.cxx:118
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:430
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:281
void DrawTextLine(const Point &rPos, long nWidth, FontStrikeout eStrikeout, FontLineStyle eUnderline, FontLineStyle eOverline)
Definition: pdfwriter.cxx:70
void Create(SwFormatVertOrient &rItem, SvStream &rStrm, sal_uInt16 nVersionAbusedAsSize)
sal_uIntPtr sal_uLong
void DrawEllipse(const tools::Rectangle &rRect)
Definition: pdfwriter.cxx:138
void MoveClipRegion(long nHorzMove, long nVertMove)
Definition: pdfwriter.cxx:261
sal_Int32 BeginStructureElement(enum StructElement eType, const OUString &rAlias)
begin a new logical structure element
Definition: pdfwriter.cxx:390
void SetTextLineColor()
Definition: pdfwriter.cxx:301
void SetActualText(const OUString &rText)
set the ActualText attribute of a structural element
Definition: pdfwriter.cxx:420
static css::uno::Reference< css::beans::XMaterialHolder > InitEncryption(const OUString &i_rOwnerPassword, const OUString &i_rUserPassword)
Definition: pdfwriter.cxx:455
void SetFont(const vcl::Font &rNewFont)
Definition: pdfwriter.cxx:60
void SetStructureBoundingBox(const tools::Rectangle &rRect)
set the bounding box of a structural element
Definition: pdfwriter.cxx:415
void DrawPolyLine(const tools::Polygon &rPoly)
Definition: pdfwriter.cxx:123
void DrawLine(const Point &rStartPt, const Point &rEndPt)
Definition: pdfwriter.cxx:108
void SetLinkPropertyID(sal_Int32 nLinkId, sal_Int32 nPropertyID)
Resolve link in logical structure.
Definition: pdfwriter.cxx:375
Play a metafile like an outputdevice would do.
Definition: pdfwriter.hxx:667
void DrawRect(const tools::Rectangle &rRect)
Definition: pdfwriter.cxx:128
void EndStructureElement()
end the current logical structure element
Definition: pdfwriter.cxx:395
void DrawPolyPolygon(const tools::PolyPolygon &rPolyPoly)
Definition: pdfwriter.cxx:168
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:346
PDFWriter(const PDFWriter &)=delete
void DrawStretchText(const Point &rStartPt, sal_uLong nWidth, const OUString &rStr, sal_Int32 nIndex, sal_Int32 nLen)
Definition: pdfwriter.cxx:90
void DrawGradient(const tools::Rectangle &rRect, const Gradient &rGradient)
Definition: pdfwriter.cxx:193
PushFlags
Definition: outdevstate.hxx:38
void PlayMetafile(const GDIMetaFile &, const PlayMetafileContext &, vcl::PDFExtOutDevData *pDevDat=nullptr)
Definition: pdfwriter.cxx:462
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:326
std::set< ErrorCode > const & GetErrors() const
Definition: pdfwriter.cxx:449
void DrawArc(const tools::Rectangle &rRect, const Point &rStartPt, const Point &rEndPt)
Definition: pdfwriter.cxx:143
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:45
void SetAlternateText(const OUString &rText)
set the Alt attribute of a strutural element
Definition: pdfwriter.cxx:425
void BeginTransparencyGroup()
Start a transparency group.
Definition: pdfwriter.cxx:216
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:355
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:221
void SetTextAlign(::TextAlign eAlign)
Definition: pdfwriter.cxx:321
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:410
virtual ~PDFOutputStream()
Definition: pdfwriter.cxx:440
void AddStream(const OUString &rMimeType, PDFOutputStream *pStream)
Inserts an additional stream to the PDF file.
Definition: pdfwriter.cxx:444
void Push(PushFlags nFlags=PushFlags::ALL)
Definition: pdfwriter.cxx:226
DrawTextFlags
Definition: outdev.hxx:144
void SetMapMode(const MapMode &rNewMapMode)
Definition: pdfwriter.cxx:236
void SetLineColor()
Definition: pdfwriter.hxx:720
TextAlign
void DrawBitmap(const Point &rDestPt, const Size &rDestSize, const Bitmap &rBitmap, const Graphic &rGraphic)
Definition: pdfwriter.cxx:178
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:341
void IntersectClipRegion(const tools::Rectangle &rRect)
Definition: pdfwriter.cxx:271
void SetDocumentLocale(const css::lang::Locale &rDocLocale)
Definition: pdfwriter.cxx:55
sal_Int32 CreateControl(const AnyWidget &rControlType)
create a new form control
Definition: pdfwriter.cxx:435
void SetFillColor()
Definition: pdfwriter.hxx:723
sal_Int32 CreateOutlineItem(sal_Int32 nParent, const OUString &rText, sal_Int32 nDestID)
Create a new outline item.
Definition: pdfwriter.cxx:380
void SetLayoutMode(ComplexTextLayoutFlags nMode)
Definition: pdfwriter.cxx:276
void DrawHatch(const tools::PolyPolygon &rPolyPoly, const Hatch &rHatch)
Definition: pdfwriter.cxx:188
void SetStructureAttribute(enum StructAttribute eAttr, enum StructAttributeValue eVal)
set a structure attribute on the current structural element
Definition: pdfwriter.cxx:405
OutputDevice * GetReferenceDevice()
Returns an OutputDevice for formatting This Output device is guaranteed to use the same font metrics ...
Definition: pdfwriter.cxx:40
sal_Int32 CreateLink(const tools::Rectangle &rRect, sal_Int32 nPageNr)
Create a new link on a page.
Definition: pdfwriter.cxx:331
::basegfx::B2DPolyPolygon getB2DPolyPolygon() const
void SetScreenURL(sal_Int32 nScreenId, const OUString &rURL)
Sets the URL of a linked screen annotation.
Definition: pdfwriter.cxx:365
void SetOverlineColor()
Definition: pdfwriter.cxx:311
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:360
void SetTextFillColor()
Definition: pdfwriter.cxx:291
ScopedVclPtr< PDFWriterImpl > xImplementation
Definition: pdfwriter.hxx:77
void SetTextColor(const Color &rColor)
Definition: pdfwriter.cxx:286
void DrawText(const Point &rPos, const OUString &rText)
Definition: pdfwriter.cxx:65
void DrawPixel(const Point &rPt, const Color &rColor)
Definition: pdfwriter.cxx:173
void DrawWallpaper(const tools::Rectangle &rRect, const Wallpaper &rWallpaper)
Definition: pdfwriter.cxx:206
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:350
void DrawTextArray(const Point &rStartPt, const OUString &rStr, const long *pDXAry, sal_Int32 nIndex, sal_Int32 nLen)
Definition: pdfwriter.cxx:80
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:385
sal_Int32 CreateScreen(const tools::Rectangle &rRect, sal_Int32 nPageNr)
Creates a screen annotation.
Definition: pdfwriter.cxx:336
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:370
void SetClipRegion()
Definition: pdfwriter.cxx:251
FontStrikeout
void SetCurrentStructureElement(sal_Int32 nElement)
set the current structure element
Definition: pdfwriter.cxx:400