Kaydet (Commit) dcc013ba authored tarafından Miklos Vajna's avatar Miklos Vajna

SwFrm::PrepareMake: use vcl::RenderContext

Change-Id: I34306bb1622c79489eb647ed45f398ad2634c144
(cherry picked from commit ea1ea3b9)
üst cd69dddc
......@@ -370,7 +370,7 @@ protected:
void setRootFrm( SwRootFrm* pRoot ) { mpRoot = pRoot; }
SwPageFrm *InsertPage( SwPageFrm *pSibling, bool bFootnote );
void PrepareMake();
void PrepareMake(vcl::RenderContext* pRenderContext);
void OptPrepareMake();
void MakePos();
// Format next frame of table frame to assure keeping attributes.
......
......@@ -238,7 +238,7 @@ static bool lcl_IsCalcUpperAllowed( const SwFrm& rFrm )
*
* @see MakeAll()
*/
void SwFrm::PrepareMake()
void SwFrm::PrepareMake(vcl::RenderContext* pRenderContext)
{
StackHack aHack;
if ( GetUpper() )
......@@ -274,7 +274,7 @@ void SwFrm::PrepareMake()
const SwTextFrm* pMaster = static_cast<SwContentFrm*>(this)->FindMaster();
if ( pMaster && pMaster->IsLocked() )
{
MakeAll(IsRootFrm() ? 0 : getRootFrm()->GetCurrShell()->GetOut());
MakeAll(pRenderContext);
return;
}
}
......@@ -303,7 +303,7 @@ void SwFrm::PrepareMake()
(SwFlowFrm::CastFlowFrm(pFrm))->IsAnFollow( pThis ) )
break;
pFrm->MakeAll(IsRootFrm() ? 0 : getRootFrm()->GetCurrShell()->GetOut());
pFrm->MakeAll(pRenderContext);
if( IsSctFrm() && !static_cast<SwSectionFrm*>(this)->GetSection() )
break;
}
......@@ -337,7 +337,7 @@ void SwFrm::PrepareMake()
if ( bTab && !bOldTabLock )
::PrepareUnlock( static_cast<SwTabFrm*>(this) );
}
MakeAll(IsRootFrm() ? 0 : getRootFrm()->GetCurrShell()->GetOut());
MakeAll(pRenderContext);
}
void SwFrm::OptPrepareMake()
......@@ -354,7 +354,7 @@ void SwFrm::OptPrepareMake()
return;
}
if ( GetPrev() && !GetPrev()->IsValid() )
PrepareMake();
PrepareMake(getRootFrm()->GetCurrShell() ? getRootFrm()->GetCurrShell()->GetOut() : 0);
else
{
StackHack aHack;
......
......@@ -2657,7 +2657,7 @@ SwFlyFrameFormat * SwFlyFrm::GetFormat()
void SwFlyFrm::Calc() const
{
if ( !m_bValidContentPos )
const_cast<SwFlyFrm*>(this)->PrepareMake();
const_cast<SwFlyFrm*>(this)->PrepareMake(getRootFrm()->GetCurrShell() ? getRootFrm()->GetCurrShell()->GetOut() : 0);
else
SwLayoutFrm::Calc();
}
......
......@@ -1789,7 +1789,7 @@ bool SwFrm::OnFirstPage() const
void SwFrm::Calc() const
{
if ( !mbValidPos || !mbValidPrtArea || !mbValidSize )
const_cast<SwFrm*>(this)->PrepareMake();
const_cast<SwFrm*>(this)->PrepareMake(getRootFrm()->GetCurrShell() ? getRootFrm()->GetCurrShell()->GetOut() : 0);
}
Point SwFrm::GetRelPos() const
......
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