Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_RENDERING_INTEGERBITMAPLAYOUT_HPP
2 : : #define INCLUDED_COM_SUN_STAR_RENDERING_INTEGERBITMAPLAYOUT_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/rendering/IntegerBitmapLayout.hdl"
7 : :
8 : : #include "com/sun/star/rendering/XBitmapPalette.hpp"
9 : : #include "com/sun/star/rendering/XIntegerBitmapColorSpace.hpp"
10 : : #include "com/sun/star/uno/Reference.hxx"
11 : : #include "com/sun/star/uno/Type.hxx"
12 : : #include "cppu/unotype.hxx"
13 : : #include "sal/types.h"
14 : : #include "typelib/typeclass.h"
15 : : #include "typelib/typedescription.h"
16 : :
17 : : namespace com { namespace sun { namespace star { namespace rendering {
18 : :
19 : 0 : inline IntegerBitmapLayout::IntegerBitmapLayout() SAL_THROW(())
20 : : : ScanLines(0)
21 : : , ScanLineBytes(0)
22 : : , ScanLineStride(0)
23 : : , PlaneStride(0)
24 : : , ColorSpace()
25 : : , Palette()
26 : 0 : , IsMsbFirst(false)
27 : : {
28 : 0 : }
29 : :
30 : : inline IntegerBitmapLayout::IntegerBitmapLayout(const ::sal_Int32& ScanLines_, const ::sal_Int32& ScanLineBytes_, const ::sal_Int32& ScanLineStride_, const ::sal_Int32& PlaneStride_, const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XIntegerBitmapColorSpace >& ColorSpace_, const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapPalette >& Palette_, const ::sal_Bool& IsMsbFirst_) SAL_THROW(())
31 : : : ScanLines(ScanLines_)
32 : : , ScanLineBytes(ScanLineBytes_)
33 : : , ScanLineStride(ScanLineStride_)
34 : : , PlaneStride(PlaneStride_)
35 : : , ColorSpace(ColorSpace_)
36 : : , Palette(Palette_)
37 : : , IsMsbFirst(IsMsbFirst_)
38 : : {
39 : : }
40 : :
41 : : } } } }
42 : :
43 : : namespace com { namespace sun { namespace star { namespace rendering {
44 : :
45 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::rendering::IntegerBitmapLayout const *) {
46 : : //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
47 : : static ::typelib_TypeDescriptionReference * the_type = 0;
48 : : if (the_type == 0) {
49 : : ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.rendering.IntegerBitmapLayout");
50 : : }
51 : : return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
52 : : }
53 : :
54 : : } } } }
55 : :
56 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::rendering::IntegerBitmapLayout const *) SAL_THROW(()) {
57 : : return ::cppu::UnoType< ::com::sun::star::rendering::IntegerBitmapLayout >::get();
58 : : }
59 : :
60 : : #endif // INCLUDED_COM_SUN_STAR_RENDERING_INTEGERBITMAPLAYOUT_HPP
|