Bump version to 4.1-6
[LibreOffice.git] / idlc / test / typelookup.idl
blob9f177c3dad71b1fa6fe4e4feead04db21e70165e
1 /*
2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 /* In this file the idl struct will be tested.
20 bla
23 #include <enum.idl>
25 typedef short Error;
27 /// idlc defines a test module
28 module idlc
31 typedef long Error;
33 /// test defines a test module
34 module test
37 /** bla
38 BaseStruct defines an * intial struct
40 struct BaseStruct
42 /// a long member
43 long m1;
44 /// a string member
45 string m2;
46 /// a byte member
47 byte m3;
48 /// a type member
49 type m4;
50 /// a enum member, Error in moudle idlc::test
51 Error m5;
52 /// a typedef member, global Error (typedef short)
53 ::Error m6;
54 /// a typedef member, Error in moudle idlc (typedef long)
55 ::idlc::Error m7;
56 /// a typedef member, Error in moudle idlc (typedef long)
57 idlc::Error m8;
58 /// a enum member, Error in moudle idlc::test
59 test::Error m9;
62 /** TestStruct deinfes a struct which inherits
63 from the base strcut type BaseStruct.
65 struct TestStruct : BaseStruct
67 /// a short member
68 short ms1;
69 /// a hyper member
70 hyper ms2;
71 /// a sequence<long> member
72 sequence< long > ms3;
73 /// a long array member with dimesion 5,10
74 long ms4[5][10];
75 /// a string array member with dimension 4,8
76 long[5][10] ms5;
79 }; // test
81 }; // idlc