xref: /aoo42x/main/stoc/test/testcorefl.idl (revision 3508ca0d)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#include <com/sun/star/uno/XInterface.idl>
24
25module ModuleA
26{
27	exception ExceptionA
28	{
29		boolean aBoolean;
30	};
31
32	struct StructA
33	{
34		long aLong;
35		short aShort;
36	};
37
38	struct StructB : StructA
39	{
40		double aDouble;
41		float 	aFloat;
42	};
43
44	struct StructC : StructB
45	{
46		string 			   					aString;
47		sequence<com::sun::star::uno::XInterface> 	aInterfaceSeq;
48	};
49
50	exception ExceptionB : ExceptionA
51	{
52		StructC aStructC;
53	};
54
55	interface XInterface1 : com::sun::star::uno::XInterface
56	{
57	};
58
59	exception ExceptionC : ExceptionB
60	{
61		XInterface1 aInterface1;
62	};
63
64	module ModuleB
65	{
66		enum EnumA { VAL_1, VAL_2, VAL_3 = 17};
67	};
68
69};
70
71module ModuleC
72{
73	const boolean 			aConstBoolean 	= True;
74	const byte 				aConstByte 		= 0;
75	const short 			aConstShort 	= -1;
76	const unsigned short 	aConstUShort 	= 1;
77	const long 				aConstLong 		= -2;
78	const unsigned long 	aConstULong 	= 2;
79//  	const hyper				aConstHyper 	= -3;
80//  	const unsigned hyper	aConstUHyper	= 3;
81	const float				aConstFloat 	= 3.14;
82	const double			aConstDouble	= 3.14e-10;
83
84
85	interface XInterfaceA : com::sun::star::uno::XInterface
86	{
87		void methodA();
88		[oneway] void methodB([in] short aShort);
89		sequence<ModuleA::StructB> methodC([in] ModuleA::StructC aStructC, [inout] ModuleA::StructA aStructA);
90	};
91
92	interface XInterfaceB : XInterfaceA
93	{
94		[attribute] string aString;
95
96		XInterfaceA methodD([in] ModuleA::ModuleB::EnumA aEnumA) raises (ModuleA::ExceptionA, ModuleA::ExceptionB, ModuleA::ExceptionC);
97	};
98};
99