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