diff options
author | Ariel Constenla-Haile <arielch@apache.org> | 2012-08-15 08:31:46 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-18 14:26:16 +0100 |
commit | 852bf3ad922ab8e5dfd8da2f5861b8b30d6c5782 (patch) | |
tree | 899927d6aa0e0b26d6f99f76bbf99bc514728fda /cui | |
parent | 74970948bbd410278964bd02cb5741c6c87eb30d (diff) |
Resolves: #i120571# Enhancements in "Save/Load Keyboard Config" dialog
(cherry picked from commit fe75dbb733e6b25da8233d4a1dc12a8288e1b608)
Conflicts:
cui/source/customize/acccfg.cxx
Change-Id: I967ed2b4b7b3c9dfeebf07af544216afc8bead8d
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/customize/acccfg.cxx | 3 | ||||
-rw-r--r-- | cui/source/customize/acccfg.src | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/cui/source/customize/acccfg.cxx b/cui/source/customize/acccfg.cxx index a5770f11edf1..77ec9c30d87f 100644 --- a/cui/source/customize/acccfg.cxx +++ b/cui/source/customize/acccfg.cxx @@ -1387,7 +1387,7 @@ IMPL_LINK_NOARG(SfxAcceleratorConfigPage, SaveHdl) 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; @@ -1396,6 +1396,7 @@ void SfxAcceleratorConfigPage::StartFileDialog( WinBits nBits, const String& rTi m_pFileDlg->SetTitle( rTitle ); m_pFileDlg->AddFilter( aFilterAllStr, OUString(FILEDIALOG_FILTER_ALL) ); m_pFileDlg->AddFilter( aFilterCfgStr, OUString("*.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 f88c33d1db89..81abe9d41f14 100644 --- a/cui/source/customize/acccfg.src +++ b/cui/source/customize/acccfg.src @@ -193,7 +193,7 @@ TabPage RID_SVXPAGE_KEYBOARD }; String STR_FILTERNAME_CFG { - Text [ en-US ] = "Configuration" ; + Text [ en-US ] = "Configuration (*.cfg)" ; }; }; |