Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / stoc / test / language_binding.idl
blobdb568f077dab8af1593e4a86ab8cb9b6a0c8c87f
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 module test
23 enum TestEnum
25 TEST,
26 ONE,
27 TWO,
28 CHECK,
29 LOLA,
30 PALOO,
34 /**
35 * simple c++ types
37 struct TestSimple
39 boolean Bool;
40 char Char;
41 byte Byte;
42 short Short;
43 unsigned short UShort;
44 long Long;
45 unsigned long ULong;
46 hyper Hyper;
47 unsigned hyper UHyper;
48 float Float;
49 double Double;
50 test::TestEnum Enum;
52 /**
53 * complex c++ types
55 struct TestElement : test::TestSimple
57 string String;
58 com::sun::star::uno::XInterface Interface;
59 any Any;
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
71 /**
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 );
83 /**
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 );
96 /**
97 * out parameter test
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;
123 [attribute] any Any;
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;
152 }; // test
155 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */