aDataAvailableLink in SfxMedium was never called.

Also remove all callback functions that would never get called
because of this.

Change-Id: I5dd5d64ccca9dd3d655428218957753d3200299e
This commit is contained in:
Kohei Yoshida
2012-07-25 20:37:27 -04:00
parent 8a88273e75
commit 66e4540041
6 changed files with 0 additions and 77 deletions

View File

@@ -739,8 +739,6 @@ namespace frm
delete m_pMedium;
m_pMedium = new SfxMedium(rURL, STREAM_STD_READ);
m_pMedium->SetDataAvailableLink(
STATIC_LINK(this, OClickableImageBaseModel, DataAvailableLink));
// Das XModel suchen, um an die Object-Shell oder zumindest den
// Referer zu gelangen.
@@ -847,14 +845,6 @@ namespace frm
return 0;
}
//------------------------------------------------------------------------------
IMPL_STATIC_LINK( OClickableImageBaseModel, DataAvailableLink, void*, EMPTYARG )
{
::osl::MutexGuard aGuard( pThis->m_aMutex );
pThis->DataAvailable();
return 0;
}
//------------------------------------------------------------------------------
void OClickableImageBaseModel::_propertyChanged( const PropertyChangeEvent& rEvt )
throw( RuntimeException )

View File

@@ -74,8 +74,6 @@ namespace frm
::com::sun::star::uno::Reference< ::com::sun::star::form::submission::XSubmission >
m_xSubmissionDelegate;
DECL_STATIC_LINK( OClickableImageBaseModel, DataAvailableLink, void* );
DECL_STATIC_LINK( OClickableImageBaseModel, DownloadDoneLink, void* );
inline ImageProducer* GetImageProducer() { return m_pProducer; }