fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / codemaker / test / javamaker / types.idl
blobe0d5170c1deded26593922f906b03c58ec6f573d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
20 #include <com/sun/star/lang/ClassNotFoundException.idl>
21 #include <com/sun/star/lang/IllegalAccessException.idl>
22 #include <com/sun/star/uno/DeploymentException.idl>
23 #include <com/sun/star/uno/Exception.idl>
24 #include <com/sun/star/uno/RuntimeException.idl>
25 #include <com/sun/star/uno/XInterface.idl>
26 #include <com/sun/star/uno/XNamingService.idl>
28 module test { module codemaker { module javamaker {
30 enum Enum1 { VALUE1 = -100, VALUE2 = 100 };
32 enum Enum2 { VALUE0 = 0, VALUE1 = 1, VALUE2 = 2, VALUE4 = 4 };
34 struct Struct1 { long member1; };
36 struct PolyStruct<if,else> {
37 if member1;
38 long member2;
41 interface XTest {
42 boolean test();
44 [attribute, bound] long A1;
45 [attribute, bound, readonly] long A2;
46 [attribute] long A3 {
47 get raises
48 (com::sun::star::uno::Exception,
49 com::sun::star::lang::ClassNotFoundException);
50 set raises (com::sun::star::uno::RuntimeException);
52 [attribute, readonly] long A4 {
53 get raises (com::sun::star::uno::DeploymentException);
57 typedef boolean Boolean;
58 typedef byte Byte;
59 typedef short Short;
60 typedef unsigned short UnsignedShort;
61 typedef long Long;
62 typedef unsigned long UnsignedLong;
63 typedef hyper Hyper;
64 typedef unsigned hyper UnsignedHyper;
65 typedef float Float;
66 typedef double Double;
67 typedef char Char;
68 typedef string String;
69 typedef type Type;
70 typedef any Any;
71 typedef Enum2 Enum;
72 typedef Struct1 Struct;
73 typedef com::sun::star::uno::XInterface XInterface;
74 typedef com::sun::star::uno::XNamingService XNamingService;
76 typedef sequence< Boolean > SequenceBoolean;
77 typedef sequence< Byte > SequenceByte;
78 typedef sequence< Short > SequenceShort;
79 typedef sequence< UnsignedShort > SequenceUnsignedShort;
80 typedef sequence< Long > SequenceLong;
81 typedef sequence< UnsignedLong > SequenceUnsignedLong;
82 typedef sequence< Hyper > SequenceHyper;
83 typedef sequence< UnsignedHyper > SequenceUnsignedHyper;
84 typedef sequence< Float > SequenceFloat;
85 typedef sequence< Double > SequenceDouble;
86 typedef sequence< Char > SequenceChar;
87 typedef sequence< String > SequenceString;
88 typedef sequence< Type > SequenceType;
89 typedef sequence< Any > SequenceAny;
90 typedef sequence< Enum > SequenceEnum;
91 typedef sequence< Struct > SequenceStruct;
92 typedef sequence< XInterface > SequenceXInterface;
93 typedef sequence< XNamingService > SequenceXNamingService;
95 struct Struct2 {
96 boolean p1;
97 byte p2;
98 short p3;
99 unsigned short p4;
100 long p5;
101 unsigned long p6;
102 hyper p7;
103 unsigned hyper p8;
104 float p9;
105 double p10;
106 char p11;
107 string p12;
108 type p13;
109 any p14;
110 Enum2 p15;
111 Struct1 p16;
112 com::sun::star::uno::XInterface p17;
113 com::sun::star::uno::XNamingService p18;
114 Boolean t1;
115 Byte t2;
116 Short t3;
117 UnsignedShort t4;
118 Long t5;
119 UnsignedLong t6;
120 Hyper t7;
121 UnsignedHyper t8;
122 Float t9;
123 Double t10;
124 Char t11;
125 String t12;
126 Type t13;
127 Any t14;
128 Enum t15;
129 Struct t16;
130 XInterface t17;
131 XNamingService t18;
132 sequence< boolean > a1;
133 sequence< byte > a2;
134 sequence< short > a3;
135 sequence< unsigned short > a4;
136 sequence< long > a5;
137 sequence< unsigned long > a6;
138 sequence< hyper > a7;
139 sequence< unsigned hyper > a8;
140 sequence< float > a9;
141 sequence< double > a10;
142 sequence< char > a11;
143 sequence< string > a12;
144 sequence< type > a13;
145 sequence< any > a14;
146 sequence< Enum2 > a15;
147 sequence< Struct1 > a16;
148 sequence< com::sun::star::uno::XInterface > a17;
149 sequence< com::sun::star::uno::XNamingService > a18;
150 sequence< sequence< boolean > > aa1;
151 sequence< sequence< byte > > aa2;
152 sequence< sequence< short > > aa3;
153 sequence< sequence< unsigned short > > aa4;
154 sequence< sequence< long > > aa5;
155 sequence< sequence< unsigned long > > aa6;
156 sequence< sequence< hyper > > aa7;
157 sequence< sequence< unsigned hyper > > aa8;
158 sequence< sequence< float > > aa9;
159 sequence< sequence< double > > aa10;
160 sequence< sequence< char > > aa11;
161 sequence< sequence< string > > aa12;
162 sequence< sequence< type > > aa13;
163 sequence< sequence< any > > aa14;
164 sequence< sequence< Enum2 > > aa15;
165 sequence< sequence< Struct1 > > aa16;
166 sequence< sequence< com::sun::star::uno::XInterface > > aa17;
167 sequence< sequence< com::sun::star::uno::XNamingService > > aa18;
168 sequence< SequenceBoolean > at1;
169 sequence< SequenceByte > at2;
170 sequence< SequenceShort > at3;
171 sequence< SequenceUnsignedShort > at4;
172 sequence< SequenceLong > at5;
173 sequence< SequenceUnsignedLong > at6;
174 sequence< SequenceHyper > at7;
175 sequence< SequenceUnsignedHyper > at8;
176 sequence< SequenceFloat > at9;
177 sequence< SequenceDouble > at10;
178 sequence< SequenceChar > at11;
179 sequence< SequenceString > at12;
180 sequence< SequenceType > at13;
181 sequence< SequenceAny > at14;
182 sequence< SequenceEnum > at15;
183 sequence< SequenceStruct > at16;
184 sequence< SequenceXInterface > at17;
185 sequence< SequenceXNamingService > at18;
188 service S1: XTest {
189 create1();
191 create2([in] any... create2)
192 raises (com::sun::star::uno::RuntimeException,
193 com::sun::star::lang::ClassNotFoundException,
194 com::sun::star::uno::Exception,
195 com::sun::star::lang::IllegalAccessException,
196 com::sun::star::uno::DeploymentException);
198 create3([in] sequence<any> S1)
199 raises (com::sun::star::uno::RuntimeException,
200 com::sun::star::lang::ClassNotFoundException,
201 com::sun::star::lang::IllegalAccessException,
202 com::sun::star::uno::DeploymentException);
204 create4([in] long javamaker, [in] long S1, [in] long create4);
206 create5(
207 [in] boolean p1,
208 [in] byte p2,
209 [in] short p3,
210 [in] unsigned short p4,
211 [in] long p5,
212 [in] unsigned long p6,
213 [in] hyper p7,
214 [in] unsigned hyper p8,
215 [in] float p9,
216 [in] double p10,
217 [in] char p11,
218 [in] string p12,
219 [in] type p13,
220 [in] any p14,
221 [in] Enum2 p15,
222 [in] Struct1 p16,
223 [in] com::sun::star::uno::XInterface p17,
224 [in] com::sun::star::uno::XNamingService p18,
225 [in] Boolean t1,
226 [in] Byte t2,
227 [in] Short t3,
228 [in] UnsignedShort t4,
229 [in] Long t5,
230 [in] UnsignedLong t6,
231 [in] Hyper t7,
232 [in] UnsignedHyper t8,
233 [in] Float t9,
234 [in] Double t10,
235 [in] Char t11,
236 [in] String t12,
237 [in] Type t13,
238 [in] Any t14,
239 [in] Enum t15,
240 [in] Struct t16,
241 [in] XInterface t17,
242 [in] XNamingService t18,
243 [in] sequence< boolean > a1,
244 [in] sequence< byte > a2,
245 [in] sequence< short > a3,
246 [in] sequence< unsigned short > a4,
247 [in] sequence< long > a5,
248 [in] sequence< unsigned long > a6,
249 [in] sequence< hyper > a7,
250 [in] sequence< unsigned hyper > a8,
251 [in] sequence< float > a9,
252 [in] sequence< double > a10,
253 [in] sequence< char > a11,
254 [in] sequence< string > a12,
255 [in] sequence< type > a13,
256 [in] sequence< any > a14,
257 [in] sequence< Enum2 > a15,
258 [in] sequence< Struct1 > a16,
259 [in] sequence< com::sun::star::uno::XInterface > a17,
260 [in] sequence< com::sun::star::uno::XNamingService > a18,
261 [in] sequence< sequence< boolean > > aa1,
262 [in] sequence< sequence< byte > > aa2,
263 [in] sequence< sequence< short > > aa3,
264 [in] sequence< sequence< unsigned short > > aa4,
265 [in] sequence< sequence< long > > aa5,
266 [in] sequence< sequence< unsigned long > > aa6,
267 [in] sequence< sequence< hyper > > aa7,
268 [in] sequence< sequence< unsigned hyper > > aa8,
269 [in] sequence< sequence< float > > aa9,
270 [in] sequence< sequence< double > > aa10,
271 [in] sequence< sequence< char > > aa11,
272 [in] sequence< sequence< string > > aa12,
273 [in] sequence< sequence< type > > aa13,
274 [in] sequence< sequence< any > > aa14,
275 [in] sequence< sequence< Enum2 > > aa15,
276 [in] sequence< sequence< Struct1 > > aa16,
277 [in] sequence< sequence< com::sun::star::uno::XInterface > > aa17,
278 [in] sequence< sequence< com::sun::star::uno::XNamingService > > aa18,
279 [in] sequence< SequenceBoolean > at1,
280 [in] sequence< SequenceByte > at2,
281 [in] sequence< SequenceShort > at3,
282 [in] sequence< SequenceUnsignedShort > at4,
283 [in] sequence< SequenceLong > at5,
284 [in] sequence< SequenceUnsignedLong > at6,
285 [in] sequence< SequenceHyper > at7,
286 [in] sequence< SequenceUnsignedHyper > at8,
287 [in] sequence< SequenceFloat > at9,
288 [in] sequence< SequenceDouble > at10,
289 [in] sequence< SequenceChar > at11,
290 [in] sequence< SequenceString > at12,
291 [in] sequence< SequenceType > at13,
292 [in] sequence< SequenceAny > at14,
293 [in] sequence< SequenceEnum > at15,
294 [in] sequence< SequenceStruct > at16,
295 [in] sequence< SequenceXInterface > at17,
296 [in] sequence< SequenceXNamingService > at18);
299 service S2: XTest;
301 service S3 { interface XTest; };
303 module services {
305 service abstract: com::sun::star::uno::XInterface {
306 abstract([in] long abstract); };
307 service assert: com::sun::star::uno::XInterface { assert([in] long assert); };
308 //TODO: boolean
309 service break: com::sun::star::uno::XInterface { break([in] long break); };
310 //TODO: byte
311 //TODO: case
312 service catch: com::sun::star::uno::XInterface { catch([in] long catch); };
313 //TODO: char
314 service class: com::sun::star::uno::XInterface { class([in] long class); };
315 //TODO: const
316 service continue: com::sun::star::uno::XInterface {
317 continue([in] long continue); };
318 //TODO: default
319 service do: com::sun::star::uno::XInterface { do([in] long do); };
320 //TODO: double
321 service else: com::sun::star::uno::XInterface { else([in] long else); };
322 //TODO: enum
323 service extends: com::sun::star::uno::XInterface {
324 extends([in] long extends); };
325 service final: com::sun::star::uno::XInterface { final([in] long final); };
326 service finally: com::sun::star::uno::XInterface {
327 finally([in] long finally); };
328 //TODO: float
329 service for: com::sun::star::uno::XInterface { for([in] long for); };
330 service goto: com::sun::star::uno::XInterface { goto([in] long goto); };
331 service if: com::sun::star::uno::XInterface { if([in] long if); };
332 service implements: com::sun::star::uno::XInterface {
333 implements([in] long implements); };
334 service import: com::sun::star::uno::XInterface { import([in] long import); };
335 service instanceof: com::sun::star::uno::XInterface {
336 instanceof([in] long instanceof); };
337 service int: com::sun::star::uno::XInterface { int([in] long int); };
338 //TODO: interface
339 //TODO: long
340 service native: com::sun::star::uno::XInterface { native([in] long native); };
341 service new: com::sun::star::uno::XInterface { new([in] long new); };
342 service package: com::sun::star::uno::XInterface {
343 package([in] long package); };
344 service private: com::sun::star::uno::XInterface {
345 private([in] long private); };
346 service protected: com::sun::star::uno::XInterface {
347 protected([in] long protected); };
348 service public: com::sun::star::uno::XInterface { public([in] long public); };
349 service return: com::sun::star::uno::XInterface { return([in] long return); };
350 //TODO: short
351 service static: com::sun::star::uno::XInterface { static([in] long static); };
352 service strictfp: com::sun::star::uno::XInterface {
353 strictfp([in] long strictfp); };
354 service super: com::sun::star::uno::XInterface { super([in] long super); };
355 //TODO: switch
356 service synchronized: com::sun::star::uno::XInterface {
357 synchronized([in] long synchronized); };
358 service this: com::sun::star::uno::XInterface { this([in] long this); };
359 service throw: com::sun::star::uno::XInterface { throw([in] long throw); };
360 service throws: com::sun::star::uno::XInterface { throws([in] long throws); };
361 //TODO: transient
362 service try: com::sun::star::uno::XInterface { try([in] long try); };
363 //TODO: void
364 service volatile: com::sun::star::uno::XInterface {
365 volatile([in] long volatile); };
366 service while: com::sun::star::uno::XInterface { while([in] long while); };
370 singleton S4: XTest;
372 singleton S5 { service S2; };
374 singleton abstract: com::sun::star::uno::XNamingService;
375 singleton assert: com::sun::star::uno::XNamingService;
376 //TODO: singleton boolean: com::sun::star::uno::XNamingService;
377 singleton break: com::sun::star::uno::XNamingService;
378 //TODO: singleton byte: com::sun::star::uno::XNamingService;
379 //TODO: singleton case: com::sun::star::uno::XNamingService;
380 singleton catch: com::sun::star::uno::XNamingService;
381 //TODO: singleton char: com::sun::star::uno::XNamingService;
382 singleton class: com::sun::star::uno::XNamingService;
383 //TODO: singleton const: com::sun::star::uno::XNamingService;
384 singleton continue: com::sun::star::uno::XNamingService;
385 //TODO: singleton default: com::sun::star::uno::XNamingService;
386 singleton do: com::sun::star::uno::XNamingService;
387 //TODO: singleton double: com::sun::star::uno::XNamingService;
388 singleton else: com::sun::star::uno::XNamingService;
389 //TODO: singleton enum: com::sun::star::uno::XNamingService;
390 singleton extends: com::sun::star::uno::XNamingService;
391 singleton final: com::sun::star::uno::XNamingService;
392 singleton finally: com::sun::star::uno::XNamingService;
393 //TODO: singleton float: com::sun::star::uno::XNamingService;
394 singleton for: com::sun::star::uno::XNamingService;
395 singleton goto: com::sun::star::uno::XNamingService;
396 singleton if: com::sun::star::uno::XNamingService;
397 singleton implements: com::sun::star::uno::XNamingService;
398 singleton import: com::sun::star::uno::XNamingService;
399 singleton instanceof: com::sun::star::uno::XNamingService;
400 singleton int: com::sun::star::uno::XNamingService;
401 //TODO: singleton interface: com::sun::star::uno::XNamingService;
402 //TODO: singleton long: com::sun::star::uno::XNamingService;
403 singleton native: com::sun::star::uno::XNamingService;
404 singleton new: com::sun::star::uno::XNamingService;
405 singleton package: com::sun::star::uno::XNamingService;
406 singleton private: com::sun::star::uno::XNamingService;
407 singleton protected: com::sun::star::uno::XNamingService;
408 singleton public: com::sun::star::uno::XNamingService;
409 singleton return: com::sun::star::uno::XNamingService;
410 //TODO: singleton short: com::sun::star::uno::XNamingService;
411 singleton static: com::sun::star::uno::XNamingService;
412 singleton strictfp: com::sun::star::uno::XNamingService;
413 singleton super: com::sun::star::uno::XNamingService;
414 //TODO: singleton switch: com::sun::star::uno::XNamingService;
415 singleton synchronized: com::sun::star::uno::XNamingService;
416 singleton this: com::sun::star::uno::XNamingService;
417 singleton throw: com::sun::star::uno::XNamingService;
418 singleton throws: com::sun::star::uno::XNamingService;
419 //TODO: singleton transient: com::sun::star::uno::XNamingService;
420 singleton try: com::sun::star::uno::XNamingService;
421 //TODO: singleton void: com::sun::star::uno::XNamingService;
422 singleton volatile: com::sun::star::uno::XNamingService;
423 singleton while: com::sun::star::uno::XNamingService;
425 }; }; };
427 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */