Audit and correct misc. clears -> disposeAndClears.
Anything that used to be 'delete'd should be disposeAndCleared() in the new world.
This commit is contained in:
parent
1c4025babd
commit
c0a802b59e
@ -202,7 +202,7 @@ MediaControl::~MediaControl()
|
|||||||
void MediaControl::dispose()
|
void MediaControl::dispose()
|
||||||
{
|
{
|
||||||
maZoomToolBox->SetItemWindow( AVMEDIA_TOOLBOXITEM_ZOOM, NULL );
|
maZoomToolBox->SetItemWindow( AVMEDIA_TOOLBOXITEM_ZOOM, NULL );
|
||||||
mpZoomListBox.clear();
|
mpZoomListBox.disposeAndClear();
|
||||||
maTimeEdit.disposeAndClear();
|
maTimeEdit.disposeAndClear();
|
||||||
maZoomToolBox.disposeAndClear();
|
maZoomToolBox.disposeAndClear();
|
||||||
maVolumeSlider.disposeAndClear();
|
maVolumeSlider.disposeAndClear();
|
||||||
|
@ -1414,10 +1414,8 @@ DialogWindowLayout::~DialogWindowLayout()
|
|||||||
void DialogWindowLayout::dispose()
|
void DialogWindowLayout::dispose()
|
||||||
{
|
{
|
||||||
if (pPropertyBrowser)
|
if (pPropertyBrowser)
|
||||||
{
|
|
||||||
Remove(pPropertyBrowser);
|
Remove(pPropertyBrowser);
|
||||||
}
|
pPropertyBrowser.disposeAndClear();
|
||||||
pPropertyBrowser.clear();
|
|
||||||
pChild.clear();
|
pChild.clear();
|
||||||
Layout::dispose();
|
Layout::dispose();
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ ChartTypeDialog::~ChartTypeDialog()
|
|||||||
|
|
||||||
void ChartTypeDialog::dispose()
|
void ChartTypeDialog::dispose()
|
||||||
{
|
{
|
||||||
m_pChartTypeTabPage.clear();
|
m_pChartTypeTabPage.disposeAndClear();
|
||||||
ModalDialog::dispose();
|
ModalDialog::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ CreationWizardUnoDlg::CreationWizardUnoDlg( const uno::Reference< uno::XComponen
|
|||||||
CreationWizardUnoDlg::~CreationWizardUnoDlg()
|
CreationWizardUnoDlg::~CreationWizardUnoDlg()
|
||||||
{
|
{
|
||||||
SolarMutexGuard aSolarGuard;
|
SolarMutexGuard aSolarGuard;
|
||||||
m_pDialog.clear();
|
m_pDialog.disposeAndClear();
|
||||||
}
|
}
|
||||||
// lang::XServiceInfo
|
// lang::XServiceInfo
|
||||||
OUString SAL_CALL CreationWizardUnoDlg::getImplementationName()
|
OUString SAL_CALL CreationWizardUnoDlg::getImplementationName()
|
||||||
@ -268,7 +268,7 @@ void SAL_CALL CreationWizardUnoDlg::disposing()
|
|||||||
m_xParentWindow.clear();
|
m_xParentWindow.clear();
|
||||||
|
|
||||||
SolarMutexGuard aSolarGuard;
|
SolarMutexGuard aSolarGuard;
|
||||||
m_pDialog.clear();
|
m_pDialog.disposeAndClear();
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -164,13 +164,11 @@ DataSourceDialog::~DataSourceDialog()
|
|||||||
|
|
||||||
void DataSourceDialog::dispose()
|
void DataSourceDialog::dispose()
|
||||||
{
|
{
|
||||||
|
m_pRangeChooserTabePage.disposeAndClear();
|
||||||
|
m_pDataSourceTabPage.disposeAndClear();
|
||||||
if (m_pTabControl)
|
if (m_pTabControl)
|
||||||
{
|
|
||||||
m_nLastPageId = m_pTabControl->GetCurPageId();
|
m_nLastPageId = m_pTabControl->GetCurPageId();
|
||||||
}
|
m_pTabControl.disposeAndClear();
|
||||||
m_pRangeChooserTabePage.clear();
|
|
||||||
m_pDataSourceTabPage.clear();
|
|
||||||
m_pTabControl.clear();
|
|
||||||
m_pBtnOK.clear();
|
m_pBtnOK.clear();
|
||||||
TabDialog::dispose();
|
TabDialog::dispose();
|
||||||
}
|
}
|
||||||
|
@ -71,11 +71,11 @@ View3DDialog::~View3DDialog()
|
|||||||
|
|
||||||
void View3DDialog::dispose()
|
void View3DDialog::dispose()
|
||||||
{
|
{
|
||||||
|
m_pGeometry.disposeAndClear();
|
||||||
|
m_pAppearance.disposeAndClear();
|
||||||
|
m_pIllumination.disposeAndClear();
|
||||||
if (m_pTabControl)
|
if (m_pTabControl)
|
||||||
m_nLastPageId = m_pTabControl->GetCurPageId();
|
m_nLastPageId = m_pTabControl->GetCurPageId();
|
||||||
m_pGeometry.clear();
|
|
||||||
m_pAppearance.clear();
|
|
||||||
m_pIllumination.clear();
|
|
||||||
m_pTabControl.clear();
|
m_pTabControl.clear();
|
||||||
TabDialog::dispose();
|
TabDialog::dispose();
|
||||||
}
|
}
|
||||||
|
@ -83,7 +83,7 @@ void ChartWindow::dispose()
|
|||||||
x3DWindowProvider->setWindow(0);
|
x3DWindowProvider->setWindow(0);
|
||||||
x3DWindowProvider->update();
|
x3DWindowProvider->update();
|
||||||
}
|
}
|
||||||
m_pOpenGLWindow.clear();
|
m_pOpenGLWindow.disposeAndClear();
|
||||||
vcl::Window::dispose();
|
vcl::Window::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,13 +114,15 @@ void SvxHyperlinkTabPageBase::dispose()
|
|||||||
{
|
{
|
||||||
maTimer.Stop();
|
maTimer.Stop();
|
||||||
|
|
||||||
|
mpMarkWnd.disposeAndClear();
|
||||||
|
|
||||||
mpCbbFrame.clear();
|
mpCbbFrame.clear();
|
||||||
mpLbForm.clear();
|
mpLbForm.clear();
|
||||||
mpEdIndication.clear();
|
mpEdIndication.clear();
|
||||||
mpEdText.clear();
|
mpEdText.clear();
|
||||||
mpBtScript.clear();
|
mpBtScript.clear();
|
||||||
mpDialog.clear();
|
mpDialog.clear();
|
||||||
mpMarkWnd.clear();
|
|
||||||
IconChoicePage::dispose();
|
IconChoicePage::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -239,7 +239,7 @@ void SvxMultiPathDialog::dispose()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pRadioLB.clear();
|
m_pRadioLB.disposeAndClear();
|
||||||
m_pAddBtn.clear();
|
m_pAddBtn.clear();
|
||||||
m_pDelBtn.clear();
|
m_pDelBtn.clear();
|
||||||
ModalDialog::dispose();
|
ModalDialog::dispose();
|
||||||
|
@ -156,8 +156,8 @@ void CertPathDialog::dispose()
|
|||||||
delete pCertPath;
|
delete pCertPath;
|
||||||
pEntry = m_pCertPathList->Next( pEntry );
|
pEntry = m_pCertPathList->Next( pEntry );
|
||||||
}
|
}
|
||||||
|
m_pCertPathList.disposeAndClear();
|
||||||
m_pCertPathListContainer.clear();
|
m_pCertPathListContainer.clear();
|
||||||
m_pCertPathList.clear();
|
|
||||||
m_pAddBtn.clear();
|
m_pAddBtn.clear();
|
||||||
m_pOKBtn.clear();
|
m_pOKBtn.clear();
|
||||||
ModalDialog::dispose();
|
ModalDialog::dispose();
|
||||||
|
@ -170,7 +170,7 @@ void DbRegistrationOptionsPage::dispose()
|
|||||||
{
|
{
|
||||||
for ( sal_uInt16 i = 0; i < pPathBox->GetEntryCount(); ++i )
|
for ( sal_uInt16 i = 0; i < pPathBox->GetEntryCount(); ++i )
|
||||||
delete static_cast< DatabaseRegistration* >( pPathBox->GetEntry(i)->GetUserData() );
|
delete static_cast< DatabaseRegistration* >( pPathBox->GetEntry(i)->GetUserData() );
|
||||||
pPathBox.clear();
|
pPathBox.disposeAndClear();
|
||||||
m_pPathCtrl.clear();
|
m_pPathCtrl.clear();
|
||||||
m_pNew.clear();
|
m_pNew.clear();
|
||||||
m_pEdit.clear();
|
m_pEdit.clear();
|
||||||
|
@ -147,7 +147,7 @@ void SvxFontSubstTabPage::dispose()
|
|||||||
pCheckButtonData = NULL;
|
pCheckButtonData = NULL;
|
||||||
delete pConfig;
|
delete pConfig;
|
||||||
pConfig = NULL;
|
pConfig = NULL;
|
||||||
m_pCheckLB.clear();
|
m_pCheckLB.disposeAndClear();
|
||||||
m_pUseTableCB.clear();
|
m_pUseTableCB.clear();
|
||||||
m_pReplacements.clear();
|
m_pReplacements.clear();
|
||||||
m_pFont1CB.clear();
|
m_pFont1CB.clear();
|
||||||
|
@ -302,6 +302,8 @@ ColorConfigWindow_Impl::Chapter::Chapter(vcl::Window *pGrid,
|
|||||||
|
|
||||||
ColorConfigWindow_Impl::Chapter::~Chapter()
|
ColorConfigWindow_Impl::Chapter::~Chapter()
|
||||||
{
|
{
|
||||||
|
// FIXME: we had an horrible m_bOwnsWidget const
|
||||||
|
m_pText.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ColorConfigWindow_Impl::Chapter::Show(Wallpaper const& rBackWall)
|
void ColorConfigWindow_Impl::Chapter::Show(Wallpaper const& rBackWall)
|
||||||
@ -368,9 +370,9 @@ ColorConfigWindow_Impl::Entry::~Entry()
|
|||||||
{
|
{
|
||||||
if (m_bOwnsWidgets)
|
if (m_bOwnsWidgets)
|
||||||
{
|
{
|
||||||
m_pText.clear();
|
m_pText.disposeAndClear();
|
||||||
m_pColorList.clear();
|
m_pColorList.disposeAndClear();
|
||||||
m_pPreview.clear();
|
m_pPreview.disposeAndClear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -508,9 +510,9 @@ ColorConfigWindow_Impl::ColorConfigWindow_Impl(vcl::Window* pParent)
|
|||||||
void ColorConfigWindow_Impl::dispose()
|
void ColorConfigWindow_Impl::dispose()
|
||||||
{
|
{
|
||||||
disposeBuilder();
|
disposeBuilder();
|
||||||
m_pGrid.clear();
|
m_pGrid.clear();
|
||||||
m_pVScroll.clear();
|
m_pVScroll.clear();
|
||||||
m_pHeaderHB.clear();
|
m_pHeaderHB.clear();
|
||||||
VclContainer::dispose();
|
VclContainer::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -918,10 +920,10 @@ ColorConfigCtrl_Impl::~ColorConfigCtrl_Impl()
|
|||||||
|
|
||||||
void ColorConfigCtrl_Impl::dispose()
|
void ColorConfigCtrl_Impl::dispose()
|
||||||
{
|
{
|
||||||
m_pVScroll.clear();
|
m_pVScroll.disposeAndClear();
|
||||||
m_pScrollWindow.clear();
|
m_pScrollWindow.disposeAndClear();
|
||||||
m_pBody.clear();
|
m_pBody.disposeAndClear();
|
||||||
m_pHeaderHB.clear();
|
m_pHeaderHB.disposeAndClear();
|
||||||
VclVBox::dispose();
|
VclVBox::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -222,6 +222,7 @@ SvxProxyTabPage::~SvxProxyTabPage()
|
|||||||
|
|
||||||
void SvxProxyTabPage::dispose()
|
void SvxProxyTabPage::dispose()
|
||||||
{
|
{
|
||||||
|
mpCertPathDlg.disposeAndClear();
|
||||||
m_pProxyModeLB.clear();
|
m_pProxyModeLB.clear();
|
||||||
m_pHttpProxyFT.clear();
|
m_pHttpProxyFT.clear();
|
||||||
m_pHttpProxyED.clear();
|
m_pHttpProxyED.clear();
|
||||||
|
@ -207,7 +207,9 @@ SvxJavaOptionsPage::~SvxJavaOptionsPage()
|
|||||||
|
|
||||||
void SvxJavaOptionsPage::dispose()
|
void SvxJavaOptionsPage::dispose()
|
||||||
{
|
{
|
||||||
m_pJavaList.clear();
|
m_pJavaList.disposeAndClear();
|
||||||
|
m_pParamDlg.disposeAndClear();
|
||||||
|
m_pPathDlg.disposeAndClear();
|
||||||
ClearJavaInfo();
|
ClearJavaInfo();
|
||||||
#if HAVE_FEATURE_JAVA
|
#if HAVE_FEATURE_JAVA
|
||||||
std::vector< JavaInfo* >::iterator pIter;
|
std::vector< JavaInfo* >::iterator pIter;
|
||||||
@ -229,8 +231,6 @@ void SvxJavaOptionsPage::dispose()
|
|||||||
m_pExpertConfigBtn.clear();
|
m_pExpertConfigBtn.clear();
|
||||||
m_pExperimentalCB.clear();
|
m_pExperimentalCB.clear();
|
||||||
m_pMacroCB.clear();
|
m_pMacroCB.clear();
|
||||||
m_pParamDlg.clear();
|
|
||||||
m_pPathDlg.clear();
|
|
||||||
SfxTabPage::dispose();
|
SfxTabPage::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -256,7 +256,7 @@ void SvxPathTabPage::dispose()
|
|||||||
{
|
{
|
||||||
for ( sal_uInt16 i = 0; i < pPathBox->GetEntryCount(); ++i )
|
for ( sal_uInt16 i = 0; i < pPathBox->GetEntryCount(); ++i )
|
||||||
delete static_cast<PathUserData_Impl*>(pPathBox->GetEntry(i)->GetUserData());
|
delete static_cast<PathUserData_Impl*>(pPathBox->GetEntry(i)->GetUserData());
|
||||||
pPathBox.clear();
|
pPathBox.disposeAndClear();
|
||||||
}
|
}
|
||||||
delete pImpl;
|
delete pImpl;
|
||||||
pImpl = NULL;
|
pImpl = NULL;
|
||||||
|
@ -575,6 +575,7 @@ void OfaTreeOptionsDialog::dispose()
|
|||||||
SvtViewOptions aTabPageOpt( E_TABPAGE, OUString::number( pPageInfo->m_nPageId) );
|
SvtViewOptions aTabPageOpt( E_TABPAGE, OUString::number( pPageInfo->m_nPageId) );
|
||||||
SetViewOptUserItem( aTabPageOpt, aPageData );
|
SetViewOptUserItem( aTabPageOpt, aPageData );
|
||||||
}
|
}
|
||||||
|
pPageInfo->m_pPage.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pPageInfo->m_nPageId == RID_SFXPAGE_LINGU)
|
if (pPageInfo->m_nPageId == RID_SFXPAGE_LINGU)
|
||||||
@ -587,6 +588,8 @@ void OfaTreeOptionsDialog::dispose()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pPageInfo->m_pExtPage.disposeAndClear();
|
||||||
|
|
||||||
delete pPageInfo;
|
delete pPageInfo;
|
||||||
}
|
}
|
||||||
pEntry = pTreeLB->Next(pEntry);
|
pEntry = pTreeLB->Next(pEntry);
|
||||||
@ -600,7 +603,7 @@ void OfaTreeOptionsDialog::dispose()
|
|||||||
{
|
{
|
||||||
OptionsGroupInfo* pGroupInfo = static_cast<OptionsGroupInfo*>(pEntry->GetUserData());
|
OptionsGroupInfo* pGroupInfo = static_cast<OptionsGroupInfo*>(pEntry->GetUserData());
|
||||||
if ( pGroupInfo )
|
if ( pGroupInfo )
|
||||||
pGroupInfo->m_pExtPage.clear();
|
pGroupInfo->m_pExtPage.disposeAndClear();
|
||||||
delete pGroupInfo;
|
delete pGroupInfo;
|
||||||
}
|
}
|
||||||
pEntry = pTreeLB->Next(pEntry);
|
pEntry = pTreeLB->Next(pEntry);
|
||||||
|
@ -147,7 +147,7 @@ WebConnectionInfoDialog::~WebConnectionInfoDialog()
|
|||||||
|
|
||||||
void WebConnectionInfoDialog::dispose()
|
void WebConnectionInfoDialog::dispose()
|
||||||
{
|
{
|
||||||
m_pPasswordsLB.clear();
|
m_pPasswordsLB.disposeAndClear();
|
||||||
m_pRemoveBtn.clear();
|
m_pRemoveBtn.clear();
|
||||||
m_pRemoveAllBtn.clear();
|
m_pRemoveAllBtn.clear();
|
||||||
m_pChangeBtn.clear();
|
m_pChangeBtn.clear();
|
||||||
|
@ -122,10 +122,10 @@ UnoDataBrowserView::~UnoDataBrowserView()
|
|||||||
|
|
||||||
void UnoDataBrowserView::dispose()
|
void UnoDataBrowserView::dispose()
|
||||||
{
|
{
|
||||||
m_pSplitter.clear();
|
m_pSplitter.disposeAndClear();
|
||||||
setTreeView(NULL);
|
setTreeView(NULL);
|
||||||
|
|
||||||
m_pStatus.clear();
|
m_pStatus.disposeAndClear();
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -83,8 +83,8 @@ namespace
|
|||||||
--_nPos;
|
--_nPos;
|
||||||
_pControl->Hide();
|
_pControl->Hide();
|
||||||
_pControlText->Hide();
|
_pControlText->Hide();
|
||||||
_pControl.clear();
|
_pControl.disposeAndClear();
|
||||||
_pControlText.clear();
|
_pControlText.disposeAndClear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1049,7 +1049,7 @@ void OFieldDescControl::DeactivateAggregate( EControlType eType )
|
|||||||
if ( pFormatSample )
|
if ( pFormatSample )
|
||||||
{
|
{
|
||||||
pFormatSample->Hide();
|
pFormatSample->Hide();
|
||||||
pFormatSample.clear();
|
pFormatSample.disposeAndClear();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case tpBoolDefault:
|
case tpBoolDefault:
|
||||||
|
@ -82,8 +82,8 @@ void OTableGrantControl::dispose()
|
|||||||
m_nDeactivateEvent = 0;
|
m_nDeactivateEvent = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pCheckCell.clear();
|
m_pCheckCell.disposeAndClear();
|
||||||
m_pEdit.clear();
|
m_pEdit.disposeAndClear();
|
||||||
|
|
||||||
m_xTables = NULL;
|
m_xTables = NULL;
|
||||||
::svt::EditBrowseBox::dispose();
|
::svt::EditBrowseBox::dispose();
|
||||||
|
@ -46,7 +46,7 @@ OConnectionURLEdit::~OConnectionURLEdit()
|
|||||||
void OConnectionURLEdit::dispose()
|
void OConnectionURLEdit::dispose()
|
||||||
{
|
{
|
||||||
SetSubEdit(nullptr);
|
SetSubEdit(nullptr);
|
||||||
m_pForcedPrefix.clear();
|
m_pForcedPrefix.disposeAndClear();
|
||||||
Edit::dispose();
|
Edit::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,10 +114,11 @@ namespace dbaui
|
|||||||
|
|
||||||
void OConnectionHelper::dispose()
|
void OConnectionHelper::dispose()
|
||||||
{
|
{
|
||||||
m_pFT_Connection.clear();
|
// FIXME: used to have an if (m_bDelete) ...
|
||||||
m_pConnectionURL.clear();
|
m_pFT_Connection.disposeAndClear();
|
||||||
m_pPB_Connection.clear();
|
m_pConnectionURL.disposeAndClear();
|
||||||
m_pPB_CreateDB.clear();
|
m_pPB_Connection.disposeAndClear();
|
||||||
|
m_pPB_CreateDB.disposeAndClear();
|
||||||
OGenericAdministrationPage::dispose();
|
OGenericAdministrationPage::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -115,8 +115,8 @@ namespace dbaui
|
|||||||
|
|
||||||
void IndexFieldsControl::dispose()
|
void IndexFieldsControl::dispose()
|
||||||
{
|
{
|
||||||
m_pSortingCell.clear();
|
m_pSortingCell.disposeAndClear();
|
||||||
m_pFieldNameCell.clear();
|
m_pFieldNameCell.disposeAndClear();
|
||||||
::svt::EditBrowseBox::dispose();
|
::svt::EditBrowseBox::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -710,11 +710,11 @@ void OCopyTableWizard::dispose()
|
|||||||
m_aTypeInfo.clear();
|
m_aTypeInfo.clear();
|
||||||
m_aDestTypeInfoIndex.clear();
|
m_aDestTypeInfoIndex.clear();
|
||||||
|
|
||||||
m_pbHelp.clear();
|
m_pbHelp.disposeAndClear();
|
||||||
m_pbCancel.clear();
|
m_pbCancel.disposeAndClear();
|
||||||
m_pbPrev.clear();
|
m_pbPrev.disposeAndClear();
|
||||||
m_pbNext.clear();
|
m_pbNext.disposeAndClear();
|
||||||
m_pbFinish.clear();
|
m_pbFinish.disposeAndClear();
|
||||||
WizardDialog::dispose();
|
WizardDialog::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,7 +45,6 @@ using namespace ::com::sun::star::sdbc;
|
|||||||
OWizTypeSelectControl::OWizTypeSelectControl(vcl::Window* pParent, vcl::Window* pParentTabPage, OTableDesignHelpBar* pHelpBar)
|
OWizTypeSelectControl::OWizTypeSelectControl(vcl::Window* pParent, vcl::Window* pParentTabPage, OTableDesignHelpBar* pHelpBar)
|
||||||
: OFieldDescControl(pParent, pHelpBar)
|
: OFieldDescControl(pParent, pHelpBar)
|
||||||
{
|
{
|
||||||
|
|
||||||
m_pParentTabPage = pParentTabPage;
|
m_pParentTabPage = pParentTabPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,8 +66,8 @@ OJoinDesignView::~OJoinDesignView()
|
|||||||
|
|
||||||
void OJoinDesignView::dispose()
|
void OJoinDesignView::dispose()
|
||||||
{
|
{
|
||||||
m_pScrollWindow.clear();
|
m_pScrollWindow.disposeAndClear();
|
||||||
m_pTableView.clear();
|
m_pTableView.disposeAndClear();
|
||||||
ODataView::dispose();
|
ODataView::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ void OScrollWindowHelper::dispose()
|
|||||||
{
|
{
|
||||||
m_aHScrollBar.disposeAndClear();
|
m_aHScrollBar.disposeAndClear();
|
||||||
m_aVScrollBar.disposeAndClear();
|
m_aVScrollBar.disposeAndClear();
|
||||||
m_pCornerWindow.clear();
|
m_pCornerWindow.disposeAndClear();
|
||||||
m_pTableView.clear();
|
m_pTableView.clear();
|
||||||
vcl::Window::dispose();
|
vcl::Window::dispose();
|
||||||
}
|
}
|
||||||
|
@ -158,12 +158,12 @@ OSelectionBrowseBox::~OSelectionBrowseBox()
|
|||||||
|
|
||||||
void OSelectionBrowseBox::dispose()
|
void OSelectionBrowseBox::dispose()
|
||||||
{
|
{
|
||||||
m_pTextCell.clear();
|
m_pTextCell.disposeAndClear();
|
||||||
m_pVisibleCell.clear();
|
m_pVisibleCell.disposeAndClear();
|
||||||
m_pFieldCell.clear();
|
m_pFieldCell.disposeAndClear();
|
||||||
m_pTableCell.clear();
|
m_pTableCell.disposeAndClear();
|
||||||
m_pOrderCell.clear();
|
m_pOrderCell.disposeAndClear();
|
||||||
m_pFunctionCell.clear();
|
m_pFunctionCell.disposeAndClear();
|
||||||
::svt::EditBrowseBox::dispose();
|
::svt::EditBrowseBox::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -139,7 +139,7 @@ throw (uno::RuntimeException, std::exception)
|
|||||||
svt::ToolboxController::dispose();
|
svt::ToolboxController::dispose();
|
||||||
|
|
||||||
SolarMutexGuard aSolarMutexGuard;
|
SolarMutexGuard aSolarMutexGuard;
|
||||||
m_pLimitBox.clear();
|
m_pLimitBox.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// XStatusListener
|
/// XStatusListener
|
||||||
|
@ -274,10 +274,10 @@ void OTableEditorCtrl::dispose()
|
|||||||
Application::RemoveUserEvent( nInvalidateTypeEvent );
|
Application::RemoveUserEvent( nInvalidateTypeEvent );
|
||||||
|
|
||||||
// Delete the control types
|
// Delete the control types
|
||||||
pNameCell.clear();
|
pNameCell.disposeAndClear();
|
||||||
pTypeCell.clear();
|
pTypeCell.disposeAndClear();
|
||||||
pDescrCell.clear();
|
pDescrCell.disposeAndClear();
|
||||||
pHelpTextCell.clear();
|
pHelpTextCell.disposeAndClear();
|
||||||
pDescrWin.clear();
|
pDescrWin.clear();
|
||||||
OTableRowView::dispose();
|
OTableRowView::dispose();
|
||||||
}
|
}
|
||||||
|
@ -208,9 +208,9 @@ ExtBoxWithBtns_Impl::~ExtBoxWithBtns_Impl()
|
|||||||
|
|
||||||
void ExtBoxWithBtns_Impl::dispose()
|
void ExtBoxWithBtns_Impl::dispose()
|
||||||
{
|
{
|
||||||
m_pOptionsBtn.clear();
|
m_pOptionsBtn.disposeAndClear();
|
||||||
m_pEnableBtn.clear();
|
m_pEnableBtn.disposeAndClear();
|
||||||
m_pRemoveBtn.clear();
|
m_pRemoveBtn.disposeAndClear();
|
||||||
m_pParent.clear();
|
m_pParent.clear();
|
||||||
ExtensionBox_Impl::dispose();
|
ExtensionBox_Impl::dispose();
|
||||||
}
|
}
|
||||||
|
@ -253,13 +253,13 @@ void ExtensionBox_Impl::dispose()
|
|||||||
|
|
||||||
for ( ITER iIndex = m_vEntries.begin(); iIndex < m_vEntries.end(); ++iIndex )
|
for ( ITER iIndex = m_vEntries.begin(); iIndex < m_vEntries.end(); ++iIndex )
|
||||||
{
|
{
|
||||||
(*iIndex)->m_pPublisher.clear();
|
(*iIndex)->m_pPublisher.disposeAndClear();
|
||||||
(*iIndex)->m_xPackage->removeEventListener( uno::Reference< lang::XEventListener > ( m_xRemoveListener, uno::UNO_QUERY ) );
|
(*iIndex)->m_xPackage->removeEventListener( uno::Reference< lang::XEventListener > ( m_xRemoveListener, uno::UNO_QUERY ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_vEntries.clear();
|
m_vEntries.clear();
|
||||||
|
|
||||||
m_pScrollBar.clear();
|
m_pScrollBar.disposeAndClear();
|
||||||
|
|
||||||
m_xRemoveListener.clear();
|
m_xRemoveListener.clear();
|
||||||
|
|
||||||
@ -435,7 +435,7 @@ void ExtensionBox_Impl::DeleteRemoved()
|
|||||||
|
|
||||||
for ( ITER iIndex = m_vRemovedEntries.begin(); iIndex < m_vRemovedEntries.end(); ++iIndex )
|
for ( ITER iIndex = m_vRemovedEntries.begin(); iIndex < m_vRemovedEntries.end(); ++iIndex )
|
||||||
{
|
{
|
||||||
(*iIndex)->m_pPublisher.clear();
|
(*iIndex)->m_pPublisher.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
m_vRemovedEntries.clear();
|
m_vRemovedEntries.clear();
|
||||||
|
@ -169,7 +169,7 @@ sal_Int16 TheExtensionManager::execute()
|
|||||||
if ( m_pUpdReqDialog )
|
if ( m_pUpdReqDialog )
|
||||||
{
|
{
|
||||||
nRet = m_pUpdReqDialog->Execute();
|
nRet = m_pUpdReqDialog->Execute();
|
||||||
m_pUpdReqDialog.clear();
|
m_pUpdReqDialog.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
return nRet;
|
return nRet;
|
||||||
@ -256,8 +256,8 @@ void TheExtensionManager::terminateDialog()
|
|||||||
if ( ! dp_misc::office_is_running() )
|
if ( ! dp_misc::office_is_running() )
|
||||||
{
|
{
|
||||||
const SolarMutexGuard guard;
|
const SolarMutexGuard guard;
|
||||||
m_pExtMgrDialog.clear();
|
m_pExtMgrDialog.disposeAndClear();
|
||||||
m_pUpdReqDialog.clear();
|
m_pUpdReqDialog.disposeAndClear();
|
||||||
Application::Quit();
|
Application::Quit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -421,8 +421,8 @@ void TheExtensionManager::disposing( lang::EventObject const & rEvt )
|
|||||||
if ( dp_misc::office_is_running() )
|
if ( dp_misc::office_is_running() )
|
||||||
{
|
{
|
||||||
const SolarMutexGuard guard;
|
const SolarMutexGuard guard;
|
||||||
m_pExtMgrDialog.clear();
|
m_pExtMgrDialog.disposeAndClear();
|
||||||
m_pUpdReqDialog.clear();
|
m_pUpdReqDialog.disposeAndClear();
|
||||||
}
|
}
|
||||||
s_ExtMgr.clear();
|
s_ExtMgr.clear();
|
||||||
}
|
}
|
||||||
|
@ -579,11 +579,11 @@ void UpdateDialog::dispose()
|
|||||||
{
|
{
|
||||||
delete (*i);
|
delete (*i);
|
||||||
}
|
}
|
||||||
|
m_pUpdates.disposeAndClear();
|
||||||
m_pchecking.clear();
|
m_pchecking.clear();
|
||||||
m_pthrobber.clear();
|
m_pthrobber.clear();
|
||||||
m_pUpdate.clear();
|
m_pUpdate.clear();
|
||||||
m_pContainer.clear();
|
m_pContainer.clear();
|
||||||
m_pUpdates.clear();
|
|
||||||
m_pAll.clear();
|
m_pAll.clear();
|
||||||
m_pDescription.clear();
|
m_pDescription.clear();
|
||||||
m_pPublisherLabel.clear();
|
m_pPublisherLabel.clear();
|
||||||
|
@ -217,17 +217,10 @@ namespace bib
|
|||||||
if ( pToolBar )
|
if ( pToolBar )
|
||||||
{
|
{
|
||||||
pDatMan->SetToolbar(0);
|
pDatMan->SetToolbar(0);
|
||||||
|
pToolBar.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
if( pGridWin )
|
pGridWin.disposeAndClear();
|
||||||
{
|
|
||||||
BibGridwin* pDel = pGridWin;
|
|
||||||
pGridWin.clear();
|
|
||||||
pDel->disposeGridWin();
|
|
||||||
delete pDel;
|
|
||||||
}
|
|
||||||
pToolBar.clear();
|
|
||||||
pGridWin.clear();
|
|
||||||
BibSplitWindow::dispose();
|
BibSplitWindow::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -181,7 +181,7 @@ void BibBookContainer::createTopFrame( BibShortCutHandler* pWin )
|
|||||||
if(pTopWin)
|
if(pTopWin)
|
||||||
{
|
{
|
||||||
RemoveItem(TOP_WINDOW);
|
RemoveItem(TOP_WINDOW);
|
||||||
pTopWin.clear();
|
pTopWin.disposeAndClear();
|
||||||
}
|
}
|
||||||
pTopWin=new BibWindowContainer(this,pWin);
|
pTopWin=new BibWindowContainer(this,pWin);
|
||||||
pTopWin->Show();
|
pTopWin->Show();
|
||||||
@ -198,7 +198,7 @@ void BibBookContainer::createBottomFrame( BibShortCutHandler* pWin )
|
|||||||
if(pBottomWin)
|
if(pBottomWin)
|
||||||
{
|
{
|
||||||
RemoveItem(BOTTOM_WINDOW);
|
RemoveItem(BOTTOM_WINDOW);
|
||||||
pBottomWin.clear();
|
pBottomWin.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
pBottomWin=new BibWindowContainer(this,pWin);
|
pBottomWin=new BibWindowContainer(this,pWin);
|
||||||
|
@ -448,7 +448,7 @@ namespace pcr
|
|||||||
if ( rpButton )
|
if ( rpButton )
|
||||||
{
|
{
|
||||||
rpButton->Hide();
|
rpButton->Hide();
|
||||||
rpButton.clear();
|
rpButton.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( _bReLayout )
|
if ( _bReLayout )
|
||||||
|
@ -266,7 +266,7 @@ void SAL_CALL XMLFilterDialogComponent::disposing()
|
|||||||
{
|
{
|
||||||
::SolarMutexGuard aGuard;
|
::SolarMutexGuard aGuard;
|
||||||
|
|
||||||
mpDialog.clear();
|
mpDialog.disposeAndClear();
|
||||||
|
|
||||||
if (pXSLTResMgr)
|
if (pXSLTResMgr)
|
||||||
{
|
{
|
||||||
|
@ -1421,9 +1421,9 @@ SvxPathControl::~SvxPathControl()
|
|||||||
|
|
||||||
void SvxPathControl::dispose()
|
void SvxPathControl::dispose()
|
||||||
{
|
{
|
||||||
m_pVBox.clear();
|
m_pFocusCtrl.disposeAndClear();
|
||||||
m_pFocusCtrl.clear();
|
m_pHeaderBar.disposeAndClear();
|
||||||
m_pHeaderBar.clear();
|
m_pVBox.disposeAndClear();
|
||||||
vcl::Window::dispose();
|
vcl::Window::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,8 +80,8 @@ XMLFilterTabDialog::~XMLFilterTabDialog()
|
|||||||
|
|
||||||
void XMLFilterTabDialog::dispose()
|
void XMLFilterTabDialog::dispose()
|
||||||
{
|
{
|
||||||
mpBasicPage.clear();
|
mpBasicPage.disposeAndClear();
|
||||||
mpXSLTPage.clear();
|
mpXSLTPage.disposeAndClear();
|
||||||
delete mpNewInfo;
|
delete mpNewInfo;
|
||||||
m_pTabCtrl.clear();
|
m_pTabCtrl.clear();
|
||||||
m_pOKBtn.clear();
|
m_pOKBtn.clear();
|
||||||
|
@ -91,10 +91,10 @@ namespace frm
|
|||||||
m_pEngine->RemoveView( m_pView );
|
m_pEngine->RemoveView( m_pView );
|
||||||
m_pEngine->revokeEngineStatusListener( this );
|
m_pEngine->revokeEngineStatusListener( this );
|
||||||
delete m_pView;
|
delete m_pView;
|
||||||
m_pViewport.clear();
|
m_pViewport.disposeAndClear();
|
||||||
m_pHScroll.clear();
|
m_pHScroll.disposeAndClear();
|
||||||
m_pVScroll.clear();
|
m_pVScroll.disposeAndClear();
|
||||||
m_pScrollCorner.clear();
|
m_pScrollCorner.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -344,7 +344,7 @@ namespace frm
|
|||||||
// create or delete the scrollbars, as necessary
|
// create or delete the scrollbars, as necessary
|
||||||
if ( !bNeedVScroll )
|
if ( !bNeedVScroll )
|
||||||
{
|
{
|
||||||
m_pVScroll.clear();
|
m_pVScroll.disposeAndClear();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -355,7 +355,7 @@ namespace frm
|
|||||||
|
|
||||||
if ( !bNeedHScroll )
|
if ( !bNeedHScroll )
|
||||||
{
|
{
|
||||||
m_pHScroll.clear();
|
m_pHScroll.disposeAndClear();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -366,13 +366,13 @@ namespace frm
|
|||||||
|
|
||||||
if ( m_pHScroll && m_pVScroll )
|
if ( m_pHScroll && m_pVScroll )
|
||||||
{
|
{
|
||||||
m_pScrollCorner.clear();
|
m_pScrollCorner.disposeAndClear();
|
||||||
m_pScrollCorner = new ScrollBarBox( m_pAntiImpl );
|
m_pScrollCorner = new ScrollBarBox( m_pAntiImpl );
|
||||||
m_pScrollCorner->Show();
|
m_pScrollCorner->Show();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_pScrollCorner.clear();
|
m_pScrollCorner.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
layoutWindow();
|
layoutWindow();
|
||||||
|
@ -364,9 +364,9 @@ FormulaDlg_Impl::~FormulaDlg_Impl()
|
|||||||
m_pTabCtrl->RemovePage(TP_FUNCTION);
|
m_pTabCtrl->RemovePage(TP_FUNCTION);
|
||||||
m_pTabCtrl->RemovePage(TP_STRUCT);
|
m_pTabCtrl->RemovePage(TP_STRUCT);
|
||||||
|
|
||||||
pStructPage.clear();
|
pStructPage.disposeAndClear();
|
||||||
pFuncPage.clear();
|
pFuncPage.disposeAndClear();
|
||||||
pParaWin.clear();
|
pParaWin.disposeAndClear();
|
||||||
DeleteArgs();
|
DeleteArgs();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ PlacesListBox_Impl::~PlacesListBox_Impl( )
|
|||||||
|
|
||||||
void PlacesListBox_Impl::dispose()
|
void PlacesListBox_Impl::dispose()
|
||||||
{
|
{
|
||||||
mpHeaderBar.clear();
|
mpHeaderBar.disposeAndClear();
|
||||||
mpParent.clear();
|
mpParent.clear();
|
||||||
SvHeaderTabListBox::dispose();
|
SvHeaderTabListBox::dispose();
|
||||||
}
|
}
|
||||||
@ -93,9 +93,9 @@ PlacesListBox::~PlacesListBox( )
|
|||||||
|
|
||||||
void PlacesListBox::dispose()
|
void PlacesListBox::dispose()
|
||||||
{
|
{
|
||||||
mpImpl.clear();
|
mpImpl.disposeAndClear();
|
||||||
mpAddBtn.clear();
|
mpAddBtn.disposeAndClear();
|
||||||
mpDelBtn.clear();
|
mpDelBtn.disposeAndClear();
|
||||||
mpDlg.clear();
|
mpDlg.clear();
|
||||||
Control::dispose();
|
Control::dispose();
|
||||||
}
|
}
|
||||||
|
@ -123,7 +123,7 @@ namespace svt
|
|||||||
m_pDlg->EndDialog( RET_CANCEL );
|
m_pDlg->EndDialog( RET_CANCEL );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pDlg.clear();
|
m_pDlg.disposeAndClear();
|
||||||
m_xWindow = NULL;
|
m_xWindow = NULL;
|
||||||
m_xDialogParent = NULL;
|
m_xDialogParent = NULL;
|
||||||
}
|
}
|
||||||
|
@ -449,10 +449,10 @@ void SvtFileDialog::dispose()
|
|||||||
}
|
}
|
||||||
|
|
||||||
delete _pImp;
|
delete _pImp;
|
||||||
_pFileView.clear();
|
_pFileView.disposeAndClear();
|
||||||
_pSplitter.clear();
|
_pSplitter.disposeAndClear();
|
||||||
_pContainer.clear();
|
_pContainer.disposeAndClear();
|
||||||
_pPrevBmp.clear();
|
_pPrevBmp.disposeAndClear();
|
||||||
_pCbReadOnly.clear();
|
_pCbReadOnly.clear();
|
||||||
_pCbLinkBox.clear();
|
_pCbLinkBox.clear();
|
||||||
_pCbPreviewBox.clear();
|
_pCbPreviewBox.clear();
|
||||||
|
@ -251,10 +251,10 @@ SvtExpFileDlg_Impl::SvtExpFileDlg_Impl( WinBits ) :
|
|||||||
|
|
||||||
SvtExpFileDlg_Impl::~SvtExpFileDlg_Impl()
|
SvtExpFileDlg_Impl::~SvtExpFileDlg_Impl()
|
||||||
{
|
{
|
||||||
_pBtnUp.clear();
|
_pBtnUp.disposeAndClear();
|
||||||
delete _pUserFilter;
|
delete _pUserFilter;
|
||||||
delete _pFilter;
|
delete _pFilter;
|
||||||
_pPlaces.clear();
|
_pPlaces.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -87,6 +87,7 @@ struct TabEntry
|
|||||||
|
|
||||||
TabEntry( sal_Int32 nIndex, const OUString& sURL, const css::uno::Reference< css::awt::XContainerWindowEventHandler > & rEventHdl ) :
|
TabEntry( sal_Int32 nIndex, const OUString& sURL, const css::uno::Reference< css::awt::XContainerWindowEventHandler > & rEventHdl ) :
|
||||||
m_nIndex( nIndex ), m_pPage( NULL ), m_sPageURL( sURL ), m_xEventHdl( rEventHdl ) {}
|
m_nIndex( nIndex ), m_pPage( NULL ), m_sPageURL( sURL ), m_xEventHdl( rEventHdl ) {}
|
||||||
|
~TabEntry() { m_pPage.disposeAndClear(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::vector< TabEntry* > TabEntryList;
|
typedef std::vector< TabEntry* > TabEntryList;
|
||||||
|
@ -91,7 +91,7 @@ void SAL_CALL VCLStatusIndicator::end()
|
|||||||
m_pStatusBar->EndProgressMode();
|
m_pStatusBar->EndProgressMode();
|
||||||
m_pStatusBar->Show(false);
|
m_pStatusBar->Show(false);
|
||||||
|
|
||||||
m_pStatusBar.clear();
|
m_pStatusBar.disposeAndClear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -171,7 +171,7 @@ throw ( RuntimeException, std::exception )
|
|||||||
SolarMutexGuard aSolarMutexGuard;
|
SolarMutexGuard aSolarMutexGuard;
|
||||||
|
|
||||||
m_pToolbar->SetItemWindow( m_nID, 0 );
|
m_pToolbar->SetItemWindow( m_nID, 0 );
|
||||||
m_pComboBox.clear();
|
m_pComboBox.disposeAndClear();
|
||||||
|
|
||||||
ComplexToolbarController::dispose();
|
ComplexToolbarController::dispose();
|
||||||
}
|
}
|
||||||
|
@ -155,7 +155,7 @@ throw ( RuntimeException, std::exception )
|
|||||||
SolarMutexGuard aSolarMutexGuard;
|
SolarMutexGuard aSolarMutexGuard;
|
||||||
|
|
||||||
m_pToolbar->SetItemWindow( m_nID, 0 );
|
m_pToolbar->SetItemWindow( m_nID, 0 );
|
||||||
m_pListBoxControl.clear();
|
m_pListBoxControl.disposeAndClear();
|
||||||
|
|
||||||
ComplexToolbarController::dispose();
|
ComplexToolbarController::dispose();
|
||||||
}
|
}
|
||||||
|
@ -152,7 +152,7 @@ throw ( RuntimeException, std::exception )
|
|||||||
SolarMutexGuard aSolarMutexGuard;
|
SolarMutexGuard aSolarMutexGuard;
|
||||||
|
|
||||||
m_pToolbar->SetItemWindow( m_nID, 0 );
|
m_pToolbar->SetItemWindow( m_nID, 0 );
|
||||||
m_pEditControl.clear();
|
m_pEditControl.disposeAndClear();
|
||||||
|
|
||||||
ComplexToolbarController::dispose();
|
ComplexToolbarController::dispose();
|
||||||
}
|
}
|
||||||
|
@ -213,7 +213,7 @@ throw ( RuntimeException, std::exception )
|
|||||||
SolarMutexGuard aSolarMutexGuard;
|
SolarMutexGuard aSolarMutexGuard;
|
||||||
|
|
||||||
m_pToolbar->SetItemWindow( m_nID, 0 );
|
m_pToolbar->SetItemWindow( m_nID, 0 );
|
||||||
m_pSpinfieldControl.clear();
|
m_pSpinfieldControl.disposeAndClear();
|
||||||
|
|
||||||
ComplexToolbarController::dispose();
|
ComplexToolbarController::dispose();
|
||||||
}
|
}
|
||||||
|
@ -214,7 +214,7 @@ void SAL_CALL StatusBarManager::dispose() throw( uno::RuntimeException, std::exc
|
|||||||
delete pUserData;
|
delete pUserData;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pStatusBar.clear();
|
m_pStatusBar.disposeAndClear();
|
||||||
|
|
||||||
if ( m_bFrameActionRegistered && m_xFrame.is() )
|
if ( m_bFrameActionRegistered && m_xFrame.is() )
|
||||||
{
|
{
|
||||||
|
@ -522,8 +522,8 @@ public:
|
|||||||
m_pDisclosureButton->SetToggleHdl(LINK(this, VclExpander, ClickHdl));
|
m_pDisclosureButton->SetToggleHdl(LINK(this, VclExpander, ClickHdl));
|
||||||
m_pDisclosureButton->Show();
|
m_pDisclosureButton->Show();
|
||||||
}
|
}
|
||||||
virtual ~VclExpander() { dispose(); }
|
virtual ~VclExpander() { disposeOnce(); }
|
||||||
void dispose() SAL_OVERRIDE { m_pDisclosureButton.clear(); VclBin::dispose(); }
|
virtual void dispose() SAL_OVERRIDE { m_pDisclosureButton.disposeAndClear(); VclBin::dispose(); }
|
||||||
virtual vcl::Window *get_child() SAL_OVERRIDE;
|
virtual vcl::Window *get_child() SAL_OVERRIDE;
|
||||||
virtual const vcl::Window *get_child() const SAL_OVERRIDE;
|
virtual const vcl::Window *get_child() const SAL_OVERRIDE;
|
||||||
virtual bool set_property(const OString &rKey, const OString &rValue) SAL_OVERRIDE;
|
virtual bool set_property(const OString &rKey, const OString &rValue) SAL_OVERRIDE;
|
||||||
|
@ -330,7 +330,7 @@ void Condition::dispose()
|
|||||||
m_pMoveDown.clear();
|
m_pMoveDown.clear();
|
||||||
m_pAddCondition.clear();
|
m_pAddCondition.clear();
|
||||||
m_pRemoveCondition.clear();
|
m_pRemoveCondition.clear();
|
||||||
m_pColorFloat.clear();
|
m_pColorFloat.disposeAndClear();
|
||||||
VclHBox::dispose();
|
VclHBox::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -230,7 +230,7 @@ void OFieldExpressionControl::dispose()
|
|||||||
if( m_nDeleteEvent )
|
if( m_nDeleteEvent )
|
||||||
Application::RemoveUserEvent( m_nDeleteEvent );
|
Application::RemoveUserEvent( m_nDeleteEvent );
|
||||||
|
|
||||||
m_pComboCell.clear();
|
m_pComboCell.disposeAndClear();
|
||||||
m_pParent.clear();
|
m_pParent.clear();
|
||||||
::svt::EditBrowseBox::dispose();
|
::svt::EditBrowseBox::dispose();
|
||||||
}
|
}
|
||||||
@ -1028,7 +1028,7 @@ void OGroupsSortingDialog::dispose()
|
|||||||
m_pGroupIntervalEd.clear();
|
m_pGroupIntervalEd.clear();
|
||||||
m_pKeepTogetherLst.clear();
|
m_pKeepTogetherLst.clear();
|
||||||
m_pHelpWindow.clear();
|
m_pHelpWindow.clear();
|
||||||
m_pFieldExpression.clear();
|
m_pFieldExpression.disposeAndClear();
|
||||||
FloatingWindow::dispose();
|
FloatingWindow::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ public: \
|
|||||||
Class::~Class() \
|
Class::~Class() \
|
||||||
{ \
|
{ \
|
||||||
} \
|
} \
|
||||||
short Class::Execute() \
|
short Class::Execute() \
|
||||||
{ \
|
{ \
|
||||||
return pDlg->Execute(); \
|
return pDlg->Execute(); \
|
||||||
}
|
}
|
||||||
|
@ -142,7 +142,7 @@ void ScCondFormatManagerDlg::dispose()
|
|||||||
m_pBtnAdd.clear();
|
m_pBtnAdd.clear();
|
||||||
m_pBtnRemove.clear();
|
m_pBtnRemove.clear();
|
||||||
m_pBtnEdit.clear();
|
m_pBtnEdit.clear();
|
||||||
m_pCtrlManager.clear();
|
m_pCtrlManager.disposeAndClear();
|
||||||
ModalDialog::dispose();
|
ModalDialog::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ SearchResultsDlg::~SearchResultsDlg()
|
|||||||
|
|
||||||
void SearchResultsDlg::dispose()
|
void SearchResultsDlg::dispose()
|
||||||
{
|
{
|
||||||
mpList.clear();
|
mpList.disposeAndClear();
|
||||||
ModelessDialog::dispose();
|
ModelessDialog::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -168,7 +168,7 @@ void ScAcceptChgDlg::dispose()
|
|||||||
pChanges->SetModifiedLink(aLink);
|
pChanges->SetModifiedLink(aLink);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pAcceptChgCtr.clear();
|
m_pAcceptChgCtr.disposeAndClear();
|
||||||
pTPFilter.clear();
|
pTPFilter.clear();
|
||||||
pTPView.clear();
|
pTPView.clear();
|
||||||
pTheView.clear();
|
pTheView.clear();
|
||||||
|
@ -75,7 +75,7 @@ ScHighlightChgDlg::~ScHighlightChgDlg()
|
|||||||
void ScHighlightChgDlg::dispose()
|
void ScHighlightChgDlg::dispose()
|
||||||
{
|
{
|
||||||
SetDispatcherLock( false );
|
SetDispatcherLock( false );
|
||||||
m_pFilterCtr.clear();
|
m_pFilterCtr.disposeAndClear();
|
||||||
m_pHighlightBox.clear();
|
m_pHighlightBox.clear();
|
||||||
m_pCbAccept.clear();
|
m_pCbAccept.clear();
|
||||||
m_pCbReject.clear();
|
m_pCbReject.clear();
|
||||||
|
@ -113,7 +113,7 @@ ScShareDocumentDlg::~ScShareDocumentDlg()
|
|||||||
|
|
||||||
void ScShareDocumentDlg::dispose()
|
void ScShareDocumentDlg::dispose()
|
||||||
{
|
{
|
||||||
m_pLbUsers.clear();
|
m_pLbUsers.disposeAndClear();
|
||||||
m_pCbShare.clear();
|
m_pCbShare.clear();
|
||||||
m_pFtWarning.clear();
|
m_pFtWarning.clear();
|
||||||
ModalDialog::dispose();
|
ModalDialog::dispose();
|
||||||
|
@ -107,7 +107,7 @@ ScNameDlg::~ScNameDlg()
|
|||||||
|
|
||||||
void ScNameDlg::dispose()
|
void ScNameDlg::dispose()
|
||||||
{
|
{
|
||||||
m_pRangeManagerTable.clear();
|
m_pRangeManagerTable.disposeAndClear();
|
||||||
m_pEdName.clear();
|
m_pEdName.clear();
|
||||||
m_pEdAssign.clear();
|
m_pEdAssign.clear();
|
||||||
m_pRbAssign.clear();
|
m_pRbAssign.clear();
|
||||||
|
@ -70,10 +70,10 @@ ScNamePasteDlg::~ScNamePasteDlg()
|
|||||||
|
|
||||||
void ScNamePasteDlg::dispose()
|
void ScNamePasteDlg::dispose()
|
||||||
{
|
{
|
||||||
|
mpTable.disposeAndClear();
|
||||||
m_pBtnPasteAll.clear();
|
m_pBtnPasteAll.clear();
|
||||||
m_pBtnPaste.clear();
|
m_pBtnPaste.clear();
|
||||||
m_pBtnClose.clear();
|
m_pBtnClose.clear();
|
||||||
mpTable.clear();
|
|
||||||
ModalDialog::dispose();
|
ModalDialog::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -196,10 +196,10 @@ ScPreviewShell::~ScPreviewShell()
|
|||||||
EndListening(*pDocShell);
|
EndListening(*pDocShell);
|
||||||
|
|
||||||
SetWindow(0);
|
SetWindow(0);
|
||||||
pPreview.clear();
|
pPreview.disposeAndClear();
|
||||||
pHorScroll.clear();
|
pHorScroll.disposeAndClear();
|
||||||
pVerScroll.clear();
|
pVerScroll.disposeAndClear();
|
||||||
pCorner.clear();
|
pCorner.disposeAndClear();
|
||||||
|
|
||||||
// normal mode of operation is switching back to default view in the same frame,
|
// normal mode of operation is switching back to default view in the same frame,
|
||||||
// so there's no need to activate any other window here anymore
|
// so there's no need to activate any other window here anymore
|
||||||
|
@ -190,9 +190,9 @@ ScTabView::~ScTabView()
|
|||||||
delete pRowOutline[i];
|
delete pRowOutline[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
pHSplitter.clear();
|
pHSplitter.disposeAndClear();
|
||||||
pVSplitter.clear();
|
pVSplitter.disposeAndClear();
|
||||||
pTabControl.clear();
|
pTabControl.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScTabView::MakeDrawView( sal_uInt8 nForceDesignMode )
|
void ScTabView::MakeDrawView( sal_uInt8 nForceDesignMode )
|
||||||
|
@ -159,7 +159,7 @@ void PresetPropertyBox::setValue( const Any& rValue, const OUString& rPresetId )
|
|||||||
|
|
||||||
PresetPropertyBox::~PresetPropertyBox()
|
PresetPropertyBox::~PresetPropertyBox()
|
||||||
{
|
{
|
||||||
mpControl.clear();
|
mpControl.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
Any PresetPropertyBox::getValue()
|
Any PresetPropertyBox::getValue()
|
||||||
@ -219,7 +219,7 @@ ColorPropertyBox::ColorPropertyBox( sal_Int32 nControlType, vcl::Window* pParent
|
|||||||
|
|
||||||
ColorPropertyBox::~ColorPropertyBox()
|
ColorPropertyBox::~ColorPropertyBox()
|
||||||
{
|
{
|
||||||
mpControl.clear();
|
mpControl.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ColorPropertyBox::setValue( const Any& rValue, const OUString& )
|
void ColorPropertyBox::setValue( const Any& rValue, const OUString& )
|
||||||
@ -303,7 +303,7 @@ void FontPropertyBox::setValue( const Any& rValue, const OUString& )
|
|||||||
|
|
||||||
FontPropertyBox::~FontPropertyBox()
|
FontPropertyBox::~FontPropertyBox()
|
||||||
{
|
{
|
||||||
mpControl.clear();
|
mpControl.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
Any FontPropertyBox::getValue()
|
Any FontPropertyBox::getValue()
|
||||||
@ -357,7 +357,7 @@ DropdownMenuBox::~DropdownMenuBox()
|
|||||||
void DropdownMenuBox::dispose()
|
void DropdownMenuBox::dispose()
|
||||||
{
|
{
|
||||||
SetSubEdit(nullptr);
|
SetSubEdit(nullptr);
|
||||||
mpDropdownButton.clear();
|
mpDropdownButton.disposeAndClear();
|
||||||
delete mpMenu;
|
delete mpMenu;
|
||||||
mpSubControl.disposeAndClear();
|
mpSubControl.disposeAndClear();
|
||||||
Edit::dispose();
|
Edit::dispose();
|
||||||
@ -437,7 +437,7 @@ CharHeightPropertyBox::CharHeightPropertyBox( sal_Int32 nControlType, vcl::Windo
|
|||||||
|
|
||||||
CharHeightPropertyBox::~CharHeightPropertyBox()
|
CharHeightPropertyBox::~CharHeightPropertyBox()
|
||||||
{
|
{
|
||||||
mpControl.clear();
|
mpControl.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
IMPL_LINK( CharHeightPropertyBox, implMenuSelectHdl, MenuButton*, pPb )
|
IMPL_LINK( CharHeightPropertyBox, implMenuSelectHdl, MenuButton*, pPb )
|
||||||
@ -528,7 +528,7 @@ TransparencyPropertyBox::TransparencyPropertyBox( sal_Int32 nControlType, vcl::W
|
|||||||
|
|
||||||
TransparencyPropertyBox::~TransparencyPropertyBox()
|
TransparencyPropertyBox::~TransparencyPropertyBox()
|
||||||
{
|
{
|
||||||
mpControl.clear();
|
mpControl.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TransparencyPropertyBox::updateMenu()
|
void TransparencyPropertyBox::updateMenu()
|
||||||
@ -626,7 +626,7 @@ RotationPropertyBox::RotationPropertyBox( sal_Int32 nControlType, vcl::Window* p
|
|||||||
|
|
||||||
RotationPropertyBox::~RotationPropertyBox()
|
RotationPropertyBox::~RotationPropertyBox()
|
||||||
{
|
{
|
||||||
mpControl.clear();
|
mpControl.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void RotationPropertyBox::updateMenu()
|
void RotationPropertyBox::updateMenu()
|
||||||
@ -751,7 +751,7 @@ ScalePropertyBox::ScalePropertyBox( sal_Int32 nControlType, vcl::Window* pParent
|
|||||||
|
|
||||||
ScalePropertyBox::~ScalePropertyBox()
|
ScalePropertyBox::~ScalePropertyBox()
|
||||||
{
|
{
|
||||||
mpControl.clear();
|
mpControl.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScalePropertyBox::updateMenu()
|
void ScalePropertyBox::updateMenu()
|
||||||
@ -911,7 +911,7 @@ FontStylePropertyBox::FontStylePropertyBox( sal_Int32 nControlType, vcl::Window*
|
|||||||
|
|
||||||
FontStylePropertyBox::~FontStylePropertyBox()
|
FontStylePropertyBox::~FontStylePropertyBox()
|
||||||
{
|
{
|
||||||
mpControl.clear();
|
mpControl.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void FontStylePropertyBox::update()
|
void FontStylePropertyBox::update()
|
||||||
@ -2212,9 +2212,9 @@ CustomAnimationDialog::~CustomAnimationDialog()
|
|||||||
|
|
||||||
void CustomAnimationDialog::dispose()
|
void CustomAnimationDialog::dispose()
|
||||||
{
|
{
|
||||||
mpEffectTabPage.clear();
|
mpEffectTabPage.disposeAndClear();
|
||||||
mpDurationTabPage.clear();
|
mpDurationTabPage.disposeAndClear();
|
||||||
mpTextAnimTabPage.clear();
|
mpTextAnimTabPage.disposeAndClear();
|
||||||
|
|
||||||
delete mpSet;
|
delete mpSet;
|
||||||
delete mpResultSet;
|
delete mpResultSet;
|
||||||
|
@ -224,7 +224,7 @@ void AnimationWindow::dispose()
|
|||||||
// delete the clones
|
// delete the clones
|
||||||
delete pMyDoc;
|
delete pMyDoc;
|
||||||
|
|
||||||
m_pCtlDisplay.clear();
|
m_pCtlDisplay.disposeAndClear();
|
||||||
m_pBtnFirst.clear();
|
m_pBtnFirst.clear();
|
||||||
m_pBtnReverse.clear();
|
m_pBtnReverse.clear();
|
||||||
m_pBtnStop.clear();
|
m_pBtnStop.clear();
|
||||||
|
@ -72,6 +72,8 @@ BreakDlg::~BreakDlg()
|
|||||||
|
|
||||||
void BreakDlg::dispose()
|
void BreakDlg::dispose()
|
||||||
{
|
{
|
||||||
|
mpProgress.disposeAndClear();
|
||||||
|
pProgrInfo.disposeAndClear();
|
||||||
m_pFiObjInfo.clear();
|
m_pFiObjInfo.clear();
|
||||||
m_pFiActInfo.clear();
|
m_pFiActInfo.clear();
|
||||||
m_pFiInsInfo.clear();
|
m_pFiInsInfo.clear();
|
||||||
|
@ -246,8 +246,8 @@ HeaderFooterDialog::~HeaderFooterDialog()
|
|||||||
|
|
||||||
void HeaderFooterDialog::dispose()
|
void HeaderFooterDialog::dispose()
|
||||||
{
|
{
|
||||||
mpSlideTabPage.clear();
|
mpSlideTabPage.disposeAndClear();
|
||||||
mpNotesHandoutsTabPage.clear();
|
mpNotesHandoutsTabPage.disposeAndClear();
|
||||||
mpTabCtrl.clear();
|
mpTabCtrl.clear();
|
||||||
maPBApplyToAll.clear();
|
maPBApplyToAll.clear();
|
||||||
maPBApply.clear();
|
maPBApply.clear();
|
||||||
|
@ -103,7 +103,7 @@ FullScreenPane::~FullScreenPane (void) throw()
|
|||||||
|
|
||||||
void SAL_CALL FullScreenPane::disposing (void)
|
void SAL_CALL FullScreenPane::disposing (void)
|
||||||
{
|
{
|
||||||
mpWindow.clear();
|
mpWindow.disposeAndClear();
|
||||||
|
|
||||||
if (mpWorkWindow.get() != NULL)
|
if (mpWorkWindow.get() != NULL)
|
||||||
{
|
{
|
||||||
|
@ -705,13 +705,12 @@ void SAL_CALL SlideshowImpl::disposing()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if( mpTimeButton )
|
if( mpTimeButton )
|
||||||
{
|
|
||||||
mpTimeButton->Hide();
|
mpTimeButton->Hide();
|
||||||
mpTimeButton.clear();
|
mpTimeButton.disposeAndClear();
|
||||||
}
|
|
||||||
|
|
||||||
if( mpShowWindow )
|
if( mpShowWindow )
|
||||||
mpShowWindow->Hide();
|
mpShowWindow->Hide();
|
||||||
|
mpShowWindow.disposeAndClear();
|
||||||
|
|
||||||
if ( mpViewShell )
|
if ( mpViewShell )
|
||||||
{
|
{
|
||||||
|
@ -1977,11 +1977,11 @@ void SfxHelpTextWindow_Impl::dispose()
|
|||||||
|
|
||||||
bIsInClose = true;
|
bIsInClose = true;
|
||||||
SvtMiscOptions().RemoveListenerLink( LINK( this, SfxHelpTextWindow_Impl, NotifyHdl ) );
|
SvtMiscOptions().RemoveListenerLink( LINK( this, SfxHelpTextWindow_Impl, NotifyHdl ) );
|
||||||
pSrchDlg.clear();
|
pSrchDlg.disposeAndClear();
|
||||||
aToolBox.disposeAndClear();
|
aToolBox.disposeAndClear();
|
||||||
aOnStartupCB.disposeAndClear();
|
aOnStartupCB.disposeAndClear();
|
||||||
pHelpWin.clear();
|
pHelpWin.clear();
|
||||||
pTextWin.clear();
|
pTextWin.disposeAndClear();
|
||||||
vcl::Window::dispose();
|
vcl::Window::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ void ThumbnailView::dispose()
|
|||||||
if (xComponent.is())
|
if (xComponent.is())
|
||||||
xComponent->dispose ();
|
xComponent->dispose ();
|
||||||
|
|
||||||
mpScrBar.clear();
|
mpScrBar.disposeAndClear();
|
||||||
delete mpItemAttrs;
|
delete mpItemAttrs;
|
||||||
delete mpProcessor;
|
delete mpProcessor;
|
||||||
|
|
||||||
|
@ -730,7 +730,7 @@ void SfxSingleTabDialog::SetTabPage(SfxTabPage* pTabPage,
|
|||||||
|
|
||||||
{
|
{
|
||||||
SetUniqId(nSettingsId);
|
SetUniqId(nSettingsId);
|
||||||
pImpl->m_pSfxPage.clear();
|
pImpl->m_pSfxPage.disposeAndClear();
|
||||||
pImpl->m_pSfxPage = pTabPage;
|
pImpl->m_pSfxPage = pTabPage;
|
||||||
fnGetRanges = pRangesFunc;
|
fnGetRanges = pRangesFunc;
|
||||||
|
|
||||||
|
@ -258,7 +258,7 @@ SfxTitleDockingWindow::~SfxTitleDockingWindow()
|
|||||||
|
|
||||||
void SfxTitleDockingWindow::dispose()
|
void SfxTitleDockingWindow::dispose()
|
||||||
{
|
{
|
||||||
m_pWrappedWindow.clear();
|
m_pWrappedWindow.disposeAndClear();
|
||||||
SfxDockingWindow::dispose();
|
SfxDockingWindow::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -409,6 +409,16 @@ void SfxTabDialog::dispose()
|
|||||||
delete pExampleSet;
|
delete pExampleSet;
|
||||||
delete [] pRanges;
|
delete [] pRanges;
|
||||||
|
|
||||||
|
if (m_bOwnsBaseFmtBtn)
|
||||||
|
m_pBaseFmtBtn.disposeAndClear()
|
||||||
|
if (m_bOwnsResetBtn)
|
||||||
|
m_pResetBtn.disposeAndClear()
|
||||||
|
if (m_bOwnsHelpBtn)
|
||||||
|
m_pHelpBtn.disposeAndClear()
|
||||||
|
if (m_bOwnsCancelBtn)
|
||||||
|
m_pCancelBtn.disposeAndClear()
|
||||||
|
if (m_bOwnsOKBtn)
|
||||||
|
m_pOKBtn.disposeAndClear()
|
||||||
m_pBox.clear();
|
m_pBox.clear();
|
||||||
m_pTabCtrl.clear();
|
m_pTabCtrl.clear();
|
||||||
m_pOKBtn.clear();
|
m_pOKBtn.clear();
|
||||||
|
@ -1531,7 +1531,7 @@ void SfxCommonTemplateDialog_Impl::EnableHierarchical(bool const bEnable)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pTreeBox.clear();
|
pTreeBox.disposeAndClear();
|
||||||
aFmtLb->Show();
|
aFmtLb->Show();
|
||||||
// If bHierarchical, then the family can have changed
|
// If bHierarchical, then the family can have changed
|
||||||
// minus one since hierarchical is inserted at the start
|
// minus one since hierarchical is inserted at the start
|
||||||
|
@ -335,7 +335,7 @@ SfxVersionDialog::~SfxVersionDialog()
|
|||||||
void SfxVersionDialog::dispose()
|
void SfxVersionDialog::dispose()
|
||||||
{
|
{
|
||||||
delete m_pTable;
|
delete m_pTable;
|
||||||
m_pVersionBox.clear();
|
m_pVersionBox.disposeAndClear();
|
||||||
m_pSaveButton.clear();
|
m_pSaveButton.clear();
|
||||||
m_pSaveCheckBox.clear();
|
m_pSaveCheckBox.clear();
|
||||||
m_pOpenButton.clear();
|
m_pOpenButton.clear();
|
||||||
@ -592,7 +592,7 @@ SfxCmisVersionsDialog::~SfxCmisVersionsDialog()
|
|||||||
void SfxCmisVersionsDialog::dispose()
|
void SfxCmisVersionsDialog::dispose()
|
||||||
{
|
{
|
||||||
delete m_pTable;
|
delete m_pTable;
|
||||||
m_pVersionBox.clear();
|
m_pVersionBox.disposeAndClear();
|
||||||
m_pOpenButton.clear();
|
m_pOpenButton.clear();
|
||||||
m_pViewButton.clear();
|
m_pViewButton.clear();
|
||||||
m_pDeleteButton.clear();
|
m_pDeleteButton.clear();
|
||||||
|
@ -81,7 +81,7 @@ SidebarPanelBase::~SidebarPanelBase (void)
|
|||||||
void SAL_CALL SidebarPanelBase::disposing (void)
|
void SAL_CALL SidebarPanelBase::disposing (void)
|
||||||
throw (css::uno::RuntimeException)
|
throw (css::uno::RuntimeException)
|
||||||
{
|
{
|
||||||
mpControl.clear();
|
mpControl.disposeAndClear();
|
||||||
|
|
||||||
if (mxFrame.is())
|
if (mxFrame.is())
|
||||||
{
|
{
|
||||||
|
@ -209,7 +209,7 @@ IMPL_LINK( SfxToolBoxControl_Impl, WindowEventListener, VclSimpleEvent*, pEvent
|
|||||||
if (( pWindow == mpFloatingWindow ) &&
|
if (( pWindow == mpFloatingWindow ) &&
|
||||||
( mpPopupWindow != nullptr ))
|
( mpPopupWindow != nullptr ))
|
||||||
{
|
{
|
||||||
mpPopupWindow.clear();
|
mpPopupWindow.disposeAndClear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -291,8 +291,8 @@ void SAL_CALL SfxToolBoxControl::dispose() throw (::com::sun::star::uno::Runtime
|
|||||||
pImpl->mxUIElement = 0;
|
pImpl->mxUIElement = 0;
|
||||||
|
|
||||||
// Delete my popup windows
|
// Delete my popup windows
|
||||||
pImpl->mpFloatingWindow.clear();
|
pImpl->mpFloatingWindow.disposeAndClear();
|
||||||
pImpl->mpPopupWindow.clear();
|
pImpl->mpPopupWindow.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -862,7 +862,7 @@ IMPL_LINK_NOARG(SfxToolBoxControl, PopupModeEndHdl)
|
|||||||
{
|
{
|
||||||
// Replace floating window with popup window and destroy
|
// Replace floating window with popup window and destroy
|
||||||
// floating window instance.
|
// floating window instance.
|
||||||
pImpl->mpFloatingWindow.clear();
|
pImpl->mpFloatingWindow.disposeAndClear();
|
||||||
pImpl->mpFloatingWindow = pImpl->mpPopupWindow;
|
pImpl->mpFloatingWindow = pImpl->mpPopupWindow;
|
||||||
pImpl->mpPopupWindow.clear();
|
pImpl->mpPopupWindow.clear();
|
||||||
// We also need to know when the user tries to use the
|
// We also need to know when the user tries to use the
|
||||||
|
@ -235,7 +235,7 @@ SfxPrintOptionsDialog::~SfxPrintOptionsDialog()
|
|||||||
void SfxPrintOptionsDialog::dispose()
|
void SfxPrintOptionsDialog::dispose()
|
||||||
{
|
{
|
||||||
delete pDlgImpl;
|
delete pDlgImpl;
|
||||||
pPage.clear();
|
pPage.disposeAndClear();
|
||||||
delete pOptions;
|
delete pOptions;
|
||||||
ModalDialog::dispose();
|
ModalDialog::dispose();
|
||||||
}
|
}
|
||||||
|
@ -676,7 +676,7 @@ SmElementsDockingWindow::~SmElementsDockingWindow ()
|
|||||||
|
|
||||||
void SmElementsDockingWindow::dispose()
|
void SmElementsDockingWindow::dispose()
|
||||||
{
|
{
|
||||||
mpElementsControl.clear();
|
mpElementsControl.disposeAndClear();
|
||||||
mpElementListBox.clear();
|
mpElementListBox.clear();
|
||||||
SfxDockingWindow::dispose();
|
SfxDockingWindow::dispose();
|
||||||
}
|
}
|
||||||
|
@ -156,9 +156,9 @@ void SmEditWindow::dispose()
|
|||||||
pEditView = NULL;
|
pEditView = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
pHScrollBar.clear();
|
pHScrollBar.disposeAndClear();
|
||||||
pVScrollBar.clear();
|
pVScrollBar.disposeAndClear();
|
||||||
pScrollBox.clear();
|
pScrollBox.disposeAndClear();
|
||||||
|
|
||||||
vcl::Window::dispose();
|
vcl::Window::dispose();
|
||||||
}
|
}
|
||||||
|
@ -146,9 +146,8 @@ void SmToolBoxWindow::dispose()
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < NUM_TBX_CATEGORIES; ++i)
|
for (i = 0; i < NUM_TBX_CATEGORIES; ++i)
|
||||||
{
|
vToolBoxCategories[i].disposeAndClear();
|
||||||
vToolBoxCategories[i].clear();
|
|
||||||
}
|
|
||||||
pToolBoxCmd = 0;
|
pToolBoxCmd = 0;
|
||||||
for (i = 0; i < NUM_TBX_CATEGORIES + 1; ++i)
|
for (i = 0; i < NUM_TBX_CATEGORIES + 1; ++i)
|
||||||
{
|
{
|
||||||
|
@ -153,10 +153,10 @@ void BrowseBox::dispose()
|
|||||||
}
|
}
|
||||||
|
|
||||||
Hide();
|
Hide();
|
||||||
getDataWindow()->pHeaderBar.clear();
|
getDataWindow()->pHeaderBar.disposeAndClear();
|
||||||
getDataWindow()->pCornerWin.clear();
|
getDataWindow()->pCornerWin.disposeAndClear();
|
||||||
pDataWin.clear();
|
pDataWin.clear();
|
||||||
pVScroll.clear();
|
pVScroll.disposeAndClear();
|
||||||
aHScroll.disposeAndClear();
|
aHScroll.disposeAndClear();
|
||||||
|
|
||||||
// free columns-space
|
// free columns-space
|
||||||
@ -2255,7 +2255,7 @@ void BrowseBox::SetMode( BrowserMode nMode )
|
|||||||
MultiSelection *pOldRowSel = bMultiSelection ? uRow.pSel : 0;
|
MultiSelection *pOldRowSel = bMultiSelection ? uRow.pSel : 0;
|
||||||
MultiSelection *pOldColSel = pColSel;
|
MultiSelection *pOldColSel = pColSel;
|
||||||
|
|
||||||
pVScroll.clear();
|
pVScroll.disposeAndClear();
|
||||||
|
|
||||||
bThumbDragging = ( nMode & BROWSER_THUMBDRAGGING ) == BROWSER_THUMBDRAGGING;
|
bThumbDragging = ( nMode & BROWSER_THUMBDRAGGING ) == BROWSER_THUMBDRAGGING;
|
||||||
bMultiSelection = ( nMode & BROWSER_MULTISELECTION ) == BROWSER_MULTISELECTION;
|
bMultiSelection = ( nMode & BROWSER_MULTISELECTION ) == BROWSER_MULTISELECTION;
|
||||||
@ -2408,7 +2408,7 @@ BrowserHeader* BrowseBox::CreateHeaderBar( BrowseBox* pParent )
|
|||||||
|
|
||||||
void BrowseBox::SetHeaderBar( BrowserHeader* pHeaderBar )
|
void BrowseBox::SetHeaderBar( BrowserHeader* pHeaderBar )
|
||||||
{
|
{
|
||||||
static_cast<BrowserDataWin*>( pDataWin.get() )->pHeaderBar.clear();
|
static_cast<BrowserDataWin*>( pDataWin.get() )->pHeaderBar.disposeAndClear();
|
||||||
static_cast<BrowserDataWin*>( pDataWin.get() )->pHeaderBar = pHeaderBar;
|
static_cast<BrowserDataWin*>( pDataWin.get() )->pHeaderBar = pHeaderBar;
|
||||||
static_cast<BrowserDataWin*>( pDataWin.get() )->pHeaderBar->SetStartDragHdl( LINK( this, BrowseBox, StartDragHdl ) );
|
static_cast<BrowserDataWin*>( pDataWin.get() )->pHeaderBar->SetStartDragHdl( LINK( this, BrowseBox, StartDragHdl ) );
|
||||||
}
|
}
|
||||||
|
@ -254,7 +254,7 @@ namespace svt
|
|||||||
|
|
||||||
void CheckBoxControl::dispose()
|
void CheckBoxControl::dispose()
|
||||||
{
|
{
|
||||||
pBox.clear();
|
pBox.disposeAndClear();
|
||||||
Control::dispose();
|
Control::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ namespace svt
|
|||||||
if (nCellModifiedEvent)
|
if (nCellModifiedEvent)
|
||||||
Application::RemoveUserEvent(nCellModifiedEvent);
|
Application::RemoveUserEvent(nCellModifiedEvent);
|
||||||
|
|
||||||
pCheckBoxPaint.clear();
|
pCheckBoxPaint.disposeAndClear();
|
||||||
m_pFocusWhileRequest.clear();
|
m_pFocusWhileRequest.clear();
|
||||||
pHeader.clear();
|
pHeader.clear();
|
||||||
BrowseBox::dispose();
|
BrowseBox::dispose();
|
||||||
|
@ -642,7 +642,7 @@ void ViewTabListBox_Impl::dispose()
|
|||||||
{
|
{
|
||||||
maResetQuickSearch.Stop();
|
maResetQuickSearch.Stop();
|
||||||
|
|
||||||
mpHeaderBar.clear();
|
mpHeaderBar.disposeAndClear();
|
||||||
SvHeaderTabListBox::dispose();
|
SvHeaderTabListBox::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ SvInplaceEdit2::~SvInplaceEdit2()
|
|||||||
Application::RemoveAccel( &aAccReturn );
|
Application::RemoveAccel( &aAccReturn );
|
||||||
Application::RemoveAccel( &aAccEscape );
|
Application::RemoveAccel( &aAccEscape );
|
||||||
}
|
}
|
||||||
pEdit.clear();
|
pEdit.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
OUString SvInplaceEdit2::GetSavedValue() const
|
OUString SvInplaceEdit2::GetSavedValue() const
|
||||||
|
@ -2229,9 +2229,9 @@ ImplCFieldFloatWin::~ImplCFieldFloatWin()
|
|||||||
|
|
||||||
void ImplCFieldFloatWin::dispose()
|
void ImplCFieldFloatWin::dispose()
|
||||||
{
|
{
|
||||||
mpTodayBtn.clear();
|
mpTodayBtn.disposeAndClear();
|
||||||
mpNoneBtn.clear();
|
mpNoneBtn.disposeAndClear();
|
||||||
mpFixedLine.clear();
|
mpFixedLine.disposeAndClear();
|
||||||
mpCalendar.clear();
|
mpCalendar.clear();
|
||||||
FloatingWindow::dispose();
|
FloatingWindow::dispose();
|
||||||
}
|
}
|
||||||
@ -2258,7 +2258,7 @@ PushButton* ImplCFieldFloatWin::EnableTodayBtn( bool bEnable )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
mpTodayBtn.clear();
|
mpTodayBtn.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
return mpTodayBtn;
|
return mpTodayBtn;
|
||||||
@ -2286,7 +2286,7 @@ PushButton* ImplCFieldFloatWin::EnableNoneBtn( bool bEnable )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
mpNoneBtn.clear();
|
mpNoneBtn.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
return mpNoneBtn;
|
return mpNoneBtn;
|
||||||
@ -2350,7 +2350,7 @@ void ImplCFieldFloatWin::ArrangeButtons()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
mpFixedLine.clear();
|
mpFixedLine.disposeAndClear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2388,8 +2388,8 @@ CalendarField::~CalendarField()
|
|||||||
|
|
||||||
void CalendarField::dispose()
|
void CalendarField::dispose()
|
||||||
{
|
{
|
||||||
mpCalendar.clear();
|
mpCalendar.disposeAndClear();
|
||||||
mpFloatWin.clear();
|
mpFloatWin.disposeAndClear();
|
||||||
mpTodayBtn.clear();
|
mpTodayBtn.clear();
|
||||||
mpNoneBtn.clear();
|
mpNoneBtn.clear();
|
||||||
DateField::dispose();
|
DateField::dispose();
|
||||||
|
@ -129,7 +129,7 @@ ToolbarMenuEntry::~ToolbarMenuEntry()
|
|||||||
xComponent->dispose();
|
xComponent->dispose();
|
||||||
mxAccContext.clear();
|
mxAccContext.clear();
|
||||||
}
|
}
|
||||||
mpControl.clear();
|
mpControl.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -207,11 +207,11 @@ namespace svt
|
|||||||
|
|
||||||
void OWizardMachine::dispose()
|
void OWizardMachine::dispose()
|
||||||
{
|
{
|
||||||
m_pFinish.clear();
|
m_pFinish.disposeAndClear();
|
||||||
m_pCancel.clear();
|
m_pCancel.disposeAndClear();
|
||||||
m_pNextPage.clear();
|
m_pNextPage.disposeAndClear();
|
||||||
m_pPrevPage.clear();
|
m_pPrevPage.disposeAndClear();
|
||||||
m_pHelp.clear();
|
m_pHelp.disposeAndClear();
|
||||||
|
|
||||||
for (WizardState i=0; i<m_pImpl->nFirstUnknownPage; ++i)
|
for (WizardState i=0; i<m_pImpl->nFirstUnknownPage; ++i)
|
||||||
delete GetPage(i);
|
delete GetPage(i);
|
||||||
|
@ -313,7 +313,7 @@ void SAL_CALL OGenericUnoDialog::initialize( const Sequence< Any >& aArguments )
|
|||||||
|
|
||||||
void OGenericUnoDialog::destroyDialog()
|
void OGenericUnoDialog::destroyDialog()
|
||||||
{
|
{
|
||||||
m_pDialog.clear();
|
m_pDialog.disposeAndClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -491,11 +491,11 @@ SvxBmpMask::~SvxBmpMask()
|
|||||||
|
|
||||||
void SvxBmpMask::dispose()
|
void SvxBmpMask::dispose()
|
||||||
{
|
{
|
||||||
m_pQSet1.clear();
|
m_pQSet1.disposeAndClear();
|
||||||
m_pQSet2.clear();
|
m_pQSet2.disposeAndClear();
|
||||||
m_pQSet3.clear();
|
m_pQSet3.disposeAndClear();
|
||||||
m_pQSet4.clear();
|
m_pQSet4.disposeAndClear();
|
||||||
m_pCtlPipette.clear();
|
m_pCtlPipette.disposeAndClear();
|
||||||
delete pData;
|
delete pData;
|
||||||
m_pTbxPipette.clear();
|
m_pTbxPipette.clear();
|
||||||
m_pBtnExec.clear();
|
m_pBtnExec.clear();
|
||||||
|
@ -301,7 +301,7 @@ void SvxSuperContourDlg::dispose()
|
|||||||
{
|
{
|
||||||
SvtMiscOptions aMiscOptions;
|
SvtMiscOptions aMiscOptions;
|
||||||
aMiscOptions.RemoveListenerLink( LINK(this, SvxSuperContourDlg, MiscHdl) );
|
aMiscOptions.RemoveListenerLink( LINK(this, SvxSuperContourDlg, MiscHdl) );
|
||||||
m_pContourWnd.clear();
|
m_pContourWnd.disposeAndClear();
|
||||||
m_pTbx1.clear();
|
m_pTbx1.clear();
|
||||||
m_pMtfTolerance.clear();
|
m_pMtfTolerance.clear();
|
||||||
m_pStbStatus.clear();
|
m_pStbStatus.clear();
|
||||||
|
@ -423,7 +423,7 @@ SvxTPView::~SvxTPView()
|
|||||||
|
|
||||||
void SvxTPView::dispose()
|
void SvxTPView::dispose()
|
||||||
{
|
{
|
||||||
m_pViewData.clear();
|
m_pViewData.disposeAndClear();
|
||||||
m_pAccept.clear();
|
m_pAccept.clear();
|
||||||
m_pReject.clear();
|
m_pReject.clear();
|
||||||
m_pAcceptAll.clear();
|
m_pAcceptAll.clear();
|
||||||
@ -1119,8 +1119,8 @@ SvxAcceptChgCtr::~SvxAcceptChgCtr()
|
|||||||
void SvxAcceptChgCtr::dispose()
|
void SvxAcceptChgCtr::dispose()
|
||||||
{
|
{
|
||||||
disposeBuilder();
|
disposeBuilder();
|
||||||
pTPFilter.clear();
|
pTPView.disposeAndClear();
|
||||||
pTPView.clear();
|
pTPFilter.disposeAndClear();
|
||||||
TabControl::dispose();
|
TabControl::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -163,14 +163,7 @@ SvxFontWorkChildWindow::SvxFontWorkChildWindow
|
|||||||
|
|
||||||
SfxChildWindow( _pParent, nId )
|
SfxChildWindow( _pParent, nId )
|
||||||
{
|
{
|
||||||
<<<<<<< HEAD
|
pWindow = VclPtrInstance<SvxFontWorkDialog>(pBindings, this, _pParent);
|
||||||
SvxFontWorkDialog* pDlg = new SvxFontWorkDialog(pBindings, this, _pParent);
|
|
||||||
pWindow = pDlg;
|
|
||||||
=======
|
|
||||||
pWindow = new SvxFontWorkDialog( pBindings, this, _pParent,
|
|
||||||
SVX_RES( RID_SVXDLG_FONTWORK ) );
|
|
||||||
SvxFontWorkDialog* pDlg = static_cast<SvxFontWorkDialog*>(pWindow.get());
|
|
||||||
>>>>>>> 765a16f... vclwidget: change all vcl::window fields to be wrapped in VclPtr
|
|
||||||
|
|
||||||
eChildAlignment = SfxChildAlignment::NOALIGNMENT;
|
eChildAlignment = SfxChildAlignment::NOALIGNMENT;
|
||||||
|
|
||||||
|
@ -223,7 +223,7 @@ SvxIMapDlg::~SvxIMapDlg()
|
|||||||
void SvxIMapDlg::dispose()
|
void SvxIMapDlg::dispose()
|
||||||
{
|
{
|
||||||
// Delete URL-List
|
// Delete URL-List
|
||||||
pIMapWnd.clear();
|
pIMapWnd.disposeAndClear();
|
||||||
delete pOwnData;
|
delete pOwnData;
|
||||||
m_pTbxIMapDlg1.clear();
|
m_pTbxIMapDlg1.clear();
|
||||||
m_pFtURL.clear();
|
m_pFtURL.clear();
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user