Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/2667

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/67/2667/1

Ask for confirmation when deleting a template, fdo#61466

Change-Id: Iaa499bfa5536d8df1d4e6d2aed3c350c588a0c46
---
M sfx2/source/doc/templatedlg.cxx
M sfx2/source/doc/templatedlg.hrc
M sfx2/source/doc/templatedlg.src
3 files changed, 11 insertions(+), 0 deletions(-)



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::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 @@
     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;

-- 
To view, visit https://gerrit.libreoffice.org/2667
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaa499bfa5536d8df1d4e6d2aed3c350c588a0c46
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Rafael Dominguez <venccsralph@gmail.com>


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.