diff options
Diffstat (limited to 'cui/source/tabpages/align.cxx')
-rw-r--r-- | cui/source/tabpages/align.cxx | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/cui/source/tabpages/align.cxx b/cui/source/tabpages/align.cxx index 8a80c500e9f4..8d7329fe19b1 100644 --- a/cui/source/tabpages/align.cxx +++ b/cui/source/tabpages/align.cxx @@ -250,12 +250,44 @@ AlignmentTabPage::AlignmentTabPage( vcl::Window* pParent, const SfxItemSet& rCor AlignmentTabPage::~AlignmentTabPage() { + disposeOnce(); +} + +void AlignmentTabPage::dispose() +{ delete m_pOrientHlp; + m_pOrientHlp = NULL; + m_pLbHorAlign.clear(); + m_pFtIndent.clear(); + m_pEdIndent.clear(); + m_pFtVerAlign.clear(); + m_pLbVerAlign.clear(); + m_pCtrlDial.clear(); + m_pFtRotate.clear(); + m_pNfRotate.clear(); + m_pFtRefEdge.clear(); + m_pVsRefEdge.clear(); + m_pCbStacked.clear(); + m_pCbAsianMode.clear(); + m_pBoxDirection.clear(); + m_pBtnWrap.clear(); + m_pBtnHyphen.clear(); + m_pBtnShrink.clear(); + m_pLbFrameDir.clear(); + m_pFtBotLock.clear(); + m_pFtTopLock.clear(); + m_pFtCelLock.clear(); + m_pFtABCD.clear(); + m_pAlignmentFrame.clear(); + m_pOrientFrame.clear(); + m_pPropertiesFrame.clear(); + SfxTabPage::dispose(); } -SfxTabPage* AlignmentTabPage::Create( vcl::Window* pParent, const SfxItemSet* rAttrSet ) +VclPtr<SfxTabPage> AlignmentTabPage::Create( vcl::Window* pParent, const SfxItemSet* rAttrSet ) { - return new AlignmentTabPage( pParent, *rAttrSet ); + return VclPtr<SfxTabPage>( new AlignmentTabPage( pParent, *rAttrSet ), + SAL_NO_ACQUIRE ); } bool AlignmentTabPage::FillItemSet( SfxItemSet* rSet ) |