diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-04-28 11:00:54 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-04-29 09:19:47 +0900 |
commit | f50fd9692ed7b9632c0f8dad9508f5a207679be4 (patch) | |
tree | 50c9598cb186708215899b45c43623447b7b60ff /starmath | |
parent | d36da8c19378f4772c896ca4df94117077e823d6 (diff) |
mass rewrite Paint(Rect&) to Paint(RenderContext&, Rect&)
Change-Id: Ia1667246064d11827dbd149def15e5bf08b119b8
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/inc/ElementsDockingWindow.hxx | 2 | ||||
-rw-r--r-- | starmath/inc/dialog.hxx | 8 | ||||
-rw-r--r-- | starmath/inc/edit.hxx | 2 | ||||
-rw-r--r-- | starmath/inc/view.hxx | 4 | ||||
-rw-r--r-- | starmath/source/ElementsDockingWindow.cxx | 2 | ||||
-rw-r--r-- | starmath/source/dialog.cxx | 8 | ||||
-rw-r--r-- | starmath/source/edit.cxx | 2 | ||||
-rw-r--r-- | starmath/source/view.cxx | 4 |
8 files changed, 16 insertions, 16 deletions
diff --git a/starmath/inc/ElementsDockingWindow.hxx b/starmath/inc/ElementsDockingWindow.hxx index c29d85ca1a87..6877d81bdd04 100644 --- a/starmath/inc/ElementsDockingWindow.hxx +++ b/starmath/inc/ElementsDockingWindow.hxx @@ -81,7 +81,7 @@ class SmElementsControl : public Control static const sal_uInt16 aFormats[][2]; static const sal_uInt16 aOthers[][2]; - virtual void Paint(const Rectangle&) SAL_OVERRIDE; + virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) SAL_OVERRIDE; virtual void MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; virtual void MouseMove( const MouseEvent& rMEvt ) SAL_OVERRIDE; diff --git a/starmath/inc/dialog.hxx b/starmath/inc/dialog.hxx index 8093b9be3d5c..ec8633e980fb 100644 --- a/starmath/inc/dialog.hxx +++ b/starmath/inc/dialog.hxx @@ -79,7 +79,7 @@ public: class SmShowFont : public vcl::Window { - virtual void Paint(const Rectangle&) SAL_OVERRIDE; + virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) SAL_OVERRIDE; public: SmShowFont(vcl::Window *pParent, WinBits nStyle) @@ -279,7 +279,7 @@ class SmShowSymbolSetWindow : public Control void SetScrollBarRange(); Point OffsetPoint(const Point &rPoint) const; - virtual void Paint(const Rectangle&) SAL_OVERRIDE; + virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) SAL_OVERRIDE; virtual void MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; virtual void KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; virtual void Resize() SAL_OVERRIDE; @@ -324,7 +324,7 @@ class SmShowSymbol : public Control { Link aDblClickHdlLink; - virtual void Paint(const Rectangle&) SAL_OVERRIDE; + virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) SAL_OVERRIDE; virtual void MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; virtual void Resize() SAL_OVERRIDE; @@ -389,7 +389,7 @@ public: class SmShowChar : public Control { - virtual void Paint(const Rectangle&) SAL_OVERRIDE; + virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) SAL_OVERRIDE; virtual void Resize() SAL_OVERRIDE; public: diff --git a/starmath/inc/edit.hxx b/starmath/inc/edit.hxx index 17cea6de1857..7efd852b6c41 100644 --- a/starmath/inc/edit.hxx +++ b/starmath/inc/edit.hxx @@ -76,7 +76,7 @@ class SmEditWindow : public vcl::Window, public DropTargetHelper virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ) SAL_OVERRIDE; virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ) SAL_OVERRIDE; - virtual void Paint(const Rectangle& rRect) SAL_OVERRIDE; + virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) SAL_OVERRIDE; DECL_LINK(EditStatusHdl ,EditStatus *); DECL_LINK(ScrollHdl, ScrollBar *); diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx index 52f6c1e1df37..285ebc19d44b 100644 --- a/starmath/inc/view.hxx +++ b/starmath/inc/view.hxx @@ -80,7 +80,7 @@ protected: void SetFormulaDrawPos(const Point &rPos) { aFormulaDrawPos = rPos; } virtual void DataChanged( const DataChangedEvent& ) SAL_OVERRIDE; - virtual void Paint(const Rectangle&) SAL_OVERRIDE; + virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) SAL_OVERRIDE; virtual void KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; virtual void Command(const CommandEvent& rCEvt) SAL_OVERRIDE; virtual void StateChanged( StateChangedType eChanged ) SAL_OVERRIDE; @@ -173,7 +173,7 @@ protected : // Window virtual void GetFocus() SAL_OVERRIDE; virtual void Resize() SAL_OVERRIDE; - virtual void Paint(const Rectangle& rRect) SAL_OVERRIDE; + virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) SAL_OVERRIDE; virtual void StateChanged( StateChangedType nStateChange ) SAL_OVERRIDE; virtual Size CalcDockingSize(SfxChildAlignment eAlign) SAL_OVERRIDE; diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx index 4a5118a5b789..bbff05609fc5 100644 --- a/starmath/source/ElementsDockingWindow.cxx +++ b/starmath/source/ElementsDockingWindow.cxx @@ -254,7 +254,7 @@ void SmElementsControl::setVerticalMode(bool bVerticalMode) mbVerticalMode = bVerticalMode; } -void SmElementsControl::Paint(const Rectangle&) +void SmElementsControl::Paint(vcl::RenderContext& /*rRenderContext*/, const Rectangle&) { Push(); diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index a78f528978ef..f3cf0e760570 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -247,7 +247,7 @@ VclPtr<SfxTabPage> SmPrintOptionsTabPage::Create(vcl::Window* pWindow, const Sfx /**************************************************************************/ -void SmShowFont::Paint(const Rectangle& rRect ) +void SmShowFont::Paint(vcl::RenderContext& /*rRenderContext*/, const Rectangle& rRect ) { Window::Paint( rRect ); @@ -1172,7 +1172,7 @@ Point SmShowSymbolSetWindow::OffsetPoint(const Point &rPoint) const return Point(rPoint.X() + nXOffset, rPoint.Y() + nYOffset); } -void SmShowSymbolSetWindow::Paint(const Rectangle&) +void SmShowSymbolSetWindow::Paint(vcl::RenderContext& /*rRenderContext*/, const Rectangle&) { Push(PushFlags::MAPMODE); @@ -1427,7 +1427,7 @@ void SmShowSymbol::setFontSize(vcl::Font &rFont) const rFont.SetSize(Size(0, GetOutputSize().Height() - GetOutputSize().Height() / 3)); } -void SmShowSymbol::Paint(const Rectangle &rRect) +void SmShowSymbol::Paint(vcl::RenderContext& /*rRenderContext*/, const Rectangle &rRect) { Control::Paint( rRect ); @@ -1711,7 +1711,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeSmShowChar(vcl::Window return new SmShowChar(pParent, nWinStyle); } -void SmShowChar::Paint(const Rectangle &rRect) +void SmShowChar::Paint(vcl::RenderContext& /*rRenderContext*/, const Rectangle &rRect) { Control::Paint( rRect ); diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx index fa9ebaa138f9..cc0493072371 100644 --- a/starmath/source/edit.cxx +++ b/starmath/source/edit.cxx @@ -531,7 +531,7 @@ void SmEditWindow::KeyInput(const KeyEvent& rKEvt) } } -void SmEditWindow::Paint(const Rectangle& rRect) +void SmEditWindow::Paint(vcl::RenderContext& /*rRenderContext*/, const Rectangle& rRect) { if (!pEditView) CreateEditView(); diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index e3b5f6f64df2..c967936c2f5c 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -385,7 +385,7 @@ const SmNode * SmGraphicWindow::SetCursorPos(sal_uInt16 nRow, sal_uInt16 nCol) return pNode; } -void SmGraphicWindow::Paint(const Rectangle&) +void SmGraphicWindow::Paint(vcl::RenderContext& /*rRenderContext*/, const Rectangle&) { SAL_WARN_IF( !pViewShell, "starmath", "view shell missing" ); @@ -762,7 +762,7 @@ void SmCmdBoxWindow::Resize() Invalidate(); } -void SmCmdBoxWindow::Paint(const Rectangle& /*rRect*/) +void SmCmdBoxWindow::Paint(vcl::RenderContext& /*rRenderContext*/, const Rectangle& /*rRect*/) { Rectangle aRect = Rectangle(Point(0, 0), GetOutputSizePixel()); aRect.Left() += CMD_BOX_PADDING; |