diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-22 09:33:44 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-22 09:33:44 +0100 |
commit | c70f22b9a56d19efa58329dcd5095804d1864513 (patch) | |
tree | 4249d40bd054a355897de5327da86f4c1f1c731e /sw/source/ui | |
parent | f10e4157ce6c134bb9561b7b48254c2c566726eb (diff) |
QueryBox STR_QUERY_DELETE -> MessageDialog + string
Change-Id: I570fe82f3207e8b40a0e4727c6641fdf59113978
Diffstat (limited to 'sw/source/ui')
-rw-r--r-- | sw/source/ui/misc/glossary.cxx | 9 | ||||
-rw-r--r-- | sw/source/ui/misc/glossary.src | 6 |
2 files changed, 7 insertions, 8 deletions
diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx index 0e83851720ab..33d898490f21 100644 --- a/sw/source/ui/misc/glossary.cxx +++ b/sw/source/ui/misc/glossary.cxx @@ -20,7 +20,7 @@ #include <hintids.hxx> #include <vcl/menu.hxx> -#include <vcl/msgbox.hxx> +#include <vcl/layout.hxx> #include <vcl/help.hxx> #include <svl/stritem.hxx> #include <unotools/pathoptions.hxx> @@ -488,8 +488,8 @@ IMPL_LINK( SwGlossaryDlg, MenuHdl, Menu *, pMn ) } else if (sItemIdent == "delete") { - QueryBox aQuery(this, SW_RES(MSG_QUERY_DELETE)); - if(RET_YES == aQuery.Execute()) + MessageDialog aQuery(this, SW_RES(STR_QUERY_DELETE), VCL_MESSAGE_QUESTION, VCL_BUTTONS_YES_NO); + if (RET_YES == aQuery.Execute()) { const OUString aShortName(m_pShortNameEdit->GetText()); const OUString aTitle(m_pNameED->GetText()); @@ -646,7 +646,8 @@ IMPL_LINK_NOARG(SwGlossaryDlg, BibHdl) } else { - QueryBox aBox(this, WB_YES_NO, sReadonlyPath); + MessageDialog aBox(this, sReadonlyPath, VCL_MESSAGE_QUESTION, VCL_BUTTONS_YES_NO); + if(RET_YES == aBox.Execute()) PathHdl(m_pPathBtn); } diff --git a/sw/source/ui/misc/glossary.src b/sw/source/ui/misc/glossary.src index 28d8f5b8d6a2..7d44cdfebc6b 100644 --- a/sw/source/ui/misc/glossary.src +++ b/sw/source/ui/misc/glossary.src @@ -26,11 +26,9 @@ String STR_DOUBLE_SHORTNAME { Text [ en-US ] = "Shortcut name already exists. Please choose another name." ; }; -QueryBox MSG_QUERY_DELETE +String STR_QUERY_DELETE { - BUTTONS = WB_YES_NO ; - DEFBUTTON = WB_DEF_NO ; - Message [ en-US ] = "Delete AutoText?" ; + Text[ en-US ] = "Delete AutoText?" ; }; String STR_QUERY_DELETE_GROUP1 { |