include/canvas/base/bitmapcanvasbase.hxx | 26 +-- include/canvas/base/bufferedgraphicdevicebase.hxx | 56 +++---- include/canvas/base/cachedprimitivebase.hxx | 36 ++-- include/canvas/base/canvasbase.hxx | 148 +++++++++---------- include/canvas/base/canvascustomspritebase.hxx | 42 ++--- include/canvas/base/canvascustomspritehelper.hxx | 35 ++-- include/canvas/base/disambiguationhelper.hxx | 4 include/canvas/base/integerbitmapbase.hxx | 22 +- include/canvas/base/sprite.hxx | 2 include/canvas/base/spritecanvasbase.hxx | 26 +-- include/canvas/base/spritesurface.hxx | 2 include/canvas/canvastools.hxx | 92 ++++++------ include/canvas/parametricpolypolygon.hxx | 76 +++++----- include/canvas/propertysethelper.hxx | 16 +- include/canvas/rendering/bitmap.hxx | 165 ++++++++++------------ include/canvas/rendering/icachedprimitive.hxx | 2 include/canvas/verifyinput.hxx | 136 +++++++----------- 17 files changed, 423 insertions(+), 463 deletions(-)
New commits: commit b1659c95b0620cfd1291f889eae767757f696ae1 Author: Noel Grandin <n...@peralex.com> Date: Mon Oct 19 12:29:30 2015 +0200 com::sun::star->css in include/canvas Change-Id: Iacf28606e41f0b1345864762612cbb009066bfeb Reviewed-on: https://gerrit.libreoffice.org/19458 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Noel Grandin <noelgran...@gmail.com> diff --git a/include/canvas/base/bitmapcanvasbase.hxx b/include/canvas/base/bitmapcanvasbase.hxx index d618ca9..bd144f5 100644 --- a/include/canvas/base/bitmapcanvasbase.hxx +++ b/include/canvas/base/bitmapcanvasbase.hxx @@ -61,26 +61,26 @@ namespace canvas template< class Base, class CanvasHelper, class Mutex=::osl::MutexGuard, - class UnambiguousBase=::com::sun::star::uno::XInterface > class BitmapCanvasBase : + class UnambiguousBase=css::uno::XInterface > class BitmapCanvasBase : public CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase > { public: typedef CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase > BaseType; // XBitmap - virtual ::com::sun::star::geometry::IntegerSize2D SAL_CALL getSize( ) throw (::com::sun::star::uno::RuntimeException) override + virtual css::geometry::IntegerSize2D SAL_CALL getSize( ) throw (css::uno::RuntimeException) override { typename BaseType::MutexType aGuard( BaseType::m_aMutex ); return BaseType::maCanvasHelper.getSize(); } - virtual sal_Bool SAL_CALL hasAlpha( ) throw (::com::sun::star::uno::RuntimeException) override + virtual sal_Bool SAL_CALL hasAlpha( ) throw (css::uno::RuntimeException) override { return sal_True; } - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > SAL_CALL getScaledBitmap( const ::com::sun::star::geometry::RealSize2D& newSize, + virtual css::uno::Reference< css::rendering::XBitmap > SAL_CALL getScaledBitmap( const css::geometry::RealSize2D& newSize, sal_Bool beFast ) throw (css::uno::RuntimeException, std::exception) override { typename BaseType::MutexType aGuard( BaseType::m_aMutex ); @@ -93,7 +93,7 @@ namespace canvas template< class Base, class CanvasHelper, class Mutex=::osl::MutexGuard, - class UnambiguousBase=::com::sun::star::uno::XInterface > class BitmapCanvasBase2 : + class UnambiguousBase = css::uno::XInterface > class BitmapCanvasBase2 : public BitmapCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase > { typedef BitmapCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase > @@ -101,14 +101,14 @@ namespace canvas public: // XBitmapCanvas - virtual void SAL_CALL copyRect( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas >& sourceCanvas, - const ::com::sun::star::geometry::RealRectangle2D& sourceRect, - const ::com::sun::star::rendering::ViewState& sourceViewState, - const ::com::sun::star::rendering::RenderState& sourceRenderState, - const ::com::sun::star::geometry::RealRectangle2D& destRect, - const ::com::sun::star::rendering::ViewState& destViewState, - const ::com::sun::star::rendering::RenderState& destRenderState ) throw (::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::uno::RuntimeException) override + virtual void SAL_CALL copyRect( const css::uno::Reference< css::rendering::XBitmapCanvas >& sourceCanvas, + const css::geometry::RealRectangle2D& sourceRect, + const css::rendering::ViewState& sourceViewState, + const css::rendering::RenderState& sourceRenderState, + const css::geometry::RealRectangle2D& destRect, + const css::rendering::ViewState& destViewState, + const css::rendering::RenderState& destRenderState ) throw (css::lang::IllegalArgumentException, + css::uno::RuntimeException) override { tools::verifyArgs(sourceCanvas, sourceRect, sourceViewState, sourceRenderState, destRect, destViewState, destRenderState, diff --git a/include/canvas/base/bufferedgraphicdevicebase.hxx b/include/canvas/base/bufferedgraphicdevicebase.hxx index 9684762..d737aa9 100644 --- a/include/canvas/base/bufferedgraphicdevicebase.hxx +++ b/include/canvas/base/bufferedgraphicdevicebase.hxx @@ -73,7 +73,7 @@ namespace canvas template< class Base, class DeviceHelper, class Mutex=::osl::MutexGuard, - class UnambiguousBase=::com::sun::star::uno::XInterface > class BufferedGraphicDeviceBase : + class UnambiguousBase = css::uno::XInterface > class BufferedGraphicDeviceBase : public GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase > { public: @@ -93,26 +93,26 @@ namespace canvas } // XGraphicDevice - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBufferController > SAL_CALL getBufferController( ) throw (::com::sun::star::uno::RuntimeException) override + virtual css::uno::Reference< css::rendering::XBufferController > SAL_CALL getBufferController( ) throw (css::uno::RuntimeException) override { return this; } // XBufferController - virtual ::sal_Int32 SAL_CALL createBuffers( ::sal_Int32 nBuffers ) throw (::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::uno::RuntimeException) override + virtual ::sal_Int32 SAL_CALL createBuffers( ::sal_Int32 nBuffers ) throw (css::lang::IllegalArgumentException, + css::uno::RuntimeException) override { tools::verifyRange( nBuffers, (sal_Int32)1 ); return 1; } - virtual void SAL_CALL destroyBuffers( ) throw (::com::sun::star::uno::RuntimeException) override + virtual void SAL_CALL destroyBuffers( ) throw (css::uno::RuntimeException) override { } virtual sal_Bool SAL_CALL showBuffer( sal_Bool bUpdateAll ) - throw (::com::sun::star::uno::RuntimeException, + throw (css::uno::RuntimeException, std::exception) override { MutexType aGuard( BaseType::m_aMutex ); @@ -120,7 +120,7 @@ namespace canvas return BaseType::maDeviceHelper.showBuffer( mbIsVisible, bUpdateAll ); } - virtual sal_Bool SAL_CALL switchBuffer( sal_Bool bUpdateAll ) throw (::com::sun::star::uno::RuntimeException, std::exception) override + virtual sal_Bool SAL_CALL switchBuffer( sal_Bool bUpdateAll ) throw (css::uno::RuntimeException, std::exception) override { MutexType aGuard( BaseType::m_aMutex ); @@ -139,8 +139,7 @@ namespace canvas is called, with rBounds the window bound rect relative to the frame window. */ - void setWindow( const ::com::sun::star::uno::Reference< - ::com::sun::star::awt::XWindow2 >& rWindow ) + void setWindow( const css::uno::Reference< css::awt::XWindow2 >& rWindow ) { if( mxWindow.is() ) mxWindow->removeWindowListener( this ); @@ -151,23 +150,23 @@ namespace canvas { mbIsVisible = mxWindow->isVisible(); mbIsTopLevel = - ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTopWindow >( + css::uno::Reference< css::awt::XTopWindow >( mxWindow, - ::com::sun::star::uno::UNO_QUERY ).is(); + css::uno::UNO_QUERY ).is(); maBounds = transformBounds( mxWindow->getPosSize() ); mxWindow->addWindowListener( this ); } } - ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow2 > getWindow() const + css::uno::Reference< css::awt::XWindow2 > getWindow() const { return mxWindow; } - ::com::sun::star::uno::Any getXWindow() const + css::uno::Any getXWindow() const { - return ::com::sun::star::uno::makeAny(mxWindow); + return css::uno::makeAny(mxWindow); } virtual void disposeThis() override @@ -184,7 +183,7 @@ namespace canvas BaseType::disposeThis(); } - ::com::sun::star::awt::Rectangle transformBounds( const ::com::sun::star::awt::Rectangle& rBounds ) + css::awt::Rectangle transformBounds( const css::awt::Rectangle& rBounds ) { // notifySizeUpdate's bounds are relative to the toplevel // window @@ -193,16 +192,15 @@ namespace canvas rBounds, mxWindow ); else - return ::com::sun::star::awt::Rectangle( 0,0,rBounds.Width,rBounds.Height ); + return css::awt::Rectangle( 0,0,rBounds.Width,rBounds.Height ); } - void boundsChanged( const ::com::sun::star::awt::WindowEvent& e ) + void boundsChanged( const css::awt::WindowEvent& e ) { typename BaseType::MutexType aGuard( BaseType::m_aMutex ); - const ::com::sun::star::awt::Rectangle& rNewBounds( - transformBounds( - ::com::sun::star::awt::Rectangle( e.X, + const css::awt::Rectangle& rNewBounds( + transformBounds( css::awt::Rectangle( e.X, e.Y, e.Width, e.Height ))); @@ -218,7 +216,7 @@ namespace canvas } // XWindowListener - virtual void disposeEventSource( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException) override + virtual void disposeEventSource( const css::lang::EventObject& Source ) throw (css::uno::RuntimeException) override { typename BaseType::MutexType aGuard( BaseType::m_aMutex ); @@ -228,24 +226,24 @@ namespace canvas BaseType::disposeEventSource(Source); } - virtual void SAL_CALL windowResized( const ::com::sun::star::awt::WindowEvent& e ) throw (::com::sun::star::uno::RuntimeException) override + virtual void SAL_CALL windowResized( const css::awt::WindowEvent& e ) throw (css::uno::RuntimeException) override { boundsChanged( e ); } - virtual void SAL_CALL windowMoved( const ::com::sun::star::awt::WindowEvent& e ) throw (::com::sun::star::uno::RuntimeException) override + virtual void SAL_CALL windowMoved( const css::awt::WindowEvent& e ) throw (css::uno::RuntimeException) override { boundsChanged( e ); } - virtual void SAL_CALL windowShown( const ::com::sun::star::lang::EventObject& ) throw (::com::sun::star::uno::RuntimeException) override + virtual void SAL_CALL windowShown( const css::lang::EventObject& ) throw (css::uno::RuntimeException) override { typename BaseType::MutexType aGuard( BaseType::m_aMutex ); mbIsVisible = true; } - virtual void SAL_CALL windowHidden( const ::com::sun::star::lang::EventObject& ) throw (::com::sun::star::uno::RuntimeException) override + virtual void SAL_CALL windowHidden( const css::lang::EventObject& ) throw (css::uno::RuntimeException) override { typename BaseType::MutexType aGuard( BaseType::m_aMutex ); @@ -253,17 +251,17 @@ namespace canvas } protected: - ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow2 > mxWindow; + css::uno::Reference< css::awt::XWindow2 > mxWindow; /// Current bounds of the owning Window - ::com::sun::star::awt::Rectangle maBounds; + css::awt::Rectangle maBounds; /// True, if the window this canvas is contained in, is visible - bool mbIsVisible; + bool mbIsVisible; private: /// True, if the window this canvas is contained in, is a toplevel window - bool mbIsTopLevel; + bool mbIsTopLevel; }; } diff --git a/include/canvas/base/cachedprimitivebase.hxx b/include/canvas/base/cachedprimitivebase.hxx index 9892aa6..7393b1d 100644 --- a/include/canvas/base/cachedprimitivebase.hxx +++ b/include/canvas/base/cachedprimitivebase.hxx @@ -34,8 +34,8 @@ namespace canvas { - typedef ::cppu::WeakComponentImplHelper2< ::com::sun::star::rendering::XCachedPrimitive, - ::com::sun::star::lang::XServiceInfo > CachedPrimitiveBase_Base; + typedef ::cppu::WeakComponentImplHelper2< css::rendering::XCachedPrimitive, + css::lang::XServiceInfo > CachedPrimitiveBase_Base; /** Base class, providing common functionality for implementers of the XCachedPrimitive interface. @@ -60,21 +60,20 @@ namespace canvas objects where re-transforming the generated output is not desirable, e.g. for hinted font output. */ - CachedPrimitiveBase( const ::com::sun::star::rendering::ViewState& rUsedViewState, - const ::com::sun::star::uno::Reference< - ::com::sun::star::rendering::XCanvas >& rTarget, - bool bFailForChangedViewTransform ); + CachedPrimitiveBase( const css::rendering::ViewState& rUsedViewState, + const css::uno::Reference< css::rendering::XCanvas >& rTarget, + bool bFailForChangedViewTransform ); /// Dispose all internal references virtual void SAL_CALL disposing() override; // XCachedPrimitive - virtual ::sal_Int8 SAL_CALL redraw( const ::com::sun::star::rendering::ViewState& aState ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) override; + virtual ::sal_Int8 SAL_CALL redraw( const css::rendering::ViewState& aState ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override; // XServiceInfo - virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; - virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; - virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual OUString SAL_CALL getImplementationName( ) throw (css::uno::RuntimeException, std::exception) override; + virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (css::uno::RuntimeException, std::exception) override; + virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (css::uno::RuntimeException, std::exception) override; protected: virtual ~CachedPrimitiveBase(); // we're a ref-counted UNO class. _We_ destroy ourselves. @@ -100,15 +99,14 @@ namespace canvas @param bSameViewTransform When true, rNewState and rOldState have the same transformation. */ - virtual ::sal_Int8 doRedraw( const ::com::sun::star::rendering::ViewState& rNewState, - const ::com::sun::star::rendering::ViewState& rOldState, - const ::com::sun::star::uno::Reference< - ::com::sun::star::rendering::XCanvas >& rTargetCanvas, - bool bSameViewTransform ) = 0; - - ::com::sun::star::rendering::ViewState maUsedViewState; - ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvas > mxTarget; - const bool mbFailForChangedViewTransform; + virtual ::sal_Int8 doRedraw( const css::rendering::ViewState& rNewState, + const css::rendering::ViewState& rOldState, + const css::uno::Reference< css::rendering::XCanvas >& rTargetCanvas, + bool bSameViewTransform ) = 0; + + css::rendering::ViewState maUsedViewState; + css::uno::Reference< css::rendering::XCanvas > mxTarget; + const bool mbFailForChangedViewTransform; }; } diff --git a/include/canvas/base/canvasbase.hxx b/include/canvas/base/canvasbase.hxx index 9f769f7..9bb513c 100644 --- a/include/canvas/base/canvasbase.hxx +++ b/include/canvas/base/canvasbase.hxx @@ -47,10 +47,10 @@ namespace canvas <pre> Example: - typedef ::cppu::WeakComponentImplHelper4< ::com::sun::star::rendering::XSpriteCanvas, - ::com::sun::star::lang::XInitialization, - ::com::sun::star::lang::XServiceInfo, - ::com::sun::star::lang::XServiceName > CanvasBase_Base; + typedef ::cppu::WeakComponentImplHelper4< css::rendering::XSpriteCanvas, + css::lang::XInitialization, + css::lang::XServiceInfo, + css::lang::XServiceName > CanvasBase_Base; typedef ::canvas::internal::CanvasBase< CanvasBase_Base, CanvasHelper > ExampleCanvas_Base; class ExampleCanvas : public ExampleCanvas_Base, @@ -94,7 +94,7 @@ namespace canvas template< class Base, class CanvasHelper, class Mutex=::osl::MutexGuard, - class UnambiguousBase=::com::sun::star::uno::XInterface > class CanvasBase : + class UnambiguousBase=css::uno::XInterface > class CanvasBase : public Base { public: @@ -122,7 +122,7 @@ namespace canvas } // XCanvas - virtual void SAL_CALL clear() throw (::com::sun::star::uno::RuntimeException, std::exception) override + virtual void SAL_CALL clear() throw (css::uno::RuntimeException, std::exception) override { MutexType aGuard( BaseType::m_aMutex ); @@ -185,10 +185,10 @@ namespace canvas maCanvasHelper.drawBezier( this, aBezierSegment, aEndPoint, viewState, renderState ); } - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL - drawPolyPolygon(const css::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon, - const css::rendering::ViewState& viewState, - const css::rendering::RenderState& renderState) + virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL + drawPolyPolygon(const css::uno::Reference< css::rendering::XPolyPolygon2D >& xPolyPolygon, + const css::rendering::ViewState& viewState, + const css::rendering::RenderState& renderState) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override @@ -204,11 +204,11 @@ namespace canvas return maCanvasHelper.drawPolyPolygon( this, xPolyPolygon, viewState, renderState ); } - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL - strokePolyPolygon(const css::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon, - const css::rendering::ViewState& viewState, - const css::rendering::RenderState& renderState, - const css::rendering::StrokeAttributes& strokeAttributes) + virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL + strokePolyPolygon(const css::uno::Reference< css::rendering::XPolyPolygon2D >& xPolyPolygon, + const css::rendering::ViewState& viewState, + const css::rendering::RenderState& renderState, + const css::rendering::StrokeAttributes& strokeAttributes) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override @@ -224,13 +224,13 @@ namespace canvas return maCanvasHelper.strokePolyPolygon( this, xPolyPolygon, viewState, renderState, strokeAttributes ); } - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL - strokeTexturedPolyPolygon( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon, - const ::com::sun::star::rendering::ViewState& viewState, - const ::com::sun::star::rendering::RenderState& renderState, - const ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::Texture >& textures, - const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes ) throw (::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::uno::RuntimeException) override + virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL + strokeTexturedPolyPolygon( const css::uno::Reference< css::rendering::XPolyPolygon2D >& xPolyPolygon, + const css::rendering::ViewState& viewState, + const css::rendering::RenderState& renderState, + const css::uno::Sequence< css::rendering::Texture >& textures, + const css::rendering::StrokeAttributes& strokeAttributes ) throw (css::lang::IllegalArgumentException, + css::uno::RuntimeException) override { tools::verifyArgs(xPolyPolygon, viewState, renderState, strokeAttributes, BOOST_CURRENT_FUNCTION, @@ -243,14 +243,14 @@ namespace canvas return maCanvasHelper.strokeTexturedPolyPolygon( this, xPolyPolygon, viewState, renderState, textures, strokeAttributes ); } - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL - strokeTextureMappedPolyPolygon( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon, - const ::com::sun::star::rendering::ViewState& viewState, - const ::com::sun::star::rendering::RenderState& renderState, - const ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::Texture >& textures, - const ::com::sun::star::uno::Reference< ::com::sun::star::geometry::XMapping2D >& xMapping, - const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes ) throw (::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::uno::RuntimeException) override + virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL + strokeTextureMappedPolyPolygon( const css::uno::Reference< css::rendering::XPolyPolygon2D >& xPolyPolygon, + const css::rendering::ViewState& viewState, + const css::rendering::RenderState& renderState, + const css::uno::Sequence< css::rendering::Texture >& textures, + const css::uno::Reference< css::geometry::XMapping2D >& xMapping, + const css::rendering::StrokeAttributes& strokeAttributes ) throw (css::lang::IllegalArgumentException, + css::uno::RuntimeException) override { tools::verifyArgs(xPolyPolygon, viewState, renderState, textures, xMapping, strokeAttributes, BOOST_CURRENT_FUNCTION, @@ -263,12 +263,12 @@ namespace canvas return maCanvasHelper.strokeTextureMappedPolyPolygon( this, xPolyPolygon, viewState, renderState, textures, xMapping, strokeAttributes ); } - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D > SAL_CALL - queryStrokeShapes( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon, - const ::com::sun::star::rendering::ViewState& viewState, - const ::com::sun::star::rendering::RenderState& renderState, - const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes ) throw (::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::uno::RuntimeException) override + virtual css::uno::Reference< css::rendering::XPolyPolygon2D > SAL_CALL + queryStrokeShapes( const css::uno::Reference< css::rendering::XPolyPolygon2D >& xPolyPolygon, + const css::rendering::ViewState& viewState, + const css::rendering::RenderState& renderState, + const css::rendering::StrokeAttributes& strokeAttributes ) throw (css::lang::IllegalArgumentException, + css::uno::RuntimeException) override { tools::verifyArgs(xPolyPolygon, viewState, renderState, strokeAttributes, BOOST_CURRENT_FUNCTION, @@ -281,8 +281,8 @@ namespace canvas return maCanvasHelper.queryStrokeShapes( this, xPolyPolygon, viewState, renderState, strokeAttributes ); } - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL - fillPolyPolygon(const css::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon, + virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL + fillPolyPolygon(const css::uno::Reference< css::rendering::XPolyPolygon2D >& xPolyPolygon, const css::rendering::ViewState& viewState, const css::rendering::RenderState& renderState) throw (css::lang::IllegalArgumentException, @@ -300,11 +300,11 @@ namespace canvas return maCanvasHelper.fillPolyPolygon( this, xPolyPolygon, viewState, renderState ); } - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL - fillTexturedPolyPolygon(const css::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon, - const css::rendering::ViewState& viewState, - const css::rendering::RenderState& renderState, - const css::uno::Sequence< ::com::sun::star::rendering::Texture >& textures) + virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL + fillTexturedPolyPolygon(const css::uno::Reference< css::rendering::XPolyPolygon2D >& xPolyPolygon, + const css::rendering::ViewState& viewState, + const css::rendering::RenderState& renderState, + const css::uno::Sequence< css::rendering::Texture >& textures) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override @@ -320,12 +320,12 @@ namespace canvas return maCanvasHelper.fillTexturedPolyPolygon( this, xPolyPolygon, viewState, renderState, textures ); } - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL - fillTextureMappedPolyPolygon( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon, - const ::com::sun::star::rendering::ViewState& viewState, - const ::com::sun::star::rendering::RenderState& renderState, - const ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::Texture >& textures, - const ::com::sun::star::uno::Reference< ::com::sun::star::geometry::XMapping2D >& xMapping ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) override + virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL + fillTextureMappedPolyPolygon( const css::uno::Reference< css::rendering::XPolyPolygon2D >& xPolyPolygon, + const css::rendering::ViewState& viewState, + const css::rendering::RenderState& renderState, + const css::uno::Sequence< css::rendering::Texture >& textures, + const css::uno::Reference< css::geometry::XMapping2D >& xMapping ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException) override { tools::verifyArgs(xPolyPolygon, viewState, renderState, textures, xMapping, BOOST_CURRENT_FUNCTION, @@ -339,11 +339,11 @@ namespace canvas } - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvasFont > SAL_CALL - createFont( const ::com::sun::star::rendering::FontRequest& fontRequest, - const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& extraFontProperties, - const ::com::sun::star::geometry::Matrix2D& fontMatrix ) throw (::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::uno::RuntimeException) override + virtual css::uno::Reference< css::rendering::XCanvasFont > SAL_CALL + createFont( const css::rendering::FontRequest& fontRequest, + const css::uno::Sequence< css::beans::PropertyValue >& extraFontProperties, + const css::geometry::Matrix2D& fontMatrix ) throw (css::lang::IllegalArgumentException, + css::uno::RuntimeException) override { tools::verifyArgs(fontRequest, // dummy, to keep argPos in sync @@ -358,10 +358,10 @@ namespace canvas } - virtual ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::FontInfo > SAL_CALL - queryAvailableFonts( const ::com::sun::star::rendering::FontInfo& aFilter, - const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aFontProperties ) throw (::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::uno::RuntimeException) override + virtual css::uno::Sequence< css::rendering::FontInfo > SAL_CALL + queryAvailableFonts( const css::rendering::FontInfo& aFilter, + const css::uno::Sequence< css::beans::PropertyValue >& aFontProperties ) throw (css::lang::IllegalArgumentException, + css::uno::RuntimeException) override { tools::verifyArgs(aFilter, BOOST_CURRENT_FUNCTION, @@ -373,9 +373,9 @@ namespace canvas } - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL + virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL drawText(const css::rendering::StringContext& text, - const css::uno::Reference< ::com::sun::star::rendering::XCanvasFont >& xFont, + const css::uno::Reference< css::rendering::XCanvasFont >& xFont, const css::rendering::ViewState& viewState, const css::rendering::RenderState& renderState, sal_Int8 textDirection) @@ -387,8 +387,8 @@ namespace canvas BOOST_CURRENT_FUNCTION, static_cast< UnambiguousBaseType* >(this)); tools::verifyRange( textDirection, - ::com::sun::star::rendering::TextDirection::WEAK_LEFT_TO_RIGHT, - ::com::sun::star::rendering::TextDirection::STRONG_RIGHT_TO_LEFT ); + css::rendering::TextDirection::WEAK_LEFT_TO_RIGHT, + css::rendering::TextDirection::STRONG_RIGHT_TO_LEFT ); MutexType aGuard( BaseType::m_aMutex ); @@ -398,8 +398,8 @@ namespace canvas } - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL - drawTextLayout(const css::uno::Reference< ::com::sun::star::rendering::XTextLayout >& laidOutText, + virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL + drawTextLayout(const css::uno::Reference< css::rendering::XTextLayout >& laidOutText, const css::rendering::ViewState& viewState, const css::rendering::RenderState& renderState) throw (css::lang::IllegalArgumentException, @@ -418,10 +418,10 @@ namespace canvas } - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL - drawBitmap( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >& xBitmap, - const ::com::sun::star::rendering::ViewState& viewState, - const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) override + virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL + drawBitmap( const css::uno::Reference< css::rendering::XBitmap >& xBitmap, + const css::rendering::ViewState& viewState, + const css::rendering::RenderState& renderState ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException) override { tools::verifyArgs(xBitmap, viewState, renderState, BOOST_CURRENT_FUNCTION, @@ -434,10 +434,10 @@ namespace canvas return maCanvasHelper.drawBitmap( this, xBitmap, viewState, renderState ); } - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL - drawBitmapModulated( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >& xBitmap, - const ::com::sun::star::rendering::ViewState& viewState, - const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) override + virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL + drawBitmapModulated( const css::uno::Reference< css::rendering::XBitmap >& xBitmap, + const css::rendering::ViewState& viewState, + const css::rendering::RenderState& renderState ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException) override { tools::verifyArgs(xBitmap, viewState, renderState, BOOST_CURRENT_FUNCTION, @@ -450,8 +450,8 @@ namespace canvas return maCanvasHelper.drawBitmapModulated( this, xBitmap, viewState, renderState ); } - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice > SAL_CALL - getDevice() throw (::com::sun::star::uno::RuntimeException) override + virtual css::uno::Reference< css::rendering::XGraphicDevice > SAL_CALL + getDevice() throw (css::uno::RuntimeException) override { MutexType aGuard( BaseType::m_aMutex ); diff --git a/include/canvas/base/canvascustomspritebase.hxx b/include/canvas/base/canvascustomspritebase.hxx index a3deacd..e906cb1 100644 --- a/include/canvas/base/canvascustomspritebase.hxx +++ b/include/canvas/base/canvascustomspritebase.hxx @@ -74,7 +74,7 @@ namespace canvas class SpriteHelper, class CanvasHelper, class Mutex=::osl::MutexGuard, - class UnambiguousBase=::com::sun::star::uno::XInterface > class CanvasCustomSpriteBase : + class UnambiguousBase = css::uno::XInterface > class CanvasCustomSpriteBase : public IntegerBitmapBase< BitmapCanvasBase2<Base, CanvasHelper, Mutex, UnambiguousBase> > { public: @@ -105,7 +105,7 @@ namespace canvas } // XCanvas: selectively override base's methods here, for opacity tracking - virtual void SAL_CALL clear() throw (::com::sun::star::uno::RuntimeException, std::exception) override + virtual void SAL_CALL clear() throw (css::uno::RuntimeException, std::exception) override { typename BaseType::MutexType aGuard( BaseType::m_aMutex ); @@ -115,11 +115,11 @@ namespace canvas return BaseType::clear(); } - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL - drawBitmap( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >& xBitmap, - const ::com::sun::star::rendering::ViewState& viewState, - const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::uno::RuntimeException) override + virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL + drawBitmap( const css::uno::Reference< css::rendering::XBitmap >& xBitmap, + const css::rendering::ViewState& viewState, + const css::rendering::RenderState& renderState ) throw (css::lang::IllegalArgumentException, + css::uno::RuntimeException) override { tools::verifyArgs(xBitmap, viewState, renderState, BOOST_CURRENT_FUNCTION, @@ -143,8 +143,8 @@ namespace canvas // functionality provided at the baseclass. // XSprite - virtual void SAL_CALL setAlpha( double alpha ) throw (::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::uno::RuntimeException) override + virtual void SAL_CALL setAlpha( double alpha ) throw (css::lang::IllegalArgumentException, + css::uno::RuntimeException) override { tools::verifyRange( alpha, 0.0, 1.0 ); @@ -153,10 +153,10 @@ namespace canvas maSpriteHelper.setAlpha( this, alpha ); } - virtual void SAL_CALL move( const ::com::sun::star::geometry::RealPoint2D& aNewPos, - const ::com::sun::star::rendering::ViewState& viewState, - const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::uno::RuntimeException) override + virtual void SAL_CALL move( const css::geometry::RealPoint2D& aNewPos, + const css::rendering::ViewState& viewState, + const css::rendering::RenderState& renderState ) throw (css::lang::IllegalArgumentException, + css::uno::RuntimeException) override { tools::verifyArgs(aNewPos, viewState, renderState, BOOST_CURRENT_FUNCTION, @@ -167,8 +167,8 @@ namespace canvas maSpriteHelper.move( this, aNewPos, viewState, renderState ); } - virtual void SAL_CALL transform( const ::com::sun::star::geometry::AffineMatrix2D& aTransformation ) throw (::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::uno::RuntimeException) override + virtual void SAL_CALL transform( const css::geometry::AffineMatrix2D& aTransformation ) throw (css::lang::IllegalArgumentException, + css::uno::RuntimeException) override { tools::verifyArgs(aTransformation, BOOST_CURRENT_FUNCTION, @@ -179,7 +179,7 @@ namespace canvas maSpriteHelper.transform( this, aTransformation ); } - virtual void SAL_CALL clip( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& aClip ) throw (::com::sun::star::uno::RuntimeException) override + virtual void SAL_CALL clip( const css::uno::Reference< css::rendering::XPolyPolygon2D >& aClip ) throw (css::uno::RuntimeException) override { // NULL xClip explicitly allowed here (to clear clipping) @@ -188,21 +188,21 @@ namespace canvas maSpriteHelper.clip( this, aClip ); } - virtual void SAL_CALL setPriority( double nPriority ) throw (::com::sun::star::uno::RuntimeException) override + virtual void SAL_CALL setPriority( double nPriority ) throw (css::uno::RuntimeException) override { typename BaseType::MutexType aGuard( BaseType::m_aMutex ); maSpriteHelper.setPriority( this, nPriority ); } - virtual void SAL_CALL show() throw (::com::sun::star::uno::RuntimeException) override + virtual void SAL_CALL show() throw (css::uno::RuntimeException) override { typename BaseType::MutexType aGuard( BaseType::m_aMutex ); maSpriteHelper.show( this ); } - virtual void SAL_CALL hide() throw (::com::sun::star::uno::RuntimeException) override + virtual void SAL_CALL hide() throw (css::uno::RuntimeException) override { typename BaseType::MutexType aGuard( BaseType::m_aMutex ); @@ -210,8 +210,8 @@ namespace canvas } // XCustomSprite - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvas > SAL_CALL - getContentCanvas() throw (::com::sun::star::uno::RuntimeException) override + virtual css::uno::Reference< css::rendering::XCanvas > SAL_CALL + getContentCanvas() throw (css::uno::RuntimeException) override { typename BaseType::MutexType aGuard( BaseType::m_aMutex ); diff --git a/include/canvas/base/canvascustomspritehelper.hxx b/include/canvas/base/canvascustomspritehelper.hxx index a81a0b6..a6b2557 100644 --- a/include/canvas/base/canvascustomspritehelper.hxx +++ b/include/canvas/base/canvascustomspritehelper.hxx @@ -51,7 +51,7 @@ namespace canvas @param rOwningSpriteCanvas The XSpriteCanvas this sprite is displayed on */ - void init( const ::com::sun::star::geometry::RealSize2D& rSpriteSize, + void init( const css::geometry::RealSize2D& rSpriteSize, const SpriteSurface::Reference& rOwningSpriteCanvas ); /** Object is being disposed, release all internal references @@ -66,22 +66,22 @@ namespace canvas void clearingContent( const Sprite::Reference& rSprite ); /// need to call this method for XCanvas::drawBitmap(), for opacity tracking - void checkDrawBitmap( const Sprite::Reference& rSprite, - const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >& xBitmap, - const ::com::sun::star::rendering::ViewState& viewState, - const ::com::sun::star::rendering::RenderState& renderState ); + void checkDrawBitmap( const Sprite::Reference& rSprite, + const css::uno::Reference< css::rendering::XBitmap >& xBitmap, + const css::rendering::ViewState& viewState, + const css::rendering::RenderState& renderState ); // XSprite void setAlpha( const Sprite::Reference& rSprite, double alpha ); - void move( const Sprite::Reference& rSprite, - const ::com::sun::star::geometry::RealPoint2D& aNewPos, - const ::com::sun::star::rendering::ViewState& viewState, - const ::com::sun::star::rendering::RenderState& renderState ); - void transform( const Sprite::Reference& rSprite, - const ::com::sun::star::geometry::AffineMatrix2D& aTransformation ); - void clip( const Sprite::Reference& rSprite, - const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& aClip ); + void move( const Sprite::Reference& rSprite, + const css::geometry::RealPoint2D& aNewPos, + const css::rendering::ViewState& viewState, + const css::rendering::RenderState& renderState ); + void transform( const Sprite::Reference& rSprite, + const css::geometry::AffineMatrix2D& aTransformation ); + void clip( const Sprite::Reference& rSprite, + const css::uno::Reference< css::rendering::XPolyPolygon2D >& aClip ); void setPriority( const Sprite::Reference& rSprite, double nPriority ); void show( const Sprite::Reference& rSprite ); @@ -138,8 +138,8 @@ namespace canvas double getAlpha() const { return mfAlpha; } /// Retrieve current clip - const ::com::sun::star::uno::Reference< - ::com::sun::star::rendering::XPolyPolygon2D >& getClip() const { return mxClipPoly; } + const css::uno::Reference< + css::rendering::XPolyPolygon2D >& getClip() const { return mxClipPoly; } const ::basegfx::B2DHomMatrix& getTransformation() const { return maTransform; } @@ -204,7 +204,7 @@ namespace canvas @derive Needs to be provided by backend-specific code */ virtual ::basegfx::B2DPolyPolygon polyPolygonFromXPolyPolygon2D( - ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPoly ) const = 0; + css::uno::Reference< css::rendering::XPolyPolygon2D >& xPoly ) const = 0; /** Update clip information from current state @@ -239,8 +239,7 @@ namespace canvas ::basegfx::B2DPoint maPosition; ::basegfx::B2DVector maSize; ::basegfx::B2DHomMatrix maTransform; - ::com::sun::star::uno::Reference< - ::com::sun::star::rendering::XPolyPolygon2D > mxClipPoly; + css::uno::Reference< css::rendering::XPolyPolygon2D > mxClipPoly; double mfPriority; double mfAlpha; bool mbActive; // true, if not hidden diff --git a/include/canvas/base/disambiguationhelper.hxx b/include/canvas/base/disambiguationhelper.hxx index 45e2028..b0caf19 100644 --- a/include/canvas/base/disambiguationhelper.hxx +++ b/include/canvas/base/disambiguationhelper.hxx @@ -60,7 +60,7 @@ namespace canvas virtual void disposeThis() {} - virtual void disposeEventSource( const ::com::sun::star::lang::EventObject& ) throw (::com::sun::star::uno::RuntimeException) + virtual void disposeEventSource( const css::lang::EventObject& ) throw (css::uno::RuntimeException) {} mutable ::osl::Mutex m_aMutex; @@ -69,7 +69,7 @@ namespace canvas virtual void SAL_CALL disposing() override { disposeThis(); } - virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException) override + virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) throw (css::uno::RuntimeException) override { disposeEventSource(Source); } }; diff --git a/include/canvas/base/integerbitmapbase.hxx b/include/canvas/base/integerbitmapbase.hxx index 57203b4..4995578 100644 --- a/include/canvas/base/integerbitmapbase.hxx +++ b/include/canvas/base/integerbitmapbase.hxx @@ -41,8 +41,8 @@ namespace canvas { public: // XIntegerBitmap - virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getData( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout, - const ::com::sun::star::geometry::IntegerRectangle2D& rect ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::rendering::VolatileContentDestroyedException, ::com::sun::star::uno::RuntimeException, std::exception) override + virtual css::uno::Sequence< sal_Int8 > SAL_CALL getData( css::rendering::IntegerBitmapLayout& bitmapLayout, + const css::geometry::IntegerRectangle2D& rect ) throw (css::lang::IndexOutOfBoundsException, css::rendering::VolatileContentDestroyedException, css::uno::RuntimeException, std::exception) override { tools::verifyArgs(rect, BOOST_CURRENT_FUNCTION, @@ -55,9 +55,9 @@ namespace canvas rect ); } - virtual void SAL_CALL setData( const ::com::sun::star::uno::Sequence< sal_Int8 >&, - const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout, - const ::com::sun::star::geometry::IntegerRectangle2D& rect ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) override + virtual void SAL_CALL setData( const css::uno::Sequence< sal_Int8 >&, + const css::rendering::IntegerBitmapLayout& bitmapLayout, + const css::geometry::IntegerRectangle2D& rect ) throw (css::lang::IllegalArgumentException, css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) override { tools::verifyArgs(bitmapLayout, rect, BOOST_CURRENT_FUNCTION, @@ -69,9 +69,9 @@ namespace canvas Base::mbSurfaceDirty = true; } - virtual void SAL_CALL setPixel( const ::com::sun::star::uno::Sequence< sal_Int8 >&, - const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout, - const ::com::sun::star::geometry::IntegerPoint2D& pos ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) override + virtual void SAL_CALL setPixel( const css::uno::Sequence< sal_Int8 >&, + const css::rendering::IntegerBitmapLayout& bitmapLayout, + const css::geometry::IntegerPoint2D& pos ) throw (css::lang::IllegalArgumentException, css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) override { tools::verifyArgs(bitmapLayout, pos, BOOST_CURRENT_FUNCTION, @@ -83,8 +83,8 @@ namespace canvas Base::mbSurfaceDirty = true; } - virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getPixel( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout, - const ::com::sun::star::geometry::IntegerPoint2D& pos ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::rendering::VolatileContentDestroyedException, ::com::sun::star::uno::RuntimeException, std::exception) override + virtual css::uno::Sequence< sal_Int8 > SAL_CALL getPixel( css::rendering::IntegerBitmapLayout& bitmapLayout, + const css::geometry::IntegerPoint2D& pos ) throw (css::lang::IndexOutOfBoundsException, css::rendering::VolatileContentDestroyedException, css::uno::RuntimeException, std::exception) override { tools::verifyArgs(pos, BOOST_CURRENT_FUNCTION, @@ -97,7 +97,7 @@ namespace canvas pos ); } - virtual ::com::sun::star::rendering::IntegerBitmapLayout SAL_CALL getMemoryLayout( ) throw (::com::sun::star::uno::RuntimeException) override + virtual css::rendering::IntegerBitmapLayout SAL_CALL getMemoryLayout( ) throw (css::uno::RuntimeException) override { typename Base::MutexType aGuard( Base::m_aMutex ); diff --git a/include/canvas/base/sprite.hxx b/include/canvas/base/sprite.hxx index b3ed7db..349e164 100644 --- a/include/canvas/base/sprite.hxx +++ b/include/canvas/base/sprite.hxx @@ -51,7 +51,7 @@ namespace canvas functionality (which, of course, is impossible here in a generic way) */ - class Sprite : public ::com::sun::star::lang::XComponent + class Sprite : public css::lang::XComponent { public: typedef ::rtl::Reference< Sprite > Reference; diff --git a/include/canvas/base/spritecanvasbase.hxx b/include/canvas/base/spritecanvasbase.hxx index 2ec2655..ba3ae03 100644 --- a/include/canvas/base/spritecanvasbase.hxx +++ b/include/canvas/base/spritecanvasbase.hxx @@ -65,7 +65,7 @@ namespace canvas template< class Base, class CanvasHelper, class Mutex=::osl::MutexGuard, - class UnambiguousBase=::com::sun::star::uno::XInterface > class SpriteCanvasBase : + class UnambiguousBase = css::uno::XInterface > class SpriteCanvasBase : public IntegerBitmapBase< BitmapCanvasBase<Base, CanvasHelper, Mutex, UnambiguousBase> > { public: @@ -88,8 +88,8 @@ namespace canvas } // XSpriteCanvas - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XAnimatedSprite > SAL_CALL createSpriteFromAnimation( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XAnimation >& animation ) throw (::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::uno::RuntimeException) override + virtual css::uno::Reference< css::rendering::XAnimatedSprite > SAL_CALL createSpriteFromAnimation( const css::uno::Reference< css::rendering::XAnimation >& animation ) throw (css::lang::IllegalArgumentException, + css::uno::RuntimeException) override { tools::verifyArgs(animation, BOOST_CURRENT_FUNCTION, @@ -100,25 +100,25 @@ namespace canvas return BaseType::maCanvasHelper.createSpriteFromAnimation(animation); } - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XAnimatedSprite > SAL_CALL createSpriteFromBitmaps( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > >& animationBitmaps, - sal_Int8 interpolationMode ) throw (::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::rendering::VolatileContentDestroyedException, - ::com::sun::star::uno::RuntimeException) override + virtual css::uno::Reference< css::rendering::XAnimatedSprite > SAL_CALL createSpriteFromBitmaps( const css::uno::Sequence< css::uno::Reference< css::rendering::XBitmap > >& animationBitmaps, + sal_Int8 interpolationMode ) throw (css::lang::IllegalArgumentException, + css::rendering::VolatileContentDestroyedException, + css::uno::RuntimeException) override { tools::verifyArgs(animationBitmaps, BOOST_CURRENT_FUNCTION, static_cast< typename BaseType::UnambiguousBaseType* >(this)); tools::verifyRange( interpolationMode, - ::com::sun::star::rendering::InterpolationMode::NEAREST_NEIGHBOR, - ::com::sun::star::rendering::InterpolationMode::BEZIERSPLINE4 ); + css::rendering::InterpolationMode::NEAREST_NEIGHBOR, + css::rendering::InterpolationMode::BEZIERSPLINE4 ); typename BaseType::MutexType aGuard( BaseType::m_aMutex ); return BaseType::maCanvasHelper.createSpriteFromBitmaps(animationBitmaps, interpolationMode); } - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCustomSprite > SAL_CALL createCustomSprite( const ::com::sun::star::geometry::RealSize2D& spriteSize ) throw (::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::uno::RuntimeException) override + virtual css::uno::Reference< css::rendering::XCustomSprite > SAL_CALL createCustomSprite( const css::geometry::RealSize2D& spriteSize ) throw (css::lang::IllegalArgumentException, + css::uno::RuntimeException) override { tools::verifySpriteSize(spriteSize, BOOST_CURRENT_FUNCTION, @@ -129,8 +129,8 @@ namespace canvas return BaseType::maCanvasHelper.createCustomSprite(spriteSize); } - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XSprite > SAL_CALL createClonedSprite( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XSprite >& original ) throw (::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::uno::RuntimeException) override + virtual css::uno::Reference< css::rendering::XSprite > SAL_CALL createClonedSprite( const css::uno::Reference< css::rendering::XSprite >& original ) throw (css::lang::IllegalArgumentException, + css::uno::RuntimeException) override { tools::verifyArgs(original, BOOST_CURRENT_FUNCTION, diff --git a/include/canvas/base/spritesurface.hxx b/include/canvas/base/spritesurface.hxx index 40a8f79..0d47b97 100644 --- a/include/canvas/base/spritesurface.hxx +++ b/include/canvas/base/spritesurface.hxx @@ -33,7 +33,7 @@ namespace canvas methods provided here are used from the individual sprites to notify the canvas about necessary screen updates. */ - class SpriteSurface : public ::com::sun::star::uno::XInterface + class SpriteSurface : public css::uno::XInterface { public: typedef ::rtl::Reference< SpriteSurface > Reference; diff --git a/include/canvas/canvastools.hxx b/include/canvas/canvastools.hxx index 19e31f3..4ac2624 100644 --- a/include/canvas/canvastools.hxx +++ b/include/canvas/canvastools.hxx @@ -147,56 +147,56 @@ namespace canvas /** Create a RealSize2D with both coordinate values set to +infinity */ - CANVASTOOLS_DLLPUBLIC ::com::sun::star::geometry::RealSize2D createInfiniteSize2D(); + CANVASTOOLS_DLLPUBLIC css::geometry::RealSize2D createInfiniteSize2D(); // View- and RenderState utilities - CANVASTOOLS_DLLPUBLIC ::com::sun::star::rendering::RenderState& - initRenderState( ::com::sun::star::rendering::RenderState& renderState ); + CANVASTOOLS_DLLPUBLIC css::rendering::RenderState& + initRenderState( css::rendering::RenderState& renderState ); - CANVASTOOLS_DLLPUBLIC ::com::sun::star::rendering::ViewState& - initViewState( ::com::sun::star::rendering::ViewState& viewState ); + CANVASTOOLS_DLLPUBLIC css::rendering::ViewState& + initViewState( css::rendering::ViewState& viewState ); CANVASTOOLS_DLLPUBLIC ::basegfx::B2DHomMatrix& - getViewStateTransform( ::basegfx::B2DHomMatrix& transform, - const ::com::sun::star::rendering::ViewState& viewState ); + getViewStateTransform( ::basegfx::B2DHomMatrix& transform, + const css::rendering::ViewState& viewState ); - CANVASTOOLS_DLLPUBLIC ::com::sun::star::rendering::ViewState& - setViewStateTransform( ::com::sun::star::rendering::ViewState& viewState, - const ::basegfx::B2DHomMatrix& transform ); + CANVASTOOLS_DLLPUBLIC css::rendering::ViewState& + setViewStateTransform( css::rendering::ViewState& viewState, + const ::basegfx::B2DHomMatrix& transform ); CANVASTOOLS_DLLPUBLIC ::basegfx::B2DHomMatrix& - getRenderStateTransform( ::basegfx::B2DHomMatrix& transform, - const ::com::sun::star::rendering::RenderState& renderState ); + getRenderStateTransform( ::basegfx::B2DHomMatrix& transform, + const css::rendering::RenderState& renderState ); - CANVASTOOLS_DLLPUBLIC ::com::sun::star::rendering::RenderState& - setRenderStateTransform( ::com::sun::star::rendering::RenderState& renderState, - const ::basegfx::B2DHomMatrix& transform ); + CANVASTOOLS_DLLPUBLIC css::rendering::RenderState& + setRenderStateTransform( css::rendering::RenderState& renderState, + const ::basegfx::B2DHomMatrix& transform ); - CANVASTOOLS_DLLPUBLIC ::com::sun::star::rendering::RenderState& - appendToRenderState( ::com::sun::star::rendering::RenderState& renderState, - const ::basegfx::B2DHomMatrix& transform ); + CANVASTOOLS_DLLPUBLIC css::rendering::RenderState& + appendToRenderState( css::rendering::RenderState& renderState, + const ::basegfx::B2DHomMatrix& transform ); - CANVASTOOLS_DLLPUBLIC ::com::sun::star::rendering::RenderState& - prependToRenderState( ::com::sun::star::rendering::RenderState& renderState, - const ::basegfx::B2DHomMatrix& transform ); + CANVASTOOLS_DLLPUBLIC css::rendering::RenderState& + prependToRenderState( css::rendering::RenderState& renderState, + const ::basegfx::B2DHomMatrix& transform ); CANVASTOOLS_DLLPUBLIC ::basegfx::B2DHomMatrix& - mergeViewAndRenderTransform( ::basegfx::B2DHomMatrix& transform, - const ::com::sun::star::rendering::ViewState& viewState, - const ::com::sun::star::rendering::RenderState& renderState ); + mergeViewAndRenderTransform( ::basegfx::B2DHomMatrix& transform, + const css::rendering::ViewState& viewState, + const css::rendering::RenderState& renderState ); // Matrix utilities - CANVASTOOLS_DLLPUBLIC ::com::sun::star::geometry::AffineMatrix2D& - setIdentityAffineMatrix2D( ::com::sun::star::geometry::AffineMatrix2D& matrix ); + CANVASTOOLS_DLLPUBLIC css::geometry::AffineMatrix2D& + setIdentityAffineMatrix2D( css::geometry::AffineMatrix2D& matrix ); - CANVASTOOLS_DLLPUBLIC ::com::sun::star::geometry::Matrix2D& - setIdentityMatrix2D( ::com::sun::star::geometry::Matrix2D& matrix ); + CANVASTOOLS_DLLPUBLIC css::geometry::Matrix2D& + setIdentityMatrix2D( css::geometry::Matrix2D& matrix ); // Special utilities @@ -349,16 +349,16 @@ namespace canvas @return A reference to the resulting sequence of parameters */ - CANVASTOOLS_DLLPUBLIC ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& getDeviceInfo( - const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvas >& i_rxCanvas, - ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& o_rxParams ); + CANVASTOOLS_DLLPUBLIC css::uno::Sequence< css::uno::Any >& getDeviceInfo( + const css::uno::Reference< css::rendering::XCanvas >& i_rxCanvas, + css::uno::Sequence< css::uno::Any >& o_rxParams ); /** Return a color space for a default RGBA integer format Use this method for dead-simple bitmap implementations, that map all their formats to 8888 RGBA color. */ - CANVASTOOLS_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XIntegerBitmapColorSpace> getStdColorSpace(); + CANVASTOOLS_DLLPUBLIC css::uno::Reference< css::rendering::XIntegerBitmapColorSpace> getStdColorSpace(); /** Return a color space for a default RGB integer format @@ -366,21 +366,21 @@ namespace canvas that map all their formats to 8888 RGB color (the last byte is unused). */ - CANVASTOOLS_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XIntegerBitmapColorSpace> getStdColorSpaceWithoutAlpha(); + CANVASTOOLS_DLLPUBLIC css::uno::Reference< css::rendering::XIntegerBitmapColorSpace> getStdColorSpaceWithoutAlpha(); /** Return a memory layout for a default RGBA integer format Use this method for dead-simple bitmap implementations, that map all their formats to 8888 RGBA color. */ - CANVASTOOLS_DLLPUBLIC ::com::sun::star::rendering::IntegerBitmapLayout getStdMemoryLayout( - const ::com::sun::star::geometry::IntegerSize2D& rBitmapSize ); + CANVASTOOLS_DLLPUBLIC css::rendering::IntegerBitmapLayout getStdMemoryLayout( + const css::geometry::IntegerSize2D& rBitmapSize ); /// Convert standard 8888 RGBA color to vcl color - CANVASTOOLS_DLLPUBLIC ::Color stdIntSequenceToColor( const ::com::sun::star::uno::Sequence<sal_Int8>& rColor ); + CANVASTOOLS_DLLPUBLIC ::Color stdIntSequenceToColor( const css::uno::Sequence<sal_Int8>& rColor ); /// Convert standard 8888 RGBA color to vcl color - CANVASTOOLS_DLLPUBLIC ::com::sun::star::uno::Sequence<sal_Int8> colorToStdIntSequence( const ::Color& rColor ); + CANVASTOOLS_DLLPUBLIC css::uno::Sequence<sal_Int8> colorToStdIntSequence( const ::Color& rColor ); // Modelled closely after boost::numeric_cast, only that we // issue some trace output here and throw a RuntimeException @@ -408,7 +408,7 @@ namespace canvas # if OSL_DEBUG_LEVEL > 2 OSL_TRACE("numeric_cast detected data loss"); #endif - throw ::com::sun::star::uno::RuntimeException( + throw css::uno::RuntimeException( "numeric_cast detected data loss", NULL ); } @@ -416,9 +416,9 @@ namespace canvas return static_cast<Target>(arg); } - CANVASTOOLS_DLLPUBLIC ::com::sun::star::awt::Rectangle getAbsoluteWindowRect( - const ::com::sun::star::awt::Rectangle& rRect, - const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow2 >& xWin ); + CANVASTOOLS_DLLPUBLIC css::awt::Rectangle getAbsoluteWindowRect( + const css::awt::Rectangle& rRect, + const css::uno::Reference< css::awt::XWindow2 >& xWin ); /** Retrieve for small bound marks around each corner of the given rectangle */ @@ -431,11 +431,11 @@ namespace canvas Maximal integer difference between all color stops, needed for smooth gradient color differences */ - CANVASTOOLS_DLLPUBLIC int calcGradientStepCount( ::basegfx::B2DHomMatrix& rTotalTransform, - const ::com::sun::star::rendering::ViewState& viewState, - const ::com::sun::star::rendering::RenderState& renderState, - const ::com::sun::star::rendering::Texture& texture, - int nColorSteps ); + CANVASTOOLS_DLLPUBLIC int calcGradientStepCount( ::basegfx::B2DHomMatrix& rTotalTransform, + const css::rendering::ViewState& viewState, + const css::rendering::RenderState& renderState, + const css::rendering::Texture& texture, + int nColorSteps ); /** A very simplistic map for ASCII strings and arbitrary value types. diff --git a/include/canvas/parametricpolypolygon.hxx b/include/canvas/parametricpolypolygon.hxx index 403bbd4..b3cda55 100644 --- a/include/canvas/parametricpolypolygon.hxx +++ b/include/canvas/parametricpolypolygon.hxx @@ -41,8 +41,8 @@ namespace basegfx namespace canvas { - typedef ::cppu::WeakComponentImplHelper2< ::com::sun::star::rendering::XParametricPolyPolygon2D, - ::com::sun::star::lang::XServiceInfo > ParametricPolyPolygon_Base; + typedef ::cppu::WeakComponentImplHelper2< css::rendering::XParametricPolyPolygon2D, + css::lang::XServiceInfo > ParametricPolyPolygon_Base; class CANVASTOOLS_DLLPUBLIC ParametricPolyPolygon : public ::comphelper::OBaseMutex, public ParametricPolyPolygon_Base, @@ -64,8 +64,8 @@ namespace canvas struct Values { Values( const ::basegfx::B2DPolygon& rGradientPoly, - const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > >& rColors, - const ::com::sun::star::uno::Sequence< double >& rStops, + const css::uno::Sequence< css::uno::Sequence< double > >& rColors, + const css::uno::Sequence< double >& rStops, double nAspectRatio, GradientType eType ) : maGradientPoly( rGradientPoly ), @@ -83,34 +83,34 @@ namespace canvas const double mnAspectRatio; /// Gradient colors - const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > > maColors; + const css::uno::Sequence< css::uno::Sequence< double > > maColors; /// Gradient color stops - const ::com::sun::star::uno::Sequence< double > maStops; + const css::uno::Sequence< double > maStops; /// Type of gradient to render (as e.g. linear grads are not represented by maGradientPoly) const GradientType meType; }; - static ::com::sun::star::uno::Sequence< OUString > getAvailableServiceNames(); + static css::uno::Sequence< OUString > getAvailableServiceNames(); static ParametricPolyPolygon* create( - const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice, + const css::uno::Reference< css::rendering::XGraphicDevice >& rDevice, const OUString& rServiceName, - const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& rArgs ); + const css::uno::Sequence< css::uno::Any >& rArgs ); /// Dispose all internal references virtual void SAL_CALL disposing() override; // XParametricPolyPolygon2D - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D > SAL_CALL getOutline( double t ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) override; - virtual ::com::sun::star::uno::Sequence< double > SAL_CALL getColor( double t ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) override; - virtual ::com::sun::star::uno::Sequence< double > SAL_CALL getPointColor( const ::com::sun::star::geometry::RealPoint2D& point ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) override; - virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XColorSpace > SAL_CALL getColorSpace() throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual css::uno::Reference< css::rendering::XPolyPolygon2D > SAL_CALL getOutline( double t ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override; + virtual css::uno::Sequence< double > SAL_CALL getColor( double t ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override; + virtual css::uno::Sequence< double > SAL_CALL getPointColor( const css::geometry::RealPoint2D& point ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override; + virtual css::uno::Reference< css::rendering::XColorSpace > SAL_CALL getColorSpace() throw (css::uno::RuntimeException, std::exception) override; // XServiceInfo - virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; - virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; - virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException, std::exception) override; + virtual OUString SAL_CALL getImplementationName( ) throw (css::uno::RuntimeException, std::exception) override; + virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (css::uno::RuntimeException, std::exception) override; + virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (css::uno::RuntimeException, std::exception) override; /// Query all defining values of this object atomically Values getValues() const; @@ -119,37 +119,37 @@ namespace canvas virtual ~ParametricPolyPolygon(); // we're a ref-counted UNO class. _We_ destroy ourselves. private: - static ParametricPolyPolygon* createLinearHorizontalGradient( const ::com::sun::star::uno::Reference< - ::com::sun::star::rendering::XGraphicDevice >& rDevice, - const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > >& colors, - const ::com::sun::star::uno::Sequence< double >& stops ); - static ParametricPolyPolygon* createEllipticalGradient( const ::com::sun::star::uno::Reference< - ::com::sun::star::rendering::XGraphicDevice >& rDevice, - const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > >& colors, - const ::com::sun::star::uno::Sequence< double >& stops, + static ParametricPolyPolygon* createLinearHorizontalGradient( const css::uno::Reference< + css::rendering::XGraphicDevice >& rDevice, + const css::uno::Sequence< css::uno::Sequence< double > >& colors, + const css::uno::Sequence< double >& stops ); + static ParametricPolyPolygon* createEllipticalGradient( const css::uno::Reference< + css::rendering::XGraphicDevice >& rDevice, + const css::uno::Sequence< css::uno::Sequence< double > >& colors, + const css::uno::Sequence< double >& stops, double fAspect ); - static ParametricPolyPolygon* createRectangularGradient( const ::com::sun::star::uno::Reference< - ::com::sun::star::rendering::XGraphicDevice >& rDevice, - const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > >& colors, - const ::com::sun::star::uno::Sequence< double >& stops, + static ParametricPolyPolygon* createRectangularGradient( const css::uno::Reference< + css::rendering::XGraphicDevice >& rDevice, + const css::uno::Sequence< css::uno::Sequence< double > >& colors, + const css::uno::Sequence< double >& stops, double fAspect ); /// Private, because objects can only be created from the static factories - ParametricPolyPolygon( const ::com::sun::star::uno::Reference< - ::com::sun::star::rendering::XGraphicDevice >& rDevice, + ParametricPolyPolygon( const css::uno::Reference< + css::rendering::XGraphicDevice >& rDevice, const ::basegfx::B2DPolygon& rGradientPoly, GradientType eType, - const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > >& colors, - const ::com::sun::star::uno::Sequence< double >& stops, + const css::uno::Sequence< css::uno::Sequence< double > >& colors, + const css::uno::Sequence< double >& stops, double nAspectRatio ); - ParametricPolyPolygon( const ::com::sun::star::uno::Reference< - ::com::sun::star::rendering::XGraphicDevice >& rDevice, + ParametricPolyPolygon( const css::uno::Reference< + css::rendering::XGraphicDevice >& rDevice, GradientType eType, - const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > >& colors, - const ::com::sun::star::uno::Sequence< double >& stops ); + const css::uno::Sequence< css::uno::Sequence< double > >& colors, + const css::uno::Sequence< double >& stops ); - ::com::sun::star::uno::Reference< - ::com::sun::star::rendering::XGraphicDevice > mxDevice; + css::uno::Reference< + css::rendering::XGraphicDevice > mxDevice; /// All defining values of this object const Values maValues; diff --git a/include/canvas/propertysethelper.hxx b/include/canvas/propertysethelper.hxx index 2256097..09ca973 100644 --- a/include/canvas/propertysethelper.hxx +++ b/include/canvas/propertysethelper.hxx @@ -50,8 +50,8 @@ namespace canvas class CANVASTOOLS_DLLPUBLIC PropertySetHelper { public: - typedef std::function<::com::sun::star::uno::Any ()> GetterType; - typedef std::function<void (const ::com::sun::star::uno::Any&)> SetterType; + typedef std::function<css::uno::Any ()> GetterType; + typedef std::function<void (const css::uno::Any&)> SetterType; struct Callbacks { GetterType getter; @@ -128,14 +128,14 @@ namespace canvas const InputMap& getPropertyMap() const { return maMapEntries; } // XPropertySet implementation - ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > getPropertySetInfo() const; - void setPropertyValue( const OUString& aPropertyName, - const ::com::sun::star::uno::Any& aValue ); - ::com::sun::star::uno::Any getPropertyValue( const OUString& PropertyName ) const; + css::uno::Reference< css::beans::XPropertySetInfo > getPropertySetInfo() const; + void setPropertyValue( const OUString& aPropertyName, + const css::uno::Any& aValue ); + css::uno::Any getPropertyValue( const OUString& PropertyName ) const; void addPropertyChangeListener( const OUString& aPropertyName, - const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ); + const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ); void addVetoableChangeListener( const OUString& aPropertyName, - const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& xListener ); + const css::uno::Reference< css::beans::XVetoableChangeListener >& xListener ); private: std::unique_ptr<MapType> mpMap; diff --git a/include/canvas/rendering/bitmap.hxx b/include/canvas/rendering/bitmap.hxx old mode 100644 new mode 100755 index d806188..09e2073 --- a/include/canvas/rendering/bitmap.hxx +++ b/include/canvas/rendering/bitmap.hxx @@ -77,23 +77,23 @@ namespace canvas /// Query size of the bitmap in pixel ::basegfx::B2IVector getSize() const; - ::com::sun::star::uno::Sequence< sal_Int8 > getData( - ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout, - const ::com::sun::star::geometry::IntegerRectangle2D& rect ); + css::uno::Sequence< sal_Int8 > getData( + css::rendering::IntegerBitmapLayout& bitmapLayout, + const css::geometry::IntegerRectangle2D& rect ); void setData( - const ::com::sun::star::uno::Sequence< sal_Int8 >& data, - const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout, - const ::com::sun::star::geometry::IntegerRectangle2D& rect ); + const css::uno::Sequence< sal_Int8 >& data, + const css::rendering::IntegerBitmapLayout& bitmapLayout, + const css::geometry::IntegerRectangle2D& rect ); void setPixel( - const ::com::sun::star::uno::Sequence< sal_Int8 >& color, - const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout, - const ::com::sun::star::geometry::IntegerPoint2D& pos ); + const css::uno::Sequence< sal_Int8 >& color, + const css::rendering::IntegerBitmapLayout& bitmapLayout, + const css::geometry::IntegerPoint2D& pos ); - ::com::sun::star::uno::Sequence< sal_Int8 > getPixel( - ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout, - const ::com::sun::star::geometry::IntegerPoint2D& pos ); + css::uno::Sequence< sal_Int8 > getPixel( + css::rendering::IntegerBitmapLayout& bitmapLayout, + const css::geometry::IntegerPoint2D& pos ); /** Render the bitmap content to associated SurfaceProxyManager's screen. @@ -159,45 +159,45 @@ namespace canvas This method sets every single pixel of the bitmap to the specified color value. */ - void clear( const ::com::sun::star::uno::Sequence< double >& color ); + void clear( const css::uno::Sequence< double >& color ); void fillB2DPolyPolygon( - const ::basegfx::B2DPolyPolygon& rPolyPolygon, - const ::com::sun::star::rendering::ViewState& viewState, - const ::com::sun::star::rendering::RenderState& renderState ); + const ::basegfx::B2DPolyPolygon& rPolyPolygon, + const css::rendering::ViewState& viewState, + const css::rendering::RenderState& renderState ); // High-level drawing operations (from the XCanvas interface) /// See XCanvas interface - void drawPoint( const ::com::sun::star::geometry::RealPoint2D& aPoint, - const ::com::sun::star::rendering::ViewState& viewState, - const ::com::sun::star::rendering::RenderState& renderState ); + void drawPoint( const css::geometry::RealPoint2D& aPoint, + const css::rendering::ViewState& viewState, + const css::rendering::RenderState& renderState ); /// See XCanvas interface - void drawLine( const ::com::sun::star::geometry::RealPoint2D& aStartPoint, - const ::com::sun::star::geometry::RealPoint2D& aEndPoint, - const ::com::sun::star::rendering::ViewState& viewState, - const ::com::sun::star::rendering::RenderState& renderState ); + void drawLine( const css::geometry::RealPoint2D& aStartPoint, + const css::geometry::RealPoint2D& aEndPoint, + const css::rendering::ViewState& viewState, + const css::rendering::RenderState& renderState ); /// See XCanvas interface - void drawBezier( const ::com::sun::star::geometry::RealBezierSegment2D& aBezierSegment, - const ::com::sun::star::geometry::RealPoint2D& aEndPoint, - const ::com::sun::star::rendering::ViewState& viewState, - const ::com::sun::star::rendering::RenderState& renderState ); + void drawBezier( const css::geometry::RealBezierSegment2D& aBezierSegment, + const css::geometry::RealPoint2D& aEndPoint, + const css::rendering::ViewState& viewState, + const css::rendering::RenderState& renderState ); /// See XCanvas interface ICachedPrimitiveSharedPtr drawPolyPolygon( - const ::com::sun::star::uno::Reference< - ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon, - const ::com::sun::star::rendering::ViewState& viewState, - const ::com::sun::star::rendering::RenderState& renderState ); + const css::uno::Reference< + css::rendering::XPolyPolygon2D >& xPolyPolygon, + const css::rendering::ViewState& viewState, ... etc. - the rest is truncated _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits