Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_AWT_XGRAPHICS_HDL
2 : #define INCLUDED_COM_SUN_STAR_AWT_XGRAPHICS_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/awt/FontDescriptor.hdl"
7 : #include "com/sun/star/awt/Gradient.hdl"
8 : #include "com/sun/star/awt/RasterOperation.hdl"
9 : #include "com/sun/star/awt/SimpleFontMetric.hdl"
10 : namespace com { namespace sun { namespace star { namespace awt { class XDevice; } } } }
11 : namespace com { namespace sun { namespace star { namespace awt { class XDisplayBitmap; } } } }
12 : namespace com { namespace sun { namespace star { namespace awt { class XFont; } } } }
13 : namespace com { namespace sun { namespace star { namespace awt { class XRegion; } } } }
14 : #include "com/sun/star/uno/RuntimeException.hdl"
15 : #include "com/sun/star/uno/XInterface.hdl"
16 : #include "com/sun/star/util/Color.hdl"
17 : #include "com/sun/star/uno/Reference.h"
18 : #include "com/sun/star/uno/Sequence.h"
19 : #include "cppu/macros.hxx"
20 : #include "rtl/ustring.hxx"
21 : #include "sal/types.h"
22 :
23 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
24 :
25 : namespace com { namespace sun { namespace star { namespace awt {
26 :
27 11209 : class SAL_NO_VTABLE XGraphics : public css::uno::XInterface
28 : {
29 : public:
30 :
31 : // Methods
32 : virtual ::com::sun::star::uno::Reference< css::awt::XDevice > SAL_CALL getDevice() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
33 : virtual css::awt::SimpleFontMetric SAL_CALL getFontMetric() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
34 : virtual void SAL_CALL setFont( const ::com::sun::star::uno::Reference< css::awt::XFont >& xNewFont ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
35 : virtual void SAL_CALL selectFont( const css::awt::FontDescriptor& aDescription ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
36 : virtual void SAL_CALL setTextColor( ::sal_Int32 nColor ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
37 : virtual void SAL_CALL setTextFillColor( ::sal_Int32 nColor ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
38 : virtual void SAL_CALL setLineColor( ::sal_Int32 nColor ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
39 : virtual void SAL_CALL setFillColor( ::sal_Int32 nColor ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
40 : virtual void SAL_CALL setRasterOp( css::awt::RasterOperation ROP ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
41 : virtual void SAL_CALL setClipRegion( const ::com::sun::star::uno::Reference< css::awt::XRegion >& Clipping ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
42 : virtual void SAL_CALL intersectClipRegion( const ::com::sun::star::uno::Reference< css::awt::XRegion >& xClipping ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
43 : virtual void SAL_CALL push() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
44 : virtual void SAL_CALL pop() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
45 : virtual void SAL_CALL copy( const ::com::sun::star::uno::Reference< css::awt::XDevice >& xSource, ::sal_Int32 nSourceX, ::sal_Int32 nSourceY, ::sal_Int32 nSourceWidth, ::sal_Int32 nSourceHeight, ::sal_Int32 nDestX, ::sal_Int32 nDestY, ::sal_Int32 nDestWidth, ::sal_Int32 nDestHeight ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
46 : virtual void SAL_CALL draw( const ::com::sun::star::uno::Reference< css::awt::XDisplayBitmap >& xBitmapHandle, ::sal_Int32 SourceX, ::sal_Int32 SourceY, ::sal_Int32 SourceWidth, ::sal_Int32 SourceHeight, ::sal_Int32 DestX, ::sal_Int32 DestY, ::sal_Int32 DestWidth, ::sal_Int32 DestHeight ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
47 : virtual void SAL_CALL drawPixel( ::sal_Int32 X, ::sal_Int32 Y ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
48 : virtual void SAL_CALL drawLine( ::sal_Int32 X1, ::sal_Int32 Y1, ::sal_Int32 X2, ::sal_Int32 Y2 ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
49 : virtual void SAL_CALL drawRect( ::sal_Int32 X, ::sal_Int32 Y, ::sal_Int32 Width, ::sal_Int32 Height ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
50 : virtual void SAL_CALL drawRoundedRect( ::sal_Int32 X, ::sal_Int32 Y, ::sal_Int32 Width, ::sal_Int32 Height, ::sal_Int32 nHorzRound, ::sal_Int32 nVertRound ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
51 : virtual void SAL_CALL drawPolyLine( const ::com::sun::star::uno::Sequence< ::sal_Int32 >& DataX, const ::com::sun::star::uno::Sequence< ::sal_Int32 >& DataY ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
52 : virtual void SAL_CALL drawPolygon( const ::com::sun::star::uno::Sequence< ::sal_Int32 >& DataX, const ::com::sun::star::uno::Sequence< ::sal_Int32 >& DataY ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
53 : virtual void SAL_CALL drawPolyPolygon( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::sal_Int32 > >& DataX, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::sal_Int32 > >& DataY ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
54 : virtual void SAL_CALL drawEllipse( ::sal_Int32 X, ::sal_Int32 Y, ::sal_Int32 Width, ::sal_Int32 Height ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
55 : virtual void SAL_CALL drawArc( ::sal_Int32 X, ::sal_Int32 Y, ::sal_Int32 Width, ::sal_Int32 Height, ::sal_Int32 X1, ::sal_Int32 Y1, ::sal_Int32 X2, ::sal_Int32 Y2 ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
56 : virtual void SAL_CALL drawPie( ::sal_Int32 X, ::sal_Int32 Y, ::sal_Int32 Width, ::sal_Int32 Height, ::sal_Int32 X1, ::sal_Int32 Y1, ::sal_Int32 X2, ::sal_Int32 Y2 ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
57 : virtual void SAL_CALL drawChord( ::sal_Int32 nX, ::sal_Int32 nY, ::sal_Int32 nWidth, ::sal_Int32 nHeight, ::sal_Int32 nX1, ::sal_Int32 nY1, ::sal_Int32 nX2, ::sal_Int32 nY2 ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
58 : virtual void SAL_CALL drawGradient( ::sal_Int32 nX, ::sal_Int32 nY, ::sal_Int32 nWidth, ::sal_Int32 Height, const css::awt::Gradient& aGradient ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
59 : virtual void SAL_CALL drawText( ::sal_Int32 X, ::sal_Int32 Y, const ::rtl::OUString& Text ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
60 : virtual void SAL_CALL drawTextArray( ::sal_Int32 X, ::sal_Int32 Y, const ::rtl::OUString& Text, const ::com::sun::star::uno::Sequence< ::sal_Int32 >& Longs ) /* 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 11209 : ~XGraphics() 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 css::awt::XGraphics const *);
70 : } } } }
71 :
72 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::awt::XGraphics > *) SAL_THROW(());
73 :
74 : #endif
|