summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorRafael Dominguez <venccsralph@gmail.com>2012-08-19 11:09:55 -0430
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-08-20 06:40:48 +0200
commitc0667d15539c0834ef69dda2267ba29084958658 (patch)
tree8e5828336ef0055c8f0203d0ed748ea83a610855 /sfx2
parent6bd26237fddf4aeef091204c7ab52b8b6df90bbc (diff)
Ask user if it wants to delete selected folder.
Change-Id: If878c2a8ffab4c392df9a5171aa206bd23f4cfca
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/templatedlg.cxx5
-rw-r--r--sfx2/source/doc/templatedlg.hrc2
-rw-r--r--sfx2/source/doc/templatedlg.src5
3 files changed, 12 insertions, 0 deletions
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index e96283864544..0422e3657422 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -1090,6 +1090,11 @@ void SfxTemplateManagerDlg::OnTemplateAsDefault ()
void SfxTemplateManagerDlg::OnFolderDelete()
{
+ QueryBox aQueryDlg(this, WB_YES_NO | WB_DEF_YES, SfxResId(STR_QMSG_SEL_FOLDER_DELETE).toString());
+
+ if ( aQueryDlg.Execute() == RET_NO )
+ return;
+
OUString aFolderList;
std::set<const ThumbnailViewItem*>::const_iterator pIter;
diff --git a/sfx2/source/doc/templatedlg.hrc b/sfx2/source/doc/templatedlg.hrc
index 9871199a5737..567665404ee4 100644
--- a/sfx2/source/doc/templatedlg.hrc
+++ b/sfx2/source/doc/templatedlg.hrc
@@ -69,5 +69,7 @@
#define STR_INPUT_TEMPLATE_NEW 288
+#define STR_QMSG_SEL_FOLDER_DELETE 289
+
#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 db28abcafc4d..c0ddde8f2316 100644
--- a/sfx2/source/doc/templatedlg.src
+++ b/sfx2/source/doc/templatedlg.src
@@ -90,6 +90,11 @@ String STR_INPUT_TEMPLATE_NEW
Text [ en-US ] = "Enter template name:";
};
+String STR_QMSG_SEL_FOLDER_DELETE
+{
+ Text [ en-US ] = "Do you want to delete the selected folders?";
+};
+
ModelessDialog DLG_TEMPLATE_MANAGER
{
OutputSize = TRUE;