From a0ba87f92d27d9096c14c3d422b1efe9c17d9b9b Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Mon, 11 May 2015 11:17:18 +0900 Subject: refactor HeadBar to use RenderContext Change-Id: Ica05591754633fc64216aecbdf8010800133dfd4 --- include/svtools/headbar.hxx | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'include') diff --git a/include/svtools/headbar.hxx b/include/svtools/headbar.hxx index 0f411f264780..cd99e317c9f0 100644 --- a/include/svtools/headbar.hxx +++ b/include/svtools/headbar.hxx @@ -271,14 +271,10 @@ private: using Window::ImplHitTest; SVT_DLLPRIVATE sal_uInt16 ImplHitTest( const Point& rPos, long& nMouseOff, sal_uInt16& nPos ) const; SVT_DLLPRIVATE void ImplInvertDrag( sal_uInt16 nStartPos, sal_uInt16 nEndPos ); - SVT_DLLPRIVATE void ImplDrawItem( OutputDevice* pDev, - sal_uInt16 nPos, bool bHigh, bool bDrag, - const Rectangle& rItemRect, - const Rectangle* pRect, - sal_uLong nFlags ); - SVT_DLLPRIVATE void ImplDrawItem( sal_uInt16 nPos, bool bHigh = false, - bool bDrag = false, - const Rectangle* pRect = NULL ); + SVT_DLLPRIVATE void ImplDrawItem(vcl::RenderContext& rRenderContext, sal_uInt16 nPos, bool bHigh, bool bDrag, + const Rectangle& rItemRect, const Rectangle* pRect, sal_uLong nFlags); + SVT_DLLPRIVATE void ImplDrawItem(vcl::RenderContext& rRenderContext, sal_uInt16 nPos, bool bHigh = false, + bool bDrag = false, const Rectangle* pRect = NULL); SVT_DLLPRIVATE void ImplUpdate( sal_uInt16 nPos, bool bEnd = false, bool bDirect = false ); SVT_DLLPRIVATE void ImplStartDrag( const Point& rPos, bool bCommand ); @@ -293,7 +289,7 @@ public: 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 Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags ) SAL_OVERRIDE; virtual void Resize() SAL_OVERRIDE; virtual void Command( const CommandEvent& rCEvt ) SAL_OVERRIDE; -- cgit