diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-12 15:59:26 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-13 08:37:59 +0900 |
commit | 9130c6111b79ff67d26089ce75300d818e2999e5 (patch) | |
tree | 666db7ccad68f48c2166ee88fe18c7705fef16a0 /include/svx/graphctl.hxx | |
parent | eee24f6c5deec1a1dff30597567f6ae121d880fc (diff) |
refactor GraphCtrl to use RenderContext
Change-Id: Id0a3d24e7c6d6910b62f2950dcb7bd5cb67f59ad
Diffstat (limited to 'include/svx/graphctl.hxx')
-rw-r--r-- | include/svx/graphctl.hxx | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/include/svx/graphctl.hxx b/include/svx/graphctl.hxx index 36925677fe00..31f62f718265 100644 --- a/include/svx/graphctl.hxx +++ b/include/svx/graphctl.hxx @@ -125,37 +125,45 @@ public: class GraphCtrlUserCall : public SdrObjUserCall { - GraphCtrl& rWin; + GraphCtrl& rWin; public: - GraphCtrlUserCall( GraphCtrl& rGraphWin ) : rWin( rGraphWin ) {}; - virtual ~GraphCtrlUserCall() {}; + GraphCtrlUserCall(GraphCtrl& rGraphWin) + : rWin(rGraphWin) + {} - virtual void Changed( const SdrObject& rObj, SdrUserCallType eType, const Rectangle& rOldBoundRect ) SAL_OVERRIDE; + virtual ~GraphCtrlUserCall() + {} + + virtual void Changed(const SdrObject& rObj, SdrUserCallType eType, const Rectangle& rOldBoundRect) SAL_OVERRIDE; }; -SdrObjUserCall* GraphCtrl::GetSdrUserCall() { return pUserCall; } +SdrObjUserCall* GraphCtrl::GetSdrUserCall() +{ + return pUserCall; +} class GraphCtrlView : public SdrView { - GraphCtrl& rGraphCtrl; + GraphCtrl& rGraphCtrl; protected: - virtual void MarkListHasChanged() SAL_OVERRIDE - { - SdrView::MarkListHasChanged(); - rGraphCtrl.MarkListHasChanged(); - } + virtual void MarkListHasChanged() SAL_OVERRIDE + { + SdrView::MarkListHasChanged(); + rGraphCtrl.MarkListHasChanged(); + } public: + GraphCtrlView(SdrModel* pModel, GraphCtrl* pWindow) + : SdrView(pModel, pWindow) + , rGraphCtrl(*pWindow) + {} - GraphCtrlView( SdrModel* pModel, GraphCtrl* pWindow) : - SdrView ( pModel, pWindow ), - rGraphCtrl ( *pWindow ) {}; - - virtual ~GraphCtrlView() {}; + virtual ~GraphCtrlView() + {} }; #endif // INCLUDED_SVX_GRAPHCTL_HXX |