summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-03-12 13:55:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-11 17:56:01 +0200
commitbe53f32655973c7a18824d5145eed992be788d2f (patch)
tree5ace1cd4952594b86485ecce44ea07550d78810c /sc
parent88629b55041b9e7ff5c94afeb2aae725a5898687 (diff)
rename vcl::Window::Update to PaintImmediately
To make the code easier to read. Change-Id: Iebc648150391939fba5d1cd815c72dbcf02ceec6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90378 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/colrowba.cxx4
-rw-r--r--sc/source/ui/view/drawview.cxx2
-rw-r--r--sc/source/ui/view/gridwin.cxx2
-rw-r--r--sc/source/ui/view/gridwin3.cxx2
-rw-r--r--sc/source/ui/view/tabview.cxx12
-rw-r--r--sc/source/ui/view/tabview4.cxx4
-rw-r--r--sc/source/ui/view/tabview5.cxx4
7 files changed, 15 insertions, 15 deletions
diff --git a/sc/source/ui/view/colrowba.cxx b/sc/source/ui/view/colrowba.cxx
index 9f248168fc5a..ed16810c7065 100644
--- a/sc/source/ui/view/colrowba.cxx
+++ b/sc/source/ui/view/colrowba.cxx
@@ -190,7 +190,7 @@ bool ScColBar::ResizeAllowed() const
void ScColBar::DrawInvert( long nDragPosP )
{
tools::Rectangle aRect( nDragPosP,0, nDragPosP+HDR_SLIDERSIZE-1,GetOutputSizePixel().Width()-1 );
- Update();
+ PaintImmediately();
Invert(aRect);
pTabView->GetViewData().GetView()->InvertVertical(meWhich,nDragPosP);
@@ -350,7 +350,7 @@ bool ScRowBar::ResizeAllowed() const
void ScRowBar::DrawInvert( long nDragPosP )
{
tools::Rectangle aRect( 0,nDragPosP, GetOutputSizePixel().Width()-1,nDragPosP+HDR_SLIDERSIZE-1 );
- Update();
+ PaintImmediately();
Invert(aRect);
pTabView->GetViewData().GetView()->InvertHorizontal(meWhich,nDragPosP);
diff --git a/sc/source/ui/view/drawview.cxx b/sc/source/ui/view/drawview.cxx
index 22a31a15e4c7..3fe21ca5dd33 100644
--- a/sc/source/ui/view/drawview.cxx
+++ b/sc/source/ui/view/drawview.cxx
@@ -513,7 +513,7 @@ void ScDrawView::MarkListHasChanged()
if(OUTDEV_WINDOW == rOutDev.GetOutDevType())
{
- static_cast<vcl::Window&>(rOutDev).Update();
+ static_cast<vcl::Window&>(rOutDev).PaintImmediately();
}
}
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 5e468e69f5a8..f1d64e6d639c 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -5135,7 +5135,7 @@ void ScGridWindow::RFMouseMove( const MouseEvent& rMEvt, bool bUp )
// only redraw new frame (synchronously)
pDocSh->Broadcast( ScIndexHint( SfxHintId::ScShowRangeFinder, nRFIndex ) );
- Update(); // what you move, will be seen immediately
+ PaintImmediately(); // what you move, will be seen immediately
}
// Timer for Scrolling
diff --git a/sc/source/ui/view/gridwin3.cxx b/sc/source/ui/view/gridwin3.cxx
index 7c6c6ad9a55e..fbb1bee09641 100644
--- a/sc/source/ui/view/gridwin3.cxx
+++ b/sc/source/ui/view/gridwin3.cxx
@@ -297,7 +297,7 @@ MapMode ScGridWindow::GetDrawMapMode( bool bForce )
void ScGridWindow::DrawAfterScroll()
{
- Update(); // always, so the behaviour with and without DrawingLayer is the same
+ PaintImmediately(); // always, so the behaviour with and without DrawingLayer is the same
ScDrawView* pDrView = pViewData->GetView()->GetScDrawView();
if (pDrView)
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index 7cbce3567ccf..bea2d3480d16 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -1189,7 +1189,7 @@ void ScTabView::ScrollX( long nDeltaX, ScHSplitPos eWhich, bool bUpdBars )
// already have painted the column/row bar with updated position. -
// Therefore call Update once before on column/row bar
if (pColBar[eWhich])
- pColBar[eWhich]->Update();
+ pColBar[eWhich]->PaintImmediately();
long nOldPos = aViewData.GetScrPos( nTrackX, 0, eWhich ).X();
aViewData.SetPosX( eWhich, nNewX );
@@ -1207,14 +1207,14 @@ void ScTabView::ScrollX( long nDeltaX, ScHSplitPos eWhich, bool bUpdBars )
if ( aViewData.GetVSplitMode() != SC_SPLIT_NONE )
pGridWin[SC_SPLIT_TOPRIGHT]->ScrollPixel( nDiff, 0 );
}
- if (pColBar[eWhich]) { pColBar[eWhich]->Scroll( nDiff,0 ); pColBar[eWhich]->Update(); }
+ if (pColBar[eWhich]) { pColBar[eWhich]->Scroll( nDiff,0 ); pColBar[eWhich]->PaintImmediately(); }
if (pColOutline[eWhich]) pColOutline[eWhich]->ScrollPixel( nDiff );
if (bUpdBars)
UpdateScrollBars();
}
if (nDeltaX==1 || nDeltaX==-1)
- pGridWin[aViewData.GetActivePart()]->Update();
+ pGridWin[aViewData.GetActivePart()]->PaintImmediately();
ShowAllCursors();
@@ -1273,7 +1273,7 @@ void ScTabView::ScrollY( long nDeltaY, ScVSplitPos eWhich, bool bUpdBars )
UpdateHeaderWidth( &eWhich, &nUNew ); // adjust row headers
if (pRowBar[eWhich])
- pRowBar[eWhich]->Update();
+ pRowBar[eWhich]->PaintImmediately();
long nOldPos = aViewData.GetScrPos( 0, nTrackY, eWhich ).Y();
aViewData.SetPosY( eWhich, nNewY );
@@ -1291,14 +1291,14 @@ void ScTabView::ScrollY( long nDeltaY, ScVSplitPos eWhich, bool bUpdBars )
if ( aViewData.GetHSplitMode() != SC_SPLIT_NONE )
pGridWin[SC_SPLIT_BOTTOMRIGHT]->ScrollPixel( 0, nDiff );
}
- if (pRowBar[eWhich]) { pRowBar[eWhich]->Scroll( 0,nDiff ); pRowBar[eWhich]->Update(); }
+ if (pRowBar[eWhich]) { pRowBar[eWhich]->Scroll( 0,nDiff ); pRowBar[eWhich]->PaintImmediately(); }
if (pRowOutline[eWhich]) pRowOutline[eWhich]->ScrollPixel( nDiff );
if (bUpdBars)
UpdateScrollBars();
}
if (nDeltaY==1 || nDeltaY==-1)
- pGridWin[aViewData.GetActivePart()]->Update();
+ pGridWin[aViewData.GetActivePart()]->PaintImmediately();
ShowAllCursors();
diff --git a/sc/source/ui/view/tabview4.cxx b/sc/source/ui/view/tabview4.cxx
index 45c7f3492a86..cb88d457b7cc 100644
--- a/sc/source/ui/view/tabview4.cxx
+++ b/sc/source/ui/view/tabview4.cxx
@@ -477,7 +477,7 @@ void ScTabView::InvertHorizontal( ScVSplitPos eWhich, long nDragPos )
if (pWin)
{
tools::Rectangle aRect( 0,nDragPos, pWin->GetOutputSizePixel().Width()-1,nDragPos+HDR_SLIDERSIZE-1 );
- pWin->Update();
+ pWin->PaintImmediately();
pWin->DoInvertRect( aRect ); // Pixel
}
}
@@ -492,7 +492,7 @@ void ScTabView::InvertVertical( ScHSplitPos eWhich, long nDragPos )
if (pWin)
{
tools::Rectangle aRect( nDragPos,0, nDragPos+HDR_SLIDERSIZE-1,pWin->GetOutputSizePixel().Height()-1 );
- pWin->Update();
+ pWin->PaintImmediately();
pWin->DoInvertRect( aRect ); // Pixel
}
}
diff --git a/sc/source/ui/view/tabview5.cxx b/sc/source/ui/view/tabview5.cxx
index b075b748f0e3..dfd5eccf726d 100644
--- a/sc/source/ui/view/tabview5.cxx
+++ b/sc/source/ui/view/tabview5.cxx
@@ -241,8 +241,8 @@ void ScTabView::MakeDrawView( TriState nForceDesignMode )
{
pGridWin[i]->SetMapMode(pGridWin[i]->GetDrawMapMode());
- pGridWin[i]->Update(); // because of Invalidate in DrawView ctor (ShowPage),
- // so that immediately can be drawn
+ pGridWin[i]->PaintImmediately(); // because of Invalidate in DrawView ctor (ShowPage),
+ // so that immediately can be drawn
}
SfxRequest aSfxRequest(SID_OBJECT_SELECT, SfxCallMode::SLOT, aViewData.GetViewShell()->GetPool());
SetDrawFuncPtr(new FuSelection(*aViewData.GetViewShell(), GetActiveWin(), pDrawView.get(),