Remove "No folder" option from move menu.
- We dont support having folders and template files mixed, so we cant move them to the same folders as templates. Change-Id: I07a519e63fef358d915a1d2c8484c6c2d8940642
This commit is contained in:
parent
0088d03623
commit
babc18065f
3 changed files with 0 additions and 19 deletions
|
@ -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 ThumbnailViewItem*>::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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:";
|
||||
|
|
Loading…
Reference in a new issue