26PDFWriter::AnyWidget::~AnyWidget()
78 xImplementation->drawTextLine( rPos, nWidth, eStrikeout, eUnderline, eOverline,
false );
82 const Point& rStartPt,
93 const Point& rStartPt,
104 const OUString& rStr,
330 xImplementation->drawJPGBitmap( rStreamData, bIsTrueColor, rSrcSizePixel, rTargetArea, rAlphaMask, rGraphic );
340 return xImplementation->createScreen(rRect, nPageNr, rAltText, rMimeType);
462void PDFWriter::AddAttachedFile(OUString
const& rFileName, OUString
const& rMimeType, OUString
const& rDescription, std::unique_ptr<PDFOutputStream> pStream)
464 xImplementation->addDocumentAttachedFile(rFileName, rMimeType, rDescription, std::move(pStream));
472css::uno::Reference< css::beans::XMaterialHolder >
474 const OUString& i_rUserPassword
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
A thin wrapper around rtl::Reference to implement the acquire and dispose semantics we want for refer...
virtual ~PDFOutputStream()
static css::uno::Reference< css::beans::XMaterialHolder > initEncryption(const OUString &i_rOwnerPassword, const OUString &i_rUserPassword)
void DrawPolygon(const tools::Polygon &rPoly)
void DrawEllipse(const tools::Rectangle &rRect)
void CreateNote(const tools::Rectangle &rRect, const PDFNote &rNote, sal_Int32 nPageNr)
Create a new note on a page.
void DrawPie(const tools::Rectangle &rRect, const Point &rStartPt, const Point &rEndPt)
void DrawChord(const tools::Rectangle &rRect, const Point &rStartPt, const Point &rEndPt)
void SetFont(const vcl::Font &rNewFont)
void DrawHatch(const tools::PolyPolygon &rPolyPoly, const Hatch &rHatch)
void SetTextAlign(::TextAlign eAlign)
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.
void SetTextColor(const Color &rColor)
void SetScreenURL(sal_Int32 nScreenId, const OUString &rURL)
Sets the URL of a linked screen annotation.
void SetActualText(const OUString &rText)
set the ActualText attribute of a structural element
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.
void InitStructureElement(sal_Int32 id, PDFWriter::StructElement eType, std::u16string_view rAlias)
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.
void DrawTextLine(const Point &rPos, tools::Long nWidth, FontStrikeout eStrikeout, FontLineStyle eUnderline, FontLineStyle eOverline)
static css::uno::Reference< css::beans::XMaterialHolder > InitEncryption(const OUString &i_rOwnerPassword, const OUString &i_rUserPassword)
void DrawStretchText(const Point &rStartPt, sal_Int32 nWidth, const OUString &rStr, sal_Int32 nIndex, sal_Int32 nLen)
void Push(PushFlags nFlags=PushFlags::ALL)
void DrawPolyLine(const tools::Polygon &rPoly)
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...
void SetDigitLanguage(LanguageType eLang)
sal_Int32 CreateScreen(const tools::Rectangle &rRect, sal_Int32 nPageNr, OUString const &rAltText, OUString const &rMimeType)
Creates a screen annotation.
sal_Int32 CreateControl(const AnyWidget &rControlType)
create a new form control
void SetCurrentStructureElement(sal_Int32 nElement)
set the current structure element
void BeginTransparencyGroup()
Start a transparency group.
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 ...
void PlayMetafile(const GDIMetaFile &, const PlayMetafileContext &, vcl::PDFExtOutDevData *pDevDat=nullptr)
void DrawTextArray(const Point &rStartPt, const OUString &rStr, KernArraySpan aKernArray, o3tl::span< const sal_Bool > pKashidaAry, sal_Int32 nIndex, sal_Int32 nLen)
void DrawTransparent(const tools::PolyPolygon &rPolyPoly, sal_uInt16 nTransparencePercent)
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)
void DrawText(const Point &rPos, const OUString &rText)
std::set< ErrorCode > const & GetErrors() const
void DrawLine(const Point &rStartPt, const Point &rEndPt)
void IntersectClipRegion(const tools::Rectangle &rRect)
void DrawPixel(const Point &rPt, const Color &rColor)
void AddAttachedFile(OUString const &rFileName, OUString const &rMimeType, OUString const &rDescription, std::unique_ptr< PDFOutputStream > pStream)
Attaches an additional file to the PDF file.
void DrawBitmapEx(const Point &rDestPt, const Size &rDestSize, const BitmapEx &rBitmapEx)
void SetDocumentLocale(const css::lang::Locale &rDocLocale)
PDFWriter(const PDFWriter &)=delete
OutputDevice * GetReferenceDevice()
Returns an OutputDevice for formatting This Output device is guaranteed to use the same font metrics ...
void SetMapMode(const MapMode &rNewMapMode)
void DrawRect(const tools::Rectangle &rRect)
void SetAlternateText(const OUString &rText)
set the Alt attribute of a strutural element
void SetStructureBoundingBox(const tools::Rectangle &rRect)
set the bounding box of a structural element
void SetLayoutMode(vcl::text::ComplexTextLayoutFlags nMode)
void SetStructureAnnotIds(::std::vector< sal_Int32 > const &rAnnotIds)
set the annotations that should be referenced as children of the current structural element.
void EndTransparencyGroup(const tools::Rectangle &rBoundRect, sal_uInt16 nTransparencePercent)
End a transparency group with constant transparency factor.
void DrawBitmap(const Point &rDestPt, const Size &rDestSize, const Bitmap &rBitmap, const Graphic &rGraphic)
void DrawGradient(const tools::Rectangle &rRect, const Gradient &rGradient)
void SetStructureAttributeNumerical(enum StructAttribute eAttr, sal_Int32 nValue)
set a structure attribute on the current structural element
void SetPageTransition(PageTransition eType, sal_uInt32 nMilliSec, sal_Int32 nPageNr)
Sets the transitional effect to be applied when the current page gets shown.
void MoveClipRegion(tools::Long nHorzMove, tools::Long nVertMove)
void DrawPolyPolygon(const tools::PolyPolygon &rPolyPoly)
void BeginStructureElement(sal_Int32 id)
begin a new logical structure element
sal_Int32 CreateDest(const tools::Rectangle &rRect, sal_Int32 nPageNr, DestAreaType eType)
Create a new destination to be used in a link.
void SetLinkPropertyID(sal_Int32 nLinkId, sal_Int32 nPropertyID)
Resolve link in logical structure.
sal_Int32 CreateLink(const tools::Rectangle &rRect, sal_Int32 nPageNr, OUString const &rAltText)
Create a new link on a page.
void DrawArc(const tools::Rectangle &rRect, const Point &rStartPt, const Point &rEndPt)
void EndStructureElement()
end the current logical structure element
void DrawWallpaper(const tools::Rectangle &rRect, const Wallpaper &rWallpaper)
void SetStructureAttribute(enum StructAttribute eAttr, enum StructAttributeValue eVal)
set a structure attribute on the current structural element
sal_Int32 CreateOutlineItem(sal_Int32 nParent, std::u16string_view rText, sal_Int32 nDestID)
Create a new outline item.
void SetScreenStream(sal_Int32 nScreenId, const OUString &rURL)
Sets the URL of an embedded screen annotation.
ScopedVclPtr< PDFWriterImpl > xImplementation
sal_Int32 EnsureStructureElement()
Play a metafile like an outputdevice would do.