Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_SHEET_SINGLEREFERENCE_HPP
2 : : #define INCLUDED_COM_SUN_STAR_SHEET_SINGLEREFERENCE_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/sheet/SingleReference.hdl"
7 : :
8 : : #include "com/sun/star/uno/Type.hxx"
9 : : #include "cppu/unotype.hxx"
10 : : #include "sal/types.h"
11 : : #include "typelib/typeclass.h"
12 : : #include "typelib/typedescription.h"
13 : :
14 : : namespace com { namespace sun { namespace star { namespace sheet {
15 : :
16 : 252 : inline SingleReference::SingleReference() SAL_THROW(())
17 : : : Column(0)
18 : : , RelativeColumn(0)
19 : : , Row(0)
20 : : , RelativeRow(0)
21 : : , Sheet(0)
22 : : , RelativeSheet(0)
23 : 252 : , Flags(0)
24 : : {
25 : 252 : }
26 : :
27 : : inline SingleReference::SingleReference(const ::sal_Int32& Column_, const ::sal_Int32& RelativeColumn_, const ::sal_Int32& Row_, const ::sal_Int32& RelativeRow_, const ::sal_Int32& Sheet_, const ::sal_Int32& RelativeSheet_, const ::sal_Int32& Flags_) SAL_THROW(())
28 : : : Column(Column_)
29 : : , RelativeColumn(RelativeColumn_)
30 : : , Row(Row_)
31 : : , RelativeRow(RelativeRow_)
32 : : , Sheet(Sheet_)
33 : : , RelativeSheet(RelativeSheet_)
34 : : , Flags(Flags_)
35 : : {
36 : : }
37 : :
38 : : } } } }
39 : :
40 : : namespace com { namespace sun { namespace star { namespace sheet {
41 : :
42 : 246 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::sheet::SingleReference const *) {
43 : : //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
44 : : static ::typelib_TypeDescriptionReference * the_type = 0;
45 [ + + ]: 246 : if (the_type == 0) {
46 : 9 : ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.sheet.SingleReference");
47 : : }
48 : 246 : return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
49 : : }
50 : :
51 : : } } } }
52 : :
53 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::sheet::SingleReference const *) SAL_THROW(()) {
54 : : return ::cppu::UnoType< ::com::sun::star::sheet::SingleReference >::get();
55 : : }
56 : :
57 : : #endif // INCLUDED_COM_SUN_STAR_SHEET_SINGLEREFERENCE_HPP
|