diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-21 11:42:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-21 14:07:54 +0100 |
commit | 8fce2ef6c33787922a06340fe8eab69b104cb555 (patch) | |
tree | df521d9368dd5bc9c3cf7e4cfb3e23b627f333f3 /cui | |
parent | de6fd1b90f6ab41b93bc15f2feb72ef0e3eb70c2 (diff) |
QueryBox QBX_CONFIRM_RESTORE_DEFAULT -> MessageDialog + string
Change-Id: I93911342a316beaba0d33b35bda1bfa4355befe2
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/customize/cfg.cxx | 4 | ||||
-rw-r--r-- | cui/source/customize/cfg.hrc | 2 | ||||
-rw-r--r-- | cui/source/customize/cfg.src | 6 | ||||
-rw-r--r-- | cui/source/inc/cuires.hrc | 1 |
4 files changed, 5 insertions, 8 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index 21fced93706c..34edd30e19e5 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -3075,8 +3075,8 @@ IMPL_LINK( SvxToolbarConfigPage, ToolbarSelectHdl, MenuButton *, pButton ) } case ID_DEFAULT_STYLE: { - QueryBox qbox( this, - CUI_RES( QBX_CONFIRM_RESTORE_DEFAULT ) ); + MessageDialog qbox(this, + CUI_RES(RID_SVXSTR_CONFIRM_RESTORE_DEFAULT), VCL_MESSAGE_QUESTION, VCL_BUTTONS_YES_NO); if ( qbox.Execute() == RET_YES ) { diff --git a/cui/source/customize/cfg.hrc b/cui/source/customize/cfg.hrc index 5fc6d73d9dd5..6a837139e858 100644 --- a/cui/source/customize/cfg.hrc +++ b/cui/source/customize/cfg.hrc @@ -37,6 +37,4 @@ #define MODIFY_TOOLBAR (60 + CFG_OFFSET) #define MODIFY_TOOLBAR_CONTENT (61 + CFG_OFFSET) -#define QBX_CONFIRM_RESTORE_DEFAULT (66 + CFG_OFFSET) - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cui/source/customize/cfg.src b/cui/source/customize/cfg.src index 08f1c7208556..fed45bd2b405 100644 --- a/cui/source/customize/cfg.src +++ b/cui/source/customize/cfg.src @@ -236,11 +236,9 @@ String RID_SVXSTR_CONFIRM_TOOLBAR_RESET Text [ en-US ] = "The toolbar configuration for %SAVE IN SELECTION% will be reset to the default settings. Do you want to continue?"; }; -QueryBox QBX_CONFIRM_RESTORE_DEFAULT +String RID_SVXSTR_CONFIRM_RESTORE_DEFAULT { - Message [ en-US ] = "This will delete all changes previously made to this toolbar. Do you really want to reset the toolbar?"; - BUTTONS = WB_YES_NO ; - DEFBUTTON = WB_DEF_NO ; + Text [ en-US ] = "This will delete all changes previously made to this toolbar. Do you really want to reset the toolbar?"; }; String RID_SVXSTR_MNUCFG_ALREADY_INCLUDED diff --git a/cui/source/inc/cuires.hrc b/cui/source/inc/cuires.hrc index b0e48e5f1b14..ca444371bb0e 100644 --- a/cui/source/inc/cuires.hrc +++ b/cui/source/inc/cuires.hrc @@ -409,6 +409,7 @@ #define RID_SVXSTR_APPLYPERSONA (RID_SVX_START + 1282) #define RID_SXVSTR_CONFIRM_DELETE_TOOLBAR (RID_SVX_START + 1283) +#define RID_SVXSTR_CONFIRM_RESTORE_DEFAULT (RID_SVX_START + 1284) #endif |