* src/insets/insetert.C

(getStatus): enable LFUN_QUOTE
        (doDispatch): handle LFUN_QUOTE directly (fixes bug 2429)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13501 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2006-03-27 14:13:48 +00:00
parent b9ff894f8b
commit 47d428cfe2

View File

@ -226,6 +226,12 @@ void InsetERT::doDispatch(LCursor & cur, FuncRequest & cmd)
//lyxerr << "\nInsetERT::doDispatch (begin): cmd: " << cmd << endl;
switch (cmd.action) {
case LFUN_QUOTE: {
// We need to bypass the fancy quotes in LyXText
FuncRequest f(LFUN_SELFINSERT, "\"");
dispatch(cur, f);
break;
}
case LFUN_INSET_MODIFY: {
InsetCollapsable::CollapseStatus st;
InsetERTMailer::string2params(cmd.argument, st);
@ -354,7 +360,6 @@ bool InsetERT::getStatus(LCursor & cur, FuncRequest const & cmd,
case LFUN_INSERT_BOX:
case LFUN_GOTONOTE:
case LFUN_PARAGRAPH_SPACING:
case LFUN_QUOTE:
case LFUN_LABEL_GOTO:
case LFUN_REFERENCE_GOTO:
case LFUN_SPACE_INSERT:
@ -372,6 +377,7 @@ bool InsetERT::getStatus(LCursor & cur, FuncRequest const & cmd,
status.enabled(false);
return true;
case LFUN_QUOTE:
case LFUN_INSET_MODIFY:
case LFUN_PASTE:
case LFUN_PASTESELECTION: