Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_AWT_XDEVICE_HDL
2 : #define INCLUDED_COM_SUN_STAR_AWT_XDEVICE_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/awt/DeviceInfo.hdl"
7 : #include "com/sun/star/awt/FontDescriptor.hdl"
8 : namespace com { namespace sun { namespace star { namespace awt { class XBitmap; } } } }
9 : namespace com { namespace sun { namespace star { namespace awt { class XDevice; } } } }
10 : namespace com { namespace sun { namespace star { namespace awt { class XDisplayBitmap; } } } }
11 : namespace com { namespace sun { namespace star { namespace awt { class XFont; } } } }
12 : namespace com { namespace sun { namespace star { namespace awt { class XGraphics; } } } }
13 : #include "com/sun/star/uno/RuntimeException.hdl"
14 : #include "com/sun/star/uno/XInterface.hdl"
15 : #include "com/sun/star/uno/Reference.h"
16 : #include "com/sun/star/uno/Sequence.h"
17 : #include "cppu/macros.hxx"
18 : #include "sal/types.h"
19 :
20 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
21 :
22 : namespace com { namespace sun { namespace star { namespace awt {
23 :
24 24525 : class SAL_NO_VTABLE XDevice : public css::uno::XInterface
25 : {
26 : public:
27 :
28 : // Methods
29 : virtual ::com::sun::star::uno::Reference< css::awt::XGraphics > SAL_CALL createGraphics() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
30 : virtual ::com::sun::star::uno::Reference< css::awt::XDevice > SAL_CALL createDevice( ::sal_Int32 nWidth, ::sal_Int32 nHeight ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
31 : virtual css::awt::DeviceInfo SAL_CALL getInfo() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
32 : virtual ::com::sun::star::uno::Sequence< css::awt::FontDescriptor > SAL_CALL getFontDescriptors() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
33 : virtual ::com::sun::star::uno::Reference< css::awt::XFont > SAL_CALL getFont( const css::awt::FontDescriptor& aDescriptor ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
34 : virtual ::com::sun::star::uno::Reference< css::awt::XBitmap > SAL_CALL createBitmap( ::sal_Int32 nX, ::sal_Int32 nY, ::sal_Int32 nWidth, ::sal_Int32 nHeight ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
35 : virtual ::com::sun::star::uno::Reference< css::awt::XDisplayBitmap > SAL_CALL createDisplayBitmap( const ::com::sun::star::uno::Reference< css::awt::XBitmap >& Bitmap ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
36 :
37 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
38 :
39 : protected:
40 22788 : ~XDevice() throw () {} // avoid warnings about virtual members and non-virtual dtor
41 : };
42 :
43 :
44 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::awt::XDevice const *);
45 : } } } }
46 :
47 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::awt::XDevice > *) SAL_THROW(());
48 :
49 : #endif
|