Kaydet (Commit) 67161578 authored tarafından Caolán McNamara's avatar Caolán McNamara

branch is unconditional, remove dead alternative

üst 7502d401
......@@ -253,29 +253,7 @@ void SfxHTMLParser::StartFileDownload( const String& rURL, int nToken,
pSh->RegisterTransfer( *pDLMedium );
}
// Push Download (Note: Can also be synchronous).
if ( sal_True /*pMedium->GetDoneLink() == Link()*/ )
pDLMedium->DownLoad();
else
{
// Set Downloading-Flag to TRUE. When we get into the Pending-status
// we will then also have Data-Available-Links.
SetDownloadingFile( sal_True );
pDLMedium->DownLoad( STATIC_LINK( this, SfxHTMLParser, FileDownloadDone ) );
// If the Downloading-Flag is still set downloading will be done
// asynchronously. We will go into Pedning-status and wait there.
// As long as we are there all calls to the Data-Link Avaialble are
// locked.
if( IsDownloadingFile() )
{
// Unfreeze the current state and go into the Pending-Status.
// When the download is completed or aborted, a Continue with
// the transfer token will be pushed by passedNewDataRead.
SaveState( nToken );
eState = SVPAR_PENDING;
}
}
pDLMedium->DownLoad();
}
sal_Bool SfxHTMLParser::FinishFileDownload( String& rStr )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment