Lines Matching refs:hr

64 	HRESULT hr = idispUnoObject->GetIDsOfNames( IID_NULL, &sFuncName, 1, LOCALE_USER_DEFAULT, &id);  in ExecuteFunc()  local
65 if( !SUCCEEDED( hr ) ) return hr; in ExecuteFunc()
85 HRESULT hr = ExecuteFunc( idispUnoObject, sFuncName, params, count, &result ); in GetIDispByFunc() local
86 if( !SUCCEEDED( hr ) ) return hr; in GetIDispByFunc()
89 return hr; in GetIDispByFunc()
104 …HRESULT hr = pdispObject->GetIDsOfNames( IID_NULL, &sMemberNames[ind], 1, LOCALE_USER_DEFAULT, &id… in PutPropertiesToIDisp() local
105 if( !SUCCEEDED( hr ) ) return hr; in PutPropertiesToIDisp()
107 hr = CComDispatchDriver::PutProperty( pdispObject, id, &pVariant[ind] ); in PutPropertiesToIDisp()
108 if( !SUCCEEDED( hr ) ) return hr; in PutPropertiesToIDisp()
126 …HRESULT hr = CoCreateInstance( clsFactory, NULL, CLSCTX_ALL, __uuidof(IDispatch), (void**)&mpDispF… in CSOActiveX() local
190 HRESULT hr = pPropBag->QueryInterface( IID_IPropertyBag2, (void**)&pPropBag2 ); in Load() local
191 ATLASSERT( hr >= 0 ); in Load()
193 if( !SUCCEEDED( hr ) ) in Load()
194 return hr; in Load()
197 hr = pPropBag2->CountProperties( &aNum ); in Load()
198 ATLASSERT( hr >= 0 ); in Load()
199 if( !SUCCEEDED( hr ) ) in Load()
200 return hr; in Load()
205 hr = pPropBag2->GetPropertyInfo( 0, in Load()
209 ATLASSERT( hr >= 0 ); in Load()
210 if( !SUCCEEDED( hr ) ) in Load()
213 return hr; in Load()
218 hr = pPropBag2->Read( aNum, in Load()
223 ATLASSERT( hr >= 0 ); in Load()
224 if( !SUCCEEDED( hr ) ) in Load()
229 return hr; in Load()
260 return hr; in Load()
267 return hr; in Load()
277 HRESULT hr = GetUnoStruct( L"com.sun.star.util.URL", pdispUrl ); in GetUrlStruct() local
278 if( !SUCCEEDED( hr ) ) return hr; in GetUrlStruct()
282 hr = pdispUrl->GetIDsOfNames( IID_NULL, &sURLMemberName, 1, LOCALE_USER_DEFAULT, &nURLID ); in GetUrlStruct()
283 if( !SUCCEEDED( hr ) ) return hr; in GetUrlStruct()
284 hr = CComDispatchDriver::PutProperty( pdispUrl, nURLID, &CComVariant( sUrl ) ); in GetUrlStruct()
285 if( !SUCCEEDED( hr ) ) return hr; in GetUrlStruct()
288 hr = GetIDispByFunc( mpDispFactory, in GetUrlStruct()
293 if( !SUCCEEDED( hr ) ) return hr; in GetUrlStruct()
299 hr = ExecuteFunc( pdispTransformer, L"parseStrict", &aInOutParam, 1, &dummyResult ); in GetUrlStruct()
300 if( !SUCCEEDED( hr ) || dummyResult.vt != VT_BOOL || !dummyResult.boolVal ) return hr; in GetUrlStruct()
318 HRESULT hr = GetUnoStruct( L"com.sun.star.awt.Rectangle", pdispRectangle ); in CreateFrameOldWay() local
319 if( !SUCCEEDED( hr ) ) return hr; in CreateFrameOldWay()
328 hr = PutPropertiesToIDisp( pdispRectangle, sRectMemberNames, pRectVariant, 4 ); in CreateFrameOldWay()
329 if( !SUCCEEDED( hr ) ) return hr; in CreateFrameOldWay()
333 hr = GetUnoStruct( L"com.sun.star.awt.WindowDescriptor", pdispWinDescr ); in CreateFrameOldWay()
334 if( !SUCCEEDED( hr ) ) return hr; in CreateFrameOldWay()
350 hr = PutPropertiesToIDisp( pdispWinDescr, sDescriptorMemberNames, pDescriptorVar, 6 ); in CreateFrameOldWay()
351 if( !SUCCEEDED( hr ) ) return hr; in CreateFrameOldWay()
355hr = GetIDispByFunc( mpDispFactory, L"createInstance", &CComVariant( L"com.sun.star.awt.Toolkit" )… in CreateFrameOldWay()
356 if( !SUCCEEDED( hr ) ) return hr; in CreateFrameOldWay()
359 hr = GetIDispByFunc( pdispToolkit, L"createWindow", &CComVariant( pdispWinDescr ), 1, mpDispWin ); in CreateFrameOldWay()
360 if( !SUCCEEDED( hr ) ) return hr; in CreateFrameOldWay()
363hr = GetIDispByFunc( mpDispFactory, L"createInstance", &CComVariant( L"com.sun.star.frame.Task" ),… in CreateFrameOldWay()
364 if( !SUCCEEDED( hr ) || !mpDispFrame ) in CreateFrameOldWay()
368hr = GetIDispByFunc( mpDispFactory, L"createInstance", &CComVariant( L"com.sun.star.frame.Frame" )… in CreateFrameOldWay()
369 if( !SUCCEEDED( hr ) ) return hr; in CreateFrameOldWay()
374 hr = ExecuteFunc( mpDispFrame, L"initialize", &CComVariant( mpDispWin ), 1, &dummyResult ); in CreateFrameOldWay()
375 if( !SUCCEEDED( hr ) ) return hr; in CreateFrameOldWay()
379hr = GetIDispByFunc( mpDispFactory, L"createInstance", &CComVariant( L"com.sun.star.frame.Desktop"… in CreateFrameOldWay()
380 if( !SUCCEEDED( hr ) ) return hr; in CreateFrameOldWay()
384 hr = GetIDispByFunc( pdispDesktop, L"getFrames", NULL, 0, pdispChildren ); in CreateFrameOldWay()
385 if( !SUCCEEDED( hr ) ) return hr; in CreateFrameOldWay()
388 hr = ExecuteFunc( pdispChildren, L"append", &CComVariant( mpDispFrame ), 1, &dummyResult ); in CreateFrameOldWay()
389 if( !SUCCEEDED( hr ) ) return hr; in CreateFrameOldWay()
392 hr = ExecuteFunc( mpDispWin, L"setBackground", &CComVariant( (long)0xFFFFFFFF ), 1, &dummyResult ); in CreateFrameOldWay()
393 if( !SUCCEEDED( hr ) ) return hr; in CreateFrameOldWay()
395 hr = ExecuteFunc( mpDispWin, L"setVisible", &CComVariant( TRUE ), 1, &dummyResult ); in CreateFrameOldWay()
396 if( !SUCCEEDED( hr ) ) return hr; in CreateFrameOldWay()
404 hr = ExecuteFunc( mpDispWin, L"setPosSize", aPosArgs, 5, &dummyResult ); in CreateFrameOldWay()
405 if( !SUCCEEDED( hr ) ) return hr; in CreateFrameOldWay()
414 HRESULT hr = GetUrlStruct( sUrl, pdispURL ); in CallDispatch1PBool() local
415 if( !SUCCEEDED( hr ) ) return hr; in CallDispatch1PBool()
422 hr = GetIDispByFunc( mpDispFrame, in CallDispatch1PBool()
427 if( !SUCCEEDED( hr ) ) return hr; in CallDispatch1PBool()
432 hr = GetUnoStruct( L"com.sun.star.beans.PropertyValue", pdispPropVal ); in CallDispatch1PBool()
433 if( !SUCCEEDED( hr ) ) return hr; in CallDispatch1PBool()
439 hr = PutPropertiesToIDisp( pdispPropVal, sPropMemberNames, pPropVar, 2 ); in CallDispatch1PBool()
440 if( !SUCCEEDED( hr ) ) return hr; in CallDispatch1PBool()
450 hr = ExecuteFunc( pdispXDispatch, L"dispatch", aDispArgs, 2, &dummyResult ); in CallDispatch1PBool()
451 if( !SUCCEEDED( hr ) ) return hr; in CallDispatch1PBool()
461 HRESULT hr = CallDispatch1PBool( pSlotUrl[ind], pSlotName[ind], TRUE ); in ShowSomeBars() local
462 if( !SUCCEEDED( hr ) ) return hr; in ShowSomeBars()
472 HRESULT hr = CallDispatch1PBool( pSlotUrl[ind], pSlotName[ind], FALSE ); in HideAllBars() local
473 if( !SUCCEEDED( hr ) ) return hr; in HideAllBars()
481 HRESULT hr = CallDispatch1PBool( mCurFileUrl, L"ReadOnly", mbViewOnly ); in LoadURLToFrame() local
482 if( !SUCCEEDED( hr ) ) return hr; in LoadURLToFrame()
495 HRESULT hr = m_spInPlaceSite->GetWindow( &hwnd ); in OnDrawAdvanced() local
496 if( !SUCCEEDED( hr ) ) return hr; in OnDrawAdvanced()
547 hr = ExecuteFunc( mpDispWin, L"setPosSize", aPosArgs, 5, &dummyResult ); in OnDrawAdvanced()
548 if( !SUCCEEDED( hr ) ) return hr; in OnDrawAdvanced()
554 hr = CreateFrameOldWay( mOffWin, in OnDrawAdvanced()
557 if( !SUCCEEDED( hr ) ) return hr; in OnDrawAdvanced()
562 hr = LoadURLToFrame(); in OnDrawAdvanced()
563 if( !SUCCEEDED( hr ) ) return hr; in OnDrawAdvanced()
574 HRESULT hr = IOleObjectImpl<CSOActiveX>::SetClientSite( aClientSite ); in SetClientSite() local
581 return hr; in SetClientSite()
588 if( SUCCEEDED( hr ) && aContainer ) in SetClientSite()
604 return hr; in SetClientSite()