diff options
Diffstat (limited to 'sc/source/ui/attrdlg/tabpages.cxx')
-rw-r--r-- | sc/source/ui/attrdlg/tabpages.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sc/source/ui/attrdlg/tabpages.cxx b/sc/source/ui/attrdlg/tabpages.cxx index ea485cbd6f14..90453a87656f 100644 --- a/sc/source/ui/attrdlg/tabpages.cxx +++ b/sc/source/ui/attrdlg/tabpages.cxx @@ -59,6 +59,20 @@ ScTabPageProtection::ScTabPageProtection(vcl::Window* pParent, const SfxItemSet& m_pBtnHidePrint->SetClickHdl( LINK( this, ScTabPageProtection, ButtonClickHdl ) ); } +ScTabPageProtection::~ScTabPageProtection() +{ + dispose(); +} + +void ScTabPageProtection::dispose() +{ + m_pBtnHideCell.clear(); + m_pBtnProtect.clear(); + m_pBtnHideFormula.clear(); + m_pBtnHidePrint.clear(); + SfxTabPage::dispose(); +} + SfxTabPage* ScTabPageProtection::Create( vcl::Window* pParent, const SfxItemSet* rAttrSet ) { return ( new ScTabPageProtection( pParent, *rAttrSet ) ); |