diff options
Diffstat (limited to 'svx/source/sidebar/EmptyPanel.cxx')
-rw-r--r-- | svx/source/sidebar/EmptyPanel.cxx | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/svx/source/sidebar/EmptyPanel.cxx b/svx/source/sidebar/EmptyPanel.cxx index 784949a7ea3a..c39eb4ba2355 100644 --- a/svx/source/sidebar/EmptyPanel.cxx +++ b/svx/source/sidebar/EmptyPanel.cxx @@ -28,10 +28,10 @@ namespace svx { namespace sidebar { EmptyPanel::EmptyPanel (vcl::Window* pParent) : Control(pParent, SVX_RES(RID_SIDEBAR_EMPTY_PANEL)), - maMessageControl(this, SVX_RES(FT_MESSAGE)) + maMessageControl(VclPtr<FixedText>::Create(this, SVX_RES(FT_MESSAGE))) { - maMessageControl.setPosSizePixel(5,5, 250,15); - maMessageControl.SetStyle(WB_WORDBREAK);// | WB_NOMNEMONICS); + maMessageControl->setPosSizePixel(5,5, 250,15); + maMessageControl->SetStyle(WB_WORDBREAK);// | WB_NOMNEMONICS); //maMessageControl.GetStyle() // & ~(WB_NOMULTILINE | WB_PATHELLIPSIS) // | WB_WORDBREAK | WB_NOMNEMONICS); @@ -39,7 +39,7 @@ EmptyPanel::EmptyPanel (vcl::Window* pParent) SetBackground(Wallpaper()); - maMessageControl.Show(); + maMessageControl->Show(); Show(); } @@ -48,15 +48,20 @@ EmptyPanel::EmptyPanel (vcl::Window* pParent) EmptyPanel::~EmptyPanel() { + disposeOnce(); } - +void EmptyPanel::dispose() +{ + maMessageControl.disposeAndClear(); + Control::dispose(); +} void EmptyPanel::Resize() { const Size aSize (GetSizePixel()); - maMessageControl.SetSizePixel(aSize); + maMessageControl->SetSizePixel(aSize); } |