merge the formfield patch from ooo-build
[ooovba.git] / cli_ure / qa / climaker / types.idl
blob95d538b90bc67fadb027e50d6a551c37777a2157
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: types.idl,v $
10 * $Revision: 1.6 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #include "com/sun/star/lang/ClassNotFoundException.idl"
32 #include "com/sun/star/lang/IllegalAccessException.idl"
33 #include "com/sun/star/uno/DeploymentException.idl"
34 #include "com/sun/star/uno/Exception.idl"
35 #include "com/sun/star/uno/RuntimeException.idl"
36 #include "com/sun/star/uno/XInterface.idl"
37 #include "com/sun/star/uno/XNamingService.idl"
38 #include "com/sun/star/lang/XComponent.idl"
39 module test { module cliure { module climaker {
41 enum Enum1 { VALUE1 = -100, VALUE2 = 100 };
43 enum Enum2 { VALUE0 = 0, VALUE1 = 1, VALUE2 = 2, VALUE4 = 4 };
45 struct Struct1 { long member1; };
47 struct PolyStruct<if,else> {
48 if member1;
49 long member2;
52 struct PolyStruct2<a> {
53 a member1;
54 long member2;
57 struct PolyStruct3<a,b> {
58 a member1;
59 b member2;
62 interface XTest {
63 boolean test();
65 [attribute, bound] long A1;
66 [attribute, bound, readonly] long A2;
67 [attribute] long A3 {
68 get raises
69 (com::sun::star::uno::Exception,
70 com::sun::star::lang::ClassNotFoundException);
71 set raises (com::sun::star::uno::RuntimeException);
73 [attribute, readonly] long A4 {
74 get raises (com::sun::star::uno::DeploymentException);
77 [oneway] void testOneway();
79 void testExceptions()
80 raises( com::sun::star::uno::Exception,
81 com::sun::star::lang::ClassNotFoundException);
84 PolyStruct<char,long> testPolyStruct([in] PolyStruct<char, long> val);
87 void inParameters([in] boolean aBool, [in] byte aByte, [in] short aShort,
88 [in] unsigned short aUShort, [in] long aLong, [in] unsigned long aULong,
89 [in] hyper aHyper, [in] unsigned hyper aUHyper, [in] float aFloat,
90 [in] double aDouble, [in] char aChar, [in] string aString,
91 [in] type aType, [in] any aAny, [in] Enum2 aEnum, [in] Struct1 aStruct,
92 [in] com::sun::star::uno::XInterface aXInterface,
93 [in] com::sun::star::lang::XComponent aXComponent,
94 [in] sequence<boolean> seqBool);
96 void outParameters([out] boolean aBool, [out] byte aByte, [out] short aShort,
97 [out] unsigned short aUShort, [out] long aLong, [out] unsigned long aULong,
98 [out] hyper aHyper, [out] unsigned hyper aUHyper, [out] float aFloat,
99 [out] double aDouble, [out] char aChar, [out] string aString,
100 [out] type aType, [out] any aAny, [out] Enum2 aEnum, [out] Struct1 aStruct,
101 [out] com::sun::star::uno::XInterface aXInterface,
102 [out] com::sun::star::lang::XComponent aXComponent,
103 [out] sequence<boolean> seqBool);
105 void inoutParameters([inout] boolean aBool, [inout] byte aByte, [inout] short aShort,
106 [inout] unsigned short aUShort, [inout] long aLong,
107 [inout] unsigned long aULong,
108 [inout] hyper aHyper, [inout] unsigned hyper aUHyper,
109 [inout] float aFloat,
110 [inout] double aDouble, [inout] char aChar, [inout] string aString,
111 [inout] type aType, [inout] any aAny, [inout] Enum2 aEnum,
112 [inout] Struct1 aStruct,
113 [inout] com::sun::star::uno::XInterface aXInterface,
114 [inout] com::sun::star::lang::XComponent aXComponent,
115 [inout] sequence<boolean> seqBool);
116 boolean retBoolean();
117 byte retByte();
118 short retShort();
119 unsigned short retUShort();
120 long retLong();
121 unsigned long retULong();
122 hyper retHyper();
123 unsigned hyper retUHyper();
124 float retFloat();
125 double retDouble();
126 char retChar();
127 string retString();
128 type retType();
129 any retAny();
130 Enum2 retEnum();
131 Struct1 retStruct1();
132 com::sun::star::uno::XInterface retXInterface();
133 com::sun::star::lang::XComponent retXComponent();
134 sequence<boolean> retSeqBool();
136 [attribute] boolean attrBoolean;
137 [attribute] byte attrByte;
138 [attribute] short attrShort;
139 [attribute] unsigned short attrUShort;
140 [attribute] long attrLong;
141 [attribute] unsigned long attrULong;
142 [attribute] hyper attrHyper;
143 [attribute] unsigned hyper attrUHyper;
144 [attribute] float attrFloat;
145 [attribute] double attrDouble;
146 [attribute] char attrChar;
147 [attribute] string attrString;
148 [attribute] type attrType;
149 [attribute] any attrAny;
150 [attribute] Enum2 attrEnum2;
151 [attribute] Struct1 attrStruct1;
152 [attribute] com::sun::star::uno::XInterface attrXInterface;
153 [attribute] com::sun::star::lang::XComponent attrXComponent;
154 [attribute] sequence<boolean> attrSeqBoolean;
157 typedef boolean Boolean;
158 typedef byte Byte;
159 typedef short Short;
160 typedef unsigned short UnsignedShort;
161 typedef long Long;
162 typedef unsigned long UnsignedLong;
163 typedef hyper Hyper;
164 typedef unsigned hyper UnsignedHyper;
165 typedef float Float;
166 typedef double Double;
167 typedef char Char;
168 typedef string String;
169 typedef type Type;
170 typedef any Any;
171 typedef Enum2 Enum;
172 typedef Struct1 Struct;
173 typedef com::sun::star::uno::XInterface XInterface;
174 typedef com::sun::star::uno::XNamingService XNamingService;
175 typedef com::sun::star::lang::XComponent XComponent;
177 typedef sequence< Boolean > SequenceBoolean;
178 typedef sequence< Byte > SequenceByte;
179 typedef sequence< Short > SequenceShort;
180 typedef sequence< UnsignedShort > SequenceUnsignedShort;
181 typedef sequence< Long > SequenceLong;
182 typedef sequence< UnsignedLong > SequenceUnsignedLong;
183 typedef sequence< Hyper > SequenceHyper;
184 typedef sequence< UnsignedHyper > SequenceUnsignedHyper;
185 typedef sequence< Float > SequenceFloat;
186 typedef sequence< Double > SequenceDouble;
187 typedef sequence< Char > SequenceChar;
188 typedef sequence< String > SequenceString;
189 typedef sequence< Type > SequenceType;
190 typedef sequence< Any > SequenceAny;
191 typedef sequence< Enum > SequenceEnum;
192 typedef sequence< Struct > SequenceStruct;
193 typedef sequence< XInterface > SequenceXInterface;
194 typedef sequence< XNamingService > SequenceXNamingService;
195 typedef sequence< XComponent > SequenceXComponent;
197 struct Struct2 {
198 boolean p1;
199 byte p2;
200 short p3;
201 unsigned short p4;
202 long p5;
203 unsigned long p6;
204 hyper p7;
205 unsigned hyper p8;
206 float p9;
207 double p10;
208 char p11;
209 string p12;
210 type p13;
211 any p14;
212 Enum2 p15;
213 Struct1 p16;
214 com::sun::star::uno::XInterface p17;
215 com::sun::star::uno::XNamingService p18;
216 Boolean t1;
217 Byte t2;
218 Short t3;
219 UnsignedShort t4;
220 Long t5;
221 UnsignedLong t6;
222 Hyper t7;
223 UnsignedHyper t8;
224 Float t9;
225 Double t10;
226 Char t11;
227 String t12;
228 Type t13;
229 Any t14;
230 Enum t15;
231 Struct t16;
232 XInterface t17;
233 XNamingService t18;
234 sequence< boolean > a1;
235 sequence< byte > a2;
236 sequence< short > a3;
237 sequence< unsigned short > a4;
238 sequence< long > a5;
239 sequence< unsigned long > a6;
240 sequence< hyper > a7;
241 sequence< unsigned hyper > a8;
242 sequence< float > a9;
243 sequence< double > a10;
244 sequence< char > a11;
245 sequence< string > a12;
246 sequence< type > a13;
247 sequence< any > a14;
248 sequence< Enum2 > a15;
249 sequence< Struct1 > a16;
250 sequence< com::sun::star::uno::XInterface > a17;
251 sequence< com::sun::star::uno::XNamingService > a18;
252 sequence< sequence< boolean > > aa1;
253 sequence< sequence< byte > > aa2;
254 sequence< sequence< short > > aa3;
255 sequence< sequence< unsigned short > > aa4;
256 sequence< sequence< long > > aa5;
257 sequence< sequence< unsigned long > > aa6;
258 sequence< sequence< hyper > > aa7;
259 sequence< sequence< unsigned hyper > > aa8;
260 sequence< sequence< float > > aa9;
261 sequence< sequence< double > > aa10;
262 sequence< sequence< char > > aa11;
263 sequence< sequence< string > > aa12;
264 sequence< sequence< type > > aa13;
265 sequence< sequence< any > > aa14;
266 sequence< sequence< Enum2 > > aa15;
267 sequence< sequence< Struct1 > > aa16;
268 sequence< sequence< com::sun::star::uno::XInterface > > aa17;
269 sequence< sequence< com::sun::star::uno::XNamingService > > aa18;
270 sequence< SequenceBoolean > at1;
271 sequence< SequenceByte > at2;
272 sequence< SequenceShort > at3;
273 sequence< SequenceUnsignedShort > at4;
274 sequence< SequenceLong > at5;
275 sequence< SequenceUnsignedLong > at6;
276 sequence< SequenceHyper > at7;
277 sequence< SequenceUnsignedHyper > at8;
278 sequence< SequenceFloat > at9;
279 sequence< SequenceDouble > at10;
280 sequence< SequenceChar > at11;
281 sequence< SequenceString > at12;
282 sequence< SequenceType > at13;
283 sequence< SequenceAny > at14;
284 sequence< SequenceEnum > at15;
285 sequence< SequenceStruct > at16;
286 sequence< SequenceXInterface > at17;
287 sequence< SequenceXNamingService > at18;
290 struct Struct3
292 XTest iTest;
295 struct Struct4: Struct3
297 long n;
300 struct Struct5
302 Struct3 m;
303 Struct4 n;
306 struct Struct6
308 Struct4 m;
311 struct Struct7
313 sequence<sequence<Struct6> > seqseqStruct6;
316 service S1: XTest {
317 create1();
319 create2([in] any... create2)
320 raises (com::sun::star::uno::RuntimeException,
321 com::sun::star::lang::ClassNotFoundException,
322 com::sun::star::uno::Exception,
323 com::sun::star::lang::IllegalAccessException,
324 com::sun::star::uno::DeploymentException);
326 create3([in] sequence<any> S1)
327 raises (com::sun::star::uno::RuntimeException,
328 com::sun::star::lang::ClassNotFoundException,
329 com::sun::star::lang::IllegalAccessException,
330 com::sun::star::uno::DeploymentException);
332 create4([in] long javamaker, [in] long S1, [in] long create4);
334 create5(
335 [in] boolean p1,
336 [in] byte p2,
337 [in] short p3,
338 [in] unsigned short p4,
339 [in] long p5,
340 [in] unsigned long p6,
341 [in] hyper p7,
342 [in] unsigned hyper p8,
343 [in] float p9,
344 [in] double p10,
345 [in] char p11,
346 [in] string p12,
347 [in] type p13,
348 [in] any p14,
349 [in] Enum2 p15,
350 [in] Struct1 p16,
351 [in] PolyStruct<char, short> p17,
352 [in] PolyStruct<any, short> p18,
353 [in] com::sun::star::uno::XInterface p19,
354 [in] com::sun::star::lang::XComponent p20,
355 [in] Boolean t1,
356 [in] Byte t2,
357 [in] Short t3,
358 [in] UnsignedShort t4,
359 [in] Long t5,
360 [in] UnsignedLong t6,
361 [in] Hyper t7,
362 [in] UnsignedHyper t8,
363 [in] Float t9,
364 [in] Double t10,
365 [in] Char t11,
366 [in] String t12,
367 [in] Type t13,
368 [in] Any t14,
369 [in] Enum t15,
370 [in] Struct t16,
371 [in] XInterface t17,
372 [in] XComponent t18,
373 [in] sequence< boolean > a1,
374 [in] sequence< byte > a2,
375 [in] sequence< short > a3,
376 [in] sequence< unsigned short > a4,
377 [in] sequence< long > a5,
378 [in] sequence< unsigned long > a6,
379 [in] sequence< hyper > a7,
380 [in] sequence< unsigned hyper > a8,
381 [in] sequence< float > a9,
382 [in] sequence< double > a10,
383 [in] sequence< char > a11,
384 [in] sequence< string > a12,
385 [in] sequence< type > a13,
386 [in] sequence< any > a14,
387 [in] sequence< Enum2 > a15,
388 [in] sequence< Struct1 > a16,
389 [in] sequence< com::sun::star::uno::XInterface > a17,
390 [in] sequence< com::sun::star::lang::XComponent > a18,
391 [in] sequence< sequence< boolean > > aa1,
392 [in] sequence< sequence< byte > > aa2,
393 [in] sequence< sequence< short > > aa3,
394 [in] sequence< sequence< unsigned short > > aa4,
395 [in] sequence< sequence< long > > aa5,
396 [in] sequence< sequence< unsigned long > > aa6,
397 [in] sequence< sequence< hyper > > aa7,
398 [in] sequence< sequence< unsigned hyper > > aa8,
399 [in] sequence< sequence< float > > aa9,
400 [in] sequence< sequence< double > > aa10,
401 [in] sequence< sequence< char > > aa11,
402 [in] sequence< sequence< string > > aa12,
403 [in] sequence< sequence< type > > aa13,
404 [in] sequence< sequence< any > > aa14,
405 [in] sequence< sequence< Enum2 > > aa15,
406 [in] sequence< sequence< Struct1 > > aa16,
407 [in] sequence< sequence< com::sun::star::uno::XInterface > > aa17,
408 [in] sequence< sequence< com::sun::star::lang::XComponent > > aa18,
409 [in] sequence< SequenceBoolean > at1,
410 [in] sequence< SequenceByte > at2,
411 [in] sequence< SequenceShort > at3,
412 [in] sequence< SequenceUnsignedShort > at4,
413 [in] sequence< SequenceLong > at5,
414 [in] sequence< SequenceUnsignedLong > at6,
415 [in] sequence< SequenceHyper > at7,
416 [in] sequence< SequenceUnsignedHyper > at8,
417 [in] sequence< SequenceFloat > at9,
418 [in] sequence< SequenceDouble > at10,
419 [in] sequence< SequenceChar > at11,
420 [in] sequence< SequenceString > at12,
421 [in] sequence< SequenceType > at13,
422 [in] sequence< SequenceAny > at14,
423 [in] sequence< SequenceEnum > at15,
424 [in] sequence< SequenceStruct > at16,
425 [in] sequence< SequenceXInterface > at17,
426 [in] sequence< SequenceXComponent > at18
429 create6(
430 [in] PolyStruct2<type> arg1,
431 [in] PolyStruct2<any> arg2,
432 [in] PolyStruct2<boolean> arg3,
433 [in] PolyStruct2<byte> arg4,
434 [in] PolyStruct2<char> arg5,
435 [in] PolyStruct2<short> arg6,
436 [in] PolyStruct2<long> arg7,
437 [in] PolyStruct2<hyper> arg8,
438 [in] PolyStruct2<string> arg9,
439 [in] PolyStruct2<float> arg10,
440 [in] PolyStruct2<double> arg11,
441 [in] PolyStruct2<com::sun::star::uno::XInterface> arg12,
442 [in] PolyStruct2<com::sun::star::lang::XComponent> arg13,
443 [in] PolyStruct2<PolyStruct<char,any> > arg14,
444 [in] PolyStruct2<PolyStruct<PolyStruct<char,any>,string> > arg15,
445 [in] PolyStruct<string, PolyStruct<char, PolyStruct2<any> > > arg16,
446 [in] PolyStruct<PolyStruct<char,any>, PolyStruct2<char> > arg17,
447 [in] PolyStruct2<sequence<type> > arg101,
448 [in] PolyStruct2<sequence<any> > arg102,
449 [in] PolyStruct2<sequence<boolean> > arg103,
450 [in] PolyStruct2<sequence<byte> > arg104,
451 [in] PolyStruct2<sequence<char> > arg105,
452 [in] PolyStruct2<sequence<short> > arg106,
453 [in] PolyStruct2<sequence<long> > arg107,
454 [in] PolyStruct2<sequence<hyper> > arg108,
455 [in] PolyStruct2<sequence<string> > arg109,
456 [in] PolyStruct2<sequence<float> > arg110,
457 [in] PolyStruct2<sequence<double> > arg111,
458 [in] PolyStruct2<sequence<com::sun::star::uno::XInterface> > arg112,
459 [in] PolyStruct2<sequence<com::sun::star::lang::XComponent> > arg113,
460 [in] PolyStruct2<sequence<PolyStruct<char, sequence<any> > > > arg114,
461 [in] PolyStruct2<sequence<PolyStruct<PolyStruct2<char>, sequence<any> > > > arg115,
462 [in] PolyStruct2<sequence<sequence<char> > > arg201,
463 [in] sequence<PolyStruct2< char > > arg301,
464 [in] sequence<PolyStruct2<PolyStruct<char,any> > > arg302,
465 [in] sequence<PolyStruct2<PolyStruct<PolyStruct<char,any>,string> > > arg303,
466 [in] sequence<PolyStruct<string, PolyStruct<char, PolyStruct2<any> > > > arg304,
467 [in] sequence<PolyStruct<PolyStruct<char,any>, PolyStruct2<char> > > arg305,
468 [in] sequence<sequence<PolyStruct2< char > > > arg401,
469 [in] sequence<sequence<PolyStruct2<PolyStruct<char,any> > > >arg402,
470 [in] sequence<sequence<PolyStruct2<PolyStruct<PolyStruct<char,any>,string> > > > arg403,
471 [in] sequence<sequence<PolyStruct<string, PolyStruct<char, PolyStruct2<any> > > > > arg404,
472 [in] sequence<sequence<PolyStruct<PolyStruct<char,any>, PolyStruct2<char> > > > arg405
477 service S2: XTest;
479 service S3 { interface XTest; };
481 singleton S4: XTest;
483 singleton S5 { service S2; };
486 }; }; };