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:
André Pönitz 2001-08-30 09:35:11 +00:00
parent 3e7bc31d0c
commit 63adecdf8a
2 changed files with 16 additions and 0 deletions

View File

@ -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);
}
}
}

View File

@ -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