1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 #include
<com
/sun
/star
/lang
/WrappedTargetException.idl
>
21 #include
<com
/sun
/star
/uno
/Exception.idl
>
22 #include
<com
/sun
/star
/uno
/RuntimeException.idl
>
23 #include
<com
/sun
/star
/uno
/XInterface.idl
>
25 module test
{ module registrytdprovider
{
27 published
enum Enum1
{ E1
};
31 published
struct Struct1
{ long s1
; };
33 struct Struct2
{ Struct1 s1
; };
35 published
struct Struct3
<T
, U
> { U s2
; };
37 struct Struct3a
<T
, U
> { U s2
; };
39 struct Struct4
: Struct2
{ Struct3
< Struct2
, Struct3
< boolean, any
> > s2
; };
41 published exception Exception1
: com
::sun
::star
::uno
::Exception
{};
43 exception Exception2
: com
::sun
::star
::uno
::Exception
{};
45 published
interface XBase
{};
47 published
typedef XBase Typedef1
;
49 typedef Typedef1 Typedef2
;
51 published
interface XTest1
{
52 [optional] interface XBase
;
54 void f1
([out] any p
) raises
(com
::sun
::star
::uno
::RuntimeException
);
58 [attribute
, bound
] short a1
;
62 (com
::sun
::star
::lang
::WrappedTargetException
,
63 com
::sun
::star
::uno
::RuntimeException
);
65 (com
::sun
::star
::uno
::Exception
,
66 com
::sun
::star
::lang
::WrappedTargetException
);
69 [attribute
, readonly, bound
] hyper a3
{
70 get raises
(com
::sun
::star
::lang
::WrappedTargetException
);
74 interface XTest2
: Typedef2
{};
76 published service Service1
: XTest1
{
79 c2
([in] any... p
) raises
(com
::sun
::star
::uno
::RuntimeException
);
83 [optional] interface XBase
;
88 service Service3
: Typedef2
{};
90 singleton Singleton1
: XTest1
;
92 published singleton Singleton2
{ service Service1
; };
94 singleton Singleton3
: Typedef2
;
96 published
const long Const1
= 0;
98 const long Const2
= 0;
100 published constants Consts1
{ const long C
= 0; };
102 constants Consts2
{ const long C
= 0; };
106 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */