summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/tabfrm.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-12-11 09:45:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-12-11 17:45:25 +0100
commit775a06361639ffc539fda20d44b9610c98005d9b (patch)
treeee56d194e409cbdcd252d7b56e6eeeb423c90409 /sw/source/core/layout/tabfrm.cxx
parentd068c68640f32d4a94da4df197441ee09a702b75 (diff)
convert PrepareHint to scoped enum
Change-Id: Ia7c987dc59f335d76ee874c1bb51707cb55ff41e Reviewed-on: https://gerrit.libreoffice.org/84922 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/layout/tabfrm.cxx')
-rw-r--r--sw/source/core/layout/tabfrm.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx
index ef0d2727fed2..0fcbd1e77a42 100644
--- a/sw/source/core/layout/tabfrm.cxx
+++ b/sw/source/core/layout/tabfrm.cxx
@@ -275,7 +275,7 @@ static void lcl_InvalidateLowerObjs( SwLayoutFrame& _rLayoutFrame,
== RndStdIds::FLY_AS_CHAR )
{
pAnchoredObj->AnchorFrame()
- ->Prepare( PREP_FLY_ATTR_CHG,
+ ->Prepare( PrepareHint::FlyFrameAttributesChanged,
&(pAnchoredObj->GetFrameFormat()) );
}
if ( pFly != nullptr )
@@ -1399,7 +1399,7 @@ static void SwInvalidatePositions( SwFrame *pFrame, long nBottom )
}
}
else
- pFrame->Prepare( PREP_ADJUST_FRM );
+ pFrame->Prepare( PrepareHint::AdjustSizeWithoutFormatting );
pFrame = pFrame->GetNext();
} while ( pFrame &&
( bAll ||
@@ -3552,7 +3552,7 @@ void SwTabFrame::Cut()
//Someone has to do the retouch: predecessor or upper
if ( nullptr != (pFrame = GetPrev()) )
{ pFrame->SetRetouche();
- pFrame->Prepare( PREP_WIDOWS_ORPHANS );
+ pFrame->Prepare( PrepareHint::WidowsOrphans );
pFrame->InvalidatePos_();
if ( pFrame->IsContentFrame() )
pFrame->InvalidatePage( pPage );
@@ -3653,7 +3653,7 @@ void SwTabFrame::Paste( SwFrame* pParent, SwFrame* pSibling )
pParent->Grow( aRectFnSet.GetHeight(getFrameArea()) );
if( aRectFnSet.GetWidth(getFrameArea()) != aRectFnSet.GetWidth(pParent->getFramePrintArea()) )
- Prepare( PREP_FIXSIZE_CHG );
+ Prepare( PrepareHint::FixSizeChanged );
if ( GetPrev() )
{
if ( !IsFollow() )
@@ -3687,7 +3687,7 @@ void SwTabFrame::Paste( SwFrame* pParent, SwFrame* pSibling )
bool SwTabFrame::Prepare( const PrepareHint eHint, const void *, bool )
{
- if( PREP_BOSS_CHGD == eHint )
+ if( PrepareHint::BossChanged == eHint )
CheckDirChange();
return false;
}
@@ -4751,7 +4751,7 @@ static bool lcl_ArrangeLowers( SwLayoutFrame *pLay, long lYStart, bool bInva )
if ( !pFrame->GetNext() )
pFrame->SetRetouche();
if( bInva )
- pFrame->Prepare( PREP_POS_CHGD );
+ pFrame->Prepare( PrepareHint::FramePositionChanged );
if ( pFrame->IsLayoutFrame() && static_cast<SwLayoutFrame*>(pFrame)->Lower() )
lcl_ArrangeLowers( static_cast<SwLayoutFrame*>(pFrame),
aRectFnSet.GetTop(static_cast<SwLayoutFrame*>(pFrame)->Lower()->getFrameArea())