25 #include <rtl/instance.hxx>
77 const uno::Reference< rendering::XGraphicDevice >& ,
78 const uno::Sequence< uno::Sequence< geometry::RealPoint2D > >& points )
80 uno::Reference< rendering::XLinePolyPolygon2D > xPoly;
84 xPoly.set( new ::basegfx::unotools::UnoPolyPolygon(
87 xPoly->setFillRule(rendering::FillRule_EVEN_ODD);
93 const uno::Reference< rendering::XGraphicDevice >& ,
94 const uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > >& points )
96 uno::Reference< rendering::XBezierPolyPolygon2D > xPoly;
100 xPoly.set( new ::basegfx::unotools::UnoPolyPolygon(
103 xPoly->setFillRule(rendering::FillRule_EVEN_ODD);
109 const uno::Reference< rendering::XGraphicDevice >& rDevice,
110 const geometry::IntegerSize2D& size )
113 return uno::Reference< rendering::XBitmap >();
115 return uno::Reference< rendering::XBitmap >(
123 const uno::Reference< rendering::XGraphicDevice >& ,
124 const geometry::IntegerSize2D& )
126 return uno::Reference< rendering::XVolatileBitmap >();
130 const uno::Reference< rendering::XGraphicDevice >& rDevice,
131 const geometry::IntegerSize2D& size )
134 return uno::Reference< rendering::XBitmap >();
136 return uno::Reference< rendering::XBitmap >(
144 const uno::Reference< rendering::XGraphicDevice >& ,
145 const geometry::IntegerSize2D& )
147 return uno::Reference< rendering::XVolatileBitmap >();
158 return css::uno::Any(
false);
167 reinterpret_cast< sal_Int64 >(&
mpOutDev->getOutDev()) );
177 struct DeviceColorSpace:
public rtl::StaticWithInit<uno::Reference<rendering::XColorSpace>,
180 uno::Reference<rendering::XColorSpace> operator()()
183 assert( xColorSpace.is() );
192 return DeviceColorSpace::get();
197 static sal_Int32 nFilePostfixCount(0);
202 OUString aFilename =
"dbg_frontbuffer" + OUString::number(nFilePostfixCount) +
".bmp";
204 SvFileStream aStream( aFilename, StreamMode::STD_READWRITE );
206 const ::Point aEmptyPoint;
std::shared_ptr< OutDevProvider > OutDevProviderSharedPtr
css::uno::Reference< css::rendering::XColorSpace > const & getColorSpace() const
css::uno::Reference< css::rendering::XVolatileBitmap > createVolatileAlphaBitmap(const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::geometry::IntegerSize2D &size)
bool IsMapModeEnabled() const
const MapMode & GetMapMode() const
css::uno::Any getSurfaceHandle() const
void EnableMapMode(bool bEnable=true)
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)
css::uno::Any isAccelerated() const
css::geometry::RealSize2D getPhysicalResolution()
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
void dumpScreenContent() const
called when DumpScreenContent property is enabled on XGraphicDevice, and writes out bitmaps of curren...
void disposing()
Dispose all internal references.
css::uno::Reference< css::rendering::XBitmap > createCompatibleBitmap(const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::geometry::IntegerSize2D &size)
void init(const OutDevProviderSharedPtr &rOutDev)
OutDevProviderSharedPtr mpOutDev
For retrieving device info.
css::uno::Any getDeviceHandle() const
Size GetOutputSizePixel() const
Point PixelToLogic(const Point &rDevicePt) const
Point LogicToPixel(const Point &rLogicPt) const
css::uno::Reference< css::rendering::XVolatileBitmap > createVolatileBitmap(const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::geometry::IntegerSize2D &size)
css::geometry::RealSize2D getPhysicalSize()
BitmapEx GetBitmapEx(const Point &rSrcPt, const Size &rSize) 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::uno::Reference< css::rendering::XBitmap > createCompatibleAlphaBitmap(const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::geometry::IntegerSize2D &size)