Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / stoc / test / testcorefl.idl
blobc345b725bbca1dc092384f55fea406bbf28186a5
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 module ModuleA
22 exception ExceptionA
24 boolean aBoolean;
27 struct StructA
29 long aLong;
30 short aShort;
33 struct StructB : StructA
35 double aDouble;
36 float aFloat;
39 struct StructC : StructB
41 string aString;
42 sequence<com::sun::star::uno::XInterface> aInterfaceSeq;
45 exception ExceptionB : ExceptionA
47 StructC aStructC;
50 interface XInterface1 : com::sun::star::uno::XInterface
54 exception ExceptionC : ExceptionB
56 XInterface1 aInterface1;
59 module ModuleB
61 enum EnumA { VAL_1, VAL_2, VAL_3 = 17};
66 module ModuleC
68 const boolean aConstBoolean = True;
69 const byte aConstByte = 0;
70 const short aConstShort = -1;
71 const unsigned short aConstUShort = 1;
72 const long aConstLong = -2;
73 const unsigned long aConstULong = 2;
74 const float aConstFloat = 3.14;
75 const double aConstDouble = 3.14e-10;
78 interface XInterfaceA : com::sun::star::uno::XInterface
80 void methodA();
81 void methodB([in] short aShort);
82 sequence<ModuleA::StructB> methodC([in] ModuleA::StructC aStructC, [inout] ModuleA::StructA aStructA);
85 interface XInterfaceB : XInterfaceA
87 [attribute] string aString;
89 XInterfaceA methodD([in] ModuleA::ModuleB::EnumA aEnumA) raises (ModuleA::ExceptionA, ModuleA::ExceptionB, ModuleA::ExceptionC);
93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */