summaryrefslogtreecommitdiff
path: root/canvas/source/vcl/devicehelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'canvas/source/vcl/devicehelper.cxx')
-rw-r--r--canvas/source/vcl/devicehelper.cxx66
1 files changed, 33 insertions, 33 deletions
diff --git a/canvas/source/vcl/devicehelper.cxx b/canvas/source/vcl/devicehelper.cxx
index 02c4e547be76..3994517d74e4 100644
--- a/canvas/source/vcl/devicehelper.cxx
+++ b/canvas/source/vcl/devicehelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -88,15 +88,15 @@ namespace vclcanvas
return ::vcl::unotools::size2DFromSize( aLogSize );
}
- uno::Reference< rendering::XLinePolyPolygon2D > DeviceHelper::createCompatibleLinePolyPolygon(
- const uno::Reference< rendering::XGraphicDevice >& ,
- const uno::Sequence< uno::Sequence< geometry::RealPoint2D > >& points )
+ uno::Reference< rendering::XLinePolyPolygon2D > DeviceHelper::createCompatibleLinePolyPolygon(
+ const uno::Reference< rendering::XGraphicDevice >& ,
+ const uno::Sequence< uno::Sequence< geometry::RealPoint2D > >& points )
{
uno::Reference< rendering::XLinePolyPolygon2D > xPoly;
if( !mpOutDev )
return xPoly; // we're disposed
- xPoly.set( new ::basegfx::unotools::UnoPolyPolygon(
+ xPoly.set( new ::basegfx::unotools::UnoPolyPolygon(
::basegfx::unotools::polyPolygonFromPoint2DSequenceSequence( points ) ) );
// vcl only handles even_odd polygons
xPoly->setFillRule(rendering::FillRule_EVEN_ODD);
@@ -104,15 +104,15 @@ namespace vclcanvas
return xPoly;
}
- uno::Reference< rendering::XBezierPolyPolygon2D > DeviceHelper::createCompatibleBezierPolyPolygon(
- const uno::Reference< rendering::XGraphicDevice >& ,
- const uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > >& points )
+ uno::Reference< rendering::XBezierPolyPolygon2D > DeviceHelper::createCompatibleBezierPolyPolygon(
+ const uno::Reference< rendering::XGraphicDevice >& ,
+ const uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > >& points )
{
uno::Reference< rendering::XBezierPolyPolygon2D > xPoly;
if( !mpOutDev )
return xPoly; // we're disposed
- xPoly.set( new ::basegfx::unotools::UnoPolyPolygon(
+ xPoly.set( new ::basegfx::unotools::UnoPolyPolygon(
::basegfx::unotools::polyPolygonFromBezier2DSequenceSequence( points ) ) );
// vcl only handles even_odd polygons
xPoly->setFillRule(rendering::FillRule_EVEN_ODD);
@@ -120,44 +120,44 @@ namespace vclcanvas
return xPoly;
}
- uno::Reference< rendering::XBitmap > DeviceHelper::createCompatibleBitmap(
+ uno::Reference< rendering::XBitmap > DeviceHelper::createCompatibleBitmap(
const uno::Reference< rendering::XGraphicDevice >& rDevice,
- const geometry::IntegerSize2D& size )
+ const geometry::IntegerSize2D& size )
{
if( !mpOutDev )
return uno::Reference< rendering::XBitmap >(); // we're disposed
- return uno::Reference< rendering::XBitmap >(
+ return uno::Reference< rendering::XBitmap >(
new CanvasBitmap( ::vcl::unotools::sizeFromIntegerSize2D(size),
false,
*rDevice.get(),
mpOutDev ) );
}
- uno::Reference< rendering::XVolatileBitmap > DeviceHelper::createVolatileBitmap(
- const uno::Reference< rendering::XGraphicDevice >& ,
- const geometry::IntegerSize2D& )
+ uno::Reference< rendering::XVolatileBitmap > DeviceHelper::createVolatileBitmap(
+ const uno::Reference< rendering::XGraphicDevice >& ,
+ const geometry::IntegerSize2D& )
{
return uno::Reference< rendering::XVolatileBitmap >();
}
- uno::Reference< rendering::XBitmap > DeviceHelper::createCompatibleAlphaBitmap(
+ uno::Reference< rendering::XBitmap > DeviceHelper::createCompatibleAlphaBitmap(
const uno::Reference< rendering::XGraphicDevice >& rDevice,
const geometry::IntegerSize2D& size )
{
if( !mpOutDev )
return uno::Reference< rendering::XBitmap >(); // we're disposed
- return uno::Reference< rendering::XBitmap >(
+ return uno::Reference< rendering::XBitmap >(
new CanvasBitmap( ::vcl::unotools::sizeFromIntegerSize2D(size),
true,
*rDevice.get(),
mpOutDev ) );
}
- uno::Reference< rendering::XVolatileBitmap > DeviceHelper::createVolatileAlphaBitmap(
- const uno::Reference< rendering::XGraphicDevice >& ,
- const geometry::IntegerSize2D& )
+ uno::Reference< rendering::XVolatileBitmap > DeviceHelper::createVolatileAlphaBitmap(
+ const uno::Reference< rendering::XGraphicDevice >& ,
+ const geometry::IntegerSize2D& )
{
return uno::Reference< rendering::XVolatileBitmap >();
}
@@ -172,44 +172,44 @@ namespace vclcanvas
(void)bEnter;
return false;
}
-
+
void DeviceHelper::disposing()
{
// release all references
mpOutDev.reset();
}
-
+
uno::Any DeviceHelper::isAccelerated() const
{
return ::com::sun::star::uno::makeAny(false);
}
-
+
uno::Any DeviceHelper::getDeviceHandle() const
{
if( !mpOutDev )
return uno::Any();
-
- return uno::makeAny(
+
+ return uno::makeAny(
reinterpret_cast< sal_Int64 >(&mpOutDev->getOutDev()) );
}
-
+
uno::Any DeviceHelper::getSurfaceHandle() const
{
return getDeviceHandle();
}
-
- namespace
- {
+
+ namespace
+ {
struct DeviceColorSpace: public rtl::StaticWithInit<uno::Reference<rendering::XColorSpace>,
- DeviceColorSpace>
+ DeviceColorSpace>
{
uno::Reference<rendering::XColorSpace> operator()()
{
return vcl::unotools::createStandardColorSpace();
}
- };
+ };
}
-
+
uno::Reference<rendering::XColorSpace> DeviceHelper::getColorSpace() const
{
// always the same
@@ -239,7 +239,7 @@ namespace vclcanvas
++nFilePostfixCount;
}
}
-
+
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */