1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 #include "sal/config.h"
23 #include "boost/noncopyable.hpp"
24 #include "com/sun/star/lang/XInitialization.hpp"
25 #include "com/sun/star/lang/XComponent.hpp"
26 #include "com/sun/star/uno/Any.hxx"
27 #include "com/sun/star/uno/Exception.hpp"
28 #include "com/sun/star/uno/Reference.hxx"
29 #include "com/sun/star/uno/Sequence.hxx"
30 #include "com/sun/star/uno/Type.hxx"
31 #include "com/sun/star/uno/XComponentContext.hpp"
32 #include "com/sun/star/uno/XInterface.hpp"
33 #include "cppu/unotype.hxx"
34 #include "cppuhelper/factory.hxx"
35 #include "cppuhelper/implbase1.hxx"
36 #include "cppuhelper/implbase2.hxx"
37 #include "cppuhelper/implementationentry.hxx"
38 #include "cppuhelper/weak.hxx"
39 #include "rtl/string.h"
40 #include "rtl/ustring.h"
41 #include "rtl/ustring.hxx"
42 #include "sal/types.h"
43 #include "test/testtools/bridgetest/BadConstructorArguments.hpp"
44 #include "test/testtools/bridgetest/TestEnum.hpp"
45 #include "test/testtools/bridgetest/TestStruct.hpp"
46 #include "test/testtools/bridgetest/TestPolyStruct.hpp"
47 #include "test/testtools/bridgetest/TestPolyStruct2.hpp"
48 #include "test/testtools/bridgetest/XMultiBase1.hpp"
52 namespace ttb
= ::test::testtools::bridgetest
;
54 public cppu::WeakImplHelper1
<css::lang::XInitialization
>,
55 private boost::noncopyable
63 virtual void SAL_CALL
initialize(
64 css::uno::Sequence
< css::uno::Any
> const & arguments
)
65 throw (css::uno::Exception
, std::exception
) SAL_OVERRIDE
;
68 void Impl::initialize(css::uno::Sequence
< css::uno::Any
> const & arguments
)
69 throw (css::uno::Exception
, std::exception
)
72 ::sal_Int8 arg1
= sal_Int8();
73 ::sal_Int16 arg2
= sal_Int16();
74 ::sal_uInt16 arg3
= sal_uInt16();
75 ::sal_Int32 arg4
= sal_Int32();
76 ::sal_uInt32 arg5
= sal_uInt32();
77 ::sal_Int64 arg6
= sal_Int64();
78 ::sal_uInt64 arg7
= sal_uInt64();
80 double arg9
= double();
84 css::uno::Sequence
< sal_Bool
> arg14
;
85 css::uno::Sequence
< ::sal_Int8
> arg15
;
86 css::uno::Sequence
< ::sal_Int16
> arg16
;
87 css::uno::Sequence
< ::sal_uInt16
> arg17
;
88 css::uno::Sequence
< ::sal_Int32
> arg18
;
89 css::uno::Sequence
< ::sal_uInt32
> arg19
;
90 css::uno::Sequence
< ::sal_Int64
> arg20
;
91 css::uno::Sequence
< ::sal_uInt64
> arg21
;
92 css::uno::Sequence
< float > arg22
;
93 css::uno::Sequence
< double > arg23
;
94 css::uno::Sequence
< OUString
> arg25
;
95 css::uno::Sequence
< css::uno::Type
> arg26
;
96 css::uno::Sequence
< css::uno::Any
> arg27
;
98 css::uno::Sequence
< css::uno::Sequence
< sal_Bool
> > arg28
;
99 css::uno::Sequence
< css::uno::Sequence
< css::uno::Any
> > arg29
;
101 css::uno::Sequence
< ::test::testtools::bridgetest::TestEnum
> arg30
;
102 css::uno::Sequence
< ::test::testtools::bridgetest::TestStruct
> arg31
;
104 ::test::testtools::bridgetest::TestPolyStruct
< sal_Bool
> > arg32
;
106 ::test::testtools::bridgetest::TestPolyStruct
< css::uno::Any
> > arg33
;
108 css::uno::Sequence
< css::uno::Reference
< css::uno::XInterface
> > arg34
;
109 ::test::testtools::bridgetest::TestEnum arg35
;
110 ::test::testtools::bridgetest::TestStruct arg36
;
111 ::test::testtools::bridgetest::TestPolyStruct
< sal_Bool
> arg37
;
112 ::test::testtools::bridgetest::TestPolyStruct
< css::uno::Any
> arg38
;
114 css::uno::Reference
< css::uno::XInterface
> arg39
;
115 if (!(arguments
.getLength() == 40
116 && (arguments
[0] >>= arg0
) && arg0
117 && (arguments
[1] >>= arg1
) && arg1
== SAL_MIN_INT8
118 && (arguments
[2] >>= arg2
) && arg2
== SAL_MIN_INT16
119 && (arguments
[3].getValueType()
120 == ::cppu::UnoType
< ::cppu::UnoUnsignedShortType
>::get())
121 && (arguments
[3] >>= arg3
) && arg3
== SAL_MAX_UINT16
122 && (arguments
[4] >>= arg4
) && arg4
== SAL_MIN_INT32
123 && (arguments
[5] >>= arg5
) && arg5
== SAL_MAX_UINT32
124 && (arguments
[6] >>= arg6
) && arg6
== SAL_MIN_INT64
125 && (arguments
[7] >>= arg7
) && arg7
== SAL_MAX_UINT64
126 && (arguments
[8] >>= arg8
) && arg8
== 0.123f
127 && (arguments
[9] >>= arg9
) && arg9
== 0.456
128 && (arguments
[10].getValueType()
129 == ::cppu::UnoType
< ::cppu::UnoCharType
>::get())
130 && (*static_cast< ::sal_Unicode
const * >(arguments
[10].getValue())
132 && (arguments
[11] >>= arg11
)
134 && (arguments
[12] >>= arg12
)
135 && arg12
== ::cppu::UnoType
< css::uno::Any
>::get()
136 && (arguments
[13] >>= arg13
) && arg13
137 && (arguments
[14] >>= arg14
) && arg14
.getLength() == 1 && arg14
[0]
138 && (arguments
[15] >>= arg15
) && arg15
.getLength() == 1
139 && arg15
[0] == SAL_MIN_INT8
140 && (arguments
[16] >>= arg16
) && arg16
.getLength() == 1
141 && arg16
[0] == SAL_MIN_INT16
142 && (arguments
[17].getValueType()
144 ::cppu::UnoSequenceType
<
145 ::cppu::UnoUnsignedShortType
> >::get())
146 && (arguments
[17] >>= arg17
) && arg17
.getLength() == 1
147 && arg17
[0] == SAL_MAX_UINT16
148 && (arguments
[18] >>= arg18
) && arg18
.getLength() == 1
149 && arg18
[0] == SAL_MIN_INT32
150 && (arguments
[19] >>= arg19
) && arg19
.getLength() == 1
151 && arg19
[0] == SAL_MAX_UINT32
152 && (arguments
[20] >>= arg20
) && arg20
.getLength() == 1
153 && arg20
[0] == SAL_MIN_INT64
154 && (arguments
[21] >>= arg21
) && arg21
.getLength() == 1
155 && arg21
[0] == SAL_MAX_UINT64
156 && (arguments
[22] >>= arg22
) && arg22
.getLength() == 1
157 && arg22
[0] == 0.123f
158 && (arguments
[23] >>= arg23
) && arg23
.getLength() == 1
160 && (arguments
[24].getValueType()
162 ::cppu::UnoSequenceType
< ::cppu::UnoCharType
> >::get())
163 && (static_cast< css::uno::Sequence
< ::sal_Unicode
> const * >(
164 arguments
[24].getValue())->getLength()
166 && ((*static_cast< css::uno::Sequence
< ::sal_Unicode
> const * >(
167 arguments
[24].getValue()))[0]
169 && (arguments
[25] >>= arg25
) && arg25
.getLength() == 1
170 && arg25
[0] == "test"
171 && (arguments
[26] >>= arg26
) && arg26
.getLength() == 1
172 && arg26
[0] == ::cppu::UnoType
< css::uno::Any
>::get()
173 && (arguments
[27] >>= arg27
) && arg27
.getLength() == 1
174 && (arg27
[0] >>= arg27b
) && arg27b
175 && (arguments
[28] >>= arg28
) && arg28
.getLength() == 1
176 && arg28
[0].getLength() == 1 && arg28
[0][0]
177 && (arguments
[29] >>= arg29
) && arg29
.getLength() == 1
178 && arg29
[0].getLength() == 1 && (arg29
[0][0] >>= arg29b
) && arg29b
179 && (arguments
[30] >>= arg30
) && arg30
.getLength() == 1
180 && arg30
[0] == ::test::testtools::bridgetest::TestEnum_TWO
181 && (arguments
[31] >>= arg31
) && arg31
.getLength() == 1
182 && arg31
[0].member
== 10
183 && (arguments
[32] >>= arg32
) && arg32
.getLength() == 1
185 && (arguments
[33] >>= arg33
) && arg33
.getLength() == 1
186 && (arg33
[0].member
>>= arg33b
) && arg33b
187 && (arguments
[34] >>= arg34
) && arg34
.getLength() == 1
189 && (arguments
[35] >>= arg35
)
190 && arg35
== ::test::testtools::bridgetest::TestEnum_TWO
191 && (arguments
[36] >>= arg36
) && arg36
.member
== 10
192 && (arguments
[37] >>= arg37
) && arg37
.member
193 && (arguments
[38] >>= arg38
) && (arg38
.member
>>= arg38b
) && arg38b
194 && (arguments
[39] >>= arg39
) && !arg39
.is()))
196 throw ::test::testtools::bridgetest::BadConstructorArguments();
201 class Impl2
: public ::cppu::WeakImplHelper2
<
202 css::lang::XInitialization
, ttb::XMultiBase1
>
205 Impl2(): m_attr1(0.0) {}
210 virtual void SAL_CALL
initialize(
211 css::uno::Sequence
< css::uno::Any
> const & arguments
)
212 throw (css::uno::Exception
, std::exception
) SAL_OVERRIDE
;
215 virtual double SAL_CALL
getatt1()
216 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
217 virtual void SAL_CALL
setatt1( double _att1
)
218 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
219 virtual ::sal_Int32 SAL_CALL
fn11( ::sal_Int32 arg
)
220 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
221 virtual OUString SAL_CALL
fn12( const OUString
& arg
)
222 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
228 void Impl2::initialize(css::uno::Sequence
< css::uno::Any
> const & arguments
)
229 throw (css::uno::Exception
, std::exception
)
231 ttb::TestPolyStruct
< css::uno::Type
> arg0
;
232 ttb::TestPolyStruct
< css::uno::Any
> arg1
;
233 css::uno::Any
arg1b(sal_True
);
234 ttb::TestPolyStruct
< sal_Bool
> arg2
;
235 ttb::TestPolyStruct
< ::sal_Int8
> arg3
;
236 ttb::TestPolyStruct
< ::sal_Int16
> arg4
;
237 ttb::TestPolyStruct
< ::sal_Int32
> arg5
;
238 ttb::TestPolyStruct
< ::sal_Int64
> arg6
;
239 ttb::TestPolyStruct
< ::sal_Unicode
> arg7
;
240 ttb::TestPolyStruct
< OUString
> arg8
;
241 ttb::TestPolyStruct
< float > arg9
;
242 ttb::TestPolyStruct
< double > arg10
;
243 ttb::TestPolyStruct
<css::uno::Reference
<css::uno::XInterface
> > arg11
;
244 ttb::TestPolyStruct
<css::uno::Reference
< css::lang::XComponent
> > arg12
;
245 ttb::TestPolyStruct
<ttb::TestEnum
> arg13
;
247 ttb::TestPolyStruct2
<sal_Unicode
, css::uno::Any
> > arg14
;
248 ttb::TestPolyStruct
< ttb::TestPolyStruct2
<
249 ttb::TestPolyStruct2
< sal_Unicode
, css::uno::Any
>,
251 ttb::TestPolyStruct2
< OUString
,ttb::TestPolyStruct2
<
252 ::sal_Unicode
, ttb::TestPolyStruct
< css::uno::Any
> > > arg16
;
253 ttb::TestPolyStruct2
< ttb::TestPolyStruct2
<sal_Unicode
, css::uno::Any
>,
254 ttb::TestPolyStruct
<sal_Unicode
> > arg17
;
255 ttb::TestPolyStruct
<css::uno::Sequence
< css::uno::Type
> > arg18
;
256 ttb::TestPolyStruct
<css::uno::Sequence
<css::uno::Any
> > arg19
;
257 ttb::TestPolyStruct
<css::uno::Sequence
< sal_Bool
> > arg20
;
258 ttb::TestPolyStruct
<css::uno::Sequence
< ::sal_Int8
> > arg21
;
259 ttb::TestPolyStruct
<css::uno::Sequence
< ::sal_Int16
> > arg22
;
260 ttb::TestPolyStruct
<css::uno::Sequence
< ::sal_Int32
> > arg23
;
261 ttb::TestPolyStruct
<css::uno::Sequence
< ::sal_Int64
> > arg24
;
262 // ttb::TestPolyStruct<css::uno::Sequence<::sal_Unicode> > arg25;
263 ttb::TestPolyStruct
<css::uno::Sequence
< OUString
> > arg26
;
264 ttb::TestPolyStruct
<css::uno::Sequence
<float> > arg27
;
265 ttb::TestPolyStruct
<css::uno::Sequence
<double> > arg28
;
266 ttb::TestPolyStruct
<css::uno::Sequence
<css::uno::Reference
<css::uno::XInterface
> > > arg29
;
267 ttb::TestPolyStruct
<css::uno::Sequence
<css::uno::Reference
<css::lang::XComponent
> > > arg30
;
268 ttb::TestPolyStruct
<css::uno::Sequence
<ttb::TestEnum
> > arg31
;
269 ttb::TestPolyStruct
<css::uno::Sequence
<ttb::TestPolyStruct2
<
270 ::sal_Unicode
, css::uno::Sequence
<css::uno::Any
> > > > arg32
;
272 ttb::TestPolyStruct
<css::uno::Sequence
<ttb::TestPolyStruct2
<
273 ttb::TestPolyStruct
< ::sal_Unicode
>, css::uno::Sequence
<css::uno::Any
> > > > arg33
;
274 ttb::TestPolyStruct
<css::uno::Sequence
<css::uno::Sequence
< ::sal_Int32
> > > arg34
;
275 css::uno::Sequence
<ttb::TestPolyStruct
< ::sal_Int32
> > arg35
;
276 css::uno::Sequence
<ttb::TestPolyStruct
<ttb::TestPolyStruct2
< ::sal_Unicode
, css::uno::Any
> > > arg36
;
277 css::uno::Sequence
<ttb::TestPolyStruct
<ttb::TestPolyStruct2
<
278 ttb::TestPolyStruct2
< ::sal_Unicode
,css::uno::Any
>, OUString
> > > arg37
;
279 css::uno::Sequence
<ttb::TestPolyStruct2
< OUString
, ttb::TestPolyStruct2
<
280 ::sal_Unicode
, ttb::TestPolyStruct
<css::uno::Any
> > > > arg38
;
281 css::uno::Sequence
<ttb::TestPolyStruct2
<ttb::TestPolyStruct2
<
282 ::sal_Unicode
, css::uno::Any
>, ttb::TestPolyStruct
< ::sal_Unicode
> > > arg39
;
283 css::uno::Sequence
<css::uno::Sequence
<ttb::TestPolyStruct
< ::sal_Unicode
> > > arg40
;
284 css::uno::Sequence
<css::uno::Sequence
<ttb::TestPolyStruct
<ttb::TestPolyStruct2
< ::sal_Unicode
, css::uno::Any
> > > >arg41
;
285 css::uno::Sequence
<css::uno::Sequence
<ttb::TestPolyStruct
<
286 ttb::TestPolyStruct2
<ttb::TestPolyStruct2
<sal_Unicode
, css::uno::Any
>, OUString
> > > > arg42
;
287 css::uno::Sequence
<css::uno::Sequence
<ttb::TestPolyStruct2
<
288 OUString
, ttb::TestPolyStruct2
< ::sal_Unicode
, ttb::TestPolyStruct
<css::uno::Any
> > > > > arg43
;
289 css::uno::Sequence
<css::uno::Sequence
<ttb::TestPolyStruct2
<
290 ttb::TestPolyStruct2
< ::sal_Unicode
, css::uno::Any
>, ttb::TestPolyStruct
<
291 ::sal_Unicode
> > > > arg44
;
293 if (!(arguments
.getLength() == 45
294 && (arguments
[0] >>= arg0
) && arg0
.member
== cppu::UnoType
<sal_Int32
>::get()
295 && (arguments
[1] >>= arg1
) && arg1
.member
== arg1b
296 && (arguments
[2] >>= arg2
) && arg2
.member
297 && (arguments
[3] >>= arg3
) && arg3
.member
== SAL_MIN_INT8
298 && (arguments
[4] >>= arg4
) && arg4
.member
== SAL_MIN_INT16
299 && (arguments
[5] >>= arg5
) && arg5
.member
== SAL_MIN_INT32
300 && (arguments
[6] >>= arg6
) && arg6
.member
== SAL_MIN_INT64
301 && (arguments
[7] >>= arg7
) && arg7
.member
== 'X'
302 && (arguments
[8] >>= arg8
) && arg8
.member
== "test"
303 && (arguments
[9] >>= arg9
) && arg9
.member
== 0.123f
304 && (arguments
[10] >>= arg10
) && arg10
.member
== 0.456
305 && (arguments
[11] >>= arg11
)
306 && (arguments
[12] >>= arg12
)
307 && (arguments
[13] >>= arg13
) && arg13
.member
== ttb::TestEnum_TWO
308 && (arguments
[14] >>= arg14
) && arg14
.member
.member1
== 'X' && arg14
.member
.member2
== arg1b
309 && (arguments
[15] >>= arg15
) && arg15
.member
.member1
.member1
== 'X'
310 && arg15
.member
.member1
.member2
== arg1b
311 && arg15
.member
.member2
== "test"
312 && (arguments
[16] >>= arg16
) && arg16
.member1
== "test"
313 && arg16
.member2
.member1
== 'X'
314 && arg16
.member2
.member2
.member
== arg1b
315 && (arguments
[17] >>= arg17
) && arg17
.member1
.member1
== 'X'
316 && arg17
.member1
.member2
== arg1b
317 && arg17
.member2
.member
== 'X'
318 && (arguments
[18] >>= arg18
) && arg18
.member
.getLength() == 1
319 && arg18
.member
[0] == ::cppu::UnoType
<sal_Int32
>::get()
320 && (arguments
[19] >>= arg19
) && arg19
.member
.getLength() == 1
321 && arg19
.member
[0] == arg1b
322 && (arguments
[20] >>= arg20
) && arg20
.member
.getLength() == 1
324 && (arguments
[21] >>= arg21
) && arg21
.member
.getLength() == 1
325 && arg21
.member
[0] == SAL_MIN_INT8
326 && (arguments
[22] >>= arg22
) && arg22
.member
.getLength() == 1
327 && arg22
.member
[0] == SAL_MIN_INT16
328 && (arguments
[23] >>= arg23
) && arg23
.member
.getLength() == 1
329 && arg23
.member
[0] == SAL_MIN_INT32
330 && (arguments
[24] >>= arg24
) && arg24
.member
.getLength() == 1
331 && arg24
.member
[0] == SAL_MIN_INT64
332 && (arguments
[25].getValueType()
333 == ::cppu::UnoType
< ttb::TestPolyStruct
< ::cppu::UnoSequenceType
<
334 ::cppu::UnoCharType
> > >::get())
335 && (static_cast< ttb::TestPolyStruct
<css::uno::Sequence
<
336 ::sal_Unicode
> > const *>(arguments
[25].getValue())->member
[0]) == 'X'
337 && (arguments
[26] >>= arg26
) && arg26
.member
.getLength() == 1
338 && arg26
.member
[0] == "test"
339 && (arguments
[27] >>= arg27
) && arg27
.member
.getLength() == 1
340 && arg27
.member
[0] == 0.123f
341 && (arguments
[28] >>= arg28
) && arg28
.member
.getLength() == 1
342 && arg28
.member
[0] == 0.456
343 && (arguments
[29] >>= arg29
) && arg29
.member
.getLength() == 1
344 && arg29
.member
[0] != NULL
345 && (arguments
[30] >>= arg30
) && arg30
.member
.getLength() == 1
346 && arg30
.member
[0] != NULL
347 && (arguments
[31] >>= arg31
) && arg31
.member
.getLength() == 1
348 && arg31
.member
[0] == ttb::TestEnum_TWO
349 && (arguments
[32] >>= arg32
) && arg32
.member
.getLength() == 1
350 && arg32
.member
[0].member1
== 'X'
351 && arg32
.member
[0].member2
.getLength() == 1
352 && (arg32
.member
[0].member2
[0] >>= arg32a
) && arg32a
353 && (arguments
[33] >>= arg33
) && arg33
.member
.getLength() == 1
354 && arg33
.member
[0].member1
.member
== 'X'
355 && arg33
.member
[0].member2
.getLength() == 1
356 && arg33
.member
[0].member2
[0] == arg1b
357 && (arguments
[34] >>= arg34
) && arg34
.member
.getLength() == 1
358 && arg34
.member
[0].getLength() == 1 && arg34
.member
[0][0] == SAL_MIN_INT32
359 && (arguments
[35] >>= arg35
) && arg35
.getLength() == 1
360 && arg35
[0].member
== SAL_MIN_INT32
361 && (arguments
[36] >>= arg36
) && arg36
.getLength() == 1
362 && arg36
[0].member
.member1
== 'X'
363 && arg36
[0].member
.member2
== arg1b
364 && (arguments
[37] >>= arg37
) && arg37
.getLength() == 1
365 && arg37
[0].member
.member1
.member1
== 'X'
366 && arg37
[0].member
.member1
.member2
== arg1b
367 && arg37
[0].member
.member2
== "test"
368 && (arguments
[38] >>= arg38
) && arg38
.getLength() == 1
369 && arg38
[0].member1
== "test"
370 && arg38
[0].member2
.member1
== 'X'
371 && arg38
[0].member2
.member2
.member
== arg1b
372 && (arguments
[39] >>= arg39
) && arg39
.getLength() == 1
373 && arg39
[0].member1
.member1
== 'X'
374 && arg39
[0].member1
.member2
== arg1b
375 && arg39
[0].member2
.member
== 'X'
376 && (arguments
[40] >>= arg40
) && arg40
.getLength() == 1
377 && arg40
[0].getLength() == 1
378 && arg40
[0][0].member
== 'X'
379 && (arguments
[41] >>= arg41
) && arg41
.getLength() == 1
380 && arg41
[0].getLength() == 1
381 && arg41
[0][0].member
.member1
== 'X'
382 && arg41
[0][0].member
.member2
== arg1b
383 && (arguments
[42] >>= arg42
) && arg42
.getLength() == 1
384 && arg42
[0].getLength() == 1
385 && arg42
[0][0].member
.member1
.member1
== 'X'
386 && arg42
[0][0].member
.member1
.member2
== arg1b
387 && arg42
[0][0].member
.member2
== "test"
388 && (arguments
[43] >>= arg43
) && arg43
.getLength() == 1
389 && arg43
[0].getLength() == 1
390 && arg43
[0][0].member1
== "test"
391 && arg43
[0][0].member2
.member1
== 'X'
392 && arg43
[0][0].member2
.member2
.member
== arg1b
393 && (arguments
[44] >>= arg44
) && arg44
.getLength() == 1
394 && arg44
[0].getLength() == 1
395 && arg44
[0][0].member1
.member1
== 'X'
396 && arg44
[0][0].member1
.member2
== arg1b
397 && arg44
[0][0].member2
.member
== 'X'
400 throw ::test::testtools::bridgetest::BadConstructorArguments();
403 //check if interfaces work
404 arg11
.member
->acquire();
405 arg11
.member
->release();
406 arg12
.member
->acquire();
407 arg12
.member
->release();
408 arg29
.member
[0]->acquire();
409 arg29
.member
[0]->release();
414 double Impl2::getatt1()
415 throw (::com::sun::star::uno::RuntimeException
, std::exception
)
420 void Impl2::setatt1( double _att1
)throw (::com::sun::star::uno::RuntimeException
, std::exception
)
425 ::sal_Int32
Impl2::fn11( ::sal_Int32 arg
)
426 throw (::com::sun::star::uno::RuntimeException
, std::exception
)
431 OUString
Impl2::fn12( const OUString
& arg
)
432 throw (::com::sun::star::uno::RuntimeException
, std::exception
)
437 css::uno::Reference
< css::uno::XInterface
> SAL_CALL
create(
438 SAL_UNUSED_PARAMETER
css::uno::Reference
< css::uno::XComponentContext
>
441 return static_cast< ::cppu::OWeakObject
* >(new Impl
);
444 OUString SAL_CALL
getImplementationName() {
446 "comp.test.testtools.bridgetest.Constructors");
449 css::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames() {
450 css::uno::Sequence
< OUString
> s(1);
451 s
[0] = "test.testtools.bridgetest.Constructors";
455 css::uno::Reference
< css::uno::XInterface
> SAL_CALL
create2(
456 SAL_UNUSED_PARAMETER
css::uno::Reference
< css::uno::XComponentContext
>
459 return static_cast< ::cppu::OWeakObject
* >(new Impl2
);
462 OUString SAL_CALL
getImplementationName2() {
464 "comp.test.testtools.bridgetest.Constructors2");
467 css::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames2() {
468 css::uno::Sequence
< OUString
> s(1);
469 s
[0] = "test.testtools.bridgetest.Constructors2";
473 ::cppu::ImplementationEntry entries
[] = {
474 { &create
, &getImplementationName
, &getSupportedServiceNames
,
475 &::cppu::createSingleComponentFactory
, 0, 0 },
476 { &create2
, &getImplementationName2
, &getSupportedServiceNames2
,
477 &::cppu::createSingleComponentFactory
, 0, 0 },
478 { 0, 0, 0, 0, 0, 0 } };
481 extern "C" SAL_DLLPUBLIC_EXPORT
void * SAL_CALL
component_getFactory(
482 char const * implName
, void * serviceManager
, void * registryKey
)
484 return ::cppu::component_getFactoryHelper(
485 implName
, serviceManager
, registryKey
, entries
);
488 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */