Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_REFLECTION_XIDLCLASS_HPP
2 : #define INCLUDED_COM_SUN_STAR_REFLECTION_XIDLCLASS_HPP
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/reflection/XIdlClass.hdl"
7 :
8 : #include "com/sun/star/uno/RuntimeException.hpp"
9 : #include "com/sun/star/reflection/XIdlField.hpp"
10 : #include "com/sun/star/uno/TypeClass.hpp"
11 : #include "com/sun/star/reflection/XIdlArray.hpp"
12 : #include "com/sun/star/reflection/XIdlClass.hpp"
13 : #include "com/sun/star/reflection/XIdlMethod.hpp"
14 : #include "com/sun/star/uno/XInterface.hpp"
15 : #include "com/sun/star/uno/Uik.hpp"
16 : #include "com/sun/star/uno/Any.hxx"
17 : #include "com/sun/star/uno/Reference.hxx"
18 : #include "com/sun/star/uno/Sequence.hxx"
19 : #include "com/sun/star/uno/Type.hxx"
20 : #include "cppu/unotype.hxx"
21 : #include "osl/mutex.hxx"
22 : #include "rtl/ustring.hxx"
23 : #include "rtl/instance.hxx"
24 : #include "sal/types.h"
25 :
26 : namespace com { namespace sun { namespace star { namespace reflection { namespace detail {
27 :
28 : struct theXIdlClassType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theXIdlClassType >
29 : {
30 12 : ::com::sun::star::uno::Type * operator()() const
31 : {
32 12 : ::rtl::OUString sTypeName( "com.sun.star.reflection.XIdlClass" );
33 :
34 : // Start inline typedescription generation
35 12 : typelib_InterfaceTypeDescription * pTD = 0;
36 :
37 : typelib_TypeDescriptionReference * aSuperTypes[1];
38 12 : aSuperTypes[0] = ::cppu::UnoType< ::com::sun::star::uno::Reference< css::uno::XInterface > >::get().getTypeLibType();
39 12 : typelib_TypeDescriptionReference * pMembers[16] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 };
40 12 : ::rtl::OUString sMethodName0( "com.sun.star.reflection.XIdlClass::getClasses" );
41 : typelib_typedescriptionreference_new( &pMembers[0],
42 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
43 12 : sMethodName0.pData );
44 12 : ::rtl::OUString sMethodName1( "com.sun.star.reflection.XIdlClass::getClass" );
45 : typelib_typedescriptionreference_new( &pMembers[1],
46 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
47 12 : sMethodName1.pData );
48 12 : ::rtl::OUString sMethodName2( "com.sun.star.reflection.XIdlClass::equals" );
49 : typelib_typedescriptionreference_new( &pMembers[2],
50 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
51 12 : sMethodName2.pData );
52 12 : ::rtl::OUString sMethodName3( "com.sun.star.reflection.XIdlClass::isAssignableFrom" );
53 : typelib_typedescriptionreference_new( &pMembers[3],
54 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
55 12 : sMethodName3.pData );
56 12 : ::rtl::OUString sMethodName4( "com.sun.star.reflection.XIdlClass::getTypeClass" );
57 : typelib_typedescriptionreference_new( &pMembers[4],
58 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
59 12 : sMethodName4.pData );
60 12 : ::rtl::OUString sMethodName5( "com.sun.star.reflection.XIdlClass::getName" );
61 : typelib_typedescriptionreference_new( &pMembers[5],
62 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
63 12 : sMethodName5.pData );
64 12 : ::rtl::OUString sMethodName6( "com.sun.star.reflection.XIdlClass::getUik" );
65 : typelib_typedescriptionreference_new( &pMembers[6],
66 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
67 12 : sMethodName6.pData );
68 12 : ::rtl::OUString sMethodName7( "com.sun.star.reflection.XIdlClass::getSuperclasses" );
69 : typelib_typedescriptionreference_new( &pMembers[7],
70 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
71 12 : sMethodName7.pData );
72 12 : ::rtl::OUString sMethodName8( "com.sun.star.reflection.XIdlClass::getInterfaces" );
73 : typelib_typedescriptionreference_new( &pMembers[8],
74 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
75 12 : sMethodName8.pData );
76 12 : ::rtl::OUString sMethodName9( "com.sun.star.reflection.XIdlClass::getComponentType" );
77 : typelib_typedescriptionreference_new( &pMembers[9],
78 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
79 12 : sMethodName9.pData );
80 12 : ::rtl::OUString sMethodName10( "com.sun.star.reflection.XIdlClass::getField" );
81 : typelib_typedescriptionreference_new( &pMembers[10],
82 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
83 12 : sMethodName10.pData );
84 12 : ::rtl::OUString sMethodName11( "com.sun.star.reflection.XIdlClass::getFields" );
85 : typelib_typedescriptionreference_new( &pMembers[11],
86 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
87 12 : sMethodName11.pData );
88 12 : ::rtl::OUString sMethodName12( "com.sun.star.reflection.XIdlClass::getMethod" );
89 : typelib_typedescriptionreference_new( &pMembers[12],
90 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
91 12 : sMethodName12.pData );
92 12 : ::rtl::OUString sMethodName13( "com.sun.star.reflection.XIdlClass::getMethods" );
93 : typelib_typedescriptionreference_new( &pMembers[13],
94 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
95 12 : sMethodName13.pData );
96 12 : ::rtl::OUString sMethodName14( "com.sun.star.reflection.XIdlClass::getArray" );
97 : typelib_typedescriptionreference_new( &pMembers[14],
98 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
99 12 : sMethodName14.pData );
100 12 : ::rtl::OUString sMethodName15( "com.sun.star.reflection.XIdlClass::createObject" );
101 : typelib_typedescriptionreference_new( &pMembers[15],
102 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
103 12 : sMethodName15.pData );
104 :
105 : typelib_typedescription_newMIInterface(
106 : &pTD,
107 : sTypeName.pData, 0x00000000, 0x0000, 0x0000, 0x00000000, 0x00000000,
108 : 1, aSuperTypes,
109 : 16,
110 12 : pMembers );
111 :
112 12 : typelib_typedescription_register( (typelib_TypeDescription**)&pTD );
113 12 : typelib_typedescriptionreference_release( pMembers[0] );
114 12 : typelib_typedescriptionreference_release( pMembers[1] );
115 12 : typelib_typedescriptionreference_release( pMembers[2] );
116 12 : typelib_typedescriptionreference_release( pMembers[3] );
117 12 : typelib_typedescriptionreference_release( pMembers[4] );
118 12 : typelib_typedescriptionreference_release( pMembers[5] );
119 12 : typelib_typedescriptionreference_release( pMembers[6] );
120 12 : typelib_typedescriptionreference_release( pMembers[7] );
121 12 : typelib_typedescriptionreference_release( pMembers[8] );
122 12 : typelib_typedescriptionreference_release( pMembers[9] );
123 12 : typelib_typedescriptionreference_release( pMembers[10] );
124 12 : typelib_typedescriptionreference_release( pMembers[11] );
125 12 : typelib_typedescriptionreference_release( pMembers[12] );
126 12 : typelib_typedescriptionreference_release( pMembers[13] );
127 12 : typelib_typedescriptionreference_release( pMembers[14] );
128 12 : typelib_typedescriptionreference_release( pMembers[15] );
129 12 : typelib_typedescription_release( (typelib_TypeDescription*)pTD );
130 :
131 12 : return new ::com::sun::star::uno::Type( ::com::sun::star::uno::TypeClass_INTERFACE, sTypeName ); // leaked
132 : }
133 : };
134 :
135 : } } } } }
136 :
137 : namespace com { namespace sun { namespace star { namespace reflection {
138 :
139 860 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::reflection::XIdlClass const *) {
140 860 : const ::com::sun::star::uno::Type &rRet = *detail::theXIdlClassType::get();
141 : // End inline typedescription generation
142 : static bool bInitStarted = false;
143 860 : if (!bInitStarted)
144 : {
145 12 : ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
146 12 : if (!bInitStarted)
147 : {
148 : OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
149 12 : bInitStarted = true;
150 12 : ::cppu::UnoType< css::uno::RuntimeException >::get();
151 12 : ::cppu::UnoType< ::cppu::UnoSequenceType< ::com::sun::star::uno::Reference< css::reflection::XIdlClass > > >::get();
152 12 : ::cppu::UnoType< ::com::sun::star::uno::Reference< css::reflection::XIdlClass > >::get();
153 12 : ::cppu::UnoType< css::uno::TypeClass >::get();
154 12 : ::cppu::UnoType< css::uno::Uik >::get();
155 12 : ::cppu::UnoType< ::com::sun::star::uno::Reference< css::reflection::XIdlField > >::get();
156 12 : ::cppu::UnoType< ::cppu::UnoSequenceType< ::com::sun::star::uno::Reference< css::reflection::XIdlField > > >::get();
157 12 : ::cppu::UnoType< ::com::sun::star::uno::Reference< css::reflection::XIdlMethod > >::get();
158 12 : ::cppu::UnoType< ::cppu::UnoSequenceType< ::com::sun::star::uno::Reference< css::reflection::XIdlMethod > > >::get();
159 12 : ::cppu::UnoType< ::com::sun::star::uno::Reference< css::reflection::XIdlArray > >::get();
160 :
161 12 : typelib_InterfaceMethodTypeDescription * pMethod = 0;
162 : {
163 12 : ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
164 12 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
165 12 : ::rtl::OUString sReturnType0( "[]com.sun.star.reflection.XIdlClass" );
166 12 : ::rtl::OUString sMethodName0( "com.sun.star.reflection.XIdlClass::getClasses" );
167 : typelib_typedescription_newInterfaceMethod( &pMethod,
168 : 3, sal_False,
169 : sMethodName0.pData,
170 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE, sReturnType0.pData,
171 : 0, 0,
172 12 : 1, the_Exceptions );
173 12 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
174 : }
175 : {
176 : typelib_Parameter_Init aParameters[1];
177 12 : ::rtl::OUString sParamName0( "aName" );
178 12 : ::rtl::OUString sParamType0( "string" );
179 12 : aParameters[0].pParamName = sParamName0.pData;
180 12 : aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRING;
181 12 : aParameters[0].pTypeName = sParamType0.pData;
182 12 : aParameters[0].bIn = sal_True;
183 12 : aParameters[0].bOut = sal_False;
184 12 : ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
185 12 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
186 12 : ::rtl::OUString sReturnType1( "com.sun.star.reflection.XIdlClass" );
187 12 : ::rtl::OUString sMethodName1( "com.sun.star.reflection.XIdlClass::getClass" );
188 : typelib_typedescription_newInterfaceMethod( &pMethod,
189 : 4, sal_False,
190 : sMethodName1.pData,
191 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE, sReturnType1.pData,
192 : 1, aParameters,
193 12 : 1, the_Exceptions );
194 12 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
195 : }
196 : {
197 : typelib_Parameter_Init aParameters[1];
198 12 : ::rtl::OUString sParamName0( "Type" );
199 12 : ::rtl::OUString sParamType0( "com.sun.star.reflection.XIdlClass" );
200 12 : aParameters[0].pParamName = sParamName0.pData;
201 12 : aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE;
202 12 : aParameters[0].pTypeName = sParamType0.pData;
203 12 : aParameters[0].bIn = sal_True;
204 12 : aParameters[0].bOut = sal_False;
205 12 : ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
206 12 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
207 12 : ::rtl::OUString sReturnType2( "boolean" );
208 12 : ::rtl::OUString sMethodName2( "com.sun.star.reflection.XIdlClass::equals" );
209 : typelib_typedescription_newInterfaceMethod( &pMethod,
210 : 5, sal_False,
211 : sMethodName2.pData,
212 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_BOOLEAN, sReturnType2.pData,
213 : 1, aParameters,
214 12 : 1, the_Exceptions );
215 12 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
216 : }
217 : {
218 : typelib_Parameter_Init aParameters[1];
219 12 : ::rtl::OUString sParamName0( "xType" );
220 12 : ::rtl::OUString sParamType0( "com.sun.star.reflection.XIdlClass" );
221 12 : aParameters[0].pParamName = sParamName0.pData;
222 12 : aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE;
223 12 : aParameters[0].pTypeName = sParamType0.pData;
224 12 : aParameters[0].bIn = sal_True;
225 12 : aParameters[0].bOut = sal_False;
226 12 : ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
227 12 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
228 12 : ::rtl::OUString sReturnType3( "boolean" );
229 12 : ::rtl::OUString sMethodName3( "com.sun.star.reflection.XIdlClass::isAssignableFrom" );
230 : typelib_typedescription_newInterfaceMethod( &pMethod,
231 : 6, sal_False,
232 : sMethodName3.pData,
233 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_BOOLEAN, sReturnType3.pData,
234 : 1, aParameters,
235 12 : 1, the_Exceptions );
236 12 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
237 : }
238 : {
239 12 : ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
240 12 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
241 12 : ::rtl::OUString sReturnType4( "com.sun.star.uno.TypeClass" );
242 12 : ::rtl::OUString sMethodName4( "com.sun.star.reflection.XIdlClass::getTypeClass" );
243 : typelib_typedescription_newInterfaceMethod( &pMethod,
244 : 7, sal_False,
245 : sMethodName4.pData,
246 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_ENUM, sReturnType4.pData,
247 : 0, 0,
248 12 : 1, the_Exceptions );
249 12 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
250 : }
251 : {
252 12 : ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
253 12 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
254 12 : ::rtl::OUString sReturnType5( "string" );
255 12 : ::rtl::OUString sMethodName5( "com.sun.star.reflection.XIdlClass::getName" );
256 : typelib_typedescription_newInterfaceMethod( &pMethod,
257 : 8, sal_False,
258 : sMethodName5.pData,
259 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRING, sReturnType5.pData,
260 : 0, 0,
261 12 : 1, the_Exceptions );
262 12 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
263 : }
264 : {
265 12 : ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
266 12 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
267 12 : ::rtl::OUString sReturnType6( "com.sun.star.uno.Uik" );
268 12 : ::rtl::OUString sMethodName6( "com.sun.star.reflection.XIdlClass::getUik" );
269 : typelib_typedescription_newInterfaceMethod( &pMethod,
270 : 9, sal_False,
271 : sMethodName6.pData,
272 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRUCT, sReturnType6.pData,
273 : 0, 0,
274 12 : 1, the_Exceptions );
275 12 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
276 : }
277 : {
278 12 : ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
279 12 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
280 12 : ::rtl::OUString sReturnType7( "[]com.sun.star.reflection.XIdlClass" );
281 12 : ::rtl::OUString sMethodName7( "com.sun.star.reflection.XIdlClass::getSuperclasses" );
282 : typelib_typedescription_newInterfaceMethod( &pMethod,
283 : 10, sal_False,
284 : sMethodName7.pData,
285 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE, sReturnType7.pData,
286 : 0, 0,
287 12 : 1, the_Exceptions );
288 12 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
289 : }
290 : {
291 12 : ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
292 12 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
293 12 : ::rtl::OUString sReturnType8( "[]com.sun.star.reflection.XIdlClass" );
294 12 : ::rtl::OUString sMethodName8( "com.sun.star.reflection.XIdlClass::getInterfaces" );
295 : typelib_typedescription_newInterfaceMethod( &pMethod,
296 : 11, sal_False,
297 : sMethodName8.pData,
298 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE, sReturnType8.pData,
299 : 0, 0,
300 12 : 1, the_Exceptions );
301 12 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
302 : }
303 : {
304 12 : ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
305 12 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
306 12 : ::rtl::OUString sReturnType9( "com.sun.star.reflection.XIdlClass" );
307 12 : ::rtl::OUString sMethodName9( "com.sun.star.reflection.XIdlClass::getComponentType" );
308 : typelib_typedescription_newInterfaceMethod( &pMethod,
309 : 12, sal_False,
310 : sMethodName9.pData,
311 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE, sReturnType9.pData,
312 : 0, 0,
313 12 : 1, the_Exceptions );
314 12 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
315 : }
316 : {
317 : typelib_Parameter_Init aParameters[1];
318 12 : ::rtl::OUString sParamName0( "aName" );
319 12 : ::rtl::OUString sParamType0( "string" );
320 12 : aParameters[0].pParamName = sParamName0.pData;
321 12 : aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRING;
322 12 : aParameters[0].pTypeName = sParamType0.pData;
323 12 : aParameters[0].bIn = sal_True;
324 12 : aParameters[0].bOut = sal_False;
325 12 : ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
326 12 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
327 12 : ::rtl::OUString sReturnType10( "com.sun.star.reflection.XIdlField" );
328 12 : ::rtl::OUString sMethodName10( "com.sun.star.reflection.XIdlClass::getField" );
329 : typelib_typedescription_newInterfaceMethod( &pMethod,
330 : 13, sal_False,
331 : sMethodName10.pData,
332 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE, sReturnType10.pData,
333 : 1, aParameters,
334 12 : 1, the_Exceptions );
335 12 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
336 : }
337 : {
338 12 : ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
339 12 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
340 12 : ::rtl::OUString sReturnType11( "[]com.sun.star.reflection.XIdlField" );
341 12 : ::rtl::OUString sMethodName11( "com.sun.star.reflection.XIdlClass::getFields" );
342 : typelib_typedescription_newInterfaceMethod( &pMethod,
343 : 14, sal_False,
344 : sMethodName11.pData,
345 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE, sReturnType11.pData,
346 : 0, 0,
347 12 : 1, the_Exceptions );
348 12 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
349 : }
350 : {
351 : typelib_Parameter_Init aParameters[1];
352 12 : ::rtl::OUString sParamName0( "aName" );
353 12 : ::rtl::OUString sParamType0( "string" );
354 12 : aParameters[0].pParamName = sParamName0.pData;
355 12 : aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRING;
356 12 : aParameters[0].pTypeName = sParamType0.pData;
357 12 : aParameters[0].bIn = sal_True;
358 12 : aParameters[0].bOut = sal_False;
359 12 : ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
360 12 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
361 12 : ::rtl::OUString sReturnType12( "com.sun.star.reflection.XIdlMethod" );
362 12 : ::rtl::OUString sMethodName12( "com.sun.star.reflection.XIdlClass::getMethod" );
363 : typelib_typedescription_newInterfaceMethod( &pMethod,
364 : 15, sal_False,
365 : sMethodName12.pData,
366 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE, sReturnType12.pData,
367 : 1, aParameters,
368 12 : 1, the_Exceptions );
369 12 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
370 : }
371 : {
372 12 : ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
373 12 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
374 12 : ::rtl::OUString sReturnType13( "[]com.sun.star.reflection.XIdlMethod" );
375 12 : ::rtl::OUString sMethodName13( "com.sun.star.reflection.XIdlClass::getMethods" );
376 : typelib_typedescription_newInterfaceMethod( &pMethod,
377 : 16, sal_False,
378 : sMethodName13.pData,
379 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE, sReturnType13.pData,
380 : 0, 0,
381 12 : 1, the_Exceptions );
382 12 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
383 : }
384 : {
385 12 : ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
386 12 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
387 12 : ::rtl::OUString sReturnType14( "com.sun.star.reflection.XIdlArray" );
388 12 : ::rtl::OUString sMethodName14( "com.sun.star.reflection.XIdlClass::getArray" );
389 : typelib_typedescription_newInterfaceMethod( &pMethod,
390 : 17, sal_False,
391 : sMethodName14.pData,
392 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE, sReturnType14.pData,
393 : 0, 0,
394 12 : 1, the_Exceptions );
395 12 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
396 : }
397 : {
398 : typelib_Parameter_Init aParameters[1];
399 12 : ::rtl::OUString sParamName0( "obj" );
400 12 : ::rtl::OUString sParamType0( "any" );
401 12 : aParameters[0].pParamName = sParamName0.pData;
402 12 : aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_ANY;
403 12 : aParameters[0].pTypeName = sParamType0.pData;
404 12 : aParameters[0].bIn = sal_False;
405 12 : aParameters[0].bOut = sal_True;
406 12 : ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
407 12 : rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
408 12 : ::rtl::OUString sReturnType15( "void" );
409 12 : ::rtl::OUString sMethodName15( "com.sun.star.reflection.XIdlClass::createObject" );
410 : typelib_typedescription_newInterfaceMethod( &pMethod,
411 : 18, sal_False,
412 : sMethodName15.pData,
413 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_VOID, sReturnType15.pData,
414 : 1, aParameters,
415 12 : 1, the_Exceptions );
416 12 : typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
417 : }
418 12 : typelib_typedescription_release( (typelib_TypeDescription*)pMethod );
419 12 : }
420 : }
421 : else
422 : {
423 : OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
424 : }
425 860 : return rRet;
426 : }
427 :
428 : } } } }
429 :
430 773 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::uno::Reference< css::reflection::XIdlClass > const *) SAL_THROW(()) {
431 773 : return ::cppu::UnoType< ::com::sun::star::uno::Reference< css::reflection::XIdlClass > >::get();
432 : }
433 :
434 773 : ::com::sun::star::uno::Type const & css::reflection::XIdlClass::static_type(SAL_UNUSED_PARAMETER void *) {
435 773 : return ::getCppuType(static_cast< ::com::sun::star::uno::Reference< css::reflection::XIdlClass > * >(0));
436 : }
437 :
438 : #endif // INCLUDED_COM_SUN_STAR_REFLECTION_XIDLCLASS_HPP
|