diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-05-22 16:33:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-05-23 17:33:53 +0200 |
commit | 2d428f28a1a6aa301b2243ed3ab936109582b2d3 (patch) | |
tree | ac9b43dc8be43348818efb91bf42aeb31bfa475d /include | |
parent | 80606c1706ef0fcb77ad4afcd0c1dbc298a5afc4 (diff) |
remove now unused GraphCtrl
Change-Id: I6d4aca59d5f9e24521876c36853b663b65a2d200
Reviewed-on: https://gerrit.libreoffice.org/72803
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/graphctl.hxx | 113 |
1 files changed, 0 insertions, 113 deletions
diff --git a/include/svx/graphctl.hxx b/include/svx/graphctl.hxx index d6b1d2de553e..1fa7adc4b3c4 100644 --- a/include/svx/graphctl.hxx +++ b/include/svx/graphctl.hxx @@ -27,21 +27,6 @@ #include <svx/svdview.hxx> #include <svx/svdobj.hxx> -class GraphCtrl; - -class GraphCtrlUserCall : public SdrObjUserCall -{ - GraphCtrl& rWin; - -public: - - GraphCtrlUserCall(GraphCtrl& rGraphWin) - : rWin(rGraphWin) - {} - - virtual void Changed(const SdrObject& rObj, SdrUserCallType eType, const tools::Rectangle& rOldBoundRect) override; -}; - class SvxGraphCtrl; class SvxGraphCtrlUserCall : public SdrObjUserCall @@ -59,84 +44,6 @@ public: class SvxGraphCtrlAccessibleContext; -class SVX_DLLPUBLIC GraphCtrl : public Control -{ - friend class GraphCtrlView; - friend class GraphCtrlUserCall; - - Graphic aGraphic; - Idle aUpdateIdle; - Link<GraphCtrl*,void> aMousePosLink; - Link<GraphCtrl*,void> aGraphSizeLink; - Link<GraphCtrl*,void> aUpdateLink; - MapMode const aMap100; - Size aGraphSize; - Point aMousePos; - std::unique_ptr<GraphCtrlUserCall> pUserCall; - SdrObjKind eObjKind; - sal_uInt16 nPolyEdit; - bool bEditMode; - bool mbSdrMode; - bool mbInIdleUpdate; - - DECL_LINK( UpdateHdl, Timer*, void ); - - rtl::Reference<SvxGraphCtrlAccessibleContext> mpAccContext; - -protected: - - std::unique_ptr<SdrModel> pModel; - std::unique_ptr<SdrView> pView; - - virtual void Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect ) override; - virtual void Resize() override; - virtual void KeyInput(const KeyEvent& rKEvt) override; - virtual void MouseButtonDown(const MouseEvent& rMEvt) override; - virtual void MouseButtonUp(const MouseEvent& rMEvt) override; - virtual void MouseMove(const MouseEvent& rMEvt) override; - - virtual void InitSdrModel(); - - virtual void SdrObjCreated( const SdrObject& rObj ); - virtual void SdrObjChanged( const SdrObject& rObj ); - virtual void MarkListHasChanged(); - - SdrObjUserCall* GetSdrUserCall() { return pUserCall.get(); } - -public: - - GraphCtrl( vcl::Window* pParent, WinBits nStyle ); - virtual ~GraphCtrl() override; - virtual void dispose() override; - - void SetGraphic( const Graphic& rGraphic, bool bNewModel = true ); - const Graphic& GetGraphic() const { return aGraphic; } - const Size& GetGraphicSize() const { return aGraphSize; } - - const Point& GetMousePos() const { return aMousePos; } - - void SetEditMode( const bool bEditMode ); - - void SetPolyEditMode( const sal_uInt16 nPolyEdit ); - sal_uInt16 GetPolyEditMode() const { return nPolyEdit; } - - void SetObjKind( const SdrObjKind eObjKind ); - - SdrModel* GetSdrModel() const { return pModel.get(); } - SdrView* GetSdrView() const { return pView.get(); } - SdrObject* GetSelectedSdrObject() const; - bool IsChanged() const { return mbSdrMode && pModel->IsChanged(); } - - void SetMousePosLink( const Link<GraphCtrl*,void>& rLink ) { aMousePosLink = rLink; } - - void SetGraphSizeLink( const Link<GraphCtrl*,void>& rLink ) { aGraphSizeLink = rLink; } - - void SetUpdateLink( const Link<GraphCtrl*,void>& rLink ) { aUpdateLink = rLink; } - void QueueIdleUpdate(); - - void SetSdrMode(bool b); -}; - class SVX_DLLPUBLIC SvxGraphCtrl : public weld::CustomWidgetController { friend class SvxGraphCtrlView; @@ -222,26 +129,6 @@ public: virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() override; }; -class GraphCtrlView : public SdrView -{ - GraphCtrl& rGraphCtrl; - -protected: - - virtual void MarkListHasChanged() override - { - SdrView::MarkListHasChanged(); - rGraphCtrl.MarkListHasChanged(); - } - -public: - GraphCtrlView(SdrModel& rSdrModel, GraphCtrl* pWindow) - : SdrView(rSdrModel, pWindow) - , rGraphCtrl(*pWindow) - { - } -}; - class SvxGraphCtrlView : public SdrView { SvxGraphCtrl& rGraphCtrl; |