summaryrefslogtreecommitdiff
path: root/starmath/source
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2017-01-01 07:38:33 +0900
committerJulien Nabet <serval2412@yahoo.fr>2017-01-01 16:56:00 +0000
commita5e9c5e35010bcde8cdfe8f82f880a7e159ee8ca (patch)
tree9b70bb89c67cb4d897586809247664af7261d8d1 /starmath/source
parent43596585c7184d796eccca934af8ef29f4f28cb8 (diff)
starmath: Prefix members of SmSelectionDrawingVisitor
Change-Id: I889da35c24919157e5b01225df10947c790ebf66 Reviewed-on: https://gerrit.libreoffice.org/32547 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'starmath/source')
-rw-r--r--starmath/source/visitors.cxx38
1 files changed, 19 insertions, 19 deletions
diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx
index 4679e67a408f..90ce467c6d79 100644
--- a/starmath/source/visitors.cxx
+++ b/starmath/source/visitors.cxx
@@ -1840,39 +1840,39 @@ void SmCloningVisitor::Visit( SmVerticalBraceNode* pNode )
// SmSelectionDrawingVisitor
SmSelectionDrawingVisitor::SmSelectionDrawingVisitor( OutputDevice& rDevice, SmNode* pTree, const Point& rOffset )
- : rDev( rDevice ) {
- bHasSelectionArea = false;
-
+ : mrDev( rDevice )
+ , mbHasSelectionArea( false )
+{
//Visit everything
SAL_WARN_IF( !pTree, "starmath", "pTree can't be null!" );
if( pTree )
pTree->Accept( this );
//Draw selection if there's any
- if( bHasSelectionArea ){
- aSelectionArea.Move( rOffset.X( ), rOffset.Y( ) );
+ if( mbHasSelectionArea ){
+ maSelectionArea.Move( rOffset.X( ), rOffset.Y( ) );
//Save device state
- rDev.Push( PushFlags::LINECOLOR | PushFlags::FILLCOLOR );
+ mrDev.Push( PushFlags::LINECOLOR | PushFlags::FILLCOLOR );
//Change colors
- rDev.SetLineColor( );
- rDev.SetFillColor( Color( COL_LIGHTGRAY ) );
+ mrDev.SetLineColor( );
+ mrDev.SetFillColor( Color( COL_LIGHTGRAY ) );
//Draw rectangle
- rDev.DrawRect( aSelectionArea );
+ mrDev.DrawRect( maSelectionArea );
//Restore device state
- rDev.Pop( );
+ mrDev.Pop( );
}
}
void SmSelectionDrawingVisitor::ExtendSelectionArea(const Rectangle& rArea)
{
- if ( ! bHasSelectionArea ) {
- aSelectionArea = rArea;
- bHasSelectionArea = true;
+ if ( ! mbHasSelectionArea ) {
+ maSelectionArea = rArea;
+ mbHasSelectionArea = true;
} else
- aSelectionArea.Union(rArea);
+ maSelectionArea.Union(rArea);
}
void SmSelectionDrawingVisitor::DefaultVisit( SmNode* pNode )
@@ -1897,19 +1897,19 @@ void SmSelectionDrawingVisitor::VisitChildren( SmNode* pNode )
void SmSelectionDrawingVisitor::Visit( SmTextNode* pNode )
{
if( pNode->IsSelected( ) ){
- rDev.Push( PushFlags::TEXTCOLOR | PushFlags::FONT );
+ mrDev.Push( PushFlags::TEXTCOLOR | PushFlags::FONT );
- rDev.SetFont( pNode->GetFont( ) );
+ mrDev.SetFont( pNode->GetFont( ) );
Point Position = pNode->GetTopLeft( );
- long left = Position.getX( ) + rDev.GetTextWidth( pNode->GetText( ), 0, pNode->GetSelectionStart( ) );
- long right = Position.getX( ) + rDev.GetTextWidth( pNode->GetText( ), 0, pNode->GetSelectionEnd( ) );
+ long left = Position.getX( ) + mrDev.GetTextWidth( pNode->GetText( ), 0, pNode->GetSelectionStart( ) );
+ long right = Position.getX( ) + mrDev.GetTextWidth( pNode->GetText( ), 0, pNode->GetSelectionEnd( ) );
long top = Position.getY( );
long bottom = top + pNode->GetHeight( );
Rectangle rect( left, top, right, bottom );
ExtendSelectionArea( rect );
- rDev.Pop( );
+ mrDev.Pop( );
}
}