20#ifndef INCLUDED_SDEXT_SOURCE_PDFIMPORT_INC_CONTENTSINK_HXX
21#define INCLUDED_SDEXT_SOURCE_PDFIMPORT_INC_CONTENTSINK_HXX
23#include <com/sun/star/uno/Reference.hxx>
24#include <com/sun/star/uno/Sequence.hxx>
25#include <com/sun/star/rendering/ARGBColor.hpp>
36 struct AffineMatrix2D;
37 struct RealRectangle2D;
107 virtual void startPage(
const css::geometry::RealSize2D& rSize ) = 0;
110 virtual void hyperLink(
const css::geometry::RealRectangle2D& rBounds,
111 const OUString& rURI ) = 0;
118 virtual void setLineDash(
const css::uno::Sequence<double>& dashes,
124 virtual void setFillColor(
const css::rendering::ARGBColor& rColor ) = 0;
131 css::rendering::XPolyPolygon2D >& rPath ) = 0;
133 css::rendering::XPolyPolygon2D >& rPath ) = 0;
135 css::rendering::XPolyPolygon2D >& rPath ) = 0;
138 css::rendering::XPolyPolygon2D >& rPath) = 0;
140 css::rendering::XPolyPolygon2D >& rPath) = 0;
143 const css::geometry::RealRectangle2D& rRect,
144 const css::geometry::Matrix2D& rFontMatrix,
145 double fontSize) = 0;
152 css::beans::PropertyValue>& xBitmap,
156 css::beans::PropertyValue>& xBitmap ) = 0;
162 css::beans::PropertyValue>& xBitmap,
163 const css::uno::Sequence<
164 css::uno::Any>& xMaskColors ) = 0;
166 css::beans::PropertyValue>& xBitmap,
167 const css::uno::Sequence<
168 css::beans::PropertyValue>& xMask,
169 bool bInvertMask) = 0;
171 css::beans::PropertyValue>& xImage,
172 const css::uno::Sequence<
173 css::beans::PropertyValue>& xMask) = 0;
std::shared_ptr< ContentSink > ContentSinkSharedPtr
(preliminary) API wrapper around xpdf
virtual void drawColorMaskedImage(const css::uno::Sequence< css::beans::PropertyValue > &xBitmap, const css::uno::Sequence< css::uno::Any > &xMaskColors)=0
Given image must already be color-mapped and normalized to sRGB.
virtual void drawMask(const css::uno::Sequence< css::beans::PropertyValue > &xBitmap, bool bInvert)=0
draws given bitmap as a mask (using current fill color)
virtual void pushState()=0
virtual void intersectClip(const css::uno::Reference< css::rendering::XPolyPolygon2D > &rPath)=0
virtual void popState()=0
virtual void setLineWidth(double)=0
virtual void drawGlyphs(const OUString &rGlyphs, const css::geometry::RealRectangle2D &rRect, const css::geometry::Matrix2D &rFontMatrix, double fontSize)=0
virtual void endText()=0
issued when a sequence of associated glyphs is drawn
virtual void intersectEoClip(const css::uno::Reference< css::rendering::XPolyPolygon2D > &rPath)=0
virtual void setLineJoin(sal_Int8 lineJoin)=0
virtual void eoFillPath(const css::uno::Reference< css::rendering::XPolyPolygon2D > &rPath)=0
virtual void drawImage(const css::uno::Sequence< css::beans::PropertyValue > &xBitmap)=0
Given image must already be color-mapped and normalized to sRGB.
virtual void setPageNum(sal_Int32 nNumPages)=0
Total number of pages for upcoming document.
virtual void setLineCap(sal_Int8 lineCap)=0
virtual void setTransformation(const css::geometry::AffineMatrix2D &rMatrix)=0
virtual void drawAlphaMaskedImage(const css::uno::Sequence< css::beans::PropertyValue > &xImage, const css::uno::Sequence< css::beans::PropertyValue > &xMask)=0
virtual void drawMaskedImage(const css::uno::Sequence< css::beans::PropertyValue > &xBitmap, const css::uno::Sequence< css::beans::PropertyValue > &xMask, bool bInvertMask)=0
virtual void setMiterLimit(double)=0
virtual void strokePath(const css::uno::Reference< css::rendering::XPolyPolygon2D > &rPath)=0
virtual void setFont(const FontAttributes &rFont)=0
virtual void setStrokeColor(const css::rendering::ARGBColor &rColor)=0
virtual void setTextRenderMode(sal_Int32)=0
virtual void setFlatness(double)=0
virtual void setLineDash(const css::uno::Sequence< double > &dashes, double start)=0
virtual void fillPath(const css::uno::Reference< css::rendering::XPolyPolygon2D > &rPath)=0
virtual void setFillColor(const css::rendering::ARGBColor &rColor)=0
virtual void startPage(const css::geometry::RealSize2D &rSize)=0
virtual void hyperLink(const css::geometry::RealRectangle2D &rBounds, const OUString &rURI)=0
FontAttributes(OUString familyName_, OUString sFontWeight, bool isItalic_, bool isUnderline_, double size_, double ascent_)
bool operator==(const FontAttributes &rFont) const