1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: language_binding.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _TEST_LANGUAGE_BINDING_IDL_
32 #define _TEST_LANGUAGE_BINDING_IDL_
34 #include
<com
/sun
/star
/uno
/XInterface.idl
>
35 #include
<com
/sun
/star
/lang
/IllegalArgumentException.idl
>
60 unsigned short UShort
;
64 unsigned hyper UHyper
;
72 struct TestElement
: test
::TestSimple
75 com
::sun
::star
::uno
::XInterface
Interface;
78 struct TestDataElements
: test
::TestElement
80 sequence
<test
::TestElement
> Sequence
;
83 typedef TestDataElements TestData
;
86 * Monster test interface to test language binding calls.
88 * @author Daniel Boelzle
90 interface XLBTestBase
: com
::sun
::star
::uno
::XInterface
93 * in parameter test, tests by calls reference also (complex types)
95 [oneway
] void setValues
( [in] boolean bBool
, [in] char cChar
, [in] byte nByte
,
96 [in] short nShort
, [in] unsigned short nUShort
,
97 [in] long nLong
, [in] unsigned long nULong
,
98 [in] hyper nHyper
, [in] unsigned hyper nUHyper
,
99 [in] float fFloat
, [in] double fDouble
,
100 [in] test
::TestEnum eEnum
, [in] string aString
,
101 [in] com
::sun
::star
::uno
::XInterface xInterface
, [in] any aAny
,
102 [in] sequence
<test
::TestElement
> aSequence
,
103 [in] test
::TestData aStruct
);
105 * inout parameter test
107 test
::TestData setValues2
( [inout
] boolean bBool
, [inout
] char cChar
, [inout
] byte nByte
,
108 [inout
] short nShort
, [inout
] unsigned short nUShort
,
109 [inout
] long nLong
, [inout
] unsigned long nULong
,
110 [inout
] hyper nHyper
, [inout
] unsigned hyper nUHyper
,
111 [inout
] float fFloat
, [inout
] double fDouble
,
112 [inout
] test
::TestEnum eEnum
, [inout
] string aString
,
113 [inout
] com
::sun
::star
::uno
::XInterface xInterface
, [inout
] any aAny
,
114 [inout
] sequence
<test
::TestElement
> aSequence
,
115 [inout
] test
::TestData aStruct
);
120 test
::TestData getValues
( [out] boolean bBool
, [out] char cChar
, [out] byte nByte
,
121 [out] short nShort
, [out] unsigned short nUShort
,
122 [out] long nLong
, [out] unsigned long nULong
,
123 [out] hyper nHyper
, [out] unsigned hyper nUHyper
,
124 [out] float fFloat
, [out] double fDouble
,
125 [out] test
::TestEnum eEnum
, [out] string aString
,
126 [out] com
::sun
::star
::uno
::XInterface xInterface
, [out] any aAny
,
127 [out] sequence
<test
::TestElement
> aSequence
,
128 [out] test
::TestData aStruct
);
130 [attribute
] boolean Bool
;
131 [attribute
] byte Byte;
132 [attribute
] char Char;
133 [attribute
] short Short;
134 [attribute
] unsigned short UShort
;
135 [attribute
] long Long;
136 [attribute
] unsigned long ULong
;
137 [attribute
] hyper Hyper;
138 [attribute
] unsigned hyper UHyper
;
139 [attribute
] float Float;
140 [attribute
] double Double;
141 [attribute
] test
::TestEnum
Enum;
142 [attribute
] string String;
143 [attribute
] com
::sun
::star
::uno
::XInterface
Interface;
145 [attribute
] sequence
<test
::TestElement
> Sequence
;
146 [attribute
] test
::TestData
Struct;
151 * Inherting from monster; adds raiseException().
153 * @author Daniel Boelzle
155 interface XLanguageBindingTest
: test
::XLBTestBase
158 * params are there only for dummy, to test if all temp out params will be released.
160 test
::TestData raiseException
( [out] boolean bBool
, [out] char cChar
, [out] byte nByte
,
161 [out] short nShort
, [out] unsigned short nUShort
,
162 [out] long nLong
, [out] unsigned long nULong
,
163 [out] hyper nHyper
, [out] unsigned hyper nUHyper
,
164 [out] float fFloat
, [out] double fDouble
,
165 [out] test
::TestEnum eEnum
, [out] string aString
,
166 [out] com
::sun
::star
::uno
::XInterface xInterface
, [out] any aAny
,
167 [out] sequence
<test
::TestElement
> aSequence
,
168 [out] test
::TestData aStruct
)
169 raises
( com
::sun
::star
::lang
::IllegalArgumentException
);
172 * raises runtime exception
174 [attribute
] long RuntimeException
;