75 const uno::Reference< rendering::XGraphicDevice >& ,
76 const uno::Sequence< uno::Sequence< geometry::RealPoint2D > >& points )
78 uno::Reference< rendering::XLinePolyPolygon2D > xPoly;
82 xPoly.set( new ::basegfx::unotools::UnoPolyPolygon(
83 ::basegfx::unotools::polyPolygonFromPoint2DSequenceSequence( points ) ) );
85 xPoly->setFillRule(rendering::FillRule_EVEN_ODD);
91 const uno::Reference< rendering::XGraphicDevice >& ,
92 const uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > >& points )
94 uno::Reference< rendering::XBezierPolyPolygon2D > xPoly;
98 xPoly.set( new ::basegfx::unotools::UnoPolyPolygon(
99 ::basegfx::unotools::polyPolygonFromBezier2DSequenceSequence( points ) ) );
101 xPoly->setFillRule(rendering::FillRule_EVEN_ODD);
107 const uno::Reference< rendering::XGraphicDevice >& rDevice,
108 const geometry::IntegerSize2D& size )
111 return uno::Reference< rendering::XBitmap >();
113 return uno::Reference< rendering::XBitmap >(
121 const uno::Reference< rendering::XGraphicDevice >& ,
122 const geometry::IntegerSize2D& )
124 return uno::Reference< rendering::XVolatileBitmap >();
128 const uno::Reference< rendering::XGraphicDevice >& rDevice,
129 const geometry::IntegerSize2D& size )
132 return uno::Reference< rendering::XBitmap >();
134 return uno::Reference< rendering::XBitmap >(
142 const uno::Reference< rendering::XGraphicDevice >& ,
143 const geometry::IntegerSize2D& )
145 return uno::Reference< rendering::XVolatileBitmap >();
156 return css::uno::Any(
false);
165 reinterpret_cast< sal_Int64
>(&
mpOutDev->getOutDev()) );
175 uno::Reference<rendering::XColorSpace>& GetDeviceColorSpace()
177 static uno::Reference<rendering::XColorSpace> xColorSpace =
191 return GetDeviceColorSpace();
196 static sal_Int32 nFilePostfixCount(0);
201 OUString aFilename =
"dbg_frontbuffer" + OUString::number(nFilePostfixCount) +
".bmp";
203 SvFileStream aStream( aFilename, StreamMode::STD_READWRITE );
205 const ::Point aEmptyPoint;
void EnableMapMode(bool bEnable=true)
SAL_WARN_UNUSED_RESULT Point PixelToLogic(const Point &rDevicePt) const
Size GetOutputSizePixel() const
SAL_WARN_UNUSED_RESULT Point LogicToPixel(const Point &rLogicPt) const
const MapMode & GetMapMode() const
bool IsMapModeEnabled() const
BitmapEx GetBitmapEx(const Point &rSrcPt, const Size &rSize) const
void disposing()
Dispose all internal references.
void dumpScreenContent() const
called when DumpScreenContent property is enabled on XGraphicDevice, and writes out bitmaps of curren...
css::uno::Reference< css::rendering::XBitmap > createCompatibleBitmap(const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::geometry::IntegerSize2D &size)
css::uno::Reference< css::rendering::XLinePolyPolygon2D > createCompatibleLinePolyPolygon(const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::uno::Sequence< css::uno::Sequence< css::geometry::RealPoint2D > > &points)
void init(const OutDevProviderSharedPtr &rOutDev)
OutDevProviderSharedPtr mpOutDev
For retrieving device info.
css::uno::Reference< css::rendering::XColorSpace > const & getColorSpace() const
css::uno::Any isAccelerated() const
css::uno::Reference< css::rendering::XBitmap > createCompatibleAlphaBitmap(const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::geometry::IntegerSize2D &size)
css::uno::Any getDeviceHandle() const
css::uno::Reference< css::rendering::XVolatileBitmap > createVolatileBitmap(const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::geometry::IntegerSize2D &size)
css::uno::Reference< css::rendering::XVolatileBitmap > createVolatileAlphaBitmap(const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::geometry::IntegerSize2D &size)
css::uno::Any getSurfaceHandle() const
css::uno::Reference< css::rendering::XBezierPolyPolygon2D > createCompatibleBezierPolyPolygon(const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::uno::Sequence< css::uno::Sequence< css::geometry::RealBezierSegment2D > > &points)
css::geometry::RealSize2D getPhysicalSize()
css::geometry::RealSize2D getPhysicalResolution()
std::shared_ptr< OutDevProvider > OutDevProviderSharedPtr