Kaydet (Commit) 0535f42e authored tarafından Noel Grandin's avatar Noel Grandin

convert Link<> to typed

Change-Id: Ic3ce7783614d90a34f9c4414bbc7df9774091805
üst a609822d
...@@ -665,7 +665,7 @@ void SAL_CALL OImageControlModel::startProduction( ) throw (RuntimeException, s ...@@ -665,7 +665,7 @@ void SAL_CALL OImageControlModel::startProduction( ) throw (RuntimeException, s
} }
IMPL_LINK( OImageControlModel, OnImageImportDone, ::Graphic*, i_pGraphic ) IMPL_LINK_TYPED( OImageControlModel, OnImageImportDone, ::Graphic*, i_pGraphic, void )
{ {
const Reference< XGraphic > xGraphic( i_pGraphic != NULL ? Image( i_pGraphic->GetBitmapEx() ).GetXGraphic() : NULL ); const Reference< XGraphic > xGraphic( i_pGraphic != NULL ? Image( i_pGraphic->GetBitmapEx() ).GetXGraphic() : NULL );
m_bExternalGraphic = false; m_bExternalGraphic = false;
...@@ -678,7 +678,6 @@ IMPL_LINK( OImageControlModel, OnImageImportDone, ::Graphic*, i_pGraphic ) ...@@ -678,7 +678,6 @@ IMPL_LINK( OImageControlModel, OnImageImportDone, ::Graphic*, i_pGraphic )
DBG_UNHANDLED_EXCEPTION(); DBG_UNHANDLED_EXCEPTION();
} }
m_bExternalGraphic = true; m_bExternalGraphic = true;
return 1L;
} }
......
...@@ -142,7 +142,7 @@ protected: ...@@ -142,7 +142,7 @@ protected:
*/ */
bool impl_updateStreamForURL_lck( const OUString& _rURL, ValueChangeInstigator _eInstigator ); bool impl_updateStreamForURL_lck( const OUString& _rURL, ValueChangeInstigator _eInstigator );
DECL_LINK( OnImageImportDone, ::Graphic* ); DECL_LINK_TYPED( OnImageImportDone, ::Graphic*, void );
}; };
typedef ::cppu::ImplHelper2 < ::com::sun::star::awt::XMouseListener typedef ::cppu::ImplHelper2 < ::com::sun::star::awt::XMouseListener
......
...@@ -856,7 +856,7 @@ namespace frm ...@@ -856,7 +856,7 @@ namespace frm
} }
} }
IMPL_LINK( OClickableImageBaseModel, OnImageImportDone, Graphic*, i_pGraphic ) IMPL_LINK_TYPED( OClickableImageBaseModel, OnImageImportDone, Graphic*, i_pGraphic, void )
{ {
const Reference< XGraphic > xGraphic( i_pGraphic != NULL ? Graphic(i_pGraphic->GetBitmapEx()).GetXGraphic() : NULL ); const Reference< XGraphic > xGraphic( i_pGraphic != NULL ? Graphic(i_pGraphic->GetBitmapEx()).GetXGraphic() : NULL );
if ( !xGraphic.is() ) if ( !xGraphic.is() )
...@@ -868,7 +868,6 @@ namespace frm ...@@ -868,7 +868,6 @@ namespace frm
m_xGraphicObject = css::graphic::GraphicObject::create( m_xContext ); m_xGraphicObject = css::graphic::GraphicObject::create( m_xContext );
m_xGraphicObject->setGraphic( xGraphic ); m_xGraphicObject->setGraphic( xGraphic );
} }
return 1L;
} }
......
...@@ -153,7 +153,7 @@ namespace frm ...@@ -153,7 +153,7 @@ namespace frm
// to be called from within the cloning-ctor of your derived class // to be called from within the cloning-ctor of your derived class
void implInitializeImageURL( ); void implInitializeImageURL( );
DECL_LINK( OnImageImportDone, ::Graphic* ); DECL_LINK_TYPED( OnImageImportDone, ::Graphic*, void );
}; };
class ImageModelMethodGuard : public ::osl::MutexGuard class ImageModelMethodGuard : public ::osl::MutexGuard
......
...@@ -52,15 +52,15 @@ private: ...@@ -52,15 +52,15 @@ private:
typedef boost::ptr_vector< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XImageConsumer > > ConsumerList_t; typedef boost::ptr_vector< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XImageConsumer > > ConsumerList_t;
OUString maURL; OUString maURL;
ConsumerList_t maConsList; ConsumerList_t maConsList;
Graphic* mpGraphic; Graphic* mpGraphic;
SvStream* mpStm; SvStream* mpStm;
sal_uInt32 mnTransIndex; sal_uInt32 mnTransIndex;
bool mbConsInit; bool mbConsInit;
Link<> maDoneHdl; Link<Graphic*,void> maDoneHdl;
bool ImplImportGraphic( Graphic& rGraphic ); bool ImplImportGraphic( Graphic& rGraphic );
void ImplUpdateData( const Graphic& rGraphic ); void ImplUpdateData( const Graphic& rGraphic );
void ImplInitConsumer( const Graphic& rGraphic ); void ImplInitConsumer( const Graphic& rGraphic );
void ImplUpdateConsumer( const Graphic& rGraphic ); void ImplUpdateConsumer( const Graphic& rGraphic );
...@@ -75,7 +75,7 @@ public: ...@@ -75,7 +75,7 @@ public:
void NewDataAvailable(); void NewDataAvailable();
void SetDoneHdl( const Link<>& i_rHdl ) { maDoneHdl = i_rHdl; } void SetDoneHdl( const Link<Graphic*,void>& i_rHdl ) { maDoneHdl = i_rHdl; }
// ::com::sun::star::uno::XInterface // ::com::sun::star::uno::XInterface
::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
......
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