Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / stoc / test / registry_tdprovider / types.idl
blobea3339d9628ad387d0928b69b8fc6c048a5a9c15
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 #include <com/sun/star/lang/WrappedTargetException.idl>
20 #include <com/sun/star/uno/Exception.idl>
21 #include <com/sun/star/uno/RuntimeException.idl>
22 #include <com/sun/star/uno/XInterface.idl>
24 module test { module registrytdprovider {
26 published enum Enum1 { E1 };
28 enum Enum2 { E1 };
30 published struct Struct1 { long s1; };
32 struct Struct2 { Struct1 s1; };
34 published struct Struct3<T, U> { U s2; };
36 struct Struct3a<T, U> { U s2; };
38 struct Struct4: Struct2 { Struct3< Struct2, Struct3< boolean, any > > s2; };
40 published exception Exception1: com::sun::star::uno::Exception {};
42 exception Exception2: com::sun::star::uno::Exception {};
44 published interface XBase {};
46 published typedef XBase Typedef1;
48 typedef Typedef1 Typedef2;
50 published interface XTest1 {
51 [optional] interface XBase;
53 void f1([out] any p) raises (com::sun::star::uno::RuntimeException);
55 void f2();
57 [attribute, bound] short a1;
59 [attribute] long a2 {
60 get raises
61 (com::sun::star::lang::WrappedTargetException,
62 com::sun::star::uno::RuntimeException);
63 set raises
64 (com::sun::star::uno::Exception,
65 com::sun::star::lang::WrappedTargetException);
68 [attribute, readonly, bound] hyper a3 {
69 get raises (com::sun::star::lang::WrappedTargetException);
73 interface XTest2: Typedef2 {};
75 published service Service1: XTest1 {
76 c1();
78 c2([in] any... p) raises (com::sun::star::uno::RuntimeException);
81 service Service2 {
82 [optional] interface XBase;
84 interface XTest1;
87 service Service3: Typedef2 {};
89 singleton Singleton1: XTest1;
91 published singleton Singleton2 { service Service1; };
93 singleton Singleton3: Typedef2;
95 published const long Const1 = 0;
97 const long Const2 = 0;
99 published constants Consts1 { const long C = 0; };
101 constants Consts2 { const long C = 0; };
103 }; };