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 .
43 unsigned short UShort
;
47 unsigned hyper UHyper
;
55 struct TestElement
: test
::TestSimple
58 com
::sun
::star
::uno
::XInterface
Interface;
61 struct TestDataElements
: test
::TestElement
63 sequence
<test
::TestElement
> Sequence
;
66 typedef TestDataElements TestData
;
68 /** Monster test interface to test language binding calls. */
69 interface XLBTestBase
: com
::sun
::star
::uno
::XInterface
72 * in parameter test, tests by calls reference also (complex types)
74 void setValues
( [in] boolean bBool
, [in] char cChar
, [in] byte nByte
,
75 [in] short nShort
, [in] unsigned short nUShort
,
76 [in] long nLong
, [in] unsigned long nULong
,
77 [in] hyper nHyper
, [in] unsigned hyper nUHyper
,
78 [in] float fFloat
, [in] double fDouble
,
79 [in] test
::TestEnum eEnum
, [in] string aString
,
80 [in] com
::sun
::star
::uno
::XInterface xInterface
, [in] any aAny
,
81 [in] sequence
<test
::TestElement
> aSequence
,
82 [in] test
::TestData aStruct
);
84 * inout parameter test
86 test
::TestData setValues2
( [inout
] boolean bBool
, [inout
] char cChar
, [inout
] byte nByte
,
87 [inout
] short nShort
, [inout
] unsigned short nUShort
,
88 [inout
] long nLong
, [inout
] unsigned long nULong
,
89 [inout
] hyper nHyper
, [inout
] unsigned hyper nUHyper
,
90 [inout
] float fFloat
, [inout
] double fDouble
,
91 [inout
] test
::TestEnum eEnum
, [inout
] string aString
,
92 [inout
] com
::sun
::star
::uno
::XInterface xInterface
, [inout
] any aAny
,
93 [inout
] sequence
<test
::TestElement
> aSequence
,
94 [inout
] test
::TestData aStruct
);
99 test
::TestData getValues
( [out] boolean bBool
, [out] char cChar
, [out] byte nByte
,
100 [out] short nShort
, [out] unsigned short nUShort
,
101 [out] long nLong
, [out] unsigned long nULong
,
102 [out] hyper nHyper
, [out] unsigned hyper nUHyper
,
103 [out] float fFloat
, [out] double fDouble
,
104 [out] test
::TestEnum eEnum
, [out] string aString
,
105 [out] com
::sun
::star
::uno
::XInterface xInterface
, [out] any aAny
,
106 [out] sequence
<test
::TestElement
> aSequence
,
107 [out] test
::TestData aStruct
);
109 [attribute
] boolean Bool
;
110 [attribute
] byte Byte;
111 [attribute
] char Char;
112 [attribute
] short Short;
113 [attribute
] unsigned short UShort
;
114 [attribute
] long Long;
115 [attribute
] unsigned long ULong
;
116 [attribute
] hyper Hyper;
117 [attribute
] unsigned hyper UHyper
;
118 [attribute
] float Float;
119 [attribute
] double Double;
120 [attribute
] test
::TestEnum
Enum;
121 [attribute
] string String;
122 [attribute
] com
::sun
::star
::uno
::XInterface
Interface;
124 [attribute
] sequence
<test
::TestElement
> Sequence
;
125 [attribute
] test
::TestData
Struct;
129 /** Inheriting from monster; adds raiseException(). */
130 interface XLanguageBindingTest
: test
::XLBTestBase
133 * params are there only for dummy, to test if all temp out params will be released.
135 test
::TestData raiseException
( [out] boolean bBool
, [out] char cChar
, [out] byte nByte
,
136 [out] short nShort
, [out] unsigned short nUShort
,
137 [out] long nLong
, [out] unsigned long nULong
,
138 [out] hyper nHyper
, [out] unsigned hyper nUHyper
,
139 [out] float fFloat
, [out] double fDouble
,
140 [out] test
::TestEnum eEnum
, [out] string aString
,
141 [out] com
::sun
::star
::uno
::XInterface xInterface
, [out] any aAny
,
142 [out] sequence
<test
::TestElement
> aSequence
,
143 [out] test
::TestData aStruct
)
144 raises
( com
::sun
::star
::lang
::IllegalArgumentException
);
147 * raises runtime exception
149 [attribute
] long RuntimeException
;
155 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */