summaryrefslogtreecommitdiff
path: root/sw/source/uibase/utlui
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-12-06 08:14:53 +0100
committerMiklos Vajna <vmiklos@collabora.com>2021-12-06 09:29:53 +0100
commitf72bb33e78ac9eb7d9f21b61bd89b186547993dd (patch)
tree0077bbf6501bef254e075a670da268f05841dd30 /sw/source/uibase/utlui
parentf989406acd1726606def5ea0e19bd2399116ae83 (diff)
sw: prefix members of SwAnchorMarker, SwEditWin, SwShadowCursor and ...
... SwSrcEditWindow::ChangesListener See tdf#94879 for motivation. Change-Id: Idd3aba48ca7329b6df2e52fff73eca360aa76be5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126399 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sw/source/uibase/utlui')
-rw-r--r--sw/source/uibase/utlui/shdwcrsr.cxx48
1 files changed, 24 insertions, 24 deletions
diff --git a/sw/source/uibase/utlui/shdwcrsr.cxx b/sw/source/uibase/utlui/shdwcrsr.cxx
index cd208e5b3a08..4fea57d090d4 100644
--- a/sw/source/uibase/utlui/shdwcrsr.cxx
+++ b/sw/source/uibase/utlui/shdwcrsr.cxx
@@ -24,23 +24,23 @@ using namespace ::com::sun::star;
SwShadowCursor::~SwShadowCursor()
{
- if( USHRT_MAX != nOldMode )
- DrawCursor( aOldPt, nOldHeight, nOldMode );
+ if( USHRT_MAX != m_nOldMode )
+ DrawCursor( m_aOldPt, m_nOldHeight, m_nOldMode );
}
void SwShadowCursor::SetPos( const Point& rPt, tools::Long nHeight, sal_uInt16 nMode )
{
- Point aPt( pWin->LogicToPixel( rPt ));
- nHeight = pWin->LogicToPixel( Size( 0, nHeight )).Height();
- if( aOldPt != aPt || nOldHeight != nHeight || nOldMode != nMode )
+ Point aPt( m_pWin->LogicToPixel( rPt ));
+ nHeight = m_pWin->LogicToPixel( Size( 0, nHeight )).Height();
+ if( m_aOldPt != aPt || m_nOldHeight != nHeight || m_nOldMode != nMode )
{
- if( USHRT_MAX != nOldMode )
- DrawCursor( aOldPt, nOldHeight, nOldMode );
+ if( USHRT_MAX != m_nOldMode )
+ DrawCursor( m_aOldPt, m_nOldHeight, m_nOldMode );
DrawCursor( aPt, nHeight, nMode );
- nOldMode = nMode;
- nOldHeight = nHeight;
- aOldPt = aPt;
+ m_nOldMode = nMode;
+ m_nOldHeight = nHeight;
+ m_aOldPt = aPt;
}
}
@@ -57,7 +57,7 @@ void SwShadowCursor::DrawTri( const Point& rPt, tools::Long nHeight, bool bLeft
tools::Long nDiff = bLeft ? -1 : 1;
while( aPt1.Y() <= aPt2.Y() )
{
- pWin->GetOutDev()->DrawLine( aPt1, aPt2 );
+ m_pWin->GetOutDev()->DrawLine( aPt1, aPt2 );
aPt1.AdjustY( 1 );
aPt2.AdjustY( -1 );
aPt2.setX( aPt1.AdjustX(nDiff ) );
@@ -68,15 +68,15 @@ void SwShadowCursor::DrawCursor( const Point& rPt, tools::Long nHeight, sal_uInt
{
nHeight = (((nHeight / 4)+1) * 4) + 1;
- pWin->GetOutDev()->Push();
+ m_pWin->GetOutDev()->Push();
- pWin->SetMapMode(MapMode(MapUnit::MapPixel));
- pWin->GetOutDev()->SetRasterOp( RasterOp::Xor );
+ m_pWin->SetMapMode(MapMode(MapUnit::MapPixel));
+ m_pWin->GetOutDev()->SetRasterOp( RasterOp::Xor );
- pWin->GetOutDev()->SetLineColor( Color( ColorTransparency, sal_uInt32(aCol) ^ sal_uInt32(COL_WHITE) ) );
+ m_pWin->GetOutDev()->SetLineColor( Color( ColorTransparency, sal_uInt32(m_aCol) ^ sal_uInt32(COL_WHITE) ) );
// 1. The Line:
- pWin->GetOutDev()->DrawLine( Point( rPt.X(), rPt.Y() + 1),
+ m_pWin->GetOutDev()->DrawLine( Point( rPt.X(), rPt.Y() + 1),
Point( rPt.X(), rPt.Y() - 2 + nHeight ));
// 2. The Triangle
@@ -85,34 +85,34 @@ void SwShadowCursor::DrawCursor( const Point& rPt, tools::Long nHeight, sal_uInt
if( text::HoriOrientation::RIGHT == nMode || text::HoriOrientation::CENTER == nMode ) // Arrow to the left
DrawTri( rPt, nHeight, true );
- pWin->GetOutDev()->Pop();
+ m_pWin->GetOutDev()->Pop();
}
void SwShadowCursor::Paint()
{
- if( USHRT_MAX != nOldMode )
- DrawCursor( aOldPt, nOldHeight, nOldMode );
+ if( USHRT_MAX != m_nOldMode )
+ DrawCursor( m_aOldPt, m_nOldHeight, m_nOldMode );
}
tools::Rectangle SwShadowCursor::GetRect() const
{
- tools::Long nH = nOldHeight;
- Point aPt( aOldPt );
+ tools::Long nH = m_nOldHeight;
+ Point aPt( m_aOldPt );
nH = (((nH / 4)+1) * 4) + 1;
tools::Long nWidth = nH / 4 + 3 + 1;
Size aSz( nWidth, nH );
- if( text::HoriOrientation::RIGHT == nOldMode )
+ if( text::HoriOrientation::RIGHT == m_nOldMode )
aPt.AdjustX( -(aSz.Width()) );
- else if( text::HoriOrientation::CENTER == nOldMode )
+ else if( text::HoriOrientation::CENTER == m_nOldMode )
{
aPt.AdjustX( -(aSz.Width()) );
aSz.setWidth( aSz.Width() * 2 );
}
- return pWin->PixelToLogic( tools::Rectangle( aPt, aSz ) );
+ return m_pWin->PixelToLogic( tools::Rectangle( aPt, aSz ) );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */