summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/fly.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/fly.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/fly.cxx')
-rw-r--r--sw/source/core/layout/fly.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/layout/fly.cxx b/sw/source/core/layout/fly.cxx
index 57b09946966b..4ee38db68523 100644
--- a/sw/source/core/layout/fly.cxx
+++ b/sw/source/core/layout/fly.cxx
@@ -726,7 +726,7 @@ void SwFlyFrame::UpdateAttr_( const SfxPoolItem *pOld, const SfxPoolItem *pNew,
rInvFlags |= 0x41;
// The background needs to be messaged and invalidated
const SwRect aTmp( GetObjRectWithSpaces() );
- NotifyBackground( FindPageFrame(), aTmp, PREP_FLY_ATTR_CHG );
+ NotifyBackground( FindPageFrame(), aTmp, PrepareHint::FlyFrameAttributesChanged );
// By changing the flow of frame-bound Frames, a vertical alignment
// can be activated/deactivated => MakeFlyPos
@@ -790,7 +790,7 @@ void SwFlyFrame::UpdateAttr_( const SfxPoolItem *pOld, const SfxPoolItem *pNew,
aOld.Left ( std::max( aOld.Left() - rLR.GetLeft(), 0L ) );
aOld.SSize().AdjustWidth(rLR.GetRight() );
aNew.Union( aOld );
- NotifyBackground( FindPageFrame(), aNew, PREP_CLEAR );
+ NotifyBackground( FindPageFrame(), aNew, PrepareHint::Clear );
// Special case:
// When assigning a template we cannot rely on the old column
@@ -863,7 +863,7 @@ void SwFlyFrame::UpdateAttr_( const SfxPoolItem *pOld, const SfxPoolItem *pNew,
{
SwFrame* pFrame = GetLastLower();
if( pFrame->IsTextFrame() && static_cast<SwTextFrame*>(pFrame)->IsUndersized() )
- pFrame->Prepare( PREP_ADJUST_FRM );
+ pFrame->Prepare( PrepareHint::AdjustSizeWithoutFormatting );
}
}
@@ -897,7 +897,7 @@ void SwFlyFrame::UpdateAttr_( const SfxPoolItem *pOld, const SfxPoolItem *pNew,
}
}
aNew.Union( aOld );
- NotifyBackground( FindPageFrame(), aNew, PREP_CLEAR );
+ NotifyBackground( FindPageFrame(), aNew, PrepareHint::Clear );
}
break;
@@ -1424,7 +1424,7 @@ void CalcContent( SwLayoutFrame *pLay, bool bNoColl )
( pFrame->GetUpper()->getFramePrintArea().Height() != pFrame->getFrameArea().Height() )
: ( pFrame->GetUpper()->getFramePrintArea().Width() != pFrame->getFrameArea().Width() ) )
{
- pFrame->Prepare( PREP_FIXSIZE_CHG );
+ pFrame->Prepare( PrepareHint::FixSizeChanged );
pFrame->InvalidateSize_();
}