diff options
-rw-r--r-- | sfx2/source/doc/templatedlg.cxx | 5 | ||||
-rw-r--r-- | sfx2/source/doc/templatedlg.hrc | 1 | ||||
-rw-r--r-- | sfx2/source/doc/templatedlg.src | 5 |
3 files changed, 11 insertions, 0 deletions
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index c5979fa22954..8826ccc732c7 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 a22b5949dca8..7eeca35f8c00 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 dbcf9940d7f6..8446d622e43f 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; |