summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorAriel Constenla-Haile <arielch@apache.org>2012-08-15 08:31:46 +0000
committerAriel Constenla-Haile <arielch@apache.org>2012-08-15 08:31:46 +0000
commitfe75dbb733e6b25da8233d4a1dc12a8288e1b608 (patch)
treebed86432dc00c812bc778e646498d0ace2178563 /cui
parent1e06d48429d408f0f643f07cbb55476f5f68487f (diff)
#i120571# - Enhancements in "Save/Load Keyboard Config." dialog
Notes
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/acccfg.cxx3
-rw-r--r--cui/source/customize/acccfg.src2
2 files changed, 3 insertions, 2 deletions
diff --git a/cui/source/customize/acccfg.cxx b/cui/source/customize/acccfg.cxx
index 069682ed8d25..4ee5159fac88 100644
--- a/cui/source/customize/acccfg.cxx
+++ b/cui/source/customize/acccfg.cxx
@@ -1367,7 +1367,7 @@ IMPL_LINK( SfxAcceleratorConfigPage, SaveHdl, sfx2::FileDialogHelper*, EMPTYARG
void SfxAcceleratorConfigPage::StartFileDialog( WinBits nBits, const String& rTitle )
{
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;
if ( m_pFileDlg )
delete m_pFileDlg;
@@ -1376,6 +1376,7 @@ void SfxAcceleratorConfigPage::StartFileDialog( WinBits nBits, const String& rTi
m_pFileDlg->SetTitle( rTitle );
m_pFileDlg->AddFilter( aFilterAllStr, DEFINE_CONST_UNICODE( FILEDIALOG_FILTER_ALL ) );
m_pFileDlg->AddFilter( aFilterCfgStr, DEFINE_CONST_UNICODE( "*.cfg" ) );
+ m_pFileDlg->SetCurrentFilter( aFilterCfgStr );
Link aDlgClosedLink = bSave ? LINK( this, SfxAcceleratorConfigPage, SaveHdl )
: LINK( this, SfxAcceleratorConfigPage, LoadHdl );
diff --git a/cui/source/customize/acccfg.src b/cui/source/customize/acccfg.src
index c486f9eb9a4d..6815fee988d4 100644
--- a/cui/source/customize/acccfg.src
+++ b/cui/source/customize/acccfg.src
@@ -197,7 +197,7 @@ TabPage RID_SVXPAGE_KEYBOARD
};
String STR_FILTERNAME_CFG
{
- Text [ en-US ] = "Configuration" ;
+ Text [ en-US ] = "Configuration (*.cfg)" ;
};
};