mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-27 02:19:10 +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
@ -541,4 +541,15 @@ Menuset
|
|||||||
Item "Reject Change|R" "change-reject"
|
Item "Reject Change|R" "change-reject"
|
||||||
End
|
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
|
End
|
||||||
|
@ -136,6 +136,10 @@ bool TocWidget::getStatus(Cursor & cur, FuncRequest const & cmd,
|
|||||||
{
|
{
|
||||||
case LFUN_CHANGE_ACCEPT:
|
case LFUN_CHANGE_ACCEPT:
|
||||||
case LFUN_CHANGE_REJECT:
|
case LFUN_CHANGE_REJECT:
|
||||||
|
case LFUN_OUTLINE_UP:
|
||||||
|
case LFUN_OUTLINE_DOWN:
|
||||||
|
case LFUN_OUTLINE_IN:
|
||||||
|
case LFUN_OUTLINE_OUT:
|
||||||
status.setEnabled(true);
|
status.setEnabled(true);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
@ -165,6 +169,13 @@ void TocWidget::doDispatch(Cursor & cur, FuncRequest const & cmd)
|
|||||||
cur.dispatch(tmpcmd);
|
cur.dispatch(tmpcmd);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case LFUN_OUTLINE_UP:
|
||||||
|
case LFUN_OUTLINE_DOWN:
|
||||||
|
case LFUN_OUTLINE_IN:
|
||||||
|
case LFUN_OUTLINE_OUT:
|
||||||
|
outline(cmd.action);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if (inset)
|
if (inset)
|
||||||
inset->dispatch(cur, tmpcmd);
|
inset->dispatch(cur, tmpcmd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user