summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/tabpages.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/inc/tabpages.hxx')
-rw-r--r--sc/source/ui/inc/tabpages.hxx13
1 files changed, 8 insertions, 5 deletions
diff --git a/sc/source/ui/inc/tabpages.hxx b/sc/source/ui/inc/tabpages.hxx
index 69f12bd23592..c2f9c38d1e66 100644
--- a/sc/source/ui/inc/tabpages.hxx
+++ b/sc/source/ui/inc/tabpages.hxx
@@ -28,12 +28,15 @@ class ScTabPageProtection : public SfxTabPage
{
static const sal_uInt16 pProtectionRanges[];
public:
- static SfxTabPage* Create ( vcl::Window* pParent,
+ static VclPtr<SfxTabPage> Create ( vcl::Window* pParent,
const SfxItemSet* rAttrSet );
static const sal_uInt16* GetRanges () { return pProtectionRanges; }
virtual bool FillItemSet ( SfxItemSet* rCoreAttrs ) SAL_OVERRIDE;
virtual void Reset ( const SfxItemSet* ) SAL_OVERRIDE;
+ virtual ~ScTabPageProtection();
+ virtual void dispose() SAL_OVERRIDE;
+
protected:
using SfxTabPage::DeactivatePage;
virtual sfxpg DeactivatePage ( SfxItemSet* pSet = NULL ) SAL_OVERRIDE;
@@ -42,10 +45,10 @@ private:
ScTabPageProtection( vcl::Window* pParent,
const SfxItemSet& rCoreAttrs );
private:
- TriStateBox* m_pBtnHideCell;
- TriStateBox* m_pBtnProtect;
- TriStateBox* m_pBtnHideFormula;
- TriStateBox* m_pBtnHidePrint;
+ VclPtr<TriStateBox> m_pBtnHideCell;
+ VclPtr<TriStateBox> m_pBtnProtect;
+ VclPtr<TriStateBox> m_pBtnHideFormula;
+ VclPtr<TriStateBox> m_pBtnHidePrint;
// current status:
bool bTriEnabled; // if before - DontCare
bool bDontCare; // all in TriState