diff options
Diffstat (limited to 'sfx2/source/sidebar/TitleBar.hxx')
-rw-r--r-- | sfx2/source/sidebar/TitleBar.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sfx2/source/sidebar/TitleBar.hxx b/sfx2/source/sidebar/TitleBar.hxx index cf50dfe74def..df61a02da6e0 100644 --- a/sfx2/source/sidebar/TitleBar.hxx +++ b/sfx2/source/sidebar/TitleBar.hxx @@ -35,6 +35,7 @@ public: vcl::Window* pParentWindow, const sidebar::Paint& rInitialBackgroundPaint); virtual ~TitleBar (void); + virtual void dispose() SAL_OVERRIDE; void SetTitle (const ::rtl::OUString& rsTitle); void SetIcon (const Image& rIcon); @@ -48,11 +49,11 @@ public: long nHeight, sal_uInt16 nFlags = WINDOW_POSSIZE_ALL) SAL_OVERRIDE; - ToolBox& GetToolBox (void) { return maToolBox;} - const ToolBox& GetToolBox (void) const { return maToolBox;} + ToolBox& GetToolBox (void) { return *maToolBox.get();} + const ToolBox& GetToolBox (void) const { return *maToolBox.get();} protected: - SidebarToolBox maToolBox; + VclPtr<SidebarToolBox> maToolBox; ::rtl::OUString msTitle; virtual Rectangle GetTitleArea (const Rectangle& rTitleBarBox) = 0; |