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 .
19 // Callback.h : Declaration of the CCallback
27 class ATL_NO_VTABLE CCallback
:
28 public CComObjectRootEx
<CComSingleThreadModel
>,
29 public CComCoClass
<CCallback
, &CLSID_Callback
>,
30 public IDispatchImpl
<ICallback
, &IID_ICallback
, &LIBID_XCALLBACK_IMPLLib
>
37 DECLARE_REGISTRY_RESOURCEID(IDR_CALLBACK
)
39 DECLARE_PROTECT_FINAL_CONSTRUCT()
41 BEGIN_COM_MAP(CCallback
)
42 COM_INTERFACE_ENTRY(ICallback
)
43 COM_INTERFACE_ENTRY(IDispatch
)
48 STDMETHOD(inSeqByte
)(/*[in]*/ LPSAFEARRAY val
);
49 STDMETHOD(inSeqXEventListener
)(/*[in]*/ LPSAFEARRAY listener
, LPSAFEARRAY event
);
50 STDMETHOD(outSeqByte
)(/*[out]*/ LPSAFEARRAY
* outVal
);
51 STDMETHOD(inValues
)(/*[in]*/short aChar
, /*[in]*/ long aLong
, /*[in]*/ BSTR aString
);
52 STDMETHOD(inoutLong
)(/*[in,out]*/ long* inoutVal
);
53 STDMETHOD(inoutShort
)(/*[in,out]*/ short* inoutVal
);
54 STDMETHOD(inoutByte
)(/*[in,out]*/ unsigned char* inoutVal
);
55 STDMETHOD(inoutDouble
)(/*[in,out]*/ double* inoutVal
);
56 STDMETHOD(inoutFloat
)(/*[in,out]*/ float* inoutVal
);
57 STDMETHOD(inoutString
)(/*[in,out]*/ BSTR
*inoutVal
);
58 STDMETHOD(inoutChar
)(/*[in,out]*/ short* inoutVal
);
59 STDMETHOD(inoutBool
)(/*[in,out]*/ VARIANT_BOOL
* inoutVal
);
60 STDMETHOD(inoutAny
)(/*[in,out]*/ VARIANT
* inoutVal
);
61 STDMETHOD(inoutSeqAny
)(/*[in,out]*/ LPSAFEARRAY
* pArray
);
62 STDMETHOD(inoutEnum
)(/*[in,out]*/ long * inoutVal
);
63 STDMETHOD(inoutStruct
)(/*[in,out]*/ IDispatch
** inoutVal
);
64 STDMETHOD(inoutInterface
)(/*[in,out]*/ IDispatch
** ppdisp
);
65 STDMETHOD(inoutValuesAll
)(
66 /* [out][in] */ IDispatch __RPC_FAR
*__RPC_FAR
*aXSimple
,
67 /* [out][in] */ IDispatch __RPC_FAR
*__RPC_FAR
*aStruct
,
68 /* [out][in] */ long __RPC_FAR
*aEnum
,
69 /* [out][in] */ SAFEARRAY __RPC_FAR
* __RPC_FAR
*aSeq
,
70 /* [out][in] */ VARIANT __RPC_FAR
*aAny
,
71 /* [out][in] */ VARIANT_BOOL __RPC_FAR
*aBool
,
72 /* [out][in] */ short __RPC_FAR
*aChar
,
73 /* [out][in] */ BSTR __RPC_FAR
*aString
,
74 /* [out][in] */ float __RPC_FAR
*aFloat
,
75 /* [out][in] */ double __RPC_FAR
*aDouble
,
76 /* [out][in] */ unsigned char __RPC_FAR
*aByte
,
77 /* [out][in] */ short __RPC_FAR
*aShort
,
78 /* [out][in] */ long __RPC_FAR
*aLong
);
80 STDMETHOD(outByte
)( unsigned char* outByte
);
81 STDMETHOD(outLong
)(/*[out]*/ long* outLong
);
82 STDMETHOD(outShort
)(/*[out]*/ short *outShort
);
83 STDMETHOD(outDouble
)(/*[out]*/ double* outDouble
);
84 STDMETHOD(outFloat
)(/*[out]*/ float* outFloat
);
85 STDMETHOD(outString
)(/*[out]*/ BSTR
* outString
);
86 STDMETHOD(outChar
)(short* outChar
);
87 STDMETHOD(outBool
)(VARIANT_BOOL
* outBool
);
88 STDMETHOD(outAny
)(VARIANT
* outAny
);
89 STDMETHOD(outSeqAny
)(/*[out]*/LPSAFEARRAY
* outSeq
);
90 STDMETHOD(outEnum
)(/*[out]*/ long* outEnum
);
91 STDMETHOD(outStruct
)(/*[out]*/ IDispatch
** outStruct
);
92 virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE
outValuesAll(
93 /* [out] */ IDispatch __RPC_FAR
*__RPC_FAR
*ppdisp
,
94 /* [out] */ IDispatch __RPC_FAR
*__RPC_FAR
*ppSimpleStruct
,
95 /* [out] */ long __RPC_FAR
*aSimpleEnum
,
96 /* [out] */ LPSAFEARRAY
* outSeq
,
97 /* [out] */ VARIANT __RPC_FAR
*varAny
,
98 /* [out] */ VARIANT_BOOL __RPC_FAR
*aBool
,
99 /* [out] */ short __RPC_FAR
*aChar
,
100 /* [out] */ BSTR __RPC_FAR
*aString
,
101 /* [out] */ float __RPC_FAR
*aFloat
,
102 /* [out] */ double __RPC_FAR
*aDouble
,
103 /* [out] */ unsigned char __RPC_FAR
*aByte
,
104 /* [out] */ short __RPC_FAR
*aShort
,
105 /* [out] */ long __RPC_FAR
*aLong
);
108 // STDMETHOD(outValuesAll)(
109 // /*[out]*/ IDispatch** ppdisp,
110 // /*[out]*/ IUnknown** ppSimpleStruct,
111 // /*[out]*/ long* aSimpleEnum,
112 // /*[out]*/ VARIANT* ArrayAny,
113 // /*[out]*/ VARIANT* varAny,
114 // /*[out]*/ VARIANT_BOOL * aBool,
115 // /*[out]*/ unsigned short* aChar,
116 // /*[out]*/ BSTR* aString, /*[out]*/ float* aFloat,
117 // /*[out]*/ double* aDouble,
118 // /*[out]*/ signed char* aByte, /*[out]*/ short* aShort, /*[out]*/long* aLong, /*[out]*/ unsigned short* aUShort, /*[out]*/ unsigned long* aULong);
119 STDMETHOD(outValuesMixed
)(/*[in]*/ long val
, /*[out]*/ long* pval
, /*[in]*/ BSTR string
);
120 STDMETHOD(outInterface
)(/*[out]*/ IDispatch
** ppdisp
);
121 STDMETHOD(returnInterface
)(/*[out, retval]*/ IDispatch
** ppdisp
);
126 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */