1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <com/sun/star/uno/XInterface.idl>
#include <com/sun/star/script/XInvocation.idl>
#include <com/sun/star/beans/XPropertySet.idl>
#include <com/sun/star/lang/XEventListener.idl>
module oletest
{
interface XTestSequence: com::sun::star::uno::XInterface
{
sequence<byte> methodByte( [in] sequence<byte> aSeq );
sequence<float> methodFloat( [in] sequence<float> aSeq);
sequence<double> methodDouble( [in] sequence<double> aSeq);
sequence<boolean> methodBool( [in] sequence<boolean> aSeq);
sequence<short> methodShort( [in] sequence<short> aSeq);
sequence<unsigned short> methodUShort( [in] sequence<unsigned short> aSeq);
sequence<long> methodLong( [in] sequence<long> aSeq);
sequence<unsigned long> methodULong( [in] sequence<unsigned long> aSeq);
sequence<string> methodString( [in] sequence<string> aSeq);
sequence<char> methodChar( [in] sequence<char> aSeq);
sequence<any> methodAny ( [in] sequence<any> aSeq);
sequence<type> methodType ( [in] sequence<type> aSeq);
sequence<com::sun::star::uno::XInterface> methodXInterface ( [in] sequence<com::sun::star::uno::XInterface> aSeq);
sequence< sequence <long> > methodSequence( [in] sequence< sequence< long > > aSeq);
sequence< sequence <sequence <long> > > methodSequence2( [in] sequence< sequence< sequence<long> > > aSeq);
sequence< com::sun::star::lang::XEventListener > methodXEventListeners( [in] sequence<com::sun::star::lang::XEventListener> aSeq);
sequence< sequence< com::sun::star::lang::XEventListener > > methodXEventListenersMul( [in] sequence< sequence< com::sun::star::lang::XEventListener> > aSeq);
[attribute] sequence<byte> AttrByte;
[attribute] sequence<float> AttrFloat;
[attribute] sequence<double> AttrDouble;
[attribute] sequence<boolean> AttrBool;
[attribute] sequence<short> AttrShort;
[attribute] sequence<unsigned short> AttrUShort;
[attribute] sequence<long> AttrLong;
[attribute] sequence<unsigned long> AttrULong;
[attribute] sequence<string> AttrString;
[attribute] sequence<char> AttrChar;
[attribute] sequence<any> AttrAny;
[attribute] sequence<type> AttrType;
[attribute] sequence< sequence<long> > AttrSequence;
[attribute] sequence< sequence< sequence <long> > > AttrSequence2;
[attribute] sequence< com::sun::star::uno::XInterface > AttrXInterface;
[attribute] byte AByte;
[attribute] float AFloat;
[attribute] double ADouble;
[attribute] boolean ABool;
[attribute] short AShort;
[attribute] unsigned short AUShort;
[attribute] long ALong;
[attribute] unsigned long AULong;
[attribute] string AString;
[attribute] char AChar;
[attribute] any AAny;
[attribute] type AType;
[attribute] com::sun::star::uno::XInterface AXInterface;
[attribute] com::sun::star::script::XInvocation AXInvocation;
void testout_methodByte( [out] byte rOut );
void testout_methodFloat( [out] float rOut);
void testout_methodDouble( [out] double rOut);
void testout_methodBool( [out] boolean rOut);
void testout_methodShort( [out] short rOut);
void testout_methodUShort( [out] unsigned short rOut);
void testout_methodLong( [out] long rOut);
void testout_methodULong( [out] unsigned long rOut);
void testout_methodHyper( [out] hyper rOut);
void testout_methodUHyper( [out] unsigned hyper rOut);
void testout_methodString( [out] string rOut);
void testout_methodChar( [out] char rOut);
void testout_methodAny ( [out] any rOut);
void testout_methodType ( [out] type rOut);
void testout_methodSequence( [out] sequence< long > rOut);
void testout_methodSequence2( [out] sequence < sequence< long > > rOut);
void testout_methodXInterface( [out] com::sun::star::uno::XInterface rOut);
void testout_methodMulParams1( [out] long rout1, [out] long rout2);
void testout_methodMulParams2( [out] long rout1, [out] long rout2, [out] string rout3);
void testout_methodMulParams3( [in] string sin, [out] string sout);
void testout_methodMulParams4( [in] float in1, [out] float out1, [in] long in2, [out] long out2, [in] long in3);
void testinout_methodByte( [inout] byte rOut );
void testinout_methodFloat( [inout] float rOut);
void testinout_methodDouble( [inout] double rOut);
void testinout_methodBool( [inout] boolean rOut);
void testinout_methodShort( [inout] short rOut);
void testinout_methodUShort( [inout] unsigned short rOut);
void testinout_methodLong( [inout] long rOut);
void testinout_methodULong( [inout] unsigned long rOut);
void testinout_methodHyper( [inout] hyper rOut);
void testinout_methodUHyper( [inout] unsigned hyper rOut);
void testinout_methodString( [inout] string rOut);
void testinout_methodChar( [inout] char rOut);
void testinout_methodAny ( [inout] any rOut);
void testinout_methodType ( [inout] type rOut);
void testinout_methodSequence( [inout] sequence< long > rOut);
void testinout_methodSequence2( [inout] sequence < sequence< long > > rOut);
void testinout_methodXInterface( [inout] com::sun::star::script::XInvocation rOut);
void testinout_methodXInterface2( [inout] com::sun::star::uno::XInterface rOut);
any methodAnyTest1( [in] any rIn);
[attribute] any AttrAny2;
};
interface XTestStruct: com::sun::star::uno::XInterface
{
// Method taking structs as arguments
void methodStruct( [in] com::sun::star::beans::Property aProp);
// Methods returning structs
com::sun::star::beans::Property retMethodStruct();
// Attributes as structs
[attribute] com::sun::star::beans::Property AttrStruct;
com::sun::star::beans::Property methodStruct2( [in] com::sun::star::beans::Property aProp);
};
struct SimpleStruct
{
string message;
};
interface XTestInParameters: com::sun::star::uno::XInterface
{
byte in_methodByte( [in] byte rIn );
float in_methodFloat( [in] float rIn);
double in_methodDouble( [in] double rIn);
boolean in_methodBool( [in] boolean rIn);
short in_methodShort( [in] short rIn);
unsigned short in_methodUShort( [in] unsigned short rIn);
long in_methodLong( [in] long rIn);
unsigned long in_methodULong( [in] unsigned long rIn);
hyper in_methodHyper( [in] hyper rIn);
unsigned hyper in_methodUHyper( [in] unsigned hyper rIn);
string in_methodString( [in] string rIn);
char in_methodChar( [in] char rIn);
any in_methodAny ( [in] any rIn);
type in_methodType ( [in] type rIn);
com::sun::star::uno::XInterface in_methodXInterface([in] com::sun::star::uno::XInterface rIn);
com::sun::star::script::XInvocation in_methodInvocation( [in] com::sun::star::script::XInvocation inv);
SimpleStruct in_methodStruct( [in] SimpleStruct aStruct);
void in_methodAll( [in] byte b, [in] float f, [in] double d, [in] boolean abool, [in]short sh,
[in] unsigned short us, [in] long l, [in] unsigned long ul,
[in] string s, [in] char c, [in] any a, [in] type t, [in] com::sun::star::script::XInvocation inv);
};
enum SimpleEnum
{
A,
B,
C
};
interface XTestOther: com::sun::star::uno::XInterface
{
// Any test
void other_methodAnyIn( [in] any rAny);
void other_methodAnyOut( [out] any rAny);
any other_methodAnyRet();
void in_float( [in] float val);
//typeInAny determines what type must be in rAny. If rAny contains
//a different type then an exception is being thrown
any other_methodAny([in] any rAny, [in] string typeInAny);
};
interface XSimple: com::sun::star::uno::XInterface
{
void func( [in] string message);
string getName();
};
interface XSimple2: com::sun::star::uno::XInterface
{
void func2( [in] string message);
string getName2();
};
interface XSimple3: com::sun::star::uno::XInterface
{
void func3( [in] string message);
string getName3();
};
interface XCallback: com::sun::star::uno::XInterface
{
void func1();
oletest::XSimple returnInterface();
void outInterface( [out] oletest::XSimple outInterface);
void outStruct( [out] oletest::SimpleStruct outStruct);
void outEnum( [out] oletest::SimpleEnum outEnum);
void outSeqAny( [out] sequence<any> outSeqAny);
void outSeqByte( [out] sequence<byte> outVal);
void outAny( [out] any outAny);
void outBool( [out] boolean outBool);
void outChar( [out] char outChar);
void outString( [out] string outString);
void outFloat( [out] float outFloat);
void outDouble( [out] double outDouble);
void outByte( [out] byte outByte);
void outShort( [out] short outShort);
void outLong( [out] long outLong);
void outValuesMixed( [in] long lval, [out] long outval, [in] string sval);
void outValuesAll( [out] oletest::XSimple outInterface,
[out] SimpleStruct outStruct ,
[out] SimpleEnum outEnum,
[out] sequence<any> outSeqAny,
[out] any outAny,
[out] boolean outBool,
[out] char outChar,
[out] string outString,
[out] float outFloat,
[out] double outDouble,
[out] byte outByte,
[out] short outShort,
[out] long outLong);
// IN OUT parameters
void inoutInterface( [inout] oletest::XSimple inoutVal);
void inoutStruct( [inout] oletest::SimpleStruct inoutVal);
void inoutEnum( [inout] oletest::SimpleEnum inoutVal);
void inoutSeqAny( [inout] sequence<any> inoutVal);
void inoutAny( [inout] any inoutVal);
void inoutBool( [inout] boolean inoutVal);
void inoutChar( [inout] char inoutVal);
void inoutString( [inout] string inoutVal);
void inoutFloat( [inout] float inoutVal);
void inoutDouble( [inout] double inoutVal);
void inoutByte( [inout] byte inoutVal);
void inoutShort( [inout] short inoutVal);
void inoutLong( [inout] long inoutVal);
void inoutValuesAll( [inout] oletest::XSimple aXSimple,
[inout] oletest::SimpleStruct aStruct,
[inout] oletest::SimpleEnum aEnum,
[inout] sequence<any> aSeq,
[inout] any aAny,
[inout] boolean aBool,
[inout] char aChar,
[inout] string aString,
[inout] float aFloat,
[inout] double aDouble,
[inout] byte aByte,
[inout] short aShort,
[inout] long aLong);
// IN parameter
void inValues( [in] char aChar, [in] long aLong, [in] string aString);
void inSeqByte( [in] sequence<byte> val);
void inSeqXEventListener( [in] sequence<com::sun::star::lang::XEventListener> listener, [in]
sequence<com::sun::star::lang::EventObject> events);
// Attributes
[attribute] oletest::XSimple simple;
};
interface XTestInterfaces: com::sun::star::uno::XInterface
{
// Any test
void testInterface( [in] oletest::XCallback xCallback, [in] long mode);
void testInterface2( [in] oletest::XSimple xSimple, [in] long mode);
};
interface XIdentity: com::sun::star::uno::XInterface
{
void setObject([in] com::sun::star::uno::XInterface val);
boolean isSame( [in] com::sun::star::uno::XInterface val);
com::sun::star::uno::XInterface getThis();
};
}; // oletest
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|