summaryrefslogtreecommitdiff
path: root/sw
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 /sw
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 'sw')
-rw-r--r--sw/source/core/view/viewsh.cxx8
-rw-r--r--sw/source/uibase/uiview/pview.cxx2
-rw-r--r--sw/source/uibase/uiview/viewport.cxx2
-rw-r--r--sw/source/uibase/wrtsh/wrtsh2.cxx4
4 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx
index 125bffeddf9b..cef9ecffb3e6 100644
--- a/sw/source/core/view/viewsh.cxx
+++ b/sw/source/core/view/viewsh.cxx
@@ -299,7 +299,7 @@ void SwViewShell::ImplEndAction( const bool bIdleEnd )
SolarMutexGuard aGuard;
bool bPaintsFromSystem = maInvalidRect.HasArea();
- GetWin()->Update();
+ GetWin()->PaintImmediately();
if ( maInvalidRect.HasArea() )
{
if ( bPaintsFromSystem )
@@ -1225,7 +1225,7 @@ void SwViewShell::VisPortChgd( const SwRect &rRect)
Imp()->GetDrawView()->VisAreaChanged( GetWin() );
Imp()->GetDrawView()->SetActualWin( GetWin() );
}
- GetWin()->Update();
+ GetWin()->PaintImmediately();
if ( pPostItMgr ) // #i88070#
{
@@ -1416,7 +1416,7 @@ bool SwViewShell::SmoothScroll( long lXDiff, long lYDiff, const tools::Rectangle
}
Imp()->m_bSmoothUpdate = true;
- GetWin()->Update();
+ GetWin()->PaintImmediately();
Imp()->m_bSmoothUpdate = false;
if(!Imp()->m_bStopSmooth)
@@ -1455,7 +1455,7 @@ bool SwViewShell::SmoothScroll( long lXDiff, long lYDiff, const tools::Rectangle
}
}
pVout.disposeAndClear();
- GetWin()->Update();
+ GetWin()->PaintImmediately();
if ( !Imp()->m_bStopSmooth )
--mnLockPaint;
SetFirstVisPageInvalid();
diff --git a/sw/source/uibase/uiview/pview.cxx b/sw/source/uibase/uiview/pview.cxx
index 598d275d6089..672523a664fe 100644
--- a/sw/source/uibase/uiview/pview.cxx
+++ b/sw/source/uibase/uiview/pview.cxx
@@ -1370,7 +1370,7 @@ void SwPagePreview::SetVisArea( const tools::Rectangle &rRect )
// because then we do not really paint but the rectangles are just
// bookmarked (in document coordinates).
if( GetViewShell()->ActionPend() )
- m_pViewWin->Update();
+ m_pViewWin->PaintImmediately();
// Set at View-Win the current size
m_aVisArea = aLR;
diff --git a/sw/source/uibase/uiview/viewport.cxx b/sw/source/uibase/uiview/viewport.cxx
index 7f51a28b6c3c..49fe620c66af 100644
--- a/sw/source/uibase/uiview/viewport.cxx
+++ b/sw/source/uibase/uiview/viewport.cxx
@@ -235,7 +235,7 @@ void SwView::SetVisArea( const tools::Rectangle &rRect, bool bUpdateScrollbar )
// shell, because then it is not really drawn but the rectangles will
// be only marked (in document coordinates).
if ( m_pWrtShell && m_pWrtShell->ActionPend() )
- m_pWrtShell->GetWin()->Update();
+ m_pWrtShell->GetWin()->PaintImmediately();
m_aVisArea = aLR;
diff --git a/sw/source/uibase/wrtsh/wrtsh2.cxx b/sw/source/uibase/wrtsh/wrtsh2.cxx
index 951989e4f108..5dc536a957be 100644
--- a/sw/source/uibase/wrtsh/wrtsh2.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh2.cxx
@@ -280,7 +280,7 @@ bool SwWrtShell::StartInputFieldDlg(SwField* pField, bool bPrevButton, bool bNex
}
pDlg.disposeAndClear();
- GetWin()->Update();
+ GetWin()->PaintImmediately();
return bRet;
}
@@ -301,7 +301,7 @@ bool SwWrtShell::StartDropDownFieldDlg(SwField* pField, bool bPrevButton, bool b
pDlg.disposeAndClear();
bool bRet = RET_CANCEL == nRet;
- GetWin()->Update();
+ GetWin()->PaintImmediately();
if(RET_YES == nRet)
{
GetView().GetViewFrame()->GetDispatcher()->Execute(FN_EDIT_FIELD, SfxCallMode::SYNCHRON);