[Libreoffice-commits] core.git: sfx2/source
Rafael Dominguez
venccsralph at gmail.com
Mon Mar 11 06:58:39 PDT 2013
sfx2/source/doc/templatedlg.cxx | 5 +++++
sfx2/source/doc/templatedlg.hrc | 1 +
sfx2/source/doc/templatedlg.src | 5 +++++
3 files changed, 11 insertions(+)
New commits:
commit aac44d9c424861814e81d18b75b6ef315762ccce
Author: Rafael Dominguez <venccsralph at gmail.com>
Date: Sun Mar 10 22:50:16 2013 -0430
Ask for confirmation when deleting a template, fdo#61466
Change-Id: Iaa499bfa5536d8df1d4e6d2aed3c350c588a0c46
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index c5979fa..8826ccc 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -1020,6 +1020,11 @@ void SfxTemplateManagerDlg::OnTemplateProperties ()
void SfxTemplateManagerDlg::OnTemplateDelete ()
{
+ QueryBox aQueryDlg(this, WB_YES_NO | WB_DEF_YES, SfxResId(STR_QMSG_SEL_TEMPLATE_DELETE).toString());
+
+ if ( aQueryDlg.Execute() == RET_NO )
+ return;
+
OUString aTemplateList;
if (mpSearchView->IsVisible())
diff --git a/sfx2/source/doc/templatedlg.hrc b/sfx2/source/doc/templatedlg.hrc
index a22b594..7eeca35 100644
--- a/sfx2/source/doc/templatedlg.hrc
+++ b/sfx2/source/doc/templatedlg.hrc
@@ -72,6 +72,7 @@
#define STR_QMSG_SEL_FOLDER_DELETE 289
#define STR_QMSG_TEMPLATE_OVERWRITE 290
+#define STR_QMSG_SEL_TEMPLATE_DELETE 291
#define IMG_ACTION_SORT 304
#define IMG_ACTION_REFRESH 305
diff --git a/sfx2/source/doc/templatedlg.src b/sfx2/source/doc/templatedlg.src
index dbcf994..8446d62 100644
--- a/sfx2/source/doc/templatedlg.src
+++ b/sfx2/source/doc/templatedlg.src
@@ -102,6 +102,11 @@ String STR_QMSG_TEMPLATE_OVERWRITE
Text [ en-US ] = "A template named $1 already exist in $2. Do you want to overwrite it?";
};
+String STR_QMSG_SEL_TEMPLATE_DELETE
+{
+ Text [ en-US ] = "Do you want to delete the selected templates?";
+};
+
ModelessDialog DLG_TEMPLATE_MANAGER
{
OutputSize = TRUE;
More information about the Libreoffice-commits
mailing list