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

don't need function pointers here anymore

Change-Id: Ica36573da290bfc98de99fec6ed59dbf8acb8a73
Reviewed-on: https://gerrit.libreoffice.org/63924Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
Tested-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst dcda5569
......@@ -3029,9 +3029,6 @@ bool SwTable::SetRowHeight( SwTableBox& rCurrentBox, TableChgWidthHeightType eTy
const_cast<SwTableNode*>(rCurrentBox.GetSttNd()->FindTableNode()) );
bBigger = aParam.bBigger;
FN_lcl_SetLineHeight fnSelLine = lcl_SetSelLineHeight;
FN_lcl_SetLineHeight fnOtherLine = lcl_SetOtherLineHeight;
SwTableLines* pLines = &m_aLines;
// How do we get to the height?
......@@ -3056,7 +3053,7 @@ bool SwTable::SetRowHeight( SwTableBox& rCurrentBox, TableChgWidthHeightType eTy
if( bBigger )
bRet = true;
else
bRet = (*fnSelLine)( (*pLines)[ nBaseLinePos ], aParam,
bRet = lcl_SetSelLineHeight( (*pLines)[ nBaseLinePos ], aParam,
nAbsDiff, true );
if( bRet )
......@@ -3064,7 +3061,7 @@ bool SwTable::SetRowHeight( SwTableBox& rCurrentBox, TableChgWidthHeightType eTy
if( ppUndo )
ppUndo->reset(new SwUndoAttrTable( *aParam.pTableNd, true ));
(*fnSelLine)( (*pLines)[ nBaseLinePos ], aParam,
lcl_SetSelLineHeight( (*pLines)[ nBaseLinePos ], aParam,
nAbsDiff, false );
}
}
......@@ -3116,7 +3113,7 @@ bool SwTable::SetRowHeight( SwTableBox& rCurrentBox, TableChgWidthHeightType eTy
{
for( auto n = nStt; n < nEnd; ++n )
{
if( !(*fnOtherLine)( (*pLines)[ n ], aParam,
if( !lcl_SetOtherLineHeight( (*pLines)[ n ], aParam,
nAbsDiff, true ))
{
bRet = false;
......@@ -3125,7 +3122,7 @@ bool SwTable::SetRowHeight( SwTableBox& rCurrentBox, TableChgWidthHeightType eTy
}
}
else
bRet = (*fnSelLine)( (*pLines)[ nBaseLinePos ], aParam,
bRet = lcl_SetSelLineHeight( (*pLines)[ nBaseLinePos ], aParam,
nAbsDiff, true );
}
......@@ -3139,18 +3136,18 @@ bool SwTable::SetRowHeight( SwTableBox& rCurrentBox, TableChgWidthHeightType eTy
if( bTop )
{
(*fnSelLine)( (*pLines)[ nBaseLinePos ], aParam,
lcl_SetSelLineHeight( (*pLines)[ nBaseLinePos ], aParam,
nAbsDiff, false );
for( auto n = nStt; n < nEnd; ++n )
(*fnOtherLine)( (*pLines)[ n ], aParam1,
lcl_SetOtherLineHeight( (*pLines)[ n ], aParam1,
nAbsDiff, false );
}
else
{
for( auto n = nStt; n < nEnd; ++n )
(*fnOtherLine)( (*pLines)[ n ], aParam1,
lcl_SetOtherLineHeight( (*pLines)[ n ], aParam1,
nAbsDiff, false );
(*fnSelLine)( (*pLines)[ nBaseLinePos ], aParam,
lcl_SetSelLineHeight( (*pLines)[ nBaseLinePos ], aParam,
nAbsDiff, false );
}
}
......
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