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

convert Link<> to typed

Change-Id: I4fba6bf5b34b086a11659de3cddf46c76007a147
üst 5906a2a6
...@@ -258,7 +258,7 @@ private: ...@@ -258,7 +258,7 @@ private:
Color aMarkerColor; Color aMarkerColor;
// callback link when value changed // callback link when value changed
Link<> aColorChangeHdl; Link<SdrHdlColor*,void> aColorChangeHdl;
// use luminance values only // use luminance values only
bool bUseLuminance : 1; bool bUseLuminance : 1;
...@@ -282,7 +282,7 @@ public: ...@@ -282,7 +282,7 @@ public:
void SetSize(const Size& rNew); void SetSize(const Size& rNew);
void SetColorChangeHdl(const Link<>& rLink) { aColorChangeHdl = rLink; } void SetColorChangeHdl(const Link<SdrHdlColor*,void>& rLink) { aColorChangeHdl = rLink; }
}; };
...@@ -322,7 +322,7 @@ public: ...@@ -322,7 +322,7 @@ public:
void Set2ndPos(const Point& rPnt); void Set2ndPos(const Point& rPnt);
// the link called by the color handles // the link called by the color handles
DECL_LINK(ColorChangeHdl, SdrHdl*); DECL_LINK_TYPED(ColorChangeHdl, SdrHdlColor*, void);
// transformation call, create gradient from this handle // transformation call, create gradient from this handle
void FromIAOToItem(SdrObject* pObj, bool bSetItemOnObject, bool bUndo); void FromIAOToItem(SdrObject* pObj, bool bSetItemOnObject, bool bUndo);
......
...@@ -1230,11 +1230,10 @@ void SdrHdlGradient::CreateB2dIAObject() ...@@ -1230,11 +1230,10 @@ void SdrHdlGradient::CreateB2dIAObject()
} }
} }
IMPL_LINK(SdrHdlGradient, ColorChangeHdl, SdrHdl*, /*pHdl*/) IMPL_LINK_NOARG_TYPED(SdrHdlGradient, ColorChangeHdl, SdrHdlColor*, void)
{ {
if(GetObj()) if(GetObj())
FromIAOToItem(GetObj(), true, true); FromIAOToItem(GetObj(), true, true);
return 0;
} }
void SdrHdlGradient::FromIAOToItem(SdrObject* _pObj, bool bSetItemOnObject, bool bUndo) void SdrHdlGradient::FromIAOToItem(SdrObject* _pObj, bool bSetItemOnObject, bool bUndo)
......
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