Line data Source code
1 : #ifndef INCLUDED_STRUCT2A_HPP
2 : #define INCLUDED_STRUCT2A_HPP
3 :
4 : #include "sal/config.h"
5 :
6 : #include "Struct2a.hdl"
7 :
8 : #include "Struct2.hpp"
9 : #include "com/sun/star/uno/Type.hxx"
10 : #include "cppu/unotype.hxx"
11 : #include "osl/mutex.hxx"
12 : #include "rtl/ustring.h"
13 : #include "rtl/ustring.hxx"
14 : #include "rtl/instance.hxx"
15 : #include "sal/types.h"
16 : #include "typelib/typeclass.h"
17 : #include "typelib/typedescription.h"
18 :
19 :
20 : inline Struct2a::Struct2a() SAL_THROW(())
21 : : Struct2()
22 : , member2(0)
23 : {
24 : }
25 :
26 3 : inline Struct2a::Struct2a(const ::sal_Int32& member_, const ::sal_Int32& member2_) SAL_THROW(())
27 : : Struct2(member_)
28 3 : , member2(member2_)
29 : {
30 3 : }
31 :
32 :
33 : namespace detail {
34 :
35 : struct theStruct2aType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theStruct2aType >
36 : {
37 1 : ::com::sun::star::uno::Type * operator()() const
38 : {
39 1 : ::rtl::OUString the_name( "Struct2a" );
40 1 : ::rtl::OUString the_tname0( "long" );
41 1 : ::rtl::OUString the_name0( "member2" );
42 : ::typelib_StructMember_Init the_members[] = {
43 1 : { { typelib_TypeClass_LONG, the_tname0.pData, the_name0.pData }, false } };
44 1 : ::typelib_TypeDescription * the_newType = 0;
45 1 : ::typelib_typedescription_newStruct(&the_newType, the_name.pData, ::cppu::UnoType< Struct2 >::get().getTypeLibType(), 1, the_members);
46 1 : ::typelib_typedescription_register(&the_newType);
47 1 : ::typelib_typedescription_release(the_newType);
48 1 : return new ::com::sun::star::uno::Type(::com::sun::star::uno::TypeClass_STRUCT, the_name); // leaked
49 : }
50 : };
51 : }
52 :
53 4 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER Struct2a const *) {
54 4 : return *detail::theStruct2aType::get();
55 : }
56 :
57 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER Struct2a const *) SAL_THROW(()) {
58 : return ::cppu::UnoType< Struct2a >::get();
59 : }
60 :
61 : #endif // INCLUDED_STRUCT2A_HPP
|