diff options
author | Noel Grandin <noel@peralex.com> | 2015-01-26 13:20:24 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-09 21:57:38 +0100 |
commit | 45515c06d26d8a37e683f939b60198ee55343e55 (patch) | |
tree | 6609001e3d22866e0dd4dac1f480507d1cfa7b64 /starmath/inc/view.hxx | |
parent | 0cef43d2e425895746392c6f503c660a7ca1241c (diff) |
vcl: VclPtr conversion in starmath
Change-Id: I5d43afd893802db44d9d08d8acb64307c63b7eac
Diffstat (limited to 'starmath/inc/view.hxx')
-rw-r--r-- | starmath/inc/view.hxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx index 85bfbdb52194..8a1fdade04cf 100644 --- a/starmath/inc/view.hxx +++ b/starmath/inc/view.hxx @@ -95,6 +95,7 @@ private: public: SmGraphicWindow(SmViewShell* pShell); virtual ~SmGraphicWindow(); + virtual void dispose() SAL_OVERRIDE; // Window virtual void MouseButtonDown(const MouseEvent &rMEvt) SAL_OVERRIDE; @@ -159,7 +160,7 @@ public: class SmCmdBoxWindow : public SfxDockingWindow { - SmEditWindow aEdit; + VclPtr<SmEditWindow> aEdit; SmEditController aController; bool bExiting; @@ -187,10 +188,11 @@ public: Window *pParent); virtual ~SmCmdBoxWindow (); + virtual void dispose() SAL_OVERRIDE; void AdjustPosition(); - SmEditWindow& GetEditWindow() { return aEdit; } + SmEditWindow& GetEditWindow() { return *aEdit.get(); } SmViewShell *GetView(); }; @@ -231,7 +233,7 @@ class SmViewShell: public SfxViewShell std::unique_ptr<SmViewShell_Impl> pImpl; - SmGraphicWindow aGraphic; + VclPtr<SmGraphicWindow> aGraphic; SmGraphicController aGraphicController; OUString aStatusText; @@ -290,8 +292,8 @@ public: } SmEditWindow * GetEditWindow(); - SmGraphicWindow & GetGraphicWindow() { return aGraphic; } - const SmGraphicWindow & GetGraphicWindow() const { return aGraphic; } + SmGraphicWindow & GetGraphicWindow() { return *aGraphic.get(); } + const SmGraphicWindow & GetGraphicWindow() const { return *aGraphic.get(); } void SetStatusText(const OUString& rText); |