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