Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_RENDERING_XSPRITECANVAS_HDL
2 : : #define INCLUDED_COM_SUN_STAR_RENDERING_XSPRITECANVAS_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/uno/RuntimeException.hdl"
7 : : #include "com/sun/star/geometry/RealSize2D.hdl"
8 : : namespace com { namespace sun { namespace star { namespace rendering { class XCustomSprite; } } } }
9 : : #include "com/sun/star/lang/IllegalArgumentException.hdl"
10 : : namespace com { namespace sun { namespace star { namespace rendering { class XAnimation; } } } }
11 : : namespace com { namespace sun { namespace star { namespace rendering { class XBitmap; } } } }
12 : : namespace com { namespace sun { namespace star { namespace rendering { class XAnimatedSprite; } } } }
13 : : #include "com/sun/star/rendering/VolatileContentDestroyedException.hdl"
14 : : #include "com/sun/star/rendering/XBitmapCanvas.hdl"
15 : : namespace com { namespace sun { namespace star { namespace rendering { class XSprite; } } } }
16 : : #include "com/sun/star/uno/Reference.h"
17 : : #include "com/sun/star/uno/Sequence.h"
18 : : #include "cppu/macros.hxx"
19 : : #include "sal/types.h"
20 : :
21 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
22 : :
23 : : namespace com { namespace sun { namespace star { namespace rendering {
24 : :
25 : 0 : class SAL_NO_VTABLE XSpriteCanvas : public ::com::sun::star::rendering::XBitmapCanvas
26 : : {
27 : : public:
28 : :
29 : : // Methods
30 : : 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) = 0;
31 : : 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) = 0;
32 : : 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) = 0;
33 : : 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) = 0;
34 : : virtual ::sal_Bool SAL_CALL updateScreen( ::sal_Bool bUpdateAll ) throw (::com::sun::star::uno::RuntimeException) = 0;
35 : :
36 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
37 : :
38 : : protected:
39 : 0 : ~XSpriteCanvas() throw () {} // avoid warnings about virtual members and non-virtual dtor
40 : : };
41 : :
42 : :
43 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::rendering::XSpriteCanvas const *);
44 : : } } } }
45 : :
46 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XSpriteCanvas > *) SAL_THROW(());
47 : :
48 : : #endif
|