diff options
author | Szymon Kłos <eszkadev@gmail.com> | 2014-06-28 16:10:39 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-30 16:31:47 +0100 |
commit | f90eb33a268bdcd1c52aea5670a58267b0907096 (patch) | |
tree | cec4d27d19e854d053e937c9a7a84406a0b1fd91 /fpicker/source/office/iodlgimp.cxx | |
parent | 0ee6282cc24af0d299a878f780d1678a86fb0595 (diff) |
DLG_FPICKER_EXPLORERFILE conversion to .ui
Change-Id: I5d8f5d0182fb6af5111b60caa29912d313c2efa0
Diffstat (limited to 'fpicker/source/office/iodlgimp.cxx')
-rw-r--r-- | fpicker/source/office/iodlgimp.cxx | 53 |
1 files changed, 11 insertions, 42 deletions
diff --git a/fpicker/source/office/iodlgimp.cxx b/fpicker/source/office/iodlgimp.cxx index db54a6d07b5d..48ac401dd885 100644 --- a/fpicker/source/office/iodlgimp.cxx +++ b/fpicker/source/office/iodlgimp.cxx @@ -91,13 +91,13 @@ SvtFileDialogFilter_Impl::~SvtFileDialogFilter_Impl() -SvtFileDialogURLSelector::SvtFileDialogURLSelector( SvtFileDialog* _pParent, const ResId& _rResId, sal_uInt16 _nButtonId ) - :MenuButton ( _pParent, _rResId ) - ,m_pParent ( _pParent ) +SvtFileDialogURLSelector::SvtFileDialogURLSelector( Window* _pParent, SvtFileDialog* _pDlg, WinBits nBits, sal_uInt16 _nButtonId ) + :MenuButton ( _pParent, nBits ) + ,m_pDlg ( _pDlg ) ,m_pMenu ( new PopupMenu ) { SetStyle( GetStyle() | WB_NOPOINTERFOCUS | WB_RECTSTYLE | WB_SMALLSTYLE ); - SetModeImage( m_pParent->GetButtonImage( _nButtonId ) ); + SetModeImage( _pDlg->GetButtonImage( _nButtonId ) ); SetMenuMode( MENUBUTTON_MENUMODE_TIMED ); SetDropDown( PUSHBUTTON_DROPDOWN_TOOLBOX ); } @@ -123,8 +123,8 @@ void SvtFileDialogURLSelector::Activate() -SvtUpButton_Impl::SvtUpButton_Impl( SvtFileDialog* pParent, const ResId& rResId ) - :SvtFileDialogURLSelector( pParent, rResId, IMG_FILEDLG_BTN_UP ) +SvtUpButton_Impl::SvtUpButton_Impl( Window *pParent, SvtFileDialog* pDlg, WinBits nBits ) + :SvtFileDialogURLSelector( pParent, pDlg, nBits, IMG_FILEDLG_BTN_UP ) { } @@ -190,19 +190,19 @@ void SvtUpButton_Impl::Select() } } - void SvtUpButton_Impl::Click() { GetDialogParent()->PrevLevel_Impl(); } +Size SvtUpButton_Impl::GetOptimalSize() const +{ + return LogicToPixel(Size(12, 12), MAP_APPFONT); +} // SvtExpFileDlg_Impl - - SvtExpFileDlg_Impl::SvtExpFileDlg_Impl( WinBits ) : - _pLbFilter ( NULL ), _pCurFilter ( NULL ), _pFilter ( new SvtFileDialogFilterList_Impl() ), _pUserFilter ( NULL ), @@ -215,6 +215,7 @@ SvtExpFileDlg_Impl::SvtExpFileDlg_Impl( WinBits ) : _pFtImageTemplates ( NULL ), _pLbImageTemplates ( NULL ), _pFtFileType ( NULL ), + _pLbFilter ( NULL ), _pBtnFileOpen ( NULL ), _pBtnCancel ( NULL ), _pBtnHelp ( NULL ), @@ -234,7 +235,6 @@ SvtExpFileDlg_Impl::SvtExpFileDlg_Impl( WinBits ) : m_bNeedDelayedFilterExecute ( false ), _pDefaultFilter ( NULL ), _bMultiSelection ( false ), - _nFixDeltaHeight ( 0 ), _bFolderHasOpened ( false ) { } @@ -243,29 +243,10 @@ SvtExpFileDlg_Impl::SvtExpFileDlg_Impl( WinBits ) : SvtExpFileDlg_Impl::~SvtExpFileDlg_Impl() { - delete _pEdCurrentPath; - delete _pCbPassword; - delete _pCbAutoExtension; - delete _pCbOptions; - delete _pBtnNewFolder; delete _pBtnUp; - delete _pBtnHelp; - delete _pBtnCancel; - delete _pBtnFileOpen; - delete _pLbFilter; - delete _pFtFileType; - delete _pLbFileVersion; - delete _pFtFileVersion; - delete _pFtTemplates; - delete _pLbTemplates; - delete _pFtImageTemplates; - delete _pLbImageTemplates; - delete _pEdFileName; - delete _pFtFileName; delete _pUserFilter; delete _pFilter; delete _pPlaces; - delete _pBtnConnectToServer; } @@ -343,16 +324,4 @@ void SvtExpFileDlg_Impl::InitFilterList( ) InsertFilterListEntry( &(*_pFilter)[ nPos-- ] ); } - - -void SvtExpFileDlg_Impl::CreateFilterListControl( Window* _pParent, const ResId& _rId ) -{ - DBG_ASSERT( !_pLbFilter, "SvtExpFileDlg_Impl::CreateFilterListControl: already created the control!" ); - if ( !_pLbFilter ) - { - _pLbFilter = new ListBox( _pParent, _rId ); - _pLbFilter->SetDropDownLineCount( 10 ); - } -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |