Branch data 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/rendering/RenderState.hdl"
7 : : #include "com/sun/star/rendering/FontMetrics.hdl"
8 : : namespace com { namespace sun { namespace star { namespace rendering { class XGraphicDevice; } } } }
9 : : #include "com/sun/star/util/Color.hdl"
10 : : namespace com { namespace sun { namespace star { namespace rendering { class XPolyPolygon2D; } } } }
11 : : #include "com/sun/star/uno/RuntimeException.hdl"
12 : : namespace com { namespace sun { namespace star { namespace rendering { class XCanvas; } } } }
13 : : #include "com/sun/star/geometry/AffineMatrix2D.hdl"
14 : : namespace com { namespace sun { namespace star { namespace rendering { class XCanvasFont; } } } }
15 : : #include "com/sun/star/rendering/ViewState.hdl"
16 : : #include "com/sun/star/geometry/RealPoint2D.hdl"
17 : : namespace com { namespace sun { namespace star { namespace rendering { class XBitmap; } } } }
18 : : #include "com/sun/star/geometry/RealRectangle2D.hdl"
19 : : #include "com/sun/star/uno/XInterface.hdl"
20 : : #include "com/sun/star/rendering/StringContext.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 ::com::sun::star::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 ::com::sun::star::geometry::RealRectangle2D& aRect ) throw (::com::sun::star::uno::RuntimeException) = 0;
39 : : virtual void SAL_CALL setTransformation( const ::com::sun::star::geometry::AffineMatrix2D& aTransform ) throw (::com::sun::star::uno::RuntimeException) = 0;
40 : : virtual void SAL_CALL drawPixel( const ::com::sun::star::geometry::RealPoint2D& aPoint ) throw (::com::sun::star::uno::RuntimeException) = 0;
41 : : virtual void SAL_CALL drawLine( const ::com::sun::star::geometry::RealPoint2D& aStartPoint, const ::com::sun::star::geometry::RealPoint2D& aEndPoint ) throw (::com::sun::star::uno::RuntimeException) = 0;
42 : : virtual void SAL_CALL drawRect( const ::com::sun::star::geometry::RealRectangle2D& aRect ) throw (::com::sun::star::uno::RuntimeException) = 0;
43 : : virtual void SAL_CALL drawPolyPolygon( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon ) throw (::com::sun::star::uno::RuntimeException) = 0;
44 : : virtual void SAL_CALL drawText( const ::com::sun::star::rendering::StringContext& aText, const ::com::sun::star::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< ::com::sun::star::rendering::XBitmap >& xBitmap, const ::com::sun::star::geometry::RealPoint2D& aLeftTop ) throw (::com::sun::star::uno::RuntimeException) = 0;
46 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice > SAL_CALL getDevice( ) throw (::com::sun::star::uno::RuntimeException) = 0;
47 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvas > SAL_CALL getCanvas( ) throw (::com::sun::star::uno::RuntimeException) = 0;
48 : : virtual ::com::sun::star::rendering::FontMetrics SAL_CALL getFontMetrics( ) throw (::com::sun::star::uno::RuntimeException) = 0;
49 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::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 ::com::sun::star::geometry::RealRectangle2D SAL_CALL getCurrentClipRect( ) throw (::com::sun::star::uno::RuntimeException) = 0;
53 : : virtual ::com::sun::star::geometry::AffineMatrix2D SAL_CALL getCurrentTransformation( ) throw (::com::sun::star::uno::RuntimeException) = 0;
54 : : virtual ::com::sun::star::rendering::ViewState SAL_CALL getCurrentViewState( ) throw (::com::sun::star::uno::RuntimeException) = 0;
55 : : virtual ::com::sun::star::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 ::com::sun::star::rendering::XSimpleCanvas const *);
65 : : } } } }
66 : :
67 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XSimpleCanvas > *) SAL_THROW(());
68 : :
69 : : #endif
|