Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_UNO_UIK_HPP
2 : : #define INCLUDED_COM_SUN_STAR_UNO_UIK_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/uno/Uik.hdl"
7 : :
8 : : #include "com/sun/star/uno/Type.hxx"
9 : : #include "cppu/unotype.hxx"
10 : : #include "osl/mutex.hxx"
11 : : #include "rtl/ustring.h"
12 : : #include "rtl/ustring.hxx"
13 : : #include "rtl/instance.hxx"
14 : : #include "sal/types.h"
15 : : #include "typelib/typeclass.h"
16 : : #include "typelib/typedescription.h"
17 : :
18 : : namespace com { namespace sun { namespace star { namespace uno {
19 : :
20 : : inline Uik::Uik() SAL_THROW(())
21 : : : m_Data1(0)
22 : : , m_Data2(0)
23 : : , m_Data3(0)
24 : : , m_Data4(0)
25 : : , m_Data5(0)
26 : : {
27 : : }
28 : :
29 : : inline Uik::Uik(const ::sal_uInt32& m_Data1_, const ::sal_uInt16& m_Data2_, const ::sal_uInt16& m_Data3_, const ::sal_uInt32& m_Data4_, const ::sal_uInt32& m_Data5_) SAL_THROW(())
30 : : : m_Data1(m_Data1_)
31 : : , m_Data2(m_Data2_)
32 : : , m_Data3(m_Data3_)
33 : : , m_Data4(m_Data4_)
34 : : , m_Data5(m_Data5_)
35 : : {
36 : : }
37 : :
38 : : } } } }
39 : :
40 : : namespace com { namespace sun { namespace star { namespace uno { namespace detail {
41 : :
42 : : struct theUikType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theUikType >
43 : : {
44 : 333 : ::com::sun::star::uno::Type * operator()() const
45 : : {
46 [ + - ]: 333 : ::rtl::OUString the_name(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.Uik"));
47 [ + - ]: 333 : ::rtl::OUString the_tname0(RTL_CONSTASCII_USTRINGPARAM("unsigned long"));
48 [ + - ]: 333 : ::rtl::OUString the_name0(RTL_CONSTASCII_USTRINGPARAM("m_Data1"));
49 [ + - ]: 333 : ::rtl::OUString the_tname1(RTL_CONSTASCII_USTRINGPARAM("unsigned short"));
50 [ + - ]: 333 : ::rtl::OUString the_name1(RTL_CONSTASCII_USTRINGPARAM("m_Data2"));
51 [ + - ]: 333 : ::rtl::OUString the_name2(RTL_CONSTASCII_USTRINGPARAM("m_Data3"));
52 [ + - ]: 333 : ::rtl::OUString the_name3(RTL_CONSTASCII_USTRINGPARAM("m_Data4"));
53 [ + - ]: 333 : ::rtl::OUString the_name4(RTL_CONSTASCII_USTRINGPARAM("m_Data5"));
54 : : ::typelib_StructMember_Init the_members[] = {
55 : : { { typelib_TypeClass_UNSIGNED_LONG, the_tname0.pData, the_name0.pData }, false },
56 : : { { typelib_TypeClass_UNSIGNED_SHORT, the_tname1.pData, the_name1.pData }, false },
57 : : { { typelib_TypeClass_UNSIGNED_SHORT, the_tname1.pData, the_name2.pData }, false },
58 : : { { typelib_TypeClass_UNSIGNED_LONG, the_tname0.pData, the_name3.pData }, false },
59 : 333 : { { typelib_TypeClass_UNSIGNED_LONG, the_tname0.pData, the_name4.pData }, false } };
60 : 333 : ::typelib_TypeDescription * the_newType = 0;
61 : 333 : ::typelib_typedescription_newStruct(&the_newType, the_name.pData, 0, 5, the_members);
62 : 333 : ::typelib_typedescription_register(&the_newType);
63 : 333 : ::typelib_typedescription_release(the_newType);
64 : 333 : return new ::com::sun::star::uno::Type(::com::sun::star::uno::TypeClass_STRUCT, the_name); // leaked
65 : : }
66 : : };
67 : : } } } } }
68 : :
69 : : namespace com { namespace sun { namespace star { namespace uno {
70 : :
71 : 526 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::uno::Uik const *) {
72 : 526 : return *detail::theUikType::get();
73 : : }
74 : :
75 : : } } } }
76 : :
77 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::uno::Uik const *) SAL_THROW(()) {
78 : : return ::cppu::UnoType< ::com::sun::star::uno::Uik >::get();
79 : : }
80 : :
81 : : #endif // INCLUDED_COM_SUN_STAR_UNO_UIK_HPP
|