Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_CONTAINER_XCONTENTENUMERATIONACCESS_HPP
2 : : #define INCLUDED_COM_SUN_STAR_CONTAINER_XCONTENTENUMERATIONACCESS_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/container/XContentEnumerationAccess.hdl"
7 : :
8 : : #include "com/sun/star/uno/XInterface.hpp"
9 : : #include "com/sun/star/uno/RuntimeException.hpp"
10 : : #include "com/sun/star/container/XEnumeration.hpp"
11 : : #include "com/sun/star/uno/Reference.hxx"
12 : : #include "com/sun/star/uno/Sequence.hxx"
13 : : #include "com/sun/star/uno/Type.hxx"
14 : : #include "cppu/unotype.hxx"
15 : : #include "osl/mutex.hxx"
16 : : #include "rtl/ustring.hxx"
17 : : #include "rtl/instance.hxx"
18 : :
19 : : namespace com { namespace sun { namespace star { namespace container { namespace detail {
20 : :
21 : : struct theXContentEnumerationAccessType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theXContentEnumerationAccessType >
22 : : {
23 : 343 : ::com::sun::star::uno::Type * operator()() const
24 : : {
25 [ + - ]: 343 : ::rtl::OUString sTypeName( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.container.XContentEnumerationAccess") );
26 : :
27 : : // Start inline typedescription generation
28 : 343 : typelib_InterfaceTypeDescription * pTD = 0;
29 : :
30 : : typelib_TypeDescriptionReference * aSuperTypes[1];
31 [ + - ]: 343 : aSuperTypes[0] = ::cppu::UnoType< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > >::get().getTypeLibType();
32 : 343 : typelib_TypeDescriptionReference * pMembers[2] = { 0,0 };
33 [ + - ]: 343 : ::rtl::OUString sMethodName0( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.container.XContentEnumerationAccess::createContentEnumeration") );
34 : : typelib_typedescriptionreference_new( &pMembers[0],
35 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
36 : 343 : sMethodName0.pData );
37 [ + - ]: 343 : ::rtl::OUString sMethodName1( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.container.XContentEnumerationAccess::getAvailableServiceNames") );
38 : : typelib_typedescriptionreference_new( &pMembers[1],
39 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
40 : 343 : sMethodName1.pData );
41 : :
42 : : typelib_typedescription_newMIInterface(
43 : : &pTD,
44 : : sTypeName.pData, 0x00000000, 0x0000, 0x0000, 0x00000000, 0x00000000,
45 : : 1, aSuperTypes,
46 : : 2,
47 : 343 : pMembers );
48 : :
49 : 343 : typelib_typedescription_register( (typelib_TypeDescription**)&pTD );
50 : 343 : typelib_typedescriptionreference_release( pMembers[0] );
51 : 343 : typelib_typedescriptionreference_release( pMembers[1] );
52 : 343 : typelib_typedescription_release( (typelib_TypeDescription*)pTD );
53 : :
54 : 343 : return new ::com::sun::star::uno::Type( ::com::sun::star::uno::TypeClass_INTERFACE, sTypeName ); // leaked
55 : : }
56 : : };
57 : :
58 : : } } } } }
59 : :
60 : : namespace com { namespace sun { namespace star { namespace container {
61 : :
62 : 343 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::container::XContentEnumerationAccess const *) {
63 : 343 : const ::com::sun::star::uno::Type &rRet = *detail::theXContentEnumerationAccessType::get();
64 : : // End inline typedescription generation
65 : : static bool bInitStarted = false;
66 [ + - ]: 343 : if (!bInitStarted)
67 : : {
68 [ + - ][ + - ]: 343 : ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
69 [ + - ]: 343 : if (!bInitStarted)
70 : : {
71 : : OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
72 : 343 : bInitStarted = true;
73 [ + - ]: 343 : ::cppu::UnoType< ::com::sun::star::uno::RuntimeException >::get();
74 [ + - ]: 343 : ::cppu::UnoType< ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration > >::get();
75 [ + - ]: 343 : ::cppu::UnoType< ::cppu::UnoSequenceType< ::rtl::OUString > >::get();
76 : :
77 : 343 : typelib_InterfaceMethodTypeDescription * pMethod = 0;
78 : : {
79 : : typelib_Parameter_Init aParameters[1];
80 [ + - ]: 343 : ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("aServiceName") );
81 [ + - ]: 343 : ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("string") );
82 : 343 : aParameters[0].pParamName = sParamName0.pData;
83 : 343 : aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRING;
84 : 343 : aParameters[0].pTypeName = sParamType0.pData;
85 : 343 : aParameters[0].bIn = sal_True;
86 : 343 : aParameters[0].bOut = sal_False;
87 [ + - ]: 343 : ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
88 : 343 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
89 [ + - ]: 343 : ::rtl::OUString sReturnType0( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.container.XEnumeration") );
90 [ + - ]: 343 : ::rtl::OUString sMethodName0( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.container.XContentEnumerationAccess::createContentEnumeration") );
91 : : typelib_typedescription_newInterfaceMethod( &pMethod,
92 : : 3, sal_False,
93 : : sMethodName0.pData,
94 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE, sReturnType0.pData,
95 : : 1, aParameters,
96 : 343 : 1, the_Exceptions );
97 : 343 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
98 : : }
99 : : {
100 [ + - ]: 343 : ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
101 : 343 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
102 [ + - ]: 343 : ::rtl::OUString sReturnType1( RTL_CONSTASCII_USTRINGPARAM("[]string") );
103 [ + - ]: 343 : ::rtl::OUString sMethodName1( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.container.XContentEnumerationAccess::getAvailableServiceNames") );
104 : : typelib_typedescription_newInterfaceMethod( &pMethod,
105 : : 4, sal_False,
106 : : sMethodName1.pData,
107 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE, sReturnType1.pData,
108 : : 0, 0,
109 : 343 : 1, the_Exceptions );
110 : 343 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
111 : : }
112 : 343 : typelib_typedescription_release( (typelib_TypeDescription*)pMethod );
113 [ + - ]: 343 : }
114 : : }
115 : : else
116 : : {
117 : : OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
118 : : }
119 : 343 : return rRet;
120 : : }
121 : :
122 : : } } } }
123 : :
124 : 343 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::uno::Reference< ::com::sun::star::container::XContentEnumerationAccess > const *) SAL_THROW(()) {
125 : 343 : return ::cppu::UnoType< ::com::sun::star::uno::Reference< ::com::sun::star::container::XContentEnumerationAccess > >::get();
126 : : }
127 : :
128 : 343 : ::com::sun::star::uno::Type const & ::com::sun::star::container::XContentEnumerationAccess::static_type(SAL_UNUSED_PARAMETER void *) {
129 : 343 : return ::getCppuType(static_cast< ::com::sun::star::uno::Reference< ::com::sun::star::container::XContentEnumerationAccess > * >(0));
130 : : }
131 : :
132 : : #endif // INCLUDED_COM_SUN_STAR_CONTAINER_XCONTENTENUMERATIONACCESS_HPP
|