bump product version to 4.1.6.2
[LibreOffice.git] / extensions / test / ole / unoTocomCalls / XCallback_Impl / XCallback_Impl.idl
blobbb1e6844f333ec84186d2c2a02db6f9e5acdc837
1 /*
2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 // XCallback_Impl.idl : IDL source for XCallback_Impl.dll
21 // This file will be processed by the MIDL tool to
22 // produce the type library (XCallback_Impl.tlb) and marshalling code.
24 import "oaidl.idl";
25 import "ocidl.idl";
27 object,
28 uuid(180FF55F-6F5C-11D4-8330-005004526AB4),
29 dual,
30 helpstring("ICallback Interface"),
31 pointer_default(unique)
33 interface ICallback : IDispatch
35 [id(1), helpstring("method func1")] HRESULT func1();
36 [id(2), helpstring("method returnInterface")] HRESULT returnInterface([out, retval] IDispatch** ppdisp);
37 [id(3), helpstring("method outInterface")] HRESULT outInterface([out] IDispatch** ppdisp);
38 [id(4), helpstring("method outValuesMixed")] HRESULT outValuesMixed([in] long val, [out] long* pval, [in] BSTR string);
39 [id(5), helpstring("method outValuesAll")] HRESULT outValuesAll([out] IDispatch** ppdisp, [out] IDispatch** ppSimpleStruct, [out] long* aSimpleEnum,
40 [out] SAFEARRAY( VARIANT)* outSeq,
41 [out] VARIANT* varAny,
42 [out] VARIANT_BOOL * aBool,
43 [out] short* aChar,
44 [out] BSTR* aString ,
45 [out] float* aFloat,
46 [out] double* aDouble,
47 [out] unsigned char* aByte,
48 [out] short* aShort,
49 [out]long* aLong);
50 // );
51 [id(6), helpstring("method outStruct")] HRESULT outStruct([out] IDispatch** outStruct);
52 [id(7), helpstring("method outEnum")] HRESULT outEnum([out] long* outEnum);
53 [id(8), helpstring("method outSeqAny")] HRESULT outSeqAny([out] SAFEARRAY( VARIANT)* outSeq);
54 [id(9), helpstring("method outAny")] HRESULT outAny([out] VARIANT* outAny);
55 [id(10), helpstring("method outBool")] HRESULT outBool([out]VARIANT_BOOL* outBool);
56 [id(11), helpstring("method outChar")] HRESULT outChar([out] short* outChar);
57 [id(12), helpstring("method outString")] HRESULT outString([out] BSTR * outString);
58 [id(13), helpstring("method outFloat")] HRESULT outFloat([out] float* outFloat);
59 [id(14), helpstring("method outDouble")] HRESULT outDouble([out] double* outDouble);
60 [id(16), helpstring("method outShort")] HRESULT outShort([out] short *outShort);
61 [id(17), helpstring("method outLong")] HRESULT outLong([out] long* outLong);
62 [id(20), helpstring("method outByte")] HRESULT outByte([out] unsigned char* outByte);
63 [id(21), helpstring("method inoutInterface")] HRESULT inoutInterface([in,out] IDispatch** ppdisp);
64 [id(22), helpstring("method inoutStruct")] HRESULT inoutStruct([in,out] IDispatch** inoutVal);
65 [id(23), helpstring("method inoutEnum")] HRESULT inoutEnum([in,out] long * inoutVal);
66 [id(24), helpstring("method inoutSeqAny")] HRESULT inoutSeqAny([in,out] SAFEARRAY(VARIANT)* pArray);
67 [id(25), helpstring("method inoutAny")] HRESULT inoutAny([in,out] VARIANT* inoutVal);
68 [id(26), helpstring("method inoutBool")] HRESULT inoutBool([in,out] VARIANT_BOOL * inoutVal);
69 [id(27), helpstring("method inoutChar")] HRESULT inoutChar([in,out] short* inoutVal);
70 [id(28), helpstring("method inoutString")] HRESULT inoutString([in,out] BSTR *inoutVal);
71 [id(29), helpstring("method inoutFloat")] HRESULT inoutFloat([in,out] float* inoutVal);
72 [id(30), helpstring("method inoutDouble")] HRESULT inoutDouble([in,out] double* inoutVal);
73 [id(31), helpstring("method inoutByte")] HRESULT inoutByte([in,out] unsigned char* inoutVal);
74 [id(32), helpstring("method inoutShort")] HRESULT inoutShort([in,out] short* inoutVal);
75 [id(33), helpstring("method inoutLong")] HRESULT inoutLong([in,out] long* inoutVal);
76 [id(34), helpstring("method inoutValueAll")] HRESULT inoutValuesAll(
77 [in,out] IDispatch** aXSimple,
78 [in,out] IDispatch** aStruct,
79 [in,out] long* aEnum,
80 [in,out] SAFEARRAY( VARIANT)* aSeq,
81 [in,out] VARIANT* aAny,
82 [in,out] VARIANT_BOOL* aBool,
83 [in,out] short* aChar,
84 [in,out] BSTR* aString,
85 [in,out] float* aFloat,
86 [in,out] double* aDouble,
87 [in,out] unsigned char* aByte,
88 [in,out] short* aShort,
89 [in,out] long* aLong);
90 [id(35), helpstring("method inValues")] HRESULT inValues([in]short aChar, [in] long aLong, [in] BSTR aString);
91 [id(36), helpstring("method outSeqByte")] HRESULT outSeqByte([out] SAFEARRAY(unsigned char)* outVal);
92 [id(37), helpstring("method inSeqByte")] HRESULT inSeqByte([in] SAFEARRAY(VARIANT) val);
93 [id(38), helpstring("method inSeqXEventListener")] HRESULT inSeqXEventListener([in] SAFEARRAY(VARIANT) listener,
94 [in] SAFEARRAY(VARIANT) event);
98 object,
99 uuid(180FF564-6F5C-11D4-8330-005004526AB4),
100 dual,
101 helpstring("ISimple Interface"),
102 pointer_default(unique)
104 interface ISimple : IDispatch
106 [id(1), helpstring("method func")] HRESULT func( [in] BSTR message);
107 [id(2), helpstring("method func2")] HRESULT func2([in] BSTR message);
108 [id(3), helpstring("method func3")] HRESULT func3([in] BSTR message);
109 [propget, id(4), helpstring("property _implementedInterfaces")] HRESULT _implementedInterfaces([out, retval] SAFEARRAY(BSTR) *pVal);
115 uuid(180FF553-6F5C-11D4-8330-005004526AB4),
116 version(1.0),
117 helpstring("XCallback_Impl 1.0 Type Library")
119 library XCALLBACK_IMPLLib
121 importlib("stdole32.tlb");
122 importlib("stdole2.tlb");
125 uuid(180FF560-6F5C-11D4-8330-005004526AB4),
126 helpstring("Callback Class")
128 coclass Callback
130 [default] interface ICallback;
133 uuid(180FF565-6F5C-11D4-8330-005004526AB4),
134 helpstring("Simple Class")
136 coclass Simple
138 [default] interface ISimple;