From 6b88a6501a4de7aeb02da8f5efed28925aafc144 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 26 Jun 2015 10:59:57 +0200 Subject: SwTextFrm::_Format: use vcl::RenderContext Change-Id: Ia37257286cce7a4a4a6fdffd2dd0d896d46db548 --- sw/source/core/inc/txtfrm.hxx | 2 +- sw/source/core/text/frmform.cxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sw') diff --git a/sw/source/core/inc/txtfrm.hxx b/sw/source/core/inc/txtfrm.hxx index 0ca75914ca2d..1e5737d4e9f2 100644 --- a/sw/source/core/inc/txtfrm.hxx +++ b/sw/source/core/inc/txtfrm.hxx @@ -142,7 +142,7 @@ class SwTextFrm: public SwContentFrm // In order to safe stack space, we split this method: // _Format calls _Format with parameters - void _Format( SwParaPortion *pPara ); + void _Format( vcl::RenderContext* pRenderContext, SwParaPortion *pPara ); void _Format( SwTextFormatter &rLine, SwTextFormatInfo &rInf, const bool bAdjust = false ); void FormatOnceMore( SwTextFormatter &rLine, SwTextFormatInfo &rInf ); diff --git a/sw/source/core/text/frmform.cxx b/sw/source/core/text/frmform.cxx index c42f05973d55..868580e9f4bb 100644 --- a/sw/source/core/text/frmform.cxx +++ b/sw/source/core/text/frmform.cxx @@ -1623,7 +1623,7 @@ void SwTextFrm::FormatOnceMore( SwTextFormatter &rLine, SwTextFormatInfo &rInf ) } } -void SwTextFrm::_Format( SwParaPortion *pPara ) +void SwTextFrm::_Format( vcl::RenderContext* pRenderContext, SwParaPortion *pPara ) { const bool bIsEmpty = GetText().isEmpty(); @@ -1650,7 +1650,7 @@ void SwTextFrm::_Format( SwParaPortion *pPara ) if ( IsVertical() ) SwapWidthAndHeight(); - SwTextFormatInfo aInf( getRootFrm()->GetCurrShell()->GetOut(), this ); + SwTextFormatInfo aInf( pRenderContext, this ); SwTextFormatter aLine( this, &aInf ); HideAndShowObjects(); @@ -1802,7 +1802,7 @@ void SwTextFrm::Format( const SwBorderAttrs * ) } do { - _Format( aAccess.GetPara() ); + _Format( getRootFrm()->GetCurrShell()->GetOut(), aAccess.GetPara() ); if( pFootnoteBoss && nFootnoteHeight ) { const SwFootnoteContFrm* pCont = pFootnoteBoss->FindFootnoteCont(); -- cgit