diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index e9d57cbc818c..0e7fe291c2b9 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -395,7 +395,6 @@ IMPL_LINK(SfxTemplateManagerDlg, TBXDropdownHdl, ToolBox*, pBox) pMoveMenu->InsertSeparator(); pMoveMenu->InsertItem(MNI_MOVE_NEW,SfxResId(STR_MOVE_NEW).toString()); - pMoveMenu->InsertItem(MNI_MOVE_DELETE,SfxResId(STR_MOVE_DELETE).toString()); pMoveMenu->Execute(pBox,pBox->GetItemRect(TBI_TEMPLATE_MOVE), POPUPMENU_EXECUTE_DOWN); @@ -530,17 +529,6 @@ IMPL_LINK(SfxTemplateManagerDlg, MoveMenuSelectHdl, Menu*, pMenu) } } } - else if (nMenuId == MNI_MOVE_DELETE) - { - std::set::const_iterator pIter; - for (pIter = maSelTemplates.begin(); pIter != maSelTemplates.end();) - { - if (maView->removeTemplate((*pIter)->mnId)) - maSelTemplates.erase(pIter++); - else - ++pIter; - } - } else { // Try to move the template, if isnt possible try to copy it. diff --git a/sfx2/source/doc/templatedlg.hrc b/sfx2/source/doc/templatedlg.hrc index 8a46b1113a14..cf94cd3ce37e 100644 --- a/sfx2/source/doc/templatedlg.hrc +++ b/sfx2/source/doc/templatedlg.hrc @@ -46,11 +46,9 @@ #define STR_ACTION_SORT_NAME 264 #define MNI_MOVE_NEW 265 -#define MNI_MOVE_DELETE 266 #define MNI_MOVE_FOLDER_BASE 267 #define STR_MOVE_NEW 268 -#define STR_MOVE_DELETE 270 #define STR_INPUT_NEW 271 #define IMG_ONLINE_REPOSITORY 100 diff --git a/sfx2/source/doc/templatedlg.src b/sfx2/source/doc/templatedlg.src index f9ce918bc781..c634932c92de 100644 --- a/sfx2/source/doc/templatedlg.src +++ b/sfx2/source/doc/templatedlg.src @@ -40,11 +40,6 @@ String STR_MOVE_NEW Text [ en-US ] = "New folder"; }; -String STR_MOVE_DELETE -{ - Text [ en-US ] = "No folder"; -}; - String STR_INPUT_NEW { Text [ en-US ] = "Enter folder name:";