diff options
author | Armin Le Grand <Armin.Le.Grand@cib.de> | 2017-10-26 10:40:43 +0200 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@cib.de> | 2017-10-30 12:13:14 +0100 |
commit | f6edddfa230d6478571ef67ebdc506c54f589648 (patch) | |
tree | 02c90218c08315726943bb42a03e1a167fee9ac6 /sw/source/core/layout/pagechg.cxx | |
parent | 46d233c026fd104f449bb99c1c6f80de34c9a4c6 (diff) |
Migrated from SwFrame::PrintWA to setPrint
Change-Id: Ieea3b467f296a190de5b5f47721bef148bebf60b
Diffstat (limited to 'sw/source/core/layout/pagechg.cxx')
-rw-r--r-- | sw/source/core/layout/pagechg.cxx | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/sw/source/core/layout/pagechg.cxx b/sw/source/core/layout/pagechg.cxx index 6d27aaea599c..9d8327c4d1ff 100644 --- a/sw/source/core/layout/pagechg.cxx +++ b/sw/source/core/layout/pagechg.cxx @@ -128,8 +128,9 @@ void SwBodyFrame::Format( vcl::RenderContext* /*pRenderContext*/, const SwBorder nSize -= nBorder; nBorder /= 2; } - aRectFnSet.SetPosX( PrintWA(), nBorder ); - aRectFnSet.SetWidth( PrintWA(), nSize ); + SwRect aPrt(PrintRA()); + aRectFnSet.SetPosX( aPrt, nBorder ); + aRectFnSet.SetWidth( aPrt, nSize ); // Height of body frame: nBorder = aRectFnSet.GetHeight(FrameRA()); @@ -148,17 +149,22 @@ void SwBodyFrame::Format( vcl::RenderContext* /*pRenderContext*/, const SwBorder const bool bAdjust = static_cast<SwPageFrame*>(GetUpper())->GetFormat()->GetDoc()-> GetFootnoteIdxs().empty(); - aRectFnSet.SetPosY( PrintWA(), bAdjust ? nBorder : 0 ); - aRectFnSet.SetHeight( PrintWA(), nSize ); + aRectFnSet.SetPosY( aPrt, bAdjust ? nBorder : 0 ); + aRectFnSet.SetHeight( aPrt, nSize ); + setPrint(aPrt); } } + if( bNoGrid ) { - PrintWA().Pos().setX(0); - PrintWA().Pos().setY(0); - PrintWA().Height( FrameRA().Height() ); - PrintWA().Width( FrameRA().Width() ); + SwRect aPrt(PrintRA()); + aPrt.Pos().setX(0); + aPrt.Pos().setY(0); + aPrt.Height( FrameRA().Height() ); + aPrt.Width( FrameRA().Width() ); + setPrint(aPrt); } + mbValidSize = mbValidPrtArea = true; } @@ -1605,10 +1611,14 @@ void SwRootFrame::MakeAll(vcl::RenderContext* /*pRenderContext*/) } if ( !mbValidPrtArea ) - { mbValidPrtArea = true; - PrintWA().Pos().setX(0); - PrintWA().Pos().setY(0); - PrintWA().SSize( FrameRA().SSize() ); + { + mbValidPrtArea = true; + + SwRect aPrt(PrintRA()); + aPrt.Pos().setX(0); + aPrt.Pos().setY(0); + aPrt.SSize( FrameRA().SSize() ); + setPrint(aPrt); } if ( !mbValidSize ) |