Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_RENDERING_XSIMPLECANVAS_HDL
2 : #define INCLUDED_COM_SUN_STAR_RENDERING_XSIMPLECANVAS_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/geometry/AffineMatrix2D.hdl"
7 : #include "com/sun/star/geometry/RealPoint2D.hdl"
8 : #include "com/sun/star/geometry/RealRectangle2D.hdl"
9 : #include "com/sun/star/rendering/FontMetrics.hdl"
10 : #include "com/sun/star/rendering/RenderState.hdl"
11 : #include "com/sun/star/rendering/StringContext.hdl"
12 : #include "com/sun/star/rendering/ViewState.hdl"
13 : namespace com { namespace sun { namespace star { namespace rendering { class XBitmap; } } } }
14 : namespace com { namespace sun { namespace star { namespace rendering { class XCanvas; } } } }
15 : namespace com { namespace sun { namespace star { namespace rendering { class XCanvasFont; } } } }
16 : namespace com { namespace sun { namespace star { namespace rendering { class XGraphicDevice; } } } }
17 : namespace com { namespace sun { namespace star { namespace rendering { class XPolyPolygon2D; } } } }
18 : #include "com/sun/star/uno/RuntimeException.hdl"
19 : #include "com/sun/star/uno/XInterface.hdl"
20 : #include "com/sun/star/util/Color.hdl"
21 : #include "com/sun/star/uno/Reference.h"
22 : #include "cppu/macros.hxx"
23 : #include "rtl/ustring.hxx"
24 : #include "sal/types.h"
25 :
26 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
27 :
28 : namespace com { namespace sun { namespace star { namespace rendering {
29 :
30 0 : class SAL_NO_VTABLE XSimpleCanvas : public css::uno::XInterface
31 : {
32 : public:
33 :
34 : // Methods
35 : virtual void SAL_CALL selectFont( const ::rtl::OUString& sFontName, double size, ::sal_Bool bold, ::sal_Bool italic ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
36 : virtual void SAL_CALL setPenColor( ::sal_Int32 nsRgbaColor ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
37 : virtual void SAL_CALL setFillColor( ::sal_Int32 nsRgbaColor ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
38 : virtual void SAL_CALL setRectClip( const css::geometry::RealRectangle2D& aRect ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
39 : virtual void SAL_CALL setTransformation( const css::geometry::AffineMatrix2D& aTransform ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
40 : virtual void SAL_CALL drawPixel( const css::geometry::RealPoint2D& aPoint ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
41 : virtual void SAL_CALL drawLine( const css::geometry::RealPoint2D& aStartPoint, const css::geometry::RealPoint2D& aEndPoint ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
42 : virtual void SAL_CALL drawRect( const css::geometry::RealRectangle2D& aRect ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
43 : virtual void SAL_CALL drawPolyPolygon( const ::com::sun::star::uno::Reference< css::rendering::XPolyPolygon2D >& xPolyPolygon ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
44 : virtual void SAL_CALL drawText( const css::rendering::StringContext& aText, const css::geometry::RealPoint2D& aOutPos, ::sal_Int8 nTextDirection ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
45 : virtual void SAL_CALL drawBitmap( const ::com::sun::star::uno::Reference< css::rendering::XBitmap >& xBitmap, const css::geometry::RealPoint2D& aLeftTop ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
46 : virtual ::com::sun::star::uno::Reference< css::rendering::XGraphicDevice > SAL_CALL getDevice() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
47 : virtual ::com::sun::star::uno::Reference< css::rendering::XCanvas > SAL_CALL getCanvas() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
48 : virtual css::rendering::FontMetrics SAL_CALL getFontMetrics() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
49 : virtual ::com::sun::star::uno::Reference< css::rendering::XCanvasFont > SAL_CALL getCurrentFont() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
50 : virtual ::sal_Int32 SAL_CALL getCurrentPenColor() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
51 : virtual ::sal_Int32 SAL_CALL getCurrentFillColor() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
52 : virtual css::geometry::RealRectangle2D SAL_CALL getCurrentClipRect() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
53 : virtual css::geometry::AffineMatrix2D SAL_CALL getCurrentTransformation() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
54 : virtual css::rendering::ViewState SAL_CALL getCurrentViewState() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
55 : virtual css::rendering::RenderState SAL_CALL getCurrentRenderState( ::sal_Bool bUseFillColor ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
56 :
57 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
58 :
59 : protected:
60 0 : ~XSimpleCanvas() throw () {} // avoid warnings about virtual members and non-virtual dtor
61 : };
62 :
63 :
64 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::rendering::XSimpleCanvas const *);
65 : } } } }
66 :
67 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::rendering::XSimpleCanvas > *) SAL_THROW(());
68 :
69 : #endif
|