mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
prepare support insertion of greek characters without explicitly entering
math mode git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2627 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3e7bc31d0c
commit
63adecdf8a
@ -754,6 +754,7 @@ void mathDispatchCreation(BufferView * bv, string const & arg, bool display)
|
||||
bv->owner()->getLyXFunc()->setMessage(N_("Math editor mode"));
|
||||
}
|
||||
|
||||
|
||||
void mathDispatchMathDisplay(BufferView * bv, string const & arg)
|
||||
{
|
||||
mathDispatchCreation(bv, arg, true);
|
||||
@ -815,3 +816,16 @@ void mathDispatchInsertMath(BufferView * bv, string const & arg)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void mathDispatchGreek(BufferView * bv, string const & arg)
|
||||
{
|
||||
if (bv->available()) {
|
||||
InsetFormula * f = new InsetFormula;
|
||||
if (openNewInset(bv, f)) {
|
||||
bv->theLockingInset()->localDispatch(bv, LFUN_GREEK, string());
|
||||
bv->theLockingInset()->localDispatch(bv, LFUN_SELFINSERT, arg);
|
||||
bv->unlockInset(f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -143,6 +143,8 @@ void mathDispatchInsertMath(BufferView *, string const &);
|
||||
//
|
||||
void mathDispatchInsertMatrix(BufferView *, string const &);
|
||||
//
|
||||
void mathDispatchGreek(BufferView *, string const &);
|
||||
//
|
||||
void mathDispatchMathImportSelection(BufferView *, string const &);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user