Use o3tl::convert in Math
[LibreOffice.git] / idlc / test / typelookup.idl
bloba9b5612ef36365cd1d027f97a209683879295538
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 /* In this file the idl struct will be tested.
21 bla
24 #include <enum.idl>
26 typedef short Error;
28 /// idlc defines a test module
29 module idlc
32 typedef long Error;
34 /// test defines a test module
35 module test
38 /** bla
39 BaseStruct defines an * initial struct
41 struct BaseStruct
43 /// a long member
44 long m1;
45 /// a string member
46 string m2;
47 /// a byte member
48 byte m3;
49 /// a type member
50 type m4;
51 /// an enum member, Error in module idlc::test
52 Error m5;
53 /// a typedef member, global Error (typedef short)
54 ::Error m6;
55 /// a typedef member, Error in module idlc (typedef long)
56 ::idlc::Error m7;
57 /// a typedef member, Error in module idlc (typedef long)
58 idlc::Error m8;
59 /// an enum member, Error in module idlc::test
60 test::Error m9;
63 /** TestStruct deinfes a struct which inherits
64 from the base strcut type BaseStruct.
66 struct TestStruct : BaseStruct
68 /// a short member
69 short ms1;
70 /// a hyper member
71 hyper ms2;
72 /// a sequence<long> member
73 sequence< long > ms3;
76 }; // test
78 }; // idlc
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */