mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 19:14:51 +00:00
Add outline-in/out/up/down to the outline context menu.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29516 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f9158fcd8d
commit
f4c0f80857
@ -540,5 +540,16 @@ Menuset
|
||||
Item "Accept Change|C" "change-accept"
|
||||
Item "Reject Change|R" "change-reject"
|
||||
End
|
||||
|
||||
#
|
||||
# Toc Table of Context context menu
|
||||
#
|
||||
|
||||
Menu "context-toc-tableofcontents"
|
||||
Item "Promote Section|P" "outline-out"
|
||||
Item "Demote Section|D" "outline-in"
|
||||
Item "Move Section Up|U" "outline-up"
|
||||
Item "Move Section Down|w" "outline-down"
|
||||
End
|
||||
|
||||
End
|
||||
|
@ -136,6 +136,10 @@ bool TocWidget::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
{
|
||||
case LFUN_CHANGE_ACCEPT:
|
||||
case LFUN_CHANGE_REJECT:
|
||||
case LFUN_OUTLINE_UP:
|
||||
case LFUN_OUTLINE_DOWN:
|
||||
case LFUN_OUTLINE_IN:
|
||||
case LFUN_OUTLINE_OUT:
|
||||
status.setEnabled(true);
|
||||
return true;
|
||||
|
||||
@ -164,6 +168,13 @@ void TocWidget::doDispatch(Cursor & cur, FuncRequest const & cmd)
|
||||
dispatch(item.action());
|
||||
cur.dispatch(tmpcmd);
|
||||
break;
|
||||
|
||||
case LFUN_OUTLINE_UP:
|
||||
case LFUN_OUTLINE_DOWN:
|
||||
case LFUN_OUTLINE_IN:
|
||||
case LFUN_OUTLINE_OUT:
|
||||
outline(cmd.action);
|
||||
break;
|
||||
|
||||
default:
|
||||
if (inset)
|
||||
|
Loading…
Reference in New Issue
Block a user