diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-04-29 08:58:38 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-04-29 09:27:55 +0900 |
commit | c57a5f310b6168b4fe262656ceb253f4566dd2d9 (patch) | |
tree | da82c1fb7877a15d797b0c038c2b570138e46f43 /vcl | |
parent | cdb1fa88c8c960cfcc817a14e64c54ef6babeb59 (diff) |
delegate RenderContext, invalidate - ilstbox
Change-Id: I9d47e828a784bf6b120b4b1e9df332ea85690a19
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/ilstbox.hxx | 6 | ||||
-rw-r--r-- | vcl/source/control/ilstbox.cxx | 9 |
2 files changed, 7 insertions, 8 deletions
diff --git a/vcl/inc/ilstbox.hxx b/vcl/inc/ilstbox.hxx index 37a4a4327fee..7e2410a04aad 100644 --- a/vcl/inc/ilstbox.hxx +++ b/vcl/inc/ilstbox.hxx @@ -244,14 +244,14 @@ protected: virtual void MouseButtonDown( const MouseEvent& rMEvt ) SAL_OVERRIDE; virtual void MouseMove( const MouseEvent& rMEvt ) SAL_OVERRIDE; virtual void Tracking( const TrackingEvent& rTEvt ) SAL_OVERRIDE; - virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) SAL_OVERRIDE; + virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) SAL_OVERRIDE; virtual void Resize() SAL_OVERRIDE; virtual void GetFocus() SAL_OVERRIDE; virtual void LoseFocus() SAL_OVERRIDE; bool SelectEntries( sal_Int32 nSelect, LB_EVENT_TYPE eLET, bool bShift = false, bool bCtrl = false, bool bSelectPosChange = false ); - void ImplPaint( sal_Int32 nPos, bool bErase = false, bool bLayout = false ); - void ImplDoPaint( const Rectangle& rRect, bool bLayout = false ); + void ImplPaint(sal_Int32 nPos, bool bErase = false, bool bLayout = false); + void ImplDoPaint(vcl::RenderContext& rRenderContext, const Rectangle& rRect, bool bLayout = false); void ImplCalcMetrics(); void ImplUpdateEntryMetrics( ImplEntryType& rEntry ); void ImplCallSelect(); diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx index 01a18d211d53..c2d53ce022fc 100644 --- a/vcl/source/control/ilstbox.cxx +++ b/vcl/source/control/ilstbox.cxx @@ -1880,11 +1880,10 @@ void ImplListBoxWindow::DrawEntry( sal_Int32 nPos, bool bDrawImage, bool bDrawTe void ImplListBoxWindow::FillLayoutData() const { mpControlData->mpLayoutData = new vcl::ControlLayoutData(); - const_cast<ImplListBoxWindow*>(this)-> - ImplDoPaint( Rectangle( Point( 0, 0 ), GetOutputSize() ), true ); + const_cast<ImplListBoxWindow*>(this)->Invalidate(Rectangle(Point(0, 0), GetOutputSize())); } -void ImplListBoxWindow::ImplDoPaint( const Rectangle& rRect, bool bLayout ) +void ImplListBoxWindow::ImplDoPaint(vcl::RenderContext& /*rRenderContext*/, const Rectangle& rRect, bool bLayout) { sal_Int32 nCount = mpEntryList->GetEntryCount(); @@ -1914,9 +1913,9 @@ void ImplListBoxWindow::ImplDoPaint( const Rectangle& rRect, bool bLayout ) ImplShowFocusRect(); } -void ImplListBoxWindow::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& rRect ) +void ImplListBoxWindow::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) { - ImplDoPaint( rRect ); + ImplDoPaint(rRenderContext, rRect); } sal_uInt16 ImplListBoxWindow::GetDisplayLineCount() const |