* math macro definition context menu

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23621 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stefan Schimanski 2008-03-10 12:51:14 +00:00
parent 9f5d7a7251
commit 21eddc8fe2
3 changed files with 22 additions and 1 deletions

View File

@ -575,5 +575,18 @@ Menuset
Item "Paragraph Settings...|P" "layout-paragraph"
End
Menu "context-math-macro-definition"
Item "Append Parameter" "math-macro-add-param"
Item "Remove Last Parameter" "math-macro-remove-param"
Separator
Item "Make First Non-Optional into Optional Parameter" "math-macro-make-optional"
Item "Make Last Optional into Non-Optional Parameter" "math-macro-make-nonoptional"
Item "Insert Optional Parameter" "math-macro-add-optional-param"
Item "Remove Optional Parameter" "math-macro-remove-optional-param"
Separator
Item "Append Parameter Eating From The Right" "math-macro-append-greedy-param"
Item "Append Optional Parameter Eating From The Right" "math-macro-add-greedy-optional-param"
Item "Remove Last Parameter Spitting Out To The Right" "math-macro-remove-greedy-param"
End
End

View File

@ -1311,4 +1311,10 @@ void MathMacroTemplate::infoize(odocstream & os) const
os << "Math Macro: \\" << name();
}
docstring MathMacroTemplate::contextMenu(BufferView const &, int, int) const
{
return from_ascii("context-math-macro-definition");
}
} // namespace lyx

View File

@ -98,6 +98,8 @@ public:
InsetCode lyxCode() const { return MATHMACRO_CODE; }
///
void infoize(odocstream & os) const;
///
docstring contextMenu(BufferView const &, int, int) const;
protected:
///