Kaydet (Commit) fe75dbb7 authored tarafından Ariel Constenla-Haile's avatar Ariel Constenla-Haile

#i120571# - Enhancements in "Save/Load Keyboard Config." dialog

üst 1e06d484
...@@ -1367,7 +1367,7 @@ IMPL_LINK( SfxAcceleratorConfigPage, SaveHdl, sfx2::FileDialogHelper*, EMPTYARG ...@@ -1367,7 +1367,7 @@ IMPL_LINK( SfxAcceleratorConfigPage, SaveHdl, sfx2::FileDialogHelper*, EMPTYARG
void SfxAcceleratorConfigPage::StartFileDialog( WinBits nBits, const String& rTitle ) void SfxAcceleratorConfigPage::StartFileDialog( WinBits nBits, const String& rTitle )
{ {
bool bSave = ( ( nBits & WB_SAVEAS ) == WB_SAVEAS ); bool bSave = ( ( nBits & WB_SAVEAS ) == WB_SAVEAS );
short nDialogType = bSave ? css::ui::dialogs::TemplateDescription::FILESAVE_SIMPLE short nDialogType = bSave ? css::ui::dialogs::TemplateDescription::FILESAVE_AUTOEXTENSION
: css::ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE; : css::ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE;
if ( m_pFileDlg ) if ( m_pFileDlg )
delete m_pFileDlg; delete m_pFileDlg;
...@@ -1376,6 +1376,7 @@ void SfxAcceleratorConfigPage::StartFileDialog( WinBits nBits, const String& rTi ...@@ -1376,6 +1376,7 @@ void SfxAcceleratorConfigPage::StartFileDialog( WinBits nBits, const String& rTi
m_pFileDlg->SetTitle( rTitle ); m_pFileDlg->SetTitle( rTitle );
m_pFileDlg->AddFilter( aFilterAllStr, DEFINE_CONST_UNICODE( FILEDIALOG_FILTER_ALL ) ); m_pFileDlg->AddFilter( aFilterAllStr, DEFINE_CONST_UNICODE( FILEDIALOG_FILTER_ALL ) );
m_pFileDlg->AddFilter( aFilterCfgStr, DEFINE_CONST_UNICODE( "*.cfg" ) ); m_pFileDlg->AddFilter( aFilterCfgStr, DEFINE_CONST_UNICODE( "*.cfg" ) );
m_pFileDlg->SetCurrentFilter( aFilterCfgStr );
Link aDlgClosedLink = bSave ? LINK( this, SfxAcceleratorConfigPage, SaveHdl ) Link aDlgClosedLink = bSave ? LINK( this, SfxAcceleratorConfigPage, SaveHdl )
: LINK( this, SfxAcceleratorConfigPage, LoadHdl ); : LINK( this, SfxAcceleratorConfigPage, LoadHdl );
......
...@@ -197,7 +197,7 @@ TabPage RID_SVXPAGE_KEYBOARD ...@@ -197,7 +197,7 @@ TabPage RID_SVXPAGE_KEYBOARD
}; };
String STR_FILTERNAME_CFG String STR_FILTERNAME_CFG
{ {
Text [ en-US ] = "Configuration" ; Text [ en-US ] = "Configuration (*.cfg)" ;
}; };
}; };
......
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