diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-21 12:46:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-21 14:07:55 +0100 |
commit | 8b62a475f742dd864be714d2b990a0c01035c3ff (patch) | |
tree | ce30e34439280742d5a996c71e6fcbd62c510e20 /cui | |
parent | 566e6fe58ea66722dd0c504f58676b89e8b95621 (diff) |
QueryBox RID_SFXQB_SET_LANGUAGE -> MessageDialog + string
Change-Id: Ic1b5233563ff9ce3e3453b47fe86138ae2497a18
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/inc/cuires.hrc | 1 | ||||
-rw-r--r-- | cui/source/options/optdict.cxx | 10 | ||||
-rw-r--r-- | cui/source/options/optdict.src | 8 |
3 files changed, 9 insertions, 10 deletions
diff --git a/cui/source/inc/cuires.hrc b/cui/source/inc/cuires.hrc index 8e26588f44a9..18bd65134e36 100644 --- a/cui/source/inc/cuires.hrc +++ b/cui/source/inc/cuires.hrc @@ -410,6 +410,7 @@ #define RID_SXVSTR_CONFIRM_DELETE_TOOLBAR (RID_SVX_START + 1283) #define RID_SVXSTR_CONFIRM_RESTORE_DEFAULT (RID_SVX_START + 1284) +#define RID_SVXSTR_CONFIRM_SET_LANGUAGE (RID_SVX_START + 1285) #endif diff --git a/cui/source/options/optdict.cxx b/cui/source/options/optdict.cxx index 4141037357c4..23c7d2355e55 100644 --- a/cui/source/options/optdict.cxx +++ b/cui/source/options/optdict.cxx @@ -26,7 +26,7 @@ #include <comphelper/string.hxx> #include <unotools/intlwrapper.hxx> #include <vcl/svapp.hxx> -#include <vcl/msgbox.hxx> +#include <vcl/layout.hxx> #include <vcl/settings.hxx> #include <svx/dialogs.hrc> @@ -141,7 +141,7 @@ IMPL_LINK_NOARG(SvxNewDictionaryDialog, OKHdl_Impl) if ( bFound ) { // duplicate names? - InfoBox( this, CUI_RESSTR( RID_SVXSTR_OPT_DOUBLE_DICTS ) ).Execute(); + MessageDialog(this, CUI_RESSTR(RID_SVXSTR_OPT_DOUBLE_DICTS), VCL_MESSAGE_INFO).Execute(); pNameEdit->GrabFocus(); return 0; } @@ -450,10 +450,10 @@ IMPL_LINK_NOARG(SvxEditDictionaryDialog, SelectLangHdl_Impl) if ( nLang != nOldLang ) { - QueryBox aBox( this, CUI_RES( RID_SFXQB_SET_LANGUAGE ) ); - OUString sTxt( aBox.GetMessText() ); + MessageDialog aBox(this, CUI_RES( RID_SVXSTR_CONFIRM_SET_LANGUAGE), VCL_MESSAGE_QUESTION, VCL_BUTTONS_YES_NO); + OUString sTxt(aBox.get_primary_text()); sTxt = sTxt.replaceFirst( "%1", pAllDictsLB->GetSelectEntry() ); - aBox.SetMessText( sTxt ); + aBox.set_primary_text(sTxt); if ( aBox.Execute() == RET_YES ) { diff --git a/cui/source/options/optdict.src b/cui/source/options/optdict.src index d1880874eb73..eeae6311835a 100644 --- a/cui/source/options/optdict.src +++ b/cui/source/options/optdict.src @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <sfx2/sfx.hrc> #include "helpid.hrc" #include <cuires.hrc> @@ -25,16 +24,15 @@ String RID_SVXSTR_OPT_DOUBLE_DICTS { Text [ en-US ] = "The specified name already exists.\nPlease enter a new name." ; }; + String STR_MODIFY { Text [ en-US ] = "~Replace" ; }; -QueryBox RID_SFXQB_SET_LANGUAGE +String RID_SVXSTR_CONFIRM_SET_LANGUAGE { - Buttons = WB_YES_NO ; - DefButton = WB_DEF_NO ; - Message [ en-US ] = "Do you want to change the '%1' dictionary language?" ; + Text [ en-US ] = "Do you want to change the '%1' dictionary language?" ; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |