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
};
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
);
57 [attribute
, bound
] short a1
;
61 (com
::sun
::star
::lang
::WrappedTargetException
,
62 com
::sun
::star
::uno
::RuntimeException
);
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
{
78 c2
([in] any... p
) raises
(com
::sun
::star
::uno
::RuntimeException
);
82 [optional] interface XBase
;
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; };