summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/ssfrm.cxx
diff options
context:
space:
mode:
authorArmin Le Grand <Armin.Le.Grand@cib.de>2017-10-26 10:40:43 +0200
committerArmin Le Grand <Armin.Le.Grand@cib.de>2017-10-30 12:13:14 +0100
commitf6edddfa230d6478571ef67ebdc506c54f589648 (patch)
tree02c90218c08315726943bb42a03e1a167fee9ac6 /sw/source/core/layout/ssfrm.cxx
parent46d233c026fd104f449bb99c1c6f80de34c9a4c6 (diff)
Migrated from SwFrame::PrintWA to setPrint
Change-Id: Ieea3b467f296a190de5b5f47721bef148bebf60b
Diffstat (limited to 'sw/source/core/layout/ssfrm.cxx')
-rw-r--r--sw/source/core/layout/ssfrm.cxx44
1 files changed, 32 insertions, 12 deletions
diff --git a/sw/source/core/layout/ssfrm.cxx b/sw/source/core/layout/ssfrm.cxx
index 6f965a25b721..03ca58569a98 100644
--- a/sw/source/core/layout/ssfrm.cxx
+++ b/sw/source/core/layout/ssfrm.cxx
@@ -59,7 +59,10 @@ bool SwFrame::SetMinLeft( long nDeadline )
aFrm.Left( nDeadline );
setFrame(aFrm);
- PrintWA().Width( PrintRA().Width() - nDiff );
+ SwRect aPrt(PrintRA());
+ aPrt.Width( aPrt.Width() - nDiff );
+ setPrint(aPrt);
+
return true;
}
return false;
@@ -74,7 +77,10 @@ bool SwFrame::SetMaxBottom( long nDeadline )
aFrm.Height( aFrm.Height() - nDiff );
setFrame(aFrm);
- PrintWA().Height( PrintRA().Height() - nDiff );
+ SwRect aPrt(PrintRA());
+ aPrt.Height( aPrt.Height() - nDiff );
+ setPrint(aPrt);
+
return true;
}
return false;
@@ -89,7 +95,10 @@ bool SwFrame::SetMinTop( long nDeadline )
aFrm.Top( nDeadline );
setFrame(aFrm);
- PrintWA().Height( PrintRA().Height() - nDiff );
+ SwRect aPrt(PrintRA());
+ aPrt.Height( aPrt.Height() - nDiff );
+ setPrint(aPrt);
+
return true;
}
return false;
@@ -104,7 +113,10 @@ bool SwFrame::SetMaxRight( long nDeadline )
aFrm.Width( aFrm.Width() - nDiff );
setFrame(aFrm);
- PrintWA().Width( PrintRA().Width() - nDiff );
+ SwRect aPrt(PrintRA());
+ aPrt.Width( aPrt.Width() - nDiff );
+ setPrint(aPrt);
+
return true;
}
return false;
@@ -206,26 +218,34 @@ void SwFrame::MakeRightPos( const SwFrame* pUp, const SwFrame* pPrv, bool bNotif
void SwFrame::SetTopBottomMargins( long nTop, long nBot )
{
- PrintWA().Top( nTop );
- PrintWA().Height( FrameRA().Height() - nTop - nBot );
+ SwRect aPrt(PrintRA());
+ aPrt.Top( nTop );
+ aPrt.Height( FrameRA().Height() - nTop - nBot );
+ setPrint(aPrt);
}
void SwFrame::SetBottomTopMargins( long nBot, long nTop )
{
- PrintWA().Top( nTop );
- PrintWA().Height( FrameRA().Height() - nTop - nBot );
+ SwRect aPrt(PrintRA());
+ aPrt.Top( nTop );
+ aPrt.Height( FrameRA().Height() - nTop - nBot );
+ setPrint(aPrt);
}
void SwFrame::SetLeftRightMargins( long nLeft, long nRight)
{
- PrintWA().Left( nLeft );
- PrintWA().Width( FrameRA().Width() - nLeft - nRight );
+ SwRect aPrt(PrintRA());
+ aPrt.Left( nLeft );
+ aPrt.Width( FrameRA().Width() - nLeft - nRight );
+ setPrint(aPrt);
}
void SwFrame::SetRightLeftMargins( long nRight, long nLeft)
{
- PrintWA().Left( nLeft );
- PrintWA().Width( FrameRA().Width() - nLeft - nRight );
+ SwRect aPrt(PrintRA());
+ aPrt.Left( nLeft );
+ aPrt.Width( FrameRA().Width() - nLeft - nRight );
+ setPrint(aPrt);
}
/// checks the layout direction and invalidates the lower frames recursively, if necessary.