update dev300-m58
[ooovba.git] / cppcanvas / source / wrapper / implsprite.hxx
blob24942ef15758df71b3576fcca0aa3f4029fb6cda
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: implsprite.hxx,v $
10 * $Revision: 1.10 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _CPPCANVAS_IMPLSPRITE_HXX
32 #define _CPPCANVAS_IMPLSPRITE_HXX
34 #include <com/sun/star/uno/Reference.hxx>
35 #include <com/sun/star/rendering/XSpriteCanvas.hpp>
36 #include <com/sun/star/rendering/XSprite.hpp>
38 #ifndef BOOST_SHARED_PTR_HPP_INCLUDED
39 #include <boost/shared_ptr.hpp>
40 #endif
41 #include <cppcanvas/sprite.hxx>
43 #include <implspritecanvas.hxx>
46 namespace cppcanvas
48 namespace internal
50 class ImplSprite : public virtual Sprite
52 public:
53 ImplSprite( const ::com::sun::star::uno::Reference<
54 ::com::sun::star::rendering::XSpriteCanvas >& rParentCanvas,
55 const ::com::sun::star::uno::Reference<
56 ::com::sun::star::rendering::XSprite >& rSprite,
57 const ImplSpriteCanvas::TransformationArbiterSharedPtr& rTransformArbiter );
58 ImplSprite( const ::com::sun::star::uno::Reference<
59 ::com::sun::star::rendering::XSpriteCanvas >& rParentCanvas,
60 const ::com::sun::star::uno::Reference<
61 ::com::sun::star::rendering::XAnimatedSprite >& rSprite,
62 const ImplSpriteCanvas::TransformationArbiterSharedPtr& rTransformArbiter );
63 virtual ~ImplSprite();
65 virtual void setAlpha( const double& rAlpha );
66 virtual void movePixel( const ::basegfx::B2DPoint& rNewPos );
67 virtual void move( const ::basegfx::B2DPoint& rNewPos );
68 virtual void transform( const ::basegfx::B2DHomMatrix& rMatrix );
69 virtual void setClipPixel( const ::basegfx::B2DPolyPolygon& rClipPoly );
70 virtual void setClip( const ::basegfx::B2DPolyPolygon& rClipPoly );
71 virtual void setClip();
73 virtual void show();
74 virtual void hide();
76 virtual void setPriority( double fPriority );
78 virtual ::com::sun::star::uno::Reference<
79 ::com::sun::star::rendering::XSprite > getUNOSprite() const;
81 ::com::sun::star::uno::Reference<
82 ::com::sun::star::rendering::XGraphicDevice >
83 getGraphicDevice() const;
85 private:
86 // default: disabled copy/assignment
87 ImplSprite(const ImplSprite&);
88 ImplSprite& operator=( const ImplSprite& );
90 ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice > mxGraphicDevice;
91 const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XSprite > mxSprite;
92 const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XAnimatedSprite > mxAnimatedSprite;
93 ImplSpriteCanvas::TransformationArbiterSharedPtr mpTransformArbiter;
98 #endif /* _CPPCANVAS_IMPLSPRITE_HXX */