From f50fd9692ed7b9632c0f8dad9508f5a207679be4 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Tue, 28 Apr 2015 11:00:54 +0900 Subject: mass rewrite Paint(Rect&) to Paint(RenderContext&, Rect&) Change-Id: Ia1667246064d11827dbd149def15e5bf08b119b8 --- basctl/source/basicide/baside2.cxx | 4 ++-- basctl/source/basicide/baside2.hxx | 12 ++++++------ basctl/source/basicide/baside2b.cxx | 8 ++++---- basctl/source/basicide/baside3.cxx | 2 +- basctl/source/basicide/linenumberwindow.cxx | 2 +- basctl/source/basicide/linenumberwindow.hxx | 2 +- basctl/source/inc/baside3.hxx | 2 +- 7 files changed, 16 insertions(+), 16 deletions(-) (limited to 'basctl') diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx index f6e491a03abe..23207dc67667 100644 --- a/basctl/source/basicide/baside2.cxx +++ b/basctl/source/basicide/baside2.cxx @@ -256,7 +256,7 @@ void ModulWindow::DoInit() } -void ModulWindow::Paint( const Rectangle& ) +void ModulWindow::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& ) { } @@ -1494,7 +1494,7 @@ void ModulWindowLayout::UpdateDebug (bool bBasicStopped) aStackWindow->UpdateCalls(); } -void ModulWindowLayout::Paint (Rectangle const&) +void ModulWindowLayout::Paint (vcl::RenderContext& /*rRenderContext*/, Rectangle const&) { DrawText(Point(), IDEResId(RID_STR_NOMODULE).toString()); } diff --git a/basctl/source/basicide/baside2.hxx b/basctl/source/basicide/baside2.hxx index 2d5afed4fb17..749bf2315f74 100644 --- a/basctl/source/basicide/baside2.hxx +++ b/basctl/source/basicide/baside2.hxx @@ -120,7 +120,7 @@ private: TextSelection GetLastHighlightPortionTextSelection(); protected: - virtual void Paint( const Rectangle& ) SAL_OVERRIDE; + virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& ) SAL_OVERRIDE; virtual void Resize() SAL_OVERRIDE; virtual void KeyInput( const KeyEvent& rKeyEvt ) SAL_OVERRIDE; virtual void MouseMove( const MouseEvent& rMEvt ) SAL_OVERRIDE; @@ -177,7 +177,7 @@ private: void setBackgroundColor(Color aColor); protected: - virtual void Paint( const Rectangle& ) SAL_OVERRIDE; + virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& ) SAL_OVERRIDE; BreakPoint* FindBreakPoint( const Point& rMousePos ); void ShowMarker( bool bShow ); virtual void MouseButtonDown( const MouseEvent& rMEvt ) SAL_OVERRIDE; @@ -233,7 +233,7 @@ private: protected: virtual void Resize() SAL_OVERRIDE; - virtual void Paint( const Rectangle& rRect ) SAL_OVERRIDE; + virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) SAL_OVERRIDE; DECL_LINK( ButtonHdl, ImageButton * ); DECL_LINK(TreeListHdl, void *); @@ -262,7 +262,7 @@ private: protected: virtual void Resize() SAL_OVERRIDE; - virtual void Paint( const Rectangle& rRect ) SAL_OVERRIDE; + virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) SAL_OVERRIDE; public: StackWindow (Layout* pParent); @@ -322,7 +322,7 @@ private: protected: virtual void Resize() SAL_OVERRIDE; virtual void GetFocus() SAL_OVERRIDE; - virtual void Paint( const Rectangle& ) SAL_OVERRIDE; + virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& ) SAL_OVERRIDE; virtual void DoInit() SAL_OVERRIDE; virtual void DoScroll( ScrollBar* pCurScrollBar ) SAL_OVERRIDE; @@ -439,7 +439,7 @@ public: protected: // Window: - virtual void Paint (const Rectangle& rRect) SAL_OVERRIDE; + virtual void Paint (vcl::RenderContext& rRenderContext, const Rectangle& rRect) SAL_OVERRIDE; // Layout: virtual void OnFirstSize (long nWidth, long nHeight) SAL_OVERRIDE; diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index fbf4da6470bf..6cbaaf5117ea 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -915,7 +915,7 @@ void EditorWindow::SetupAndShowCodeCompleteWnd( const std::vector< OUString >& a pEditView->GetWindow()->GrabFocus(); } -void EditorWindow::Paint( const Rectangle& rRect ) +void EditorWindow::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& rRect ) { if ( !pEditEngine ) // We need it now at latest CreateEditEngine(); @@ -1383,7 +1383,7 @@ BreakPointWindow::BreakPointWindow (vcl::Window* pParent, ModulWindow* pModulWin SetHelpId(HID_BASICIDE_BREAKPOINTWINDOW); } -void BreakPointWindow::Paint( const Rectangle& ) +void BreakPointWindow::Paint(vcl::RenderContext& /*rRenderContext*/, const Rectangle&) { if ( SyncYOffset() ) return; @@ -1691,7 +1691,7 @@ void WatchWindow::dispose() -void WatchWindow::Paint( const Rectangle& ) +void WatchWindow::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& ) { DrawText( Point( DWBORDER, 7 ), aWatchStr ); lcl_DrawIDEWindowFrame( this ); @@ -1938,7 +1938,7 @@ void StackWindow::dispose() -void StackWindow::Paint( const Rectangle& ) +void StackWindow::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& ) { DrawText( Point( DWBORDER, 7 ), aStackStr ); lcl_DrawIDEWindowFrame( this ); diff --git a/basctl/source/basicide/baside3.cxx b/basctl/source/basicide/baside3.cxx index fa99f7cd2855..1af65b64180b 100644 --- a/basctl/source/basicide/baside3.cxx +++ b/basctl/source/basicide/baside3.cxx @@ -110,7 +110,7 @@ void DialogWindow::LoseFocus() -void DialogWindow::Paint( const Rectangle& rRect ) +void DialogWindow::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& rRect ) { pEditor->Paint( rRect ); } diff --git a/basctl/source/basicide/linenumberwindow.cxx b/basctl/source/basicide/linenumberwindow.cxx index a2f01eea8795..03ee52029492 100644 --- a/basctl/source/basicide/linenumberwindow.cxx +++ b/basctl/source/basicide/linenumberwindow.cxx @@ -36,7 +36,7 @@ void LineNumberWindow::dispose() Window::dispose(); } -void LineNumberWindow::Paint( const Rectangle& ) +void LineNumberWindow::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& ) { if(SyncYOffset()) return; diff --git a/basctl/source/basicide/linenumberwindow.hxx b/basctl/source/basicide/linenumberwindow.hxx index 65498937eda8..ada976593556 100644 --- a/basctl/source/basicide/linenumberwindow.hxx +++ b/basctl/source/basicide/linenumberwindow.hxx @@ -26,7 +26,7 @@ private: virtual void DataChanged (DataChangedEvent const& rDCEvt) SAL_OVERRIDE; protected: - virtual void Paint( const Rectangle& ) SAL_OVERRIDE; + virtual void Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& ) SAL_OVERRIDE; public: LineNumberWindow (vcl::Window* pParent, ModulWindow* pModulWin); diff --git a/basctl/source/inc/baside3.hxx b/basctl/source/inc/baside3.hxx index de17eb08403c..7afe56da3c3b 100644 --- a/basctl/source/inc/baside3.hxx +++ b/basctl/source/inc/baside3.hxx @@ -62,7 +62,7 @@ private: OUString aCurPath; protected: - virtual void Paint( const Rectangle& ) SAL_OVERRIDE; + virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& ) SAL_OVERRIDE; virtual void Resize() SAL_OVERRIDE; virtual void MouseButtonDown( const MouseEvent& rMEvt ) SAL_OVERRIDE; -- cgit