Skip to content

Commit

Permalink
Rename PaintBorderAndShadow -> PaintPageBorder
Browse files Browse the repository at this point in the history
(cherry picked from commit 3495431)
  • Loading branch information
Pilot-Pirx committed Aug 22, 2022
1 parent f3bf8e1 commit a4b2faf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions main/sw/source/core/inc/pagefrm.hxx
Expand Up @@ -354,9 +354,9 @@ public:
input parameter - instance of the view shell, on which the output
has to be generated.
*/
static void PaintBorderAndShadow( const SwRect& _rPageRect,
ViewShell* _pViewShell,
bool bRightSidebar );
static void PaintPageBorder( const SwRect& _rPageRect,
ViewShell* _pViewShell,
bool bRightSidebar );

/** get bound rectangle of border and shadow for repaints
Expand Down
12 changes: 6 additions & 6 deletions main/sw/source/core/layout/paintfrm.cxx
Expand Up @@ -3053,11 +3053,11 @@ SwRootFrm::Paint(SwRect const& rRect, SwPrintData const*const pPrintData) const

pPage->Paint( aPaintRect );

// no paint of page border and shadow, if writer is in place mode.
// no paint of page border if writer is in place mode.
if( pSh->GetWin() && pSh->GetDoc()->GetDocShell() &&
!pSh->GetDoc()->GetDocShell()->IsInPlaceActive() )
{
SwPageFrm::PaintBorderAndShadow( pPage->Frm(), pSh, bRightSidebar );
SwPageFrm::PaintPageBorder( pPage->Frm(), pSh, bRightSidebar );
SwPageFrm::PaintNotesSidebar( pPage->Frm(), pSh, pPage->GetPhyPageNum(), bRightSidebar);
}

Expand Down Expand Up @@ -3151,7 +3151,7 @@ SwRootFrm::Paint(SwRect const& rRect, SwPrintData const*const pPrintData) const
pSh->GetOut()->SetFont( aOldFont );
// paint border for empty page (shadow removed now)
// OD 19.02.2003 #107369# - use new method to paint page border
SwPageFrm::PaintBorderAndShadow( aEmptyPageRect, pSh, bRightSidebar );
SwPageFrm::PaintPageBorder( aEmptyPageRect, pSh, bRightSidebar );
SwPageFrm::PaintNotesSidebar( aEmptyPageRect, pSh, pPage->GetPhyPageNum(), bRightSidebar);

{
Expand Down Expand Up @@ -5523,9 +5523,9 @@ const sal_Int8 SwPageFrm::mnBorderPxWidth = 1;
@author OD
*/
/*static*/ void SwPageFrm::PaintBorderAndShadow( const SwRect& _rPageRect,
ViewShell* _pViewShell,
bool bRightSidebar )
/*static*/ void SwPageFrm::PaintPageBorder( const SwRect& _rPageRect,
ViewShell* _pViewShell,
bool bRightSidebar )
{
// --> FME 2004-06-24 #i16816# tagged pdf support
SwTaggedPDFHelper aTaggedPDFHelper( 0, 0, 0, *_pViewShell->GetOut() );
Expand Down
6 changes: 3 additions & 3 deletions main/sw/source/core/view/pagepreviewlayout.cxx
Expand Up @@ -1149,7 +1149,7 @@ bool SwPagePreviewLayout::Paint( const Rectangle _aOutRect ) const
pOutputDev->SetFont( aOldFont );
// paint border for empty page (shadow removed now)
// OD 19.02.2003 #107369# - use new method to paint page border
SwPageFrm::PaintBorderAndShadow( aPageRect, &mrParentViewShell, true );
SwPageFrm::PaintPageBorder( aPageRect, &mrParentViewShell, true );
}
else
{
Expand All @@ -1164,7 +1164,7 @@ bool SwPagePreviewLayout::Paint( const Rectangle _aOutRect ) const
SwPageFrm::GetBorderAndShadowBoundRect( SwRect( aPageRect ), &mrParentViewShell, aPageBorderRect, true );
const Region aDLRegion(aPageBorderRect.SVRect());
mrParentViewShell.DLPrePaint2(aDLRegion);
SwPageFrm::PaintBorderAndShadow( aPageRect, &mrParentViewShell, true );
SwPageFrm::PaintPageBorder( aPageRect, &mrParentViewShell, true );
mrParentViewShell.DLPostPaint2(true);
}
// <--
Expand Down Expand Up @@ -1289,7 +1289,7 @@ void SwPagePreviewLayout::_PaintSelectMarkAtPage(
SwRect aPageRect( _aSelectedPrevwPage->aLogicPos,
_aSelectedPrevwPage->aPageSize );
// OD 19.02.2003 #107369# - use aligned page rectangle, as it is used for
// page border paint - see <SwPageFrm::PaintBorderAndShadow(..)>
// page border paint - see <SwPageFrm::PaintPageBorder(..)>
::SwAlignRect( aPageRect, &mrParentViewShell);
Rectangle aPxPageRect = pOutputDev->LogicToPixel( aPageRect.SVRect() );

Expand Down

0 comments on commit a4b2faf

Please sign in to comment.