summaryrefslogtreecommitdiff
path: root/editeng/source/outliner/outliner.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-09-16 10:40:08 +0200
committerNoel Grandin <noel@peralex.com>2015-09-17 08:19:32 +0200
commit073b5e877eaae2dac44900a855ce8ca3cb60a782 (patch)
tree203bbeb159cdec425414bbd0ffbea062f426e121 /editeng/source/outliner/outliner.cxx
parentcd015186a0b30eefba1ce283a7cbb9e0f0d5e598 (diff)
convert Link<> to typed
Change-Id: Ie40dff6f1c40bf1866dc9947479299412abfd5ad
Diffstat (limited to 'editeng/source/outliner/outliner.cxx')
-rw-r--r--editeng/source/outliner/outliner.cxx14
1 files changed, 4 insertions, 10 deletions
diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx
index 0e3105a182ed..44366fc4e314 100644
--- a/editeng/source/outliner/outliner.cxx
+++ b/editeng/source/outliner/outliner.cxx
@@ -1781,13 +1781,10 @@ IMPL_LINK( Outliner, ParaVisibleStateChangedHdl, Paragraph*, pPara )
return 0;
}
-IMPL_LINK_NOARG(Outliner, BeginMovingParagraphsHdl)
+IMPL_LINK_NOARG_TYPED(Outliner, BeginMovingParagraphsHdl, MoveParagraphsInfo&, void)
{
-
if( !IsInUndo() )
aBeginMovingHdl.Call( this );
-
- return 0;
}
IMPL_LINK( Outliner, BeginPasteOrDropHdl, PasteOrDropInfos*, pInfos )
@@ -1806,19 +1803,16 @@ IMPL_LINK( Outliner, EndPasteOrDropHdl, PasteOrDropInfos*, pInfos )
return 0;
}
-IMPL_LINK( Outliner, EndMovingParagraphsHdl, MoveParagraphsInfo*, pInfos )
+IMPL_LINK_TYPED( Outliner, EndMovingParagraphsHdl, MoveParagraphsInfo&, rInfos, void )
{
-
- pParaList->MoveParagraphs( pInfos->nStartPara, pInfos->nDestPara, pInfos->nEndPara - pInfos->nStartPara + 1 );
- sal_Int32 nChangesStart = std::min( pInfos->nStartPara, pInfos->nDestPara );
+ pParaList->MoveParagraphs( rInfos.nStartPara, rInfos.nDestPara, rInfos.nEndPara - rInfos.nStartPara + 1 );
+ sal_Int32 nChangesStart = std::min( rInfos.nStartPara, rInfos.nDestPara );
sal_Int32 nParas = pParaList->GetParagraphCount();
for ( sal_Int32 n = nChangesStart; n < nParas; n++ )
ImplCalcBulletText( n, false, false );
if( !IsInUndo() )
aEndMovingHdl.Call( this );
-
- return 0;
}
static bool isSameNumbering( const SvxNumberFormat& rN1, const SvxNumberFormat& rN2 )