summaryrefslogtreecommitdiff
path: root/sw/source/uibase/sidebar/ThemePanel.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/sidebar/ThemePanel.hxx')
-rw-r--r--sw/source/uibase/sidebar/ThemePanel.hxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sw/source/uibase/sidebar/ThemePanel.hxx b/sw/source/uibase/sidebar/ThemePanel.hxx
index ed5c19df39f3..a14ac51de4ae 100644
--- a/sw/source/uibase/sidebar/ThemePanel.hxx
+++ b/sw/source/uibase/sidebar/ThemePanel.hxx
@@ -42,7 +42,7 @@ class ThemePanel : public PanelLayout,
public sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
{
public:
- static ThemePanel* Create(vcl::Window* pParent,
+ static VclPtr<vcl::Window> Create(vcl::Window* pParent,
const css::uno::Reference<css::frame::XFrame>& rxFrame,
SfxBindings* pBindings);
@@ -62,12 +62,13 @@ private:
SfxBindings* pBindings);
virtual ~ThemePanel();
+ virtual void dispose() SAL_OVERRIDE;
SfxBindings* mpBindings;
- ListBox* mpListBoxFonts;
- ListBox* mpListBoxColors;
- PushButton* mpApplyButton;
+ VclPtr<ListBox> mpListBoxFonts;
+ VclPtr<ListBox> mpListBoxColors;
+ VclPtr<PushButton> mpApplyButton;
DECL_LINK(ClickHdl, void*);
};