bump product version to 6.4.0.3
[LibreOffice.git] / stoc / test / language_binding.idl
blobe4d240b4fb9c45184e82783b7631421dfdbac4c6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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>
26 module test
29 enum TestEnum
31 TEST,
32 ONE,
33 TWO,
34 CHECK,
35 LOLA,
36 PALOO,
40 /**
41 * simple c++ types
43 struct TestSimple
45 boolean Bool;
46 char Char;
47 byte Byte;
48 short Short;
49 unsigned short UShort;
50 long Long;
51 unsigned long ULong;
52 hyper Hyper;
53 unsigned hyper UHyper;
54 float Float;
55 double Double;
56 test::TestEnum Enum;
58 /**
59 * complex c++ types
61 struct TestElement : test::TestSimple
63 string String;
64 com::sun::star::uno::XInterface Interface;
65 any Any;
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
77 /**
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 );
89 /**
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 );
103 * out parameter test
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;
129 [attribute] any Any;
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;
158 }; // test
161 #endif
163 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */