Kaydet (Commit) c70f22b9 authored tarafından Caolán McNamara's avatar Caolán McNamara

QueryBox STR_QUERY_DELETE -> MessageDialog + string

Change-Id: I570fe82f3207e8b40a0e4727c6641fdf59113978
üst f10e4157
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include <hintids.hxx> #include <hintids.hxx>
#include <vcl/menu.hxx> #include <vcl/menu.hxx>
#include <vcl/msgbox.hxx> #include <vcl/layout.hxx>
#include <vcl/help.hxx> #include <vcl/help.hxx>
#include <svl/stritem.hxx> #include <svl/stritem.hxx>
#include <unotools/pathoptions.hxx> #include <unotools/pathoptions.hxx>
...@@ -488,8 +488,8 @@ IMPL_LINK( SwGlossaryDlg, MenuHdl, Menu *, pMn ) ...@@ -488,8 +488,8 @@ IMPL_LINK( SwGlossaryDlg, MenuHdl, Menu *, pMn )
} }
else if (sItemIdent == "delete") else if (sItemIdent == "delete")
{ {
QueryBox aQuery(this, SW_RES(MSG_QUERY_DELETE)); MessageDialog aQuery(this, SW_RES(STR_QUERY_DELETE), VCL_MESSAGE_QUESTION, VCL_BUTTONS_YES_NO);
if(RET_YES == aQuery.Execute()) if (RET_YES == aQuery.Execute())
{ {
const OUString aShortName(m_pShortNameEdit->GetText()); const OUString aShortName(m_pShortNameEdit->GetText());
const OUString aTitle(m_pNameED->GetText()); const OUString aTitle(m_pNameED->GetText());
...@@ -646,7 +646,8 @@ IMPL_LINK_NOARG(SwGlossaryDlg, BibHdl) ...@@ -646,7 +646,8 @@ IMPL_LINK_NOARG(SwGlossaryDlg, BibHdl)
} }
else else
{ {
QueryBox aBox(this, WB_YES_NO, sReadonlyPath); MessageDialog aBox(this, sReadonlyPath, VCL_MESSAGE_QUESTION, VCL_BUTTONS_YES_NO);
if(RET_YES == aBox.Execute()) if(RET_YES == aBox.Execute())
PathHdl(m_pPathBtn); PathHdl(m_pPathBtn);
} }
......
...@@ -26,11 +26,9 @@ String STR_DOUBLE_SHORTNAME ...@@ -26,11 +26,9 @@ String STR_DOUBLE_SHORTNAME
{ {
Text [ en-US ] = "Shortcut name already exists. Please choose another name." ; Text [ en-US ] = "Shortcut name already exists. Please choose another name." ;
}; };
QueryBox MSG_QUERY_DELETE String STR_QUERY_DELETE
{ {
BUTTONS = WB_YES_NO ; Text[ en-US ] = "Delete AutoText?" ;
DEFBUTTON = WB_DEF_NO ;
Message [ en-US ] = "Delete AutoText?" ;
}; };
String STR_QUERY_DELETE_GROUP1 String STR_QUERY_DELETE_GROUP1
{ {
......
...@@ -26,10 +26,10 @@ ...@@ -26,10 +26,10 @@
#define DLG_SORTING (RC_MISC_BEGIN + 19) #define DLG_SORTING (RC_MISC_BEGIN + 19)
#define DLG_TAB_OUTLINE (RC_MISC_BEGIN + 31) #define DLG_TAB_OUTLINE (RC_MISC_BEGIN + 29)
#define STR_DOUBLE_SHORTNAME (RC_MISC_BEGIN + 30) #define STR_DOUBLE_SHORTNAME (RC_MISC_BEGIN + 30)
#define MSG_QUERY_DELETE (RC_MISC_BEGIN + 31) #define STR_QUERY_DELETE (RC_MISC_BEGIN + 31)
#define STR_QUERY_DELETE_GROUP1 (RC_MISC_BEGIN + 32) #define STR_QUERY_DELETE_GROUP1 (RC_MISC_BEGIN + 32)
#define STR_QUERY_DELETE_GROUP2 (RC_MISC_BEGIN + 33) #define STR_QUERY_DELETE_GROUP2 (RC_MISC_BEGIN + 33)
#define STR_NO_GLOSSARIES (RC_MISC_BEGIN + 34) #define STR_NO_GLOSSARIES (RC_MISC_BEGIN + 34)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment