summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-07-12 21:13:57 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-07-13 06:58:14 +0000
commit2970ec843820a72d73a91cc11fc353e5b9fde5fd (patch)
treef2cee9aa4ff219d1456f2d2f79404cf58f5bb845 /editeng
parent26ac3ee8b2f8cb3bd298d98f9a94c9e305f6c304 (diff)
editeng: make Link<> usage typed
Change-Id: Iec36c7e4f4fbc2ee2ee25d4d0c8488340ba7d8c4 Reviewed-on: https://gerrit.libreoffice.org/16968 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/outliner/outliner.cxx13
1 files changed, 3 insertions, 10 deletions
diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx
index 1deb55f649aa..86725f0bc110 100644
--- a/editeng/source/outliner/outliner.cxx
+++ b/editeng/source/outliner/outliner.cxx
@@ -807,7 +807,6 @@ bool Outliner::Expand( Paragraph* pPara )
pHdlParagraph = pPara;
bIsExpanding = true;
pParaList->Expand( pPara );
- ExpandHdl();
InvalidateBullet(pParaList->GetAbsPos(pPara));
if( bUndo )
{
@@ -839,7 +838,6 @@ bool Outliner::Collapse( Paragraph* pPara )
pHdlParagraph = pPara;
bIsExpanding = false;
pParaList->Collapse( pPara );
- ExpandHdl();
InvalidateBullet(pParaList->GetAbsPos(pPara));
if( bUndo )
{
@@ -1663,11 +1661,6 @@ Rectangle Outliner::ImpCalcBulletArea( sal_Int32 nPara, bool bAdjust, bool bRetu
return aBulletArea;
}
-void Outliner::ExpandHdl()
-{
- aExpandHdl.Call( this );
-}
-
EBulletInfo Outliner::GetBulletInfo( sal_Int32 nPara )
{
EBulletInfo aInfo;
@@ -1803,7 +1796,7 @@ IMPL_LINK_NOARG(Outliner, BeginMovingParagraphsHdl)
{
if( !IsInUndo() )
- GetBeginMovingHdl().Call( this );
+ aBeginMovingHdl.Call( this );
return 0;
}
@@ -2056,13 +2049,13 @@ void Outliner::SetEndDropHdl( const Link<>& rLink )
}
/** sets a link that is called before a drop or paste operation. */
-void Outliner::SetBeginPasteOrDropHdl( const Link<>& rLink )
+void Outliner::SetBeginPasteOrDropHdl( const Link<PasteOrDropInfos*,void>& rLink )
{
maBeginPasteOrDropHdl = rLink;
}
/** sets a link that is called after a drop or paste operation. */
-void Outliner::SetEndPasteOrDropHdl( const Link<>& rLink )
+void Outliner::SetEndPasteOrDropHdl( const Link<PasteOrDropInfos*,void>& rLink )
{
maEndPasteOrDropHdl = rLink;
}