diff options
Diffstat (limited to 'svx/source/sidebar/graphic/GraphicPropertyPanel.cxx')
-rw-r--r-- | svx/source/sidebar/graphic/GraphicPropertyPanel.cxx | 35 |
1 files changed, 28 insertions, 7 deletions
diff --git a/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx b/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx index 55caa6c2feba..6b8a3d11d68d 100644 --- a/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx +++ b/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx @@ -66,12 +66,33 @@ GraphicPropertyPanel::GraphicPropertyPanel( Initialize(); } - - GraphicPropertyPanel::~GraphicPropertyPanel() { + disposeOnce(); } +void GraphicPropertyPanel::dispose() +{ + mpMtrBrightness.clear(); + mpMtrContrast.clear(); + mpLBColorMode.clear(); + mpMtrTrans.clear(); + mpMtrRed.clear(); + mpMtrGreen.clear(); + mpMtrBlue.clear(); + mpMtrGamma.clear(); + + maBrightControl.dispose(); + maContrastControl.dispose(); + maTransparenceControl.dispose(); + maRedControl.dispose(); + maGreenControl.dispose(); + maBlueControl.dispose(); + maGammaControl.dispose(); + maModeControl.dispose(); + + PanelLayout::dispose(); +} void GraphicPropertyPanel::Initialize() @@ -221,7 +242,7 @@ void GraphicPropertyPanel::SetupIcons() -GraphicPropertyPanel* GraphicPropertyPanel::Create ( +VclPtr<vcl::Window> GraphicPropertyPanel::Create ( vcl::Window* pParent, const css::uno::Reference<css::frame::XFrame>& rxFrame, SfxBindings* pBindings) @@ -233,10 +254,10 @@ GraphicPropertyPanel* GraphicPropertyPanel::Create ( if (pBindings == NULL) throw lang::IllegalArgumentException("no SfxBindings given to GraphicPropertyPanel::Create", NULL, 2); - return new GraphicPropertyPanel( - pParent, - rxFrame, - pBindings); + return VclPtr<GraphicPropertyPanel>::Create( + pParent, + rxFrame, + pBindings); } |