diff options
-rw-r--r-- | vcl/source/gdi/outdev.cxx | 48 |
1 files changed, 23 insertions, 25 deletions
diff --git a/vcl/source/gdi/outdev.cxx b/vcl/source/gdi/outdev.cxx index 39e02a643760..dd7f733bca79 100644 --- a/vcl/source/gdi/outdev.cxx +++ b/vcl/source/gdi/outdev.cxx @@ -61,8 +61,6 @@ #include <numeric> -using namespace ::com::sun::star; - #ifdef DISABLE_DYNLOADING // Linking all needed LO code into one .so/executable, these already // exist in the tools library, so put them in the anonymous namespace @@ -1399,7 +1397,7 @@ void OutputDevice::DrawLine( const Point& rStartPt, const Point& rEndPt ) aB2DPolyLine = basegfx::tools::snapPointsOfHorizontalOrVerticalEdges(aB2DPolyLine); } - if( mpGraphics->DrawPolyLine( aB2DPolyLine, 0.0, aB2DLineWidth, basegfx::B2DLINEJOIN_NONE, com::sun::star::drawing::LineCap_BUTT, this)) + if( mpGraphics->DrawPolyLine( aB2DPolyLine, 0.0, aB2DLineWidth, basegfx::B2DLINEJOIN_NONE, css::drawing::LineCap_BUTT, this)) { return; } @@ -1503,7 +1501,7 @@ void OutputDevice::impPaintLineGeometryWithEvtlExpand( if(bTryAA) { - bDone = mpGraphics->DrawPolyLine( aCandidate, 0.0, basegfx::B2DVector(1.0,1.0), basegfx::B2DLINEJOIN_NONE, com::sun::star::drawing::LineCap_BUTT, this); + bDone = mpGraphics->DrawPolyLine( aCandidate, 0.0, basegfx::B2DVector(1.0,1.0), basegfx::B2DLINEJOIN_NONE, css::drawing::LineCap_BUTT, this); } if(!bDone) @@ -1682,7 +1680,7 @@ void OutputDevice::DrawPolyLine( const Polygon& rPoly ) aB2DPolyLine = basegfx::tools::snapPointsOfHorizontalOrVerticalEdges(aB2DPolyLine); } - if(mpGraphics->DrawPolyLine( aB2DPolyLine, 0.0, aB2DLineWidth, basegfx::B2DLINEJOIN_NONE, com::sun::star::drawing::LineCap_BUTT, this)) + if(mpGraphics->DrawPolyLine( aB2DPolyLine, 0.0, aB2DLineWidth, basegfx::B2DLINEJOIN_NONE, css::drawing::LineCap_BUTT, this)) { return; } @@ -1857,7 +1855,7 @@ void OutputDevice::DrawPolygon( const Polygon& rPoly ) 0.0, aB2DLineWidth, basegfx::B2DLINEJOIN_NONE, - com::sun::star::drawing::LineCap_BUTT, + css::drawing::LineCap_BUTT, this); } @@ -1950,7 +1948,7 @@ void OutputDevice::DrawPolyPolygon( const PolyPolygon& rPolyPoly ) 0.0, aB2DLineWidth, basegfx::B2DLINEJOIN_NONE, - com::sun::star::drawing::LineCap_BUTT, + css::drawing::LineCap_BUTT, this); } } @@ -2065,7 +2063,7 @@ void OutputDevice::ImpDrawPolyPolygonWithB2DPolyPolygon(const basegfx::B2DPolyPo 0.0, aB2DLineWidth, basegfx::B2DLINEJOIN_NONE, - com::sun::star::drawing::LineCap_BUTT, + css::drawing::LineCap_BUTT, this); } } @@ -2087,7 +2085,7 @@ bool OutputDevice::ImpTryDrawPolyLineDirect( double fLineWidth, double fTransparency, basegfx::B2DLineJoin eLineJoin, - com::sun::star::drawing::LineCap eLineCap) + css::drawing::LineCap eLineCap) { const basegfx::B2DHomMatrix aTransform = ImplGetDeviceTransformation(); basegfx::B2DVector aB2DLineWidth(1.0, 1.0); @@ -2127,7 +2125,7 @@ bool OutputDevice::TryDrawPolyLineDirect( double fLineWidth, double fTransparency, basegfx::B2DLineJoin eLineJoin, - com::sun::star::drawing::LineCap eLineCap) + css::drawing::LineCap eLineCap) { // AW: Do NOT paint empty PolyPolygons if(!rB2DPolygon.count()) @@ -2177,7 +2175,7 @@ void OutputDevice::DrawPolyLine( const basegfx::B2DPolygon& rB2DPolygon, double fLineWidth, basegfx::B2DLineJoin eLineJoin, - com::sun::star::drawing::LineCap eLineCap) + css::drawing::LineCap eLineCap) { if( mpMetaFile ) @@ -2520,10 +2518,10 @@ sal_Bool OutputDevice::HasAlpha() return mpAlphaVDev != NULL; } -::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics > OutputDevice::CreateUnoGraphics() +css::uno::Reference< css::awt::XGraphics > OutputDevice::CreateUnoGraphics() { UnoWrapperBase* pWrapper = Application::GetUnoWrapper(); - return pWrapper ? pWrapper->CreateGraphics( this ) : ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics >(); + return pWrapper ? pWrapper->CreateGraphics( this ) : css::uno::Reference< css::awt::XGraphics >(); } SystemGraphicsData OutputDevice::GetSystemGfxData() const @@ -2537,34 +2535,34 @@ SystemGraphicsData OutputDevice::GetSystemGfxData() const return mpGraphics->GetGraphicsData(); } -::com::sun::star::uno::Any OutputDevice::GetSystemGfxDataAny() const +css::uno::Any OutputDevice::GetSystemGfxDataAny() const { const SystemGraphicsData aSysData = GetSystemGfxData(); - ::com::sun::star::uno::Sequence< sal_Int8 > aSeq( (sal_Int8*)&aSysData, + css::uno::Sequence< sal_Int8 > aSeq( (sal_Int8*)&aSysData, aSysData.nSize ); - return uno::makeAny(aSeq); + return css::uno::makeAny(aSeq); } -::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvas > OutputDevice::GetCanvas() const +css::uno::Reference< css::rendering::XCanvas > OutputDevice::GetCanvas() const { - uno::Sequence< uno::Any > aArg(6); + css::uno::Sequence< css::uno::Any > aArg(6); - aArg[ 0 ] = uno::makeAny( reinterpret_cast<sal_Int64>(this) ); - aArg[ 2 ] = uno::makeAny( ::com::sun::star::awt::Rectangle( mnOutOffX, mnOutOffY, mnOutWidth, mnOutHeight ) ); - aArg[ 3 ] = uno::makeAny( sal_False ); + aArg[ 0 ] = css::uno::makeAny( reinterpret_cast<sal_Int64>(this) ); + aArg[ 2 ] = css::uno::makeAny( css::awt::Rectangle( mnOutOffX, mnOutOffY, mnOutWidth, mnOutHeight ) ); + aArg[ 3 ] = css::uno::makeAny( sal_False ); aArg[ 5 ] = GetSystemGfxDataAny(); - uno::Reference<uno::XComponentContext> xContext = comphelper::getProcessComponentContext(); + css::uno::Reference<css::uno::XComponentContext> xContext = comphelper::getProcessComponentContext(); // Create canvas instance with window handle - static uno::Reference<lang::XMultiComponentFactory> xCanvasFactory( rendering::CanvasFactory::create( xContext ) ); + static css::uno::Reference<css::lang::XMultiComponentFactory > xCanvasFactory( css::rendering::CanvasFactory::create( xContext ) ); - uno::Reference<rendering::XCanvas> xCanvas; + css::uno::Reference<css::rendering::XCanvas> xCanvas; xCanvas.set( xCanvasFactory->createInstanceWithArgumentsAndContext( "com.sun.star.rendering.Canvas", aArg, xContext ), - uno::UNO_QUERY ); + css::uno::UNO_QUERY ); return xCanvas; } |