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& ...@@ -42,9 +42,15 @@ PlacesListBox_Impl::PlacesListBox_Impl( PlacesListBox* pParent, const OUString&
} }
PlacesListBox_Impl::~PlacesListBox_Impl( ) PlacesListBox_Impl::~PlacesListBox_Impl( )
{
dispose();
}
void PlacesListBox_Impl::dispose()
{ {
delete mpHeaderBar; delete mpHeaderBar;
mpParent = NULL; mpParent = NULL;
SvHeaderTabListBox::dispose();
} }
void PlacesListBox_Impl::MouseButtonUp( const MouseEvent& rMEvt ) void PlacesListBox_Impl::MouseButtonUp( const MouseEvent& rMEvt )
...@@ -81,10 +87,16 @@ PlacesListBox::PlacesListBox( vcl::Window* pParent, SvtFileDialog* pFileDlg, con ...@@ -81,10 +87,16 @@ PlacesListBox::PlacesListBox( vcl::Window* pParent, SvtFileDialog* pFileDlg, con
} }
PlacesListBox::~PlacesListBox( ) PlacesListBox::~PlacesListBox( )
{
dispose();
}
void PlacesListBox::dispose()
{ {
delete mpImpl; delete mpImpl;
delete mpAddBtn; delete mpAddBtn;
delete mpDelBtn; delete mpDelBtn;
Control::dispose();
} }
void PlacesListBox::AppendPlace( PlacePtr pPlace ) void PlacesListBox::AppendPlace( PlacePtr pPlace )
......
...@@ -29,6 +29,7 @@ class PlacesListBox_Impl : public SvHeaderTabListBox ...@@ -29,6 +29,7 @@ class PlacesListBox_Impl : public SvHeaderTabListBox
public: public:
PlacesListBox_Impl( PlacesListBox* pParent, const OUString& rTitle ); PlacesListBox_Impl( PlacesListBox* pParent, const OUString& rTitle );
virtual ~PlacesListBox_Impl( ); virtual ~PlacesListBox_Impl( );
virtual void dispose() SAL_OVERRIDE;
virtual void MouseButtonUp( const MouseEvent& rMEvt ) SAL_OVERRIDE; virtual void MouseButtonUp( const MouseEvent& rMEvt ) SAL_OVERRIDE;
}; };
...@@ -50,6 +51,7 @@ class PlacesListBox : public Control ...@@ -50,6 +51,7 @@ class PlacesListBox : public Control
public: public:
PlacesListBox( vcl::Window* pParent, SvtFileDialog* pFileDlg, const OUString& rTitle, WinBits nBits ); PlacesListBox( vcl::Window* pParent, SvtFileDialog* pFileDlg, const OUString& rTitle, WinBits nBits );
virtual ~PlacesListBox( ); virtual ~PlacesListBox( );
virtual void dispose() SAL_OVERRIDE;
void AppendPlace( PlacePtr pPlace ); void AppendPlace( PlacePtr pPlace );
void RemovePlace( sal_uInt16 nPos ); void RemovePlace( sal_uInt16 nPos );
......
...@@ -403,6 +403,11 @@ public: ...@@ -403,6 +403,11 @@ public:
}; };
SvtFileDialog::~SvtFileDialog() SvtFileDialog::~SvtFileDialog()
{
dispose();
}
void SvtFileDialog::dispose()
{ {
if ( !_pImp->_aIniKey.isEmpty() ) if ( !_pImp->_aIniKey.isEmpty() )
{ {
...@@ -441,6 +446,7 @@ SvtFileDialog::~SvtFileDialog() ...@@ -441,6 +446,7 @@ SvtFileDialog::~SvtFileDialog()
delete _pSplitter; delete _pSplitter;
delete _pContainer; delete _pContainer;
delete _pPrevBmp; delete _pPrevBmp;
ModalDialog::dispose();
} }
void SvtFileDialog::Init_Impl void SvtFileDialog::Init_Impl
......
...@@ -194,6 +194,7 @@ public: ...@@ -194,6 +194,7 @@ public:
SvtFileDialog( vcl::Window* _pParent, WinBits nBits, WinBits nExtraBits ); SvtFileDialog( vcl::Window* _pParent, WinBits nBits, WinBits nExtraBits );
SvtFileDialog( vcl::Window* _pParent, WinBits nBits ); SvtFileDialog( vcl::Window* _pParent, WinBits nBits );
virtual ~SvtFileDialog(); virtual ~SvtFileDialog();
virtual void dispose() SAL_OVERRIDE;
virtual short Execute() SAL_OVERRIDE; virtual short Execute() SAL_OVERRIDE;
virtual void StartExecuteModal( const Link& rEndDialogHdl ) SAL_OVERRIDE; virtual void StartExecuteModal( const Link& rEndDialogHdl ) SAL_OVERRIDE;
......
...@@ -105,8 +105,14 @@ SvtFileDialogURLSelector::SvtFileDialogURLSelector( vcl::Window* _pParent, SvtFi ...@@ -105,8 +105,14 @@ SvtFileDialogURLSelector::SvtFileDialogURLSelector( vcl::Window* _pParent, SvtFi
SvtFileDialogURLSelector::~SvtFileDialogURLSelector() SvtFileDialogURLSelector::~SvtFileDialogURLSelector()
{
dispose();
}
void SvtFileDialogURLSelector::dispose()
{ {
delete m_pMenu; delete m_pMenu;
MenuButton::dispose();
} }
......
...@@ -92,6 +92,7 @@ protected: ...@@ -92,6 +92,7 @@ protected:
protected: protected:
SvtFileDialogURLSelector( vcl::Window* _pParent, SvtFileDialog* _pDlg, WinBits nBits, sal_uInt16 _nButtonId ); SvtFileDialogURLSelector( vcl::Window* _pParent, SvtFileDialog* _pDlg, WinBits nBits, sal_uInt16 _nButtonId );
virtual ~SvtFileDialogURLSelector(); virtual ~SvtFileDialogURLSelector();
virtual void dispose() SAL_OVERRIDE;
virtual void Activate() 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