diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-05-19 00:50:37 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-05-19 20:04:23 +0200 |
commit | b54e050169d22bb814a4815404021665e1fcf93b (patch) | |
tree | db2a585e325a566e1d4a8fc83ea81d020a129fad /canvas | |
parent | 6c29c3d1784302d959830e10a027c6843480e0c4 (diff) |
canvas: drop using from headers
Change-Id: Ifcfd08984df883a06a133b407ac90ddf259b3bef
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/cairo/cairo_canvas.hxx | 8 | ||||
-rw-r--r-- | canvas/source/cairo/cairo_canvasbitmap.hxx | 10 | ||||
-rw-r--r-- | canvas/source/cairo/cairo_canvascustomsprite.hxx | 8 | ||||
-rw-r--r-- | canvas/source/cairo/cairo_canvashelper.hxx | 4 | ||||
-rw-r--r-- | canvas/source/cairo/cairo_repainttarget.hxx | 2 | ||||
-rw-r--r-- | canvas/source/cairo/cairo_spritecanvas.hxx | 12 | ||||
-rw-r--r-- | canvas/source/cairo/cairo_surfaceprovider.hxx | 12 | ||||
-rw-r--r-- | canvas/source/cairo/cairo_textlayout.hxx | 2 |
8 files changed, 27 insertions, 31 deletions
diff --git a/canvas/source/cairo/cairo_canvas.hxx b/canvas/source/cairo/cairo_canvas.hxx index 932a54fb2a4f..8c5884add427 100644 --- a/canvas/source/cairo/cairo_canvas.hxx +++ b/canvas/source/cairo/cairo_canvas.hxx @@ -134,10 +134,10 @@ namespace cairocanvas const ::com::sun::star::rendering::RenderState& renderState ) SAL_OVERRIDE; // SurfaceProvider - virtual SurfaceSharedPtr getSurface() SAL_OVERRIDE; - virtual SurfaceSharedPtr createSurface( const ::basegfx::B2ISize& rSize, Content aContent = CAIRO_CONTENT_COLOR_ALPHA ) SAL_OVERRIDE; - virtual SurfaceSharedPtr createSurface( ::Bitmap& rBitmap ) SAL_OVERRIDE; - virtual SurfaceSharedPtr changeSurface( bool bHasAlpha, bool bCopyContent ) SAL_OVERRIDE; + virtual ::cairo::SurfaceSharedPtr getSurface() SAL_OVERRIDE; + virtual ::cairo::SurfaceSharedPtr createSurface( const ::basegfx::B2ISize& rSize, ::cairo::Content aContent = CAIRO_CONTENT_COLOR_ALPHA ) SAL_OVERRIDE; + virtual ::cairo::SurfaceSharedPtr createSurface( ::Bitmap& rBitmap ) SAL_OVERRIDE; + virtual ::cairo::SurfaceSharedPtr changeSurface( bool bHasAlpha, bool bCopyContent ) SAL_OVERRIDE; virtual OutputDevice* getOutputDevice() SAL_OVERRIDE; private: diff --git a/canvas/source/cairo/cairo_canvasbitmap.hxx b/canvas/source/cairo/cairo_canvasbitmap.hxx index e0aea4902057..ae9b3472d094 100644 --- a/canvas/source/cairo/cairo_canvasbitmap.hxx +++ b/canvas/source/cairo/cairo_canvasbitmap.hxx @@ -95,14 +95,14 @@ namespace cairocanvas virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; // SurfaceProvider - virtual SurfaceSharedPtr getSurface() SAL_OVERRIDE; - virtual SurfaceSharedPtr createSurface( const ::basegfx::B2ISize& rSize, Content aContent = CAIRO_CONTENT_COLOR_ALPHA ) SAL_OVERRIDE; - virtual SurfaceSharedPtr createSurface( ::Bitmap& rBitmap ) SAL_OVERRIDE; - virtual SurfaceSharedPtr changeSurface( bool bHasAlpha, bool bCopyContent ) SAL_OVERRIDE; + virtual ::cairo::SurfaceSharedPtr getSurface() SAL_OVERRIDE; + virtual ::cairo::SurfaceSharedPtr createSurface( const ::basegfx::B2ISize& rSize, ::cairo::Content aContent = CAIRO_CONTENT_COLOR_ALPHA ) SAL_OVERRIDE; + virtual ::cairo::SurfaceSharedPtr createSurface( ::Bitmap& rBitmap ) SAL_OVERRIDE; + virtual ::cairo::SurfaceSharedPtr changeSurface( bool bHasAlpha, bool bCopyContent ) SAL_OVERRIDE; virtual OutputDevice* getOutputDevice() SAL_OVERRIDE; // RepaintTarget - virtual bool repaint( const SurfaceSharedPtr& pSurface, + virtual bool repaint( const ::cairo::SurfaceSharedPtr& pSurface, const ::com::sun::star::rendering::ViewState& viewState, const ::com::sun::star::rendering::RenderState& renderState ) SAL_OVERRIDE; diff --git a/canvas/source/cairo/cairo_canvascustomsprite.hxx b/canvas/source/cairo/cairo_canvascustomsprite.hxx index dada920404e6..31bf4eabd95a 100644 --- a/canvas/source/cairo/cairo_canvascustomsprite.hxx +++ b/canvas/source/cairo/cairo_canvascustomsprite.hxx @@ -129,10 +129,10 @@ namespace cairocanvas const ::com::sun::star::rendering::RenderState& renderState ) SAL_OVERRIDE; // SurfaceProvider - virtual SurfaceSharedPtr getSurface() SAL_OVERRIDE; - virtual SurfaceSharedPtr createSurface( const ::basegfx::B2ISize& rSize, Content aContent = CAIRO_CONTENT_COLOR_ALPHA ) SAL_OVERRIDE; - virtual SurfaceSharedPtr createSurface( ::Bitmap& rBitmap ) SAL_OVERRIDE; - virtual SurfaceSharedPtr changeSurface( bool bHasAlpha, bool bCopyContent ) SAL_OVERRIDE; + virtual ::cairo::SurfaceSharedPtr getSurface() SAL_OVERRIDE; + virtual ::cairo::SurfaceSharedPtr createSurface( const ::basegfx::B2ISize& rSize, ::cairo::Content aContent = CAIRO_CONTENT_COLOR_ALPHA ) SAL_OVERRIDE; + virtual ::cairo::SurfaceSharedPtr createSurface( ::Bitmap& rBitmap ) SAL_OVERRIDE; + virtual ::cairo::SurfaceSharedPtr changeSurface( bool bHasAlpha, bool bCopyContent ) SAL_OVERRIDE; virtual OutputDevice* getOutputDevice() SAL_OVERRIDE; private: diff --git a/canvas/source/cairo/cairo_canvashelper.hxx b/canvas/source/cairo/cairo_canvashelper.hxx index 9cf6c61fc875..9258e7c638e0 100644 --- a/canvas/source/cairo/cairo_canvashelper.hxx +++ b/canvas/source/cairo/cairo_canvashelper.hxx @@ -307,8 +307,8 @@ namespace cairocanvas /// When true, content is able to represent alpha bool mbHaveAlpha; - CairoSharedPtr mpCairo; - SurfaceSharedPtr mpSurface; + ::cairo::CairoSharedPtr mpCairo; + ::cairo::SurfaceSharedPtr mpSurface; ::basegfx::B2ISize maSize; }; diff --git a/canvas/source/cairo/cairo_repainttarget.hxx b/canvas/source/cairo/cairo_repainttarget.hxx index 5693658cc4c8..7955b5ddded7 100644 --- a/canvas/source/cairo/cairo_repainttarget.hxx +++ b/canvas/source/cairo/cairo_repainttarget.hxx @@ -24,8 +24,6 @@ #include "cairo_cairo.hxx" -using namespace ::cairo; - namespace cairocanvas { /* Definition of RepaintTarget interface */ diff --git a/canvas/source/cairo/cairo_spritecanvas.hxx b/canvas/source/cairo/cairo_spritecanvas.hxx index f1f17c4f1f95..72583137c2c6 100644 --- a/canvas/source/cairo/cairo_spritecanvas.hxx +++ b/canvas/source/cairo/cairo_spritecanvas.hxx @@ -133,10 +133,10 @@ namespace cairocanvas virtual OUString SAL_CALL getServiceName( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; // SurfaceProvider - virtual SurfaceSharedPtr getSurface() SAL_OVERRIDE; - virtual SurfaceSharedPtr createSurface( const ::basegfx::B2ISize& rSize, Content aContent = CAIRO_CONTENT_COLOR_ALPHA ) SAL_OVERRIDE; - virtual SurfaceSharedPtr createSurface( ::Bitmap& rBitmap ) SAL_OVERRIDE; - virtual SurfaceSharedPtr changeSurface( bool bHasAlpha, bool bCopyContent ) SAL_OVERRIDE; + virtual ::cairo::SurfaceSharedPtr getSurface() SAL_OVERRIDE; + virtual ::cairo::SurfaceSharedPtr createSurface( const ::basegfx::B2ISize& rSize, ::cairo::Content aContent = CAIRO_CONTENT_COLOR_ALPHA ) SAL_OVERRIDE; + virtual ::cairo::SurfaceSharedPtr createSurface( ::Bitmap& rBitmap ) SAL_OVERRIDE; + virtual ::cairo::SurfaceSharedPtr changeSurface( bool bHasAlpha, bool bCopyContent ) SAL_OVERRIDE; virtual OutputDevice* getOutputDevice() SAL_OVERRIDE; // RepaintTarget @@ -144,8 +144,8 @@ namespace cairocanvas const ::com::sun::star::rendering::ViewState& viewState, const ::com::sun::star::rendering::RenderState& renderState ) SAL_OVERRIDE; - SurfaceSharedPtr getWindowSurface(); - SurfaceSharedPtr getBufferSurface(); + ::cairo::SurfaceSharedPtr getWindowSurface(); + ::cairo::SurfaceSharedPtr getBufferSurface(); const ::basegfx::B2ISize& getSizePixel(); void setSizePixel( const ::basegfx::B2ISize& rSize ); diff --git a/canvas/source/cairo/cairo_surfaceprovider.hxx b/canvas/source/cairo/cairo_surfaceprovider.hxx index 24baad100f4c..0521b2cc0e0f 100644 --- a/canvas/source/cairo/cairo_surfaceprovider.hxx +++ b/canvas/source/cairo/cairo_surfaceprovider.hxx @@ -25,8 +25,6 @@ #include "cairo_cairo.hxx" -using namespace ::cairo; - class OutputDevice; class Bitmap; @@ -50,18 +48,18 @@ namespace cairocanvas This should return the default surface to render on. */ - virtual SurfaceSharedPtr getSurface() = 0; + virtual ::cairo::SurfaceSharedPtr getSurface() = 0; /// create new surface in given size - virtual SurfaceSharedPtr createSurface( const ::basegfx::B2ISize& rSize, - Content aContent = CAIRO_CONTENT_COLOR_ALPHA ) = 0; + virtual ::cairo::SurfaceSharedPtr createSurface( const ::basegfx::B2ISize& rSize, + ::cairo::Content aContent = CAIRO_CONTENT_COLOR_ALPHA ) = 0; /// create new surface from given bitmap - virtual SurfaceSharedPtr createSurface( ::Bitmap& rBitmap ) = 0; + virtual ::cairo::SurfaceSharedPtr createSurface( ::Bitmap& rBitmap ) = 0; /** convert surface between alpha and non-alpha channel. returns new surface on success, NULL otherwise */ - virtual SurfaceSharedPtr changeSurface( bool bHasAlpha, bool bCopyContent ) = 0; + virtual ::cairo::SurfaceSharedPtr changeSurface( bool bHasAlpha, bool bCopyContent ) = 0; /** Provides the underlying vcl outputdevice this surface renders on */ diff --git a/canvas/source/cairo/cairo_textlayout.hxx b/canvas/source/cairo/cairo_textlayout.hxx index cdad9311f4bf..77a293e64eb8 100644 --- a/canvas/source/cairo/cairo_textlayout.hxx +++ b/canvas/source/cairo/cairo_textlayout.hxx @@ -81,7 +81,7 @@ namespace cairocanvas virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; - bool draw( SurfaceSharedPtr& pSurface, + bool draw( ::cairo::SurfaceSharedPtr& pSurface, OutputDevice& rOutDev, const Point& rOutpos, const ::com::sun::star::rendering::ViewState& viewState, |