diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2007-11-19 15:24:16 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2007-11-19 15:24:16 +0000 |
commit | 614e7fc8daa8c4366ba42785992aa7d8ef1201f1 (patch) | |
tree | 347394745b015f1b4a17566baa7dff205c301faa /fpicker | |
parent | 8493ccb972d09fa8b3e0e40e613e16a464b106a1 (diff) |
INTEGRATION: CWS as6 (1.18.4); FILE MERGED
2007/11/07 16:05:46 pb 1.18.4.3: fix: #i83408# no automatic extension on open
2007/10/16 08:44:36 as 1.18.4.2: RESYNC: (1.18-1.19); FILE MERGED
2007/09/05 08:22:56 as 1.18.4.1: #i78850# remove AutoExtension check box
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/office/iodlg.cxx | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx index ed5afb18f8c5..bdb841ec4181 100644 --- a/fpicker/source/office/iodlg.cxx +++ b/fpicker/source/office/iodlg.cxx @@ -4,9 +4,9 @@ * * $RCSfile: iodlg.cxx,v $ * - * $Revision: 1.19 $ + * $Revision: 1.20 $ * - * last change: $Author: vg $ $Date: 2007-09-20 14:36:13 $ + * last change: $Author: ihi $ $Date: 2007-11-19 16:24:16 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -953,7 +953,7 @@ void SvtFileDialog::Init_Impl _pImp->_pLbImageTemplates->SetHelpId( HID_FILESAVE_TEMPLATE ); if ( _pImp->_pCbPassword ) _pImp->_pCbPassword->SetHelpId( HID_FILESAVE_SAVEWITHPASSWORD ); - if ( _pImp->_pCbAutoExtension ) _pImp->_pCbAutoExtension->SetHelpId( HID_FILESAVE_AUTOEXTENSION ); + //if ( _pImp->_pCbAutoExtension ) _pImp->_pCbAutoExtension->SetHelpId( HID_FILESAVE_AUTOEXTENSION ); if ( _pImp->_pCbOptions ) _pImp->_pCbOptions->SetHelpId( HID_FILESAVE_CUSTOMIZEFILTER ); if ( _pCbSelection ) _pCbSelection->SetHelpId( HID_FILESAVE_SELECTION ); } @@ -1297,14 +1297,16 @@ IMPL_STATIC_LINK( SvtFileDialog, OpenHdl_Impl, void*, pVoid ) } if ( !bIsFolder // no existent folder - && pThis->_pImp->_pCbAutoExtension // auto extension is enabled in general - && pThis->_pImp->_pCbAutoExtension->IsChecked() // auto extension is really to be used + //&& pThis->_pImp->_pCbAutoExtension // auto extension is enabled in general + //&& pThis->_pImp->_pCbAutoExtension->IsChecked() // auto extension is really to be used && pThis->GetDefaultExt().Len() // there is a default extension && pThis->GetDefaultExt() != '*' // the default extension is not "all" && !( FILEDLG_MODE_SAVE == pThis->_pImp->_eMode // we're saving a file && pThis->_pFileView->GetSelectionCount() // there is a selected file in the file view -> it will later on ) // (in SvtFileDialog::GetPathList) be taken as file to save to - ) // (#114818# - 2004-03-17 - fs@openoffice.org) + // (#114818# - 2004-03-17 - fs@openoffice.org) + && FILEDLG_MODE_OPEN != pThis->_pImp->_eMode // pb: #i83408# don't append extension on open + ) { // check extension and append the default extension if necessary appendDefaultExtension(aFileName, @@ -1816,13 +1818,14 @@ IMPL_LINK( SvtFileDialog, OpenDoneHdl_Impl, SvtFileView*, pView ) IMPL_LINK( SvtFileDialog, AutoExtensionHdl_Impl, CheckBox*, EMPTYARG ) { +/* if ( _pFileNotifier ) _pFileNotifier->notify( CTRL_STATE_CHANGED, CHECKBOX_AUTOEXTENSION ); // update the extension of the current file if necessary lcl_autoUpdateFileExtension( this, _pImp->GetCurFilter()->GetExtension() ); - +*/ return 0; } @@ -2691,7 +2694,7 @@ void SvtFileDialog::implArrangeControls() _pImp->_pFtTemplates, _pImp->_pLbTemplates, _pImp->_pFtImageTemplates, _pImp->_pLbImageTemplates, _pImp->_pFtFileType, _pImp->GetFilterListControl(), // edit fields/list boxes - _pImp->_pCbPassword, _pImp->_pCbAutoExtension, _pImp->_pCbOptions, // checkboxes + _pImp->_pCbPassword, /*_pImp->_pCbAutoExtension,*/ _pImp->_pCbOptions, // checkboxes _pCbReadOnly, _pCbLinkBox, _pCbPreviewBox, _pCbSelection, _pPbPlay, // check boxes (continued) _pImp->_pBtnFileOpen, _pImp->_pBtnCancel, _pImp->_pBtnHelp // buttons @@ -2880,7 +2883,7 @@ void SvtFileDialog::Resize() _pImp->_pFtFileName, _pImp->_pEdFileName, _pImp->_pFtFileVersion, _pImp->_pLbFileVersion, _pImp->_pFtTemplates, _pImp->_pLbTemplates, _pImp->_pFtImageTemplates, _pImp->_pLbImageTemplates, _pImp->_pFtFileType, _pImp->GetFilterListControl(), _pCbReadOnly, _pCbLinkBox, _pCbPreviewBox, - _pPbPlay, _pImp->_pCbPassword, _pImp->_pCbAutoExtension, _pImp->_pCbOptions, _pCbSelection + _pPbPlay, _pImp->_pCbPassword, /*_pImp->_pCbAutoExtension,*/ _pImp->_pCbOptions, _pCbSelection }; Control** ppMoveControls = aMoveControlsVert; Control** ppMoveControlsEnd = ppMoveControls + sizeof( aMoveControlsVert ) / sizeof( aMoveControlsVert[0] ); @@ -2979,11 +2982,11 @@ Control* SvtFileDialog::getControl( sal_Int16 _nControlId, sal_Bool _bLabelContr case EDIT_FILEURL_LABEL: pReturn = static_cast< Control* >( _pImp->_pFtFileName ); break; - +/* case CHECKBOX_AUTOEXTENSION: pReturn = _pImp->_pCbAutoExtension; break; - +*/ case CHECKBOX_PASSWORD: pReturn = _pImp->_pCbPassword; break; @@ -3138,12 +3141,14 @@ void SvtFileDialog::AddControls_Impl( ) if ( _nExtraBits & SFX_EXTRA_AUTOEXTENSION ) { + /* _pImp->_pCbAutoExtension = new CheckBox( this, SvtResId( CB_AUTO_EXTENSION ) ); _pImp->_pCbAutoExtension->SetText( SvtResId( STR_SVT_FILEPICKER_AUTO_EXTENSION ) ); _pImp->_pCbAutoExtension->Check( TRUE ); AddControl( _pImp->_pCbAutoExtension ); ReleaseOwnerShip( _pImp->_pCbAutoExtension ); _pImp->_pCbAutoExtension->SetClickHdl( LINK( this, SvtFileDialog, AutoExtensionHdl_Impl ) ); + */ } if ( _nExtraBits & SFX_EXTRA_FILTEROPTIONS ) @@ -3306,7 +3311,8 @@ void SvtFileDialog::setCurrentFileText( const String& _rText, bool _bSelectAll ) // ----------------------------------------------------------------------- sal_Bool SvtFileDialog::isAutoExtensionEnabled() { - return _pImp->_pCbAutoExtension && _pImp->_pCbAutoExtension->IsChecked(); + //return _pImp->_pCbAutoExtension && _pImp->_pCbAutoExtension->IsChecked(); + return sal_True; } // ----------------------------------------------------------------------- |