Kaydet (Commit) a3cc3ce5 authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Michael Meeks

vcl: VclPtr conversion in fpicker

Change-Id: I1510b67ee2d2019b65d5248c3ee36c5ec3def13f
üst 78626422
......@@ -42,9 +42,15 @@ PlacesListBox_Impl::PlacesListBox_Impl( PlacesListBox* pParent, const OUString&
}
PlacesListBox_Impl::~PlacesListBox_Impl( )
{
dispose();
}
void PlacesListBox_Impl::dispose()
{
delete mpHeaderBar;
mpParent = NULL;
SvHeaderTabListBox::dispose();
}
void PlacesListBox_Impl::MouseButtonUp( const MouseEvent& rMEvt )
......@@ -81,10 +87,16 @@ PlacesListBox::PlacesListBox( vcl::Window* pParent, SvtFileDialog* pFileDlg, con
}
PlacesListBox::~PlacesListBox( )
{
dispose();
}
void PlacesListBox::dispose()
{
delete mpImpl;
delete mpAddBtn;
delete mpDelBtn;
Control::dispose();
}
void PlacesListBox::AppendPlace( PlacePtr pPlace )
......
......@@ -29,6 +29,7 @@ class PlacesListBox_Impl : public SvHeaderTabListBox
public:
PlacesListBox_Impl( PlacesListBox* pParent, const OUString& rTitle );
virtual ~PlacesListBox_Impl( );
virtual void dispose() SAL_OVERRIDE;
virtual void MouseButtonUp( const MouseEvent& rMEvt ) SAL_OVERRIDE;
};
......@@ -50,6 +51,7 @@ class PlacesListBox : public Control
public:
PlacesListBox( vcl::Window* pParent, SvtFileDialog* pFileDlg, const OUString& rTitle, WinBits nBits );
virtual ~PlacesListBox( );
virtual void dispose() SAL_OVERRIDE;
void AppendPlace( PlacePtr pPlace );
void RemovePlace( sal_uInt16 nPos );
......
......@@ -403,6 +403,11 @@ public:
};
SvtFileDialog::~SvtFileDialog()
{
dispose();
}
void SvtFileDialog::dispose()
{
if ( !_pImp->_aIniKey.isEmpty() )
{
......@@ -441,6 +446,7 @@ SvtFileDialog::~SvtFileDialog()
delete _pSplitter;
delete _pContainer;
delete _pPrevBmp;
ModalDialog::dispose();
}
void SvtFileDialog::Init_Impl
......
......@@ -194,6 +194,7 @@ public:
SvtFileDialog( vcl::Window* _pParent, WinBits nBits, WinBits nExtraBits );
SvtFileDialog( vcl::Window* _pParent, WinBits nBits );
virtual ~SvtFileDialog();
virtual void dispose() SAL_OVERRIDE;
virtual short Execute() SAL_OVERRIDE;
virtual void StartExecuteModal( const Link& rEndDialogHdl ) SAL_OVERRIDE;
......
......@@ -105,8 +105,14 @@ SvtFileDialogURLSelector::SvtFileDialogURLSelector( vcl::Window* _pParent, SvtFi
SvtFileDialogURLSelector::~SvtFileDialogURLSelector()
{
dispose();
}
void SvtFileDialogURLSelector::dispose()
{
delete m_pMenu;
MenuButton::dispose();
}
......
......@@ -92,6 +92,7 @@ protected:
protected:
SvtFileDialogURLSelector( vcl::Window* _pParent, SvtFileDialog* _pDlg, WinBits nBits, sal_uInt16 _nButtonId );
virtual ~SvtFileDialogURLSelector();
virtual void dispose() SAL_OVERRIDE;
virtual void Activate() SAL_OVERRIDE;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment