diff options
Diffstat (limited to 'sc/source/ui/optdlg/tpprint.cxx')
-rw-r--r-- | sc/source/ui/optdlg/tpprint.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sc/source/ui/optdlg/tpprint.cxx b/sc/source/ui/optdlg/tpprint.cxx index c3f640cdfeb8..e38c830431d0 100644 --- a/sc/source/ui/optdlg/tpprint.cxx +++ b/sc/source/ui/optdlg/tpprint.cxx @@ -41,11 +41,20 @@ ScTpPrintOptions::ScTpPrintOptions( vcl::Window* pParent, ScTpPrintOptions::~ScTpPrintOptions() { + disposeOnce(); } -SfxTabPage* ScTpPrintOptions::Create( vcl::Window* pParent, const SfxItemSet* rAttrSet ) +void ScTpPrintOptions::dispose() { - return new ScTpPrintOptions( pParent, *rAttrSet ); + m_pSkipEmptyPagesCB.clear(); + m_pSelectedSheetsCB.clear(); + m_pForceBreaksCB.clear(); + SfxTabPage::dispose(); +} + +VclPtr<SfxTabPage> ScTpPrintOptions::Create( vcl::Window* pParent, const SfxItemSet* rAttrSet ) +{ + return VclPtr<SfxTabPage>(new ScTpPrintOptions( pParent, *rAttrSet ), SAL_NO_ACQUIRE); } SfxTabPage::sfxpg ScTpPrintOptions::DeactivatePage( SfxItemSet* pSetP ) |