diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-07-11 12:52:23 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-13 06:58:01 +0000 |
commit | 26ac3ee8b2f8cb3bd298d98f9a94c9e305f6c304 (patch) | |
tree | e3151f901b656070bba1837d9881d57ac12fbb46 /svx | |
parent | d11b244bf9b9115f5384d6ff43bdffc7f1289d71 (diff) |
editeng, convert to typed Link<>
and remove SvxBrushItem::SetDoneLink since the field it sets
is unused.wq
Change-Id: Ide95a295fa8004f1ddab5e560f01d36d36658a72
Reviewed-on: https://gerrit.libreoffice.org/16943
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdotextdecomposition.cxx | 30 | ||||
-rw-r--r-- | svx/source/svdraw/svdotextpathdecomposition.cxx | 7 |
2 files changed, 15 insertions, 22 deletions
diff --git a/svx/source/svdraw/svdotextdecomposition.cxx b/svx/source/svdraw/svdotextdecomposition.cxx index f10dc9279832..0f2cca449268 100644 --- a/svx/source/svdraw/svdotextdecomposition.cxx +++ b/svx/source/svdraw/svdotextdecomposition.cxx @@ -89,9 +89,9 @@ namespace // BlockText (see there) basegfx::B2DRange maClipRange; - DECL_LINK(decomposeContourTextPrimitive, DrawPortionInfo* ); - DECL_LINK(decomposeBlockTextPrimitive, DrawPortionInfo* ); - DECL_LINK(decomposeStretchTextPrimitive, DrawPortionInfo* ); + DECL_LINK_TYPED(decomposeContourTextPrimitive, DrawPortionInfo*, void); + DECL_LINK_TYPED(decomposeBlockTextPrimitive, DrawPortionInfo*, void); + DECL_LINK_TYPED(decomposeStretchTextPrimitive, DrawPortionInfo*, void); DECL_LINK(decomposeContourBulletPrimitive, DrawBulletInfo* ); DECL_LINK(decomposeBlockBulletPrimitive, DrawBulletInfo* ); @@ -126,7 +126,7 @@ namespace mrOutliner.SetDrawPortionHdl(LINK(this, impTextBreakupHandler, decomposeContourTextPrimitive)); mrOutliner.SetDrawBulletHdl(LINK(this, impTextBreakupHandler, decomposeContourBulletPrimitive)); mrOutliner.StripPortions(); - mrOutliner.SetDrawPortionHdl(Link<>()); + mrOutliner.SetDrawPortionHdl(Link<DrawPortionInfo*,void>()); mrOutliner.SetDrawBulletHdl(Link<>()); } @@ -141,7 +141,7 @@ namespace mrOutliner.SetDrawPortionHdl(LINK(this, impTextBreakupHandler, decomposeBlockTextPrimitive)); mrOutliner.SetDrawBulletHdl(LINK(this, impTextBreakupHandler, decomposeBlockBulletPrimitive)); mrOutliner.StripPortions(); - mrOutliner.SetDrawPortionHdl(Link<>()); + mrOutliner.SetDrawPortionHdl(Link<DrawPortionInfo*,void>()); mrOutliner.SetDrawBulletHdl(Link<>()); } @@ -152,7 +152,7 @@ namespace mrOutliner.SetDrawPortionHdl(LINK(this, impTextBreakupHandler, decomposeStretchTextPrimitive)); mrOutliner.SetDrawBulletHdl(LINK(this, impTextBreakupHandler, decomposeStretchBulletPrimitive)); mrOutliner.StripPortions(); - mrOutliner.SetDrawPortionHdl(Link<>()); + mrOutliner.SetDrawPortionHdl(Link<DrawPortionInfo*,void>()); mrOutliner.SetDrawBulletHdl(Link<>()); } @@ -557,7 +557,7 @@ namespace maTextPortionPrimitives.push_back(pNewPrimitive); } - IMPL_LINK(impTextBreakupHandler, decomposeContourTextPrimitive, DrawPortionInfo*, pInfo) + IMPL_LINK_TYPED(impTextBreakupHandler, decomposeContourTextPrimitive, DrawPortionInfo*, pInfo, void) { // for contour text, ignore (clip away) all portions which are below // the visible area given by maScale @@ -565,11 +565,9 @@ namespace { impHandleDrawPortionInfo(*pInfo); } - - return 0; } - IMPL_LINK(impTextBreakupHandler, decomposeBlockTextPrimitive, DrawPortionInfo*, pInfo) + IMPL_LINK_TYPED(impTextBreakupHandler, decomposeBlockTextPrimitive, DrawPortionInfo*, pInfo, void) { if(pInfo) { @@ -583,7 +581,7 @@ namespace if(!maClipRange.isInside(aStartPosition)) { - return 0; + return; } // Start position is inside. Get TextBoundRect and TopLeft next @@ -597,7 +595,7 @@ namespace if(!maClipRange.isInside(aTopLeft)) { - return 0; + return; } // TopLeft is inside. Get BottomRight and check @@ -605,25 +603,21 @@ namespace if(!maClipRange.isInside(aBottomRight)) { - return 0; + return; } // all inside, clip was successful } impHandleDrawPortionInfo(*pInfo); } - - return 0; } - IMPL_LINK(impTextBreakupHandler, decomposeStretchTextPrimitive, DrawPortionInfo*, pInfo) + IMPL_LINK_TYPED(impTextBreakupHandler, decomposeStretchTextPrimitive, DrawPortionInfo*, pInfo, void) { if(pInfo) { impHandleDrawPortionInfo(*pInfo); } - - return 0; } IMPL_LINK(impTextBreakupHandler, decomposeContourBulletPrimitive, DrawBulletInfo*, pInfo) diff --git a/svx/source/svdraw/svdotextpathdecomposition.cxx b/svx/source/svdraw/svdotextpathdecomposition.cxx index 5a7ca174da82..226c07b7192c 100644 --- a/svx/source/svdraw/svdotextpathdecomposition.cxx +++ b/svx/source/svdraw/svdotextpathdecomposition.cxx @@ -171,7 +171,7 @@ namespace SdrOutliner& mrOutliner; ::std::vector< impPathTextPortion > maPathTextPortions; - DECL_LINK(decompositionPathTextPrimitive, DrawPortionInfo* ); + DECL_LINK_TYPED(decompositionPathTextPrimitive, DrawPortionInfo*, void ); public: explicit impTextBreakupHandler(SdrOutliner& rOutliner) @@ -195,10 +195,9 @@ namespace } }; - IMPL_LINK(impTextBreakupHandler, decompositionPathTextPrimitive, DrawPortionInfo*, pInfo) + IMPL_LINK_TYPED(impTextBreakupHandler, decompositionPathTextPrimitive, DrawPortionInfo*, pInfo, void) { maPathTextPortions.push_back(impPathTextPortion(*pInfo)); - return 0; } } // end of anonymous namespace @@ -791,7 +790,7 @@ void SdrTextObj::impDecomposePathTextPrimitive( } // clean up outliner - rOutliner.SetDrawPortionHdl(Link<>()); + rOutliner.SetDrawPortionHdl(Link<DrawPortionInfo*,void>()); rOutliner.Clear(); rOutliner.setVisualizedPage(0); |