mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-04 16:42:57 +00:00
* 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:
parent
9f5d7a7251
commit
21eddc8fe2
@ -575,5 +575,18 @@ Menuset
|
|||||||
Item "Paragraph Settings...|P" "layout-paragraph"
|
Item "Paragraph Settings...|P" "layout-paragraph"
|
||||||
End
|
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
|
End
|
||||||
|
@ -1311,4 +1311,10 @@ void MathMacroTemplate::infoize(odocstream & os) const
|
|||||||
os << "Math Macro: \\" << name();
|
os << "Math Macro: \\" << name();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
docstring MathMacroTemplate::contextMenu(BufferView const &, int, int) const
|
||||||
|
{
|
||||||
|
return from_ascii("context-math-macro-definition");
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
@ -98,6 +98,8 @@ public:
|
|||||||
InsetCode lyxCode() const { return MATHMACRO_CODE; }
|
InsetCode lyxCode() const { return MATHMACRO_CODE; }
|
||||||
///
|
///
|
||||||
void infoize(odocstream & os) const;
|
void infoize(odocstream & os) const;
|
||||||
|
///
|
||||||
|
docstring contextMenu(BufferView const &, int, int) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user