1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: types.idl,v $
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"
39 module test
{ module codemaker
{ module javamaker
{
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
> {
55 [attribute
, bound
] long A1
;
56 [attribute
, bound
, readonly] long A2
;
59 (com
::sun
::star
::uno
::Exception
,
60 com
::sun
::star
::lang
::ClassNotFoundException
);
61 set raises
(com
::sun
::star
::uno
::RuntimeException
);
63 [attribute
, readonly] long A4
{
64 get raises
(com
::sun
::star
::uno
::DeploymentException
);
68 typedef boolean Boolean;
71 typedef unsigned short UnsignedShort
;
73 typedef unsigned long UnsignedLong
;
75 typedef unsigned hyper UnsignedHyper
;
77 typedef double Double;
79 typedef string String;
83 typedef Struct1
Struct;
84 typedef com
::sun
::star
::uno
::XInterface XInterface
;
85 typedef com
::sun
::star
::uno
::XNamingService XNamingService
;
87 typedef sequence
< Boolean > SequenceBoolean
;
88 typedef sequence
< Byte > SequenceByte
;
89 typedef sequence
< Short > SequenceShort
;
90 typedef sequence
< UnsignedShort
> SequenceUnsignedShort
;
91 typedef sequence
< Long > SequenceLong
;
92 typedef sequence
< UnsignedLong
> SequenceUnsignedLong
;
93 typedef sequence
< Hyper > SequenceHyper
;
94 typedef sequence
< UnsignedHyper
> SequenceUnsignedHyper
;
95 typedef sequence
< Float > SequenceFloat
;
96 typedef sequence
< Double > SequenceDouble
;
97 typedef sequence
< Char > SequenceChar
;
98 typedef sequence
< String > SequenceString
;
99 typedef sequence
< Type
> SequenceType
;
100 typedef sequence
< Any
> SequenceAny
;
101 typedef sequence
< Enum > SequenceEnum
;
102 typedef sequence
< Struct > SequenceStruct
;
103 typedef sequence
< XInterface
> SequenceXInterface
;
104 typedef sequence
< XNamingService
> SequenceXNamingService
;
123 com
::sun
::star
::uno
::XInterface p17
;
124 com
::sun
::star
::uno
::XNamingService p18
;
143 sequence
< boolean > a1
;
145 sequence
< short > a3
;
146 sequence
< unsigned short > a4
;
148 sequence
< unsigned long > a6
;
149 sequence
< hyper > a7
;
150 sequence
< unsigned hyper > a8
;
151 sequence
< float > a9
;
152 sequence
< double > a10
;
153 sequence
< char > a11
;
154 sequence
< string > a12
;
155 sequence
< type
> a13
;
157 sequence
< Enum2
> a15
;
158 sequence
< Struct1
> a16
;
159 sequence
< com
::sun
::star
::uno
::XInterface
> a17
;
160 sequence
< com
::sun
::star
::uno
::XNamingService
> a18
;
161 sequence
< sequence
< boolean > > aa1
;
162 sequence
< sequence
< byte > > aa2
;
163 sequence
< sequence
< short > > aa3
;
164 sequence
< sequence
< unsigned short > > aa4
;
165 sequence
< sequence
< long > > aa5
;
166 sequence
< sequence
< unsigned long > > aa6
;
167 sequence
< sequence
< hyper > > aa7
;
168 sequence
< sequence
< unsigned hyper > > aa8
;
169 sequence
< sequence
< float > > aa9
;
170 sequence
< sequence
< double > > aa10
;
171 sequence
< sequence
< char > > aa11
;
172 sequence
< sequence
< string > > aa12
;
173 sequence
< sequence
< type
> > aa13
;
174 sequence
< sequence
< any
> > aa14
;
175 sequence
< sequence
< Enum2
> > aa15
;
176 sequence
< sequence
< Struct1
> > aa16
;
177 sequence
< sequence
< com
::sun
::star
::uno
::XInterface
> > aa17
;
178 sequence
< sequence
< com
::sun
::star
::uno
::XNamingService
> > aa18
;
179 sequence
< SequenceBoolean
> at1
;
180 sequence
< SequenceByte
> at2
;
181 sequence
< SequenceShort
> at3
;
182 sequence
< SequenceUnsignedShort
> at4
;
183 sequence
< SequenceLong
> at5
;
184 sequence
< SequenceUnsignedLong
> at6
;
185 sequence
< SequenceHyper
> at7
;
186 sequence
< SequenceUnsignedHyper
> at8
;
187 sequence
< SequenceFloat
> at9
;
188 sequence
< SequenceDouble
> at10
;
189 sequence
< SequenceChar
> at11
;
190 sequence
< SequenceString
> at12
;
191 sequence
< SequenceType
> at13
;
192 sequence
< SequenceAny
> at14
;
193 sequence
< SequenceEnum
> at15
;
194 sequence
< SequenceStruct
> at16
;
195 sequence
< SequenceXInterface
> at17
;
196 sequence
< SequenceXNamingService
> at18
;
202 create2
([in] any... create2
)
203 raises
(com
::sun
::star
::uno
::RuntimeException
,
204 com
::sun
::star
::lang
::ClassNotFoundException
,
205 com
::sun
::star
::uno
::Exception
,
206 com
::sun
::star
::lang
::IllegalAccessException
,
207 com
::sun
::star
::uno
::DeploymentException
);
209 create3
([in] sequence
<any
> S1
)
210 raises
(com
::sun
::star
::uno
::RuntimeException
,
211 com
::sun
::star
::lang
::ClassNotFoundException
,
212 com
::sun
::star
::lang
::IllegalAccessException
,
213 com
::sun
::star
::uno
::DeploymentException
);
215 create4
([in] long javamaker
, [in] long S1
, [in] long create4
);
221 [in] unsigned short p4
,
223 [in] unsigned long p6
,
225 [in] unsigned hyper p8
,
234 [in] com
::sun
::star
::uno
::XInterface p17
,
235 [in] com
::sun
::star
::uno
::XNamingService p18
,
239 [in] UnsignedShort t4
,
241 [in] UnsignedLong t6
,
243 [in] UnsignedHyper t8
,
253 [in] XNamingService t18
,
254 [in] sequence
< boolean > a1
,
255 [in] sequence
< byte > a2
,
256 [in] sequence
< short > a3
,
257 [in] sequence
< unsigned short > a4
,
258 [in] sequence
< long > a5
,
259 [in] sequence
< unsigned long > a6
,
260 [in] sequence
< hyper > a7
,
261 [in] sequence
< unsigned hyper > a8
,
262 [in] sequence
< float > a9
,
263 [in] sequence
< double > a10
,
264 [in] sequence
< char > a11
,
265 [in] sequence
< string > a12
,
266 [in] sequence
< type
> a13
,
267 [in] sequence
< any
> a14
,
268 [in] sequence
< Enum2
> a15
,
269 [in] sequence
< Struct1
> a16
,
270 [in] sequence
< com
::sun
::star
::uno
::XInterface
> a17
,
271 [in] sequence
< com
::sun
::star
::uno
::XNamingService
> a18
,
272 [in] sequence
< sequence
< boolean > > aa1
,
273 [in] sequence
< sequence
< byte > > aa2
,
274 [in] sequence
< sequence
< short > > aa3
,
275 [in] sequence
< sequence
< unsigned short > > aa4
,
276 [in] sequence
< sequence
< long > > aa5
,
277 [in] sequence
< sequence
< unsigned long > > aa6
,
278 [in] sequence
< sequence
< hyper > > aa7
,
279 [in] sequence
< sequence
< unsigned hyper > > aa8
,
280 [in] sequence
< sequence
< float > > aa9
,
281 [in] sequence
< sequence
< double > > aa10
,
282 [in] sequence
< sequence
< char > > aa11
,
283 [in] sequence
< sequence
< string > > aa12
,
284 [in] sequence
< sequence
< type
> > aa13
,
285 [in] sequence
< sequence
< any
> > aa14
,
286 [in] sequence
< sequence
< Enum2
> > aa15
,
287 [in] sequence
< sequence
< Struct1
> > aa16
,
288 [in] sequence
< sequence
< com
::sun
::star
::uno
::XInterface
> > aa17
,
289 [in] sequence
< sequence
< com
::sun
::star
::uno
::XNamingService
> > aa18
,
290 [in] sequence
< SequenceBoolean
> at1
,
291 [in] sequence
< SequenceByte
> at2
,
292 [in] sequence
< SequenceShort
> at3
,
293 [in] sequence
< SequenceUnsignedShort
> at4
,
294 [in] sequence
< SequenceLong
> at5
,
295 [in] sequence
< SequenceUnsignedLong
> at6
,
296 [in] sequence
< SequenceHyper
> at7
,
297 [in] sequence
< SequenceUnsignedHyper
> at8
,
298 [in] sequence
< SequenceFloat
> at9
,
299 [in] sequence
< SequenceDouble
> at10
,
300 [in] sequence
< SequenceChar
> at11
,
301 [in] sequence
< SequenceString
> at12
,
302 [in] sequence
< SequenceType
> at13
,
303 [in] sequence
< SequenceAny
> at14
,
304 [in] sequence
< SequenceEnum
> at15
,
305 [in] sequence
< SequenceStruct
> at16
,
306 [in] sequence
< SequenceXInterface
> at17
,
307 [in] sequence
< SequenceXNamingService
> at18
);
312 service S3
{ interface XTest
; };
316 service abstract
: com
::sun
::star
::uno
::XInterface
{
317 abstract
([in] long abstract
); };
318 service assert
: com
::sun
::star
::uno
::XInterface
{ assert
([in] long assert
); };
320 service break
: com
::sun
::star
::uno
::XInterface
{ break
([in] long break
); };
323 service catch
: com
::sun
::star
::uno
::XInterface
{ catch
([in] long catch
); };
325 service class
: com
::sun
::star
::uno
::XInterface
{ class
([in] long class
); };
327 service continue
: com
::sun
::star
::uno
::XInterface
{
328 continue
([in] long continue
); };
330 service do
: com
::sun
::star
::uno
::XInterface
{ do
([in] long do
); };
332 service else
: com
::sun
::star
::uno
::XInterface
{ else
([in] long else
); };
334 service extends
: com
::sun
::star
::uno
::XInterface
{
335 extends
([in] long extends
); };
336 service final
: com
::sun
::star
::uno
::XInterface
{ final
([in] long final
); };
337 service finally
: com
::sun
::star
::uno
::XInterface
{
338 finally
([in] long finally
); };
340 service for
: com
::sun
::star
::uno
::XInterface
{ for
([in] long for
); };
341 service goto
: com
::sun
::star
::uno
::XInterface
{ goto
([in] long goto
); };
342 service if
: com
::sun
::star
::uno
::XInterface
{ if
([in] long if
); };
343 service implements
: com
::sun
::star
::uno
::XInterface
{
344 implements
([in] long implements
); };
345 service import
: com
::sun
::star
::uno
::XInterface
{ import
([in] long import
); };
346 service instanceof
: com
::sun
::star
::uno
::XInterface
{
347 instanceof
([in] long instanceof
); };
348 service
int: com
::sun
::star
::uno
::XInterface
{ int([in] long int); };
351 service native
: com
::sun
::star
::uno
::XInterface
{ native
([in] long native
); };
352 service new
: com
::sun
::star
::uno
::XInterface
{ new
([in] long new
); };
353 service package
: com
::sun
::star
::uno
::XInterface
{
354 package
([in] long package
); };
355 service private
: com
::sun
::star
::uno
::XInterface
{
356 private
([in] long private
); };
357 service protected
: com
::sun
::star
::uno
::XInterface
{
358 protected
([in] long protected
); };
359 service
public: com
::sun
::star
::uno
::XInterface
{ public([in] long public); };
360 service return
: com
::sun
::star
::uno
::XInterface
{ return
([in] long return
); };
362 service static
: com
::sun
::star
::uno
::XInterface
{ static
([in] long static
); };
363 service strictfp
: com
::sun
::star
::uno
::XInterface
{
364 strictfp
([in] long strictfp
); };
365 service super
: com
::sun
::star
::uno
::XInterface
{ super
([in] long super
); };
367 service synchronized
: com
::sun
::star
::uno
::XInterface
{
368 synchronized
([in] long synchronized
); };
369 service this
: com
::sun
::star
::uno
::XInterface
{ this
([in] long this
); };
370 service throw
: com
::sun
::star
::uno
::XInterface
{ throw
([in] long throw
); };
371 service throws
: com
::sun
::star
::uno
::XInterface
{ throws
([in] long throws
); };
373 service try
: com
::sun
::star
::uno
::XInterface
{ try
([in] long try
); };
375 service volatile
: com
::sun
::star
::uno
::XInterface
{
376 volatile
([in] long volatile
); };
377 service while
: com
::sun
::star
::uno
::XInterface
{ while
([in] long while
); };
383 singleton S5
{ service S2
; };
385 singleton abstract
: com
::sun
::star
::uno
::XNamingService
;
386 singleton assert
: com
::sun
::star
::uno
::XNamingService
;
387 //TODO: singleton boolean: com::sun::star::uno::XNamingService;
388 singleton break
: com
::sun
::star
::uno
::XNamingService
;
389 //TODO: singleton byte: com::sun::star::uno::XNamingService;
390 //TODO: singleton case: com::sun::star::uno::XNamingService;
391 singleton catch
: com
::sun
::star
::uno
::XNamingService
;
392 //TODO: singleton char: com::sun::star::uno::XNamingService;
393 singleton class
: com
::sun
::star
::uno
::XNamingService
;
394 //TODO: singleton const: com::sun::star::uno::XNamingService;
395 singleton continue
: com
::sun
::star
::uno
::XNamingService
;
396 //TODO: singleton default: com::sun::star::uno::XNamingService;
397 singleton do
: com
::sun
::star
::uno
::XNamingService
;
398 //TODO: singleton double: com::sun::star::uno::XNamingService;
399 singleton else
: com
::sun
::star
::uno
::XNamingService
;
400 //TODO: singleton enum: com::sun::star::uno::XNamingService;
401 singleton extends
: com
::sun
::star
::uno
::XNamingService
;
402 singleton final
: com
::sun
::star
::uno
::XNamingService
;
403 singleton finally
: com
::sun
::star
::uno
::XNamingService
;
404 //TODO: singleton float: com::sun::star::uno::XNamingService;
405 singleton for
: com
::sun
::star
::uno
::XNamingService
;
406 singleton goto
: com
::sun
::star
::uno
::XNamingService
;
407 singleton if
: com
::sun
::star
::uno
::XNamingService
;
408 singleton implements
: com
::sun
::star
::uno
::XNamingService
;
409 singleton import
: com
::sun
::star
::uno
::XNamingService
;
410 singleton instanceof
: com
::sun
::star
::uno
::XNamingService
;
411 singleton
int: com
::sun
::star
::uno
::XNamingService
;
412 //TODO: singleton interface: com::sun::star::uno::XNamingService;
413 //TODO: singleton long: com::sun::star::uno::XNamingService;
414 singleton native
: com
::sun
::star
::uno
::XNamingService
;
415 singleton new
: com
::sun
::star
::uno
::XNamingService
;
416 singleton package
: com
::sun
::star
::uno
::XNamingService
;
417 singleton private
: com
::sun
::star
::uno
::XNamingService
;
418 singleton protected
: com
::sun
::star
::uno
::XNamingService
;
419 singleton
public: com
::sun
::star
::uno
::XNamingService
;
420 singleton return
: com
::sun
::star
::uno
::XNamingService
;
421 //TODO: singleton short: com::sun::star::uno::XNamingService;
422 singleton static
: com
::sun
::star
::uno
::XNamingService
;
423 singleton strictfp
: com
::sun
::star
::uno
::XNamingService
;
424 singleton super
: com
::sun
::star
::uno
::XNamingService
;
425 //TODO: singleton switch: com::sun::star::uno::XNamingService;
426 singleton synchronized
: com
::sun
::star
::uno
::XNamingService
;
427 singleton this
: com
::sun
::star
::uno
::XNamingService
;
428 singleton throw
: com
::sun
::star
::uno
::XNamingService
;
429 singleton throws
: com
::sun
::star
::uno
::XNamingService
;
430 //TODO: singleton transient: com::sun::star::uno::XNamingService;
431 singleton try
: com
::sun
::star
::uno
::XNamingService
;
432 //TODO: singleton void: com::sun::star::uno::XNamingService;
433 singleton volatile
: com
::sun
::star
::uno
::XNamingService
;
434 singleton while
: com
::sun
::star
::uno
::XNamingService
;