Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_RENDERING_XCOLORSPACE_HDL
2 : : #define INCLUDED_COM_SUN_STAR_RENDERING_XCOLORSPACE_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/uno/RuntimeException.hdl"
7 : : #include "com/sun/star/rendering/ARGBColor.hdl"
8 : : namespace com { namespace sun { namespace star { namespace rendering { class XColorSpace; } } } }
9 : : #include "com/sun/star/beans/PropertyValue.hdl"
10 : : #include "com/sun/star/lang/IllegalArgumentException.hdl"
11 : : #include "com/sun/star/uno/XInterface.hdl"
12 : : #include "com/sun/star/rendering/RGBColor.hdl"
13 : : #include "com/sun/star/uno/Reference.h"
14 : : #include "com/sun/star/uno/Sequence.h"
15 : : #include "cppu/macros.hxx"
16 : : #include "sal/types.h"
17 : :
18 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
19 : :
20 : : namespace com { namespace sun { namespace star { namespace rendering {
21 : :
22 : 0 : class SAL_NO_VTABLE XColorSpace : public ::com::sun::star::uno::XInterface
23 : : {
24 : : public:
25 : :
26 : : // Methods
27 : : virtual ::sal_Int8 SAL_CALL getType( ) throw (::com::sun::star::uno::RuntimeException) = 0;
28 : : virtual ::com::sun::star::uno::Sequence< ::sal_Int8 > SAL_CALL getComponentTags( ) throw (::com::sun::star::uno::RuntimeException) = 0;
29 : : virtual ::sal_Int8 SAL_CALL getRenderingIntent( ) throw (::com::sun::star::uno::RuntimeException) = 0;
30 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getProperties( ) throw (::com::sun::star::uno::RuntimeException) = 0;
31 : : virtual ::com::sun::star::uno::Sequence< double > SAL_CALL convertColorSpace( const ::com::sun::star::uno::Sequence< double >& deviceColor, const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XColorSpace >& targetColorSpace ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
32 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::RGBColor > SAL_CALL convertToRGB( const ::com::sun::star::uno::Sequence< double >& deviceColor ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
33 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::ARGBColor > SAL_CALL convertToARGB( const ::com::sun::star::uno::Sequence< double >& deviceColor ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
34 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::ARGBColor > SAL_CALL convertToPARGB( const ::com::sun::star::uno::Sequence< double >& deviceColor ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
35 : : virtual ::com::sun::star::uno::Sequence< double > SAL_CALL convertFromRGB( const ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::RGBColor >& rgbColor ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
36 : : virtual ::com::sun::star::uno::Sequence< double > SAL_CALL convertFromARGB( const ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::ARGBColor >& rgbColor ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
37 : : virtual ::com::sun::star::uno::Sequence< double > SAL_CALL convertFromPARGB( const ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::ARGBColor >& rgbColor ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
38 : :
39 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
40 : :
41 : : protected:
42 : 0 : ~XColorSpace() throw () {} // avoid warnings about virtual members and non-virtual dtor
43 : : };
44 : :
45 : :
46 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::rendering::XColorSpace const *);
47 : : } } } }
48 : :
49 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XColorSpace > *) SAL_THROW(());
50 : :
51 : : #endif
|