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 #ifndef _TEST_LANGUAGE_BINDING_IDL_
21 #define _TEST_LANGUAGE_BINDING_IDL_
23 #include
<com
/sun
/star
/uno
/XInterface.idl
>
24 #include
<com
/sun
/star
/lang
/IllegalArgumentException.idl
>
49 unsigned short UShort
;
53 unsigned hyper UHyper
;
61 struct TestElement
: test
::TestSimple
64 com
::sun
::star
::uno
::XInterface
Interface;
67 struct TestDataElements
: test
::TestElement
69 sequence
<test
::TestElement
> Sequence
;
72 typedef TestDataElements TestData
;
74 /** Monster test interface to test language binding calls. */
75 interface XLBTestBase
: com
::sun
::star
::uno
::XInterface
78 * in parameter test, tests by calls reference also (complex types)
80 void setValues
( [in] boolean bBool
, [in] char cChar
, [in] byte nByte
,
81 [in] short nShort
, [in] unsigned short nUShort
,
82 [in] long nLong
, [in] unsigned long nULong
,
83 [in] hyper nHyper
, [in] unsigned hyper nUHyper
,
84 [in] float fFloat
, [in] double fDouble
,
85 [in] test
::TestEnum eEnum
, [in] string aString
,
86 [in] com
::sun
::star
::uno
::XInterface xInterface
, [in] any aAny
,
87 [in] sequence
<test
::TestElement
> aSequence
,
88 [in] test
::TestData aStruct
);
90 * inout parameter test
92 test
::TestData setValues2
( [inout
] boolean bBool
, [inout
] char cChar
, [inout
] byte nByte
,
93 [inout
] short nShort
, [inout
] unsigned short nUShort
,
94 [inout
] long nLong
, [inout
] unsigned long nULong
,
95 [inout
] hyper nHyper
, [inout
] unsigned hyper nUHyper
,
96 [inout
] float fFloat
, [inout
] double fDouble
,
97 [inout
] test
::TestEnum eEnum
, [inout
] string aString
,
98 [inout
] com
::sun
::star
::uno
::XInterface xInterface
, [inout
] any aAny
,
99 [inout
] sequence
<test
::TestElement
> aSequence
,
100 [inout
] test
::TestData aStruct
);
105 test
::TestData getValues
( [out] boolean bBool
, [out] char cChar
, [out] byte nByte
,
106 [out] short nShort
, [out] unsigned short nUShort
,
107 [out] long nLong
, [out] unsigned long nULong
,
108 [out] hyper nHyper
, [out] unsigned hyper nUHyper
,
109 [out] float fFloat
, [out] double fDouble
,
110 [out] test
::TestEnum eEnum
, [out] string aString
,
111 [out] com
::sun
::star
::uno
::XInterface xInterface
, [out] any aAny
,
112 [out] sequence
<test
::TestElement
> aSequence
,
113 [out] test
::TestData aStruct
);
115 [attribute
] boolean Bool
;
116 [attribute
] byte Byte;
117 [attribute
] char Char;
118 [attribute
] short Short;
119 [attribute
] unsigned short UShort
;
120 [attribute
] long Long;
121 [attribute
] unsigned long ULong
;
122 [attribute
] hyper Hyper;
123 [attribute
] unsigned hyper UHyper
;
124 [attribute
] float Float;
125 [attribute
] double Double;
126 [attribute
] test
::TestEnum
Enum;
127 [attribute
] string String;
128 [attribute
] com
::sun
::star
::uno
::XInterface
Interface;
130 [attribute
] sequence
<test
::TestElement
> Sequence
;
131 [attribute
] test
::TestData
Struct;
135 /** Inheriting from monster; adds raiseException(). */
136 interface XLanguageBindingTest
: test
::XLBTestBase
139 * params are there only for dummy, to test if all temp out params will be released.
141 test
::TestData raiseException
( [out] boolean bBool
, [out] char cChar
, [out] byte nByte
,
142 [out] short nShort
, [out] unsigned short nUShort
,
143 [out] long nLong
, [out] unsigned long nULong
,
144 [out] hyper nHyper
, [out] unsigned hyper nUHyper
,
145 [out] float fFloat
, [out] double fDouble
,
146 [out] test
::TestEnum eEnum
, [out] string aString
,
147 [out] com
::sun
::star
::uno
::XInterface xInterface
, [out] any aAny
,
148 [out] sequence
<test
::TestElement
> aSequence
,
149 [out] test
::TestData aStruct
)
150 raises
( com
::sun
::star
::lang
::IllegalArgumentException
);
153 * raises runtime exception
155 [attribute
] long RuntimeException
;
163 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */