summaryrefslogtreecommitdiff
path: root/sc/source/ui/pagedlg/tptable.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/pagedlg/tptable.cxx')
-rw-r--r--sc/source/ui/pagedlg/tptable.cxx31
1 files changed, 29 insertions, 2 deletions
diff --git a/sc/source/ui/pagedlg/tptable.cxx b/sc/source/ui/pagedlg/tptable.cxx
index 6de677e6cb52..910bc3f4423b 100644
--- a/sc/source/ui/pagedlg/tptable.cxx
+++ b/sc/source/ui/pagedlg/tptable.cxx
@@ -125,11 +125,38 @@ void ScTablePage::ShowImage()
ScTablePage::~ScTablePage()
{
+ disposeOnce();
}
-SfxTabPage* ScTablePage::Create( vcl::Window* pParent, const SfxItemSet* rCoreSet )
+void ScTablePage::dispose()
{
- return ( new ScTablePage( pParent, *rCoreSet ) );
+ m_pBtnTopDown.clear();
+ m_pBtnLeftRight.clear();
+ m_pBmpPageDir.clear();
+ m_pBtnPageNo.clear();
+ m_pEdPageNo.clear();
+ m_pBtnHeaders.clear();
+ m_pBtnGrid.clear();
+ m_pBtnNotes.clear();
+ m_pBtnObjects.clear();
+ m_pBtnCharts.clear();
+ m_pBtnDrawings.clear();
+ m_pBtnFormulas.clear();
+ m_pBtnNullVals.clear();
+ m_pLbScaleMode.clear();
+ m_pBxScaleAll.clear();
+ m_pEdScaleAll.clear();
+ m_pGrHeightWidth.clear();
+ m_pEdScalePageWidth.clear();
+ m_pEdScalePageHeight.clear();
+ m_pBxScalePageNum.clear();
+ m_pEdScalePageNum.clear();
+ SfxTabPage::dispose();
+}
+
+VclPtr<SfxTabPage> ScTablePage::Create( vcl::Window* pParent, const SfxItemSet* rCoreSet )
+{
+ return VclPtr<SfxTabPage>( new ScTablePage( pParent, *rCoreSet ), SAL_NO_ACQUIRE );
}
void ScTablePage::Reset( const SfxItemSet* rCoreSet )