summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-04-28 12:53:27 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-04-29 09:24:20 +0900
commit9905a8b953953b9ec5e123a17997d5931978acfe (patch)
tree8f31ba1b0e1aa6a024a02e580d0a350cb363c986 /svtools
parentf50fd9692ed7b9632c0f8dad9508f5a207679be4 (diff)
replace Paint calls to Invalidate + fix compilation
Change-Id: Id716c47d56922ab6ce0c3adb3d426ea814980674
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/brwbox/datwin.hxx2
-rw-r--r--svtools/source/contnr/simptabl.cxx4
-rw-r--r--svtools/source/contnr/svtabbx.cxx4
-rw-r--r--svtools/source/contnr/treelistbox.cxx4
-rw-r--r--svtools/source/control/ruler.cxx20
-rw-r--r--svtools/source/control/tabbar.cxx6
6 files changed, 20 insertions, 20 deletions
diff --git a/svtools/source/brwbox/datwin.hxx b/svtools/source/brwbox/datwin.hxx
index a821ef8fc501..27b1eb10a218 100644
--- a/svtools/source/brwbox/datwin.hxx
+++ b/svtools/source/brwbox/datwin.hxx
@@ -188,7 +188,7 @@ inline void BrowserDataWin::Repaint()
{
if ( GetUpdateMode() )
Update();
- Paint( Rectangle( Point(), GetOutputSizePixel() ) );
+ Invalidate(Rectangle(Point(), GetOutputSizePixel()));
}
diff --git a/svtools/source/contnr/simptabl.cxx b/svtools/source/contnr/simptabl.cxx
index 6237afa993c6..6a42aa3341e3 100644
--- a/svtools/source/contnr/simptabl.cxx
+++ b/svtools/source/contnr/simptabl.cxx
@@ -190,9 +190,9 @@ void SvSimpleTable::SetTabs(const long* pTabs, MapUnit eMapUnit)
SvHeaderTabListBox::SetTabs(pTabs,eMapUnit);
}
-void SvSimpleTable::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& rRect )
+void SvSimpleTable::Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect )
{
- SvHeaderTabListBox::Paint(rRect );
+ SvHeaderTabListBox::Paint(rRenderContext, rRect);
sal_uInt16 nPrivTabCount = TabCount();
diff --git a/svtools/source/contnr/svtabbx.cxx b/svtools/source/contnr/svtabbx.cxx
index f5e603cf34f7..09430f193378 100644
--- a/svtools/source/contnr/svtabbx.cxx
+++ b/svtools/source/contnr/svtabbx.cxx
@@ -537,13 +537,13 @@ void SvHeaderTabListBox::dispose()
-void SvHeaderTabListBox::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& rRect )
+void SvHeaderTabListBox::Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect )
{
if ( m_bFirstPaint )
{
m_bFirstPaint = false;
}
- SvTabListBox::Paint( rRect );
+ SvTabListBox::Paint(rRenderContext, rRect);
}
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index aecf1f7746c4..6bef56e00490 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -3837,8 +3837,8 @@ void SvTreeListBox::EnableList( bool _bEnable )
{
// call base class method
Window::Enable(_bEnable);
- // then paint immediately
- Paint( Rectangle( Point(), GetSizePixel() ) );
+ // then invalidate
+ Invalidate(Rectangle(Point(), GetSizePixel()));
}
::com::sun::star::uno::Reference< XAccessible > SvTreeListBox::CreateAccessible()
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index 28f57db3686b..4b802def8318 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -1944,7 +1944,7 @@ void Ruler::ImplDrag( const Point& rPos )
Drag();
// and redraw
- Paint(Rectangle());
+ Invalidate();
// reset the data as before cancel
*mpDragData = aTempData;
@@ -1965,7 +1965,7 @@ void Ruler::ImplDrag( const Point& rPos )
// redraw
if ( mbFormat )
- Paint(Rectangle());
+ Invalidate();
}
}
@@ -1994,7 +1994,7 @@ void Ruler::ImplEndDrag()
mnStartDragPos = 0;
// redraw
- Paint(Rectangle());
+ Invalidate();
}
IMPL_LINK_NOARG(Ruler, ImplUpdateHdl)
@@ -2005,7 +2005,7 @@ IMPL_LINK_NOARG(Ruler, ImplUpdateHdl)
if ( mnUpdateFlags & RULER_UPDATE_DRAW )
{
mnUpdateFlags = 0;
- Paint(Rectangle());
+ Invalidate();
}
else if ( mnUpdateFlags & RULER_UPDATE_LINES )
{
@@ -2027,7 +2027,7 @@ void Ruler::MouseButtonDown( const MouseEvent& rMEvt )
// update ruler
if ( mbFormat )
{
- Paint(Rectangle());
+ Invalidate();
mnUpdateFlags &= ~RULER_UPDATE_DRAW;
}
@@ -2135,7 +2135,7 @@ void Ruler::MouseMove( const MouseEvent& rMEvt )
if ( mbFormat )
{
- Paint(Rectangle());
+ Invalidate();
mnUpdateFlags &= ~RULER_UPDATE_DRAW;
}
mxPreviousHitTest.swap(mxCurrentHitTest);
@@ -2262,7 +2262,7 @@ void Ruler::StateChanged( StateChangedType nType )
else if ( nType == StateChangedType::UPDATEMODE )
{
if ( IsReallyVisible() && IsUpdateMode() )
- Paint(Rectangle());
+ Invalidate();
}
else if ( (nType == StateChangedType::ZOOM) ||
(nType == StateChangedType::CONTROLFONT) )
@@ -2364,7 +2364,7 @@ bool Ruler::StartDocDrag( const MouseEvent& rMEvt, RulerType eDragType )
// update ruler
if ( mbFormat )
{
- Paint(Rectangle());
+ Invalidate();
mnUpdateFlags &= ~RULER_UPDATE_DRAW;
}
@@ -2430,7 +2430,7 @@ RulerType Ruler::GetType( const Point& rPos, sal_uInt16* pAryPos )
// update ruler
if ( IsReallyVisible() && mbFormat )
{
- Paint(Rectangle());
+ Invalidate();
mnUpdateFlags &= ~RULER_UPDATE_DRAW;
}
@@ -2855,7 +2855,7 @@ RulerUnitData Ruler::GetCurrentRulerUnit() const
void Ruler::DrawTicks()
{
mbFormat = true;
- Paint(Rectangle());
+ Invalidate();
}
uno::Reference< XAccessible > Ruler::CreateAccessible()
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index 294d9240575e..547dada36dd9 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -2468,7 +2468,7 @@ sal_uInt16 TabBar::ShowDropPos( const Point& rPos )
Rectangle aRect( mnOffX, 0, mnLastOffX, maWinSize.Height() );
SetFillColor( GetBackground().GetColor() );
DrawRect( aRect );
- Paint( aRect );
+ Invalidate(aRect);
}
}
@@ -2545,7 +2545,7 @@ void TabBar::HideDropPos()
Rectangle aRect( nX-1, nY1, nX+3, nY2 );
vcl::Region aRegion( aRect );
SetClipRegion( aRegion );
- Paint( aRect );
+ Invalidate(aRect);
SetClipRegion();
}
if ( (mnDropPos > 0) && (mnDropPos < nItemCount+1) )
@@ -2556,7 +2556,7 @@ void TabBar::HideDropPos()
Rectangle aRect( nX-2, nY1, nX+1, nY2 );
vcl::Region aRegion( aRect );
SetClipRegion( aRegion );
- Paint( aRect );
+ Invalidate(aRect);
SetClipRegion();
}