Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_RENDERING_XCANVAS_HDL
2 : : #define INCLUDED_COM_SUN_STAR_RENDERING_XCANVAS_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/uno/RuntimeException.hdl"
7 : : namespace com { namespace sun { namespace star { namespace rendering { class XBitmap; } } } }
8 : : #include "com/sun/star/rendering/StringContext.hdl"
9 : : #include "com/sun/star/rendering/FontInfo.hdl"
10 : : #include "com/sun/star/beans/PropertyValue.hdl"
11 : : #include "com/sun/star/rendering/VolatileContentDestroyedException.hdl"
12 : : #include "com/sun/star/rendering/FontRequest.hdl"
13 : : #include "com/sun/star/geometry/Matrix2D.hdl"
14 : : namespace com { namespace sun { namespace star { namespace rendering { class XTextLayout; } } } }
15 : : namespace com { namespace sun { namespace star { namespace geometry { class XMapping2D; } } } }
16 : : #include "com/sun/star/uno/XInterface.hdl"
17 : : namespace com { namespace sun { namespace star { namespace rendering { class XGraphicDevice; } } } }
18 : : namespace com { namespace sun { namespace star { namespace rendering { class XCachedPrimitive; } } } }
19 : : #include "com/sun/star/rendering/StrokeAttributes.hdl"
20 : : #include "com/sun/star/geometry/RealBezierSegment2D.hdl"
21 : : #include "com/sun/star/rendering/Texture.hdl"
22 : : #include "com/sun/star/lang/IllegalArgumentException.hdl"
23 : : namespace com { namespace sun { namespace star { namespace rendering { class XCanvasFont; } } } }
24 : : namespace com { namespace sun { namespace star { namespace rendering { class XPolyPolygon2D; } } } }
25 : : #include "com/sun/star/rendering/ViewState.hdl"
26 : : #include "com/sun/star/geometry/RealPoint2D.hdl"
27 : : #include "com/sun/star/rendering/RenderState.hdl"
28 : : #include "com/sun/star/uno/Reference.h"
29 : : #include "com/sun/star/uno/Sequence.h"
30 : : #include "cppu/macros.hxx"
31 : : #include "sal/types.h"
32 : :
33 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
34 : :
35 : : namespace com { namespace sun { namespace star { namespace rendering {
36 : :
37 : 0 : class SAL_NO_VTABLE XCanvas : public ::com::sun::star::uno::XInterface
38 : : {
39 : : public:
40 : :
41 : : // Methods
42 : : virtual void SAL_CALL clear( ) throw (::com::sun::star::uno::RuntimeException) = 0;
43 : : virtual void SAL_CALL drawPoint( const ::com::sun::star::geometry::RealPoint2D& aPoint, const ::com::sun::star::rendering::ViewState& aViewState, const ::com::sun::star::rendering::RenderState& aRenderState ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
44 : : virtual void SAL_CALL drawLine( const ::com::sun::star::geometry::RealPoint2D& aStartPoint, const ::com::sun::star::geometry::RealPoint2D& aEndPoint, const ::com::sun::star::rendering::ViewState& aViewState, const ::com::sun::star::rendering::RenderState& aRenderState ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
45 : : virtual void SAL_CALL drawBezier( const ::com::sun::star::geometry::RealBezierSegment2D& aBezierSegment, const ::com::sun::star::geometry::RealPoint2D& aEndPoint, const ::com::sun::star::rendering::ViewState& aViewState, const ::com::sun::star::rendering::RenderState& aRenderState ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
46 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL drawPolyPolygon( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon, const ::com::sun::star::rendering::ViewState& aViewState, const ::com::sun::star::rendering::RenderState& aRenderState ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
47 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL strokePolyPolygon( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon, const ::com::sun::star::rendering::ViewState& aViewState, const ::com::sun::star::rendering::RenderState& aRenderState, const ::com::sun::star::rendering::StrokeAttributes& aStrokeAttributes ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
48 : : 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& aViewState, const ::com::sun::star::rendering::RenderState& aRenderState, const ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::Texture >& aTextures, const ::com::sun::star::rendering::StrokeAttributes& aStrokeAttributes ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::rendering::VolatileContentDestroyedException, ::com::sun::star::uno::RuntimeException) = 0;
49 : : 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& aViewState, const ::com::sun::star::rendering::RenderState& aRenderState, const ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::Texture >& aTextures, const ::com::sun::star::uno::Reference< ::com::sun::star::geometry::XMapping2D >& xMapping, const ::com::sun::star::rendering::StrokeAttributes& aStrokeAttributes ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::rendering::VolatileContentDestroyedException, ::com::sun::star::uno::RuntimeException) = 0;
50 : : 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& aViewState, const ::com::sun::star::rendering::RenderState& aRenderState, const ::com::sun::star::rendering::StrokeAttributes& aStrokeAttributes ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
51 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL fillPolyPolygon( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon, const ::com::sun::star::rendering::ViewState& aViewState, const ::com::sun::star::rendering::RenderState& aRenderState ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
52 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL fillTexturedPolyPolygon( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon, const ::com::sun::star::rendering::ViewState& aViewState, const ::com::sun::star::rendering::RenderState& aRenderState, const ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::Texture >& xTextures ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::rendering::VolatileContentDestroyedException, ::com::sun::star::uno::RuntimeException) = 0;
53 : : 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& aViewState, const ::com::sun::star::rendering::RenderState& aRenderState, const ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::Texture >& xTextures, const ::com::sun::star::uno::Reference< ::com::sun::star::geometry::XMapping2D >& xMapping ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::rendering::VolatileContentDestroyedException, ::com::sun::star::uno::RuntimeException) = 0;
54 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvasFont > SAL_CALL createFont( const ::com::sun::star::rendering::FontRequest& aFontRequest, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aExtraFontProperties, const ::com::sun::star::geometry::Matrix2D& aFontMatrix ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
55 : : 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) = 0;
56 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL drawText( const ::com::sun::star::rendering::StringContext& aText, const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvasFont >& xFont, const ::com::sun::star::rendering::ViewState& aViewState, const ::com::sun::star::rendering::RenderState& aRenderState, ::sal_Int8 nTextDirection ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
57 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL drawTextLayout( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XTextLayout >& xLayoutetText, const ::com::sun::star::rendering::ViewState& aViewState, const ::com::sun::star::rendering::RenderState& aRenderState ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
58 : : 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& aViewState, const ::com::sun::star::rendering::RenderState& aRenderState ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::rendering::VolatileContentDestroyedException, ::com::sun::star::uno::RuntimeException) = 0;
59 : : 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& aViewState, const ::com::sun::star::rendering::RenderState& aRenderState ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::rendering::VolatileContentDestroyedException, ::com::sun::star::uno::RuntimeException) = 0;
60 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice > SAL_CALL getDevice( ) throw (::com::sun::star::uno::RuntimeException) = 0;
61 : :
62 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
63 : :
64 : : protected:
65 : 0 : ~XCanvas() throw () {} // avoid warnings about virtual members and non-virtual dtor
66 : : };
67 : :
68 : :
69 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::rendering::XCanvas const *);
70 : : } } } }
71 : :
72 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvas > *) SAL_THROW(());
73 : :
74 : : #endif
|