Lines 238-257
Link Here
|
238 |
return ret; |
238 |
return ret; |
239 |
} |
239 |
} |
240 |
|
240 |
|
241 |
STDMETHODIMP InterfaceOleWrapper_Impl::GetTypeInfoCount( unsigned int * pctinfo ) |
241 |
STDMETHODIMP InterfaceOleWrapper_Impl::GetTypeInfoCount( unsigned int * /*pctinfo*/ ) |
242 |
{ |
242 |
{ |
243 |
return E_NOTIMPL ; |
243 |
return E_NOTIMPL ; |
244 |
} |
244 |
} |
245 |
|
245 |
|
246 |
STDMETHODIMP InterfaceOleWrapper_Impl::GetTypeInfo(unsigned int itinfo, LCID lcid, ITypeInfo ** pptinfo) |
246 |
STDMETHODIMP InterfaceOleWrapper_Impl::GetTypeInfo(unsigned int /*itinfo*/, LCID /*lcid*/, ITypeInfo ** /*pptinfo*/) |
247 |
{ |
247 |
{ |
248 |
return E_NOTIMPL; |
248 |
return E_NOTIMPL; |
249 |
} |
249 |
} |
250 |
|
250 |
|
251 |
STDMETHODIMP InterfaceOleWrapper_Impl::GetIDsOfNames(REFIID riid, |
251 |
STDMETHODIMP InterfaceOleWrapper_Impl::GetIDsOfNames(REFIID /*riid*/, |
252 |
OLECHAR ** rgszNames, |
252 |
OLECHAR ** rgszNames, |
253 |
unsigned int cNames, |
253 |
unsigned int cNames, |
254 |
LCID lcid, |
254 |
LCID /*lcid*/, |
255 |
DISPID * rgdispid ) |
255 |
DISPID * rgdispid ) |
256 |
{ |
256 |
{ |
257 |
HRESULT ret = DISP_E_UNKNOWNNAME; |
257 |
HRESULT ret = DISP_E_UNKNOWNNAME; |
Lines 390-396
Link Here
|
390 |
// VARIANT contains an VT_DISPATCH that is no JScriptValue than the type information |
390 |
// VARIANT contains an VT_DISPATCH that is no JScriptValue than the type information |
391 |
// is used to find out about the reqired type. |
391 |
// is used to find out about the reqired type. |
392 |
void InterfaceOleWrapper_Impl::convertDispparamsArgs(DISPID id, |
392 |
void InterfaceOleWrapper_Impl::convertDispparamsArgs(DISPID id, |
393 |
unsigned short wFlags, DISPPARAMS* pdispparams, Sequence<Any>& rSeq) |
393 |
unsigned short /*wFlags*/, DISPPARAMS* pdispparams, Sequence<Any>& rSeq) |
394 |
{ |
394 |
{ |
395 |
HRESULT hr= S_OK; |
395 |
HRESULT hr= S_OK; |
396 |
sal_Int32 countArgs= pdispparams->cArgs; |
396 |
sal_Int32 countArgs= pdispparams->cArgs; |
Lines 532-538
Link Here
|
532 |
// can bridged to IDispatch ( if destModelType == OLE). The IDispatch is |
532 |
// can bridged to IDispatch ( if destModelType == OLE). The IDispatch is |
533 |
// implemented by this class. |
533 |
// implemented by this class. |
534 |
Any SAL_CALL InterfaceOleWrapper_Impl::createBridge(const Any& modelDepObject, |
534 |
Any SAL_CALL InterfaceOleWrapper_Impl::createBridge(const Any& modelDepObject, |
535 |
const Sequence<sal_Int8>& ProcessId, |
535 |
const Sequence<sal_Int8>& /*ProcessId*/, |
536 |
sal_Int16 sourceModelType, |
536 |
sal_Int16 sourceModelType, |
537 |
sal_Int16 destModelType) |
537 |
sal_Int16 destModelType) |
538 |
throw (IllegalArgumentException, RuntimeException) |
538 |
throw (IllegalArgumentException, RuntimeException) |
Lines 854-861
Link Here
|
854 |
} |
854 |
} |
855 |
|
855 |
|
856 |
STDMETHODIMP InterfaceOleWrapper_Impl::Invoke(DISPID dispidMember, |
856 |
STDMETHODIMP InterfaceOleWrapper_Impl::Invoke(DISPID dispidMember, |
857 |
REFIID riid, |
857 |
REFIID /*riid*/, |
858 |
LCID lcid, |
858 |
LCID /*lcid*/, |
859 |
unsigned short wFlags, |
859 |
unsigned short wFlags, |
860 |
DISPPARAMS * pdispparams, |
860 |
DISPPARAMS * pdispparams, |
861 |
VARIANT * pvarResult, |
861 |
VARIANT * pvarResult, |
Lines 872-878
Link Here
|
872 |
if( bHandled) |
872 |
if( bHandled) |
873 |
return ret; |
873 |
return ret; |
874 |
|
874 |
|
875 |
if ((dispidMember > 0) && (dispidMember <= m_MemberInfos.size()) && m_xInvocation.is()) |
875 |
if ((dispidMember > 0) && ((size_t)dispidMember <= m_MemberInfos.size()) && m_xInvocation.is()) |
876 |
{ |
876 |
{ |
877 |
MemberInfo d = m_MemberInfos[dispidMember - 1]; |
877 |
MemberInfo d = m_MemberInfos[dispidMember - 1]; |
878 |
DWORD flags = wFlags & d.flags; |
878 |
DWORD flags = wFlags & d.flags; |
Lines 969-975
Link Here
|
969 |
const INT16* pOutIndex = outIndex.getConstArray(); |
969 |
const INT16* pOutIndex = outIndex.getConstArray(); |
970 |
const Any* pOutParams = outParams.getConstArray(); |
970 |
const Any* pOutParams = outParams.getConstArray(); |
971 |
|
971 |
|
972 |
for (UINT32 i = 0; i < outIndex.getLength(); i++) |
972 |
for (sal_Int32 i = 0; i < outIndex.getLength(); i++) |
973 |
{ |
973 |
{ |
974 |
CComVariant variant; |
974 |
CComVariant variant; |
975 |
// Currently a Sequence is converted to an SafeArray of VARIANTs. |
975 |
// Currently a Sequence is converted to an SafeArray of VARIANTs. |
Lines 1034-1040
Link Here
|
1034 |
return ret; |
1034 |
return ret; |
1035 |
} |
1035 |
} |
1036 |
|
1036 |
|
1037 |
HRESULT InterfaceOleWrapper_Impl::doGetProperty( DISPPARAMS * pdispparams, VARIANT * pvarResult, |
1037 |
HRESULT InterfaceOleWrapper_Impl::doGetProperty( DISPPARAMS * /*pdispparams*/, VARIANT * pvarResult, |
1038 |
EXCEPINFO * pexcepinfo, OUString& name) |
1038 |
EXCEPINFO * pexcepinfo, OUString& name) |
1039 |
{ |
1039 |
{ |
1040 |
HRESULT ret= S_OK; |
1040 |
HRESULT ret= S_OK; |
Lines 1073-1079
Link Here
|
1073 |
return ret; |
1073 |
return ret; |
1074 |
} |
1074 |
} |
1075 |
|
1075 |
|
1076 |
HRESULT InterfaceOleWrapper_Impl::doSetProperty( DISPPARAMS * pdispparams, VARIANT * pvarResult, |
1076 |
HRESULT InterfaceOleWrapper_Impl::doSetProperty( DISPPARAMS * /*pdispparams*/, VARIANT * /*pvarResult*/, |
1077 |
EXCEPINFO * pexcepinfo, unsigned int * puArgErr, OUString& name, Sequence<Any> params) |
1077 |
EXCEPINFO * pexcepinfo, unsigned int * puArgErr, OUString& name, Sequence<Any> params) |
1078 |
{ |
1078 |
{ |
1079 |
HRESULT ret= S_OK; |
1079 |
HRESULT ret= S_OK; |
Lines 1112-1118
Link Here
|
1112 |
|
1112 |
|
1113 |
HRESULT InterfaceOleWrapper_Impl::InvokeGeneral( DISPID dispidMember, unsigned short wFlags, |
1113 |
HRESULT InterfaceOleWrapper_Impl::InvokeGeneral( DISPID dispidMember, unsigned short wFlags, |
1114 |
DISPPARAMS * pdispparams, VARIANT * pvarResult, EXCEPINFO * pexcepinfo, |
1114 |
DISPPARAMS * pdispparams, VARIANT * pvarResult, EXCEPINFO * pexcepinfo, |
1115 |
unsigned int * puArgErr, sal_Bool& bHandled) |
1115 |
unsigned int * /*puArgErr*/, sal_Bool& bHandled) |
1116 |
{ |
1116 |
{ |
1117 |
HRESULT ret= S_OK; |
1117 |
HRESULT ret= S_OK; |
1118 |
try |
1118 |
try |
Lines 1241-1247
Link Here
|
1241 |
|
1241 |
|
1242 |
|
1242 |
|
1243 |
|
1243 |
|
1244 |
STDMETHODIMP InterfaceOleWrapper_Impl::GetDispID(BSTR bstrName, DWORD grfdex, DISPID __RPC_FAR *pid) |
1244 |
STDMETHODIMP InterfaceOleWrapper_Impl::GetDispID(BSTR /*bstrName*/, DWORD /*grfdex*/, DISPID __RPC_FAR* /*pid*/) |
1245 |
{ |
1245 |
{ |
1246 |
HRESULT ret = ResultFromScode(E_NOTIMPL); |
1246 |
HRESULT ret = ResultFromScode(E_NOTIMPL); |
1247 |
|
1247 |
|
Lines 1249-1261
Link Here
|
1249 |
} |
1249 |
} |
1250 |
|
1250 |
|
1251 |
STDMETHODIMP InterfaceOleWrapper_Impl::InvokeEx( |
1251 |
STDMETHODIMP InterfaceOleWrapper_Impl::InvokeEx( |
1252 |
/* [in] */ DISPID id, |
1252 |
/* [in] */ DISPID /*id*/, |
1253 |
/* [in] */ LCID lcid, |
1253 |
/* [in] */ LCID /*lcid*/, |
1254 |
/* [in] */ WORD wFlags, |
1254 |
/* [in] */ WORD /*wFlags*/, |
1255 |
/* [in] */ DISPPARAMS __RPC_FAR *pdp, |
1255 |
/* [in] */ DISPPARAMS __RPC_FAR* /*pdp*/, |
1256 |
/* [out] */ VARIANT __RPC_FAR *pvarRes, |
1256 |
/* [out] */ VARIANT __RPC_FAR* /*pvarRes*/, |
1257 |
/* [out] */ EXCEPINFO __RPC_FAR *pei, |
1257 |
/* [out] */ EXCEPINFO __RPC_FAR* /*pei*/, |
1258 |
/* [unique][in] */ IServiceProvider __RPC_FAR *pspCaller) |
1258 |
/* [unique][in] */ IServiceProvider __RPC_FAR* /*pspCaller*/) |
1259 |
{ |
1259 |
{ |
1260 |
HRESULT ret = ResultFromScode(E_NOTIMPL); |
1260 |
HRESULT ret = ResultFromScode(E_NOTIMPL); |
1261 |
|
1261 |
|
Lines 1264-1278
Link Here
|
1264 |
|
1264 |
|
1265 |
|
1265 |
|
1266 |
STDMETHODIMP InterfaceOleWrapper_Impl::DeleteMemberByName( |
1266 |
STDMETHODIMP InterfaceOleWrapper_Impl::DeleteMemberByName( |
1267 |
/* [in] */ BSTR bstr, |
1267 |
/* [in] */ BSTR /*bstr*/, |
1268 |
/* [in] */ DWORD grfdex) |
1268 |
/* [in] */ DWORD /*grfdex*/) |
1269 |
{ |
1269 |
{ |
1270 |
HRESULT ret = ResultFromScode(E_NOTIMPL); |
1270 |
HRESULT ret = ResultFromScode(E_NOTIMPL); |
1271 |
|
1271 |
|
1272 |
return ret; |
1272 |
return ret; |
1273 |
} |
1273 |
} |
1274 |
|
1274 |
|
1275 |
STDMETHODIMP InterfaceOleWrapper_Impl::DeleteMemberByDispID(DISPID id) |
1275 |
STDMETHODIMP InterfaceOleWrapper_Impl::DeleteMemberByDispID(DISPID /*id*/) |
1276 |
{ |
1276 |
{ |
1277 |
HRESULT ret = ResultFromScode(E_NOTIMPL); |
1277 |
HRESULT ret = ResultFromScode(E_NOTIMPL); |
1278 |
|
1278 |
|
Lines 1280-1288
Link Here
|
1280 |
} |
1280 |
} |
1281 |
|
1281 |
|
1282 |
STDMETHODIMP InterfaceOleWrapper_Impl::GetMemberProperties( |
1282 |
STDMETHODIMP InterfaceOleWrapper_Impl::GetMemberProperties( |
1283 |
/* [in] */ DISPID id, |
1283 |
/* [in] */ DISPID /*id*/, |
1284 |
/* [in] */ DWORD grfdexFetch, |
1284 |
/* [in] */ DWORD /*grfdexFetch*/, |
1285 |
/* [out] */ DWORD __RPC_FAR *pgrfdex) |
1285 |
/* [out] */ DWORD __RPC_FAR* /*pgrfdex*/) |
1286 |
{ |
1286 |
{ |
1287 |
HRESULT ret = ResultFromScode(E_NOTIMPL); |
1287 |
HRESULT ret = ResultFromScode(E_NOTIMPL); |
1288 |
|
1288 |
|
Lines 1290-1297
Link Here
|
1290 |
} |
1290 |
} |
1291 |
|
1291 |
|
1292 |
STDMETHODIMP InterfaceOleWrapper_Impl::GetMemberName( |
1292 |
STDMETHODIMP InterfaceOleWrapper_Impl::GetMemberName( |
1293 |
/* [in] */ DISPID id, |
1293 |
/* [in] */ DISPID /*id*/, |
1294 |
/* [out] */ BSTR __RPC_FAR *pbstrName) |
1294 |
/* [out] */ BSTR __RPC_FAR* /*pbstrName*/) |
1295 |
{ |
1295 |
{ |
1296 |
HRESULT ret = ResultFromScode(E_NOTIMPL); |
1296 |
HRESULT ret = ResultFromScode(E_NOTIMPL); |
1297 |
|
1297 |
|
Lines 1299-1307
Link Here
|
1299 |
} |
1299 |
} |
1300 |
|
1300 |
|
1301 |
STDMETHODIMP InterfaceOleWrapper_Impl::GetNextDispID( |
1301 |
STDMETHODIMP InterfaceOleWrapper_Impl::GetNextDispID( |
1302 |
/* [in] */ DWORD grfdex, |
1302 |
/* [in] */ DWORD /*grfdex*/, |
1303 |
/* [in] */ DISPID id, |
1303 |
/* [in] */ DISPID /*id*/, |
1304 |
/* [out] */ DISPID __RPC_FAR *pid) |
1304 |
/* [out] */ DISPID __RPC_FAR* /*pid*/) |
1305 |
{ |
1305 |
{ |
1306 |
HRESULT ret = ResultFromScode(E_NOTIMPL); |
1306 |
HRESULT ret = ResultFromScode(E_NOTIMPL); |
1307 |
|
1307 |
|
Lines 1309-1315
Link Here
|
1309 |
} |
1309 |
} |
1310 |
|
1310 |
|
1311 |
STDMETHODIMP InterfaceOleWrapper_Impl::GetNameSpaceParent( |
1311 |
STDMETHODIMP InterfaceOleWrapper_Impl::GetNameSpaceParent( |
1312 |
/* [out] */ IUnknown __RPC_FAR *__RPC_FAR *ppunk) |
1312 |
/* [out] */ IUnknown __RPC_FAR *__RPC_FAR* /*ppunk*/) |
1313 |
{ |
1313 |
{ |
1314 |
HRESULT ret = ResultFromScode(E_NOTIMPL); |
1314 |
HRESULT ret = ResultFromScode(E_NOTIMPL); |
1315 |
|
1315 |
|
Lines 1341-1348
Link Here
|
1341 |
return Reference<XInterface>( xWeak, UNO_QUERY); |
1341 |
return Reference<XInterface>( xWeak, UNO_QUERY); |
1342 |
} |
1342 |
} |
1343 |
|
1343 |
|
1344 |
STDMETHODIMP UnoObjectWrapperRemoteOpt::GetIDsOfNames ( REFIID riid, OLECHAR ** rgszNames, unsigned int cNames, |
1344 |
STDMETHODIMP UnoObjectWrapperRemoteOpt::GetIDsOfNames ( REFIID /*riid*/, OLECHAR ** rgszNames, unsigned int cNames, |
1345 |
LCID lcid, DISPID * rgdispid ) |
1345 |
LCID /*lcid*/, DISPID * rgdispid ) |
1346 |
{ |
1346 |
{ |
1347 |
MutexGuard guard( getBridgeMutex()); |
1347 |
MutexGuard guard( getBridgeMutex()); |
1348 |
|
1348 |
|
Lines 1389-1395
Link Here
|
1389 |
return ret; |
1389 |
return ret; |
1390 |
} |
1390 |
} |
1391 |
|
1391 |
|
1392 |
STDMETHODIMP UnoObjectWrapperRemoteOpt::Invoke ( DISPID dispidMember, REFIID riid, LCID lcid, unsigned short wFlags, |
1392 |
STDMETHODIMP UnoObjectWrapperRemoteOpt::Invoke ( DISPID dispidMember, REFIID /*riid*/, LCID /*lcid*/, unsigned short wFlags, |
1393 |
DISPPARAMS * pdispparams, VARIANT * pvarResult, EXCEPINFO * pexcepinfo, |
1393 |
DISPPARAMS * pdispparams, VARIANT * pvarResult, EXCEPINFO * pexcepinfo, |
1394 |
unsigned int * puArgErr ) |
1394 |
unsigned int * puArgErr ) |
1395 |
{ |
1395 |
{ |
Lines 1640-1647
Link Here
|
1640 |
return ret; |
1640 |
return ret; |
1641 |
} |
1641 |
} |
1642 |
|
1642 |
|
1643 |
HRESULT UnoObjectWrapperRemoteOpt::methodInvoke( DISPID dispidMember, DISPPARAMS * pdispparams, VARIANT * pvarResult, |
1643 |
HRESULT UnoObjectWrapperRemoteOpt::methodInvoke( DISPID /*dispidMember*/, DISPPARAMS * /*pdispparams*/, VARIANT * /*pvarResult*/, |
1644 |
EXCEPINFO * pexcepinfo, unsigned int * puArgErr, Sequence<Any> params) |
1644 |
EXCEPINFO * /*pexcepinfo*/, unsigned int * /*puArgErr*/, Sequence<Any> params) |
1645 |
{ |
1645 |
{ |
1646 |
return S_OK; |
1646 |
return S_OK; |
1647 |
} |
1647 |
} |