mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
fix cursor when inserting some insets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9158 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1ecc7b79cd
commit
d366b652fa
@ -1,3 +1,8 @@
|
||||
2004-11-02 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* text3.C (specialChar, dispatch): make sure cursor moves to the
|
||||
right after inserting an inset
|
||||
|
||||
2004-11-02 José Matos <jamatos@lyx.org>
|
||||
|
||||
* output_docbook.C (docbook):
|
||||
@ -35,9 +40,11 @@
|
||||
|
||||
2004-10-30 José Matos <jamatos@lyx.org>
|
||||
|
||||
* paragraph.C (getFirstWord): the content should always be escaped there.
|
||||
* paragraph.C (getFirstWord): the content should always be escaped
|
||||
there.
|
||||
(simpleDocBookOnePar):
|
||||
* output_docbook.C (makeEnvironment): replace reference to CDATA to style pass_thru.
|
||||
* output_docbook.C (makeEnvironment): replace reference to CDATA
|
||||
to style pass_thru.
|
||||
|
||||
2004-10-30 José Matos <jamatos@lyx.org>
|
||||
|
||||
@ -68,9 +75,10 @@
|
||||
|
||||
2004-10-28 José Matos <jamatos@lyx.org>
|
||||
|
||||
* output_docbook.C (makeEnvironment): move id to broadest possible scope.
|
||||
* output_docbook.C (makeEnvironment): move id to broadest possible
|
||||
scope.
|
||||
|
||||
* sgml.C (openTag): apply substitution of <> for all attribuites.
|
||||
* sgml.C (openTag): apply substitution of <> for all attributes.
|
||||
|
||||
2004-10-28 José Matos <jamatos@lyx.org>
|
||||
|
||||
@ -100,7 +108,8 @@
|
||||
|
||||
2004-10-25 José Matos <jamatos@lyx.org>
|
||||
|
||||
* output_docbook.C (makeCommand): merge two if's that tested the same condition.
|
||||
* output_docbook.C (makeCommand): merge two if's that tested the
|
||||
same condition.
|
||||
|
||||
2004-10-25 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
|
@ -301,6 +301,7 @@ void specialChar(LCursor & cur, InsetSpecialChar::Kind kind)
|
||||
{
|
||||
lyx::cap::replaceSelection(cur);
|
||||
cur.insert(new InsetSpecialChar(kind));
|
||||
cur.posRight();
|
||||
}
|
||||
|
||||
|
||||
@ -625,6 +626,7 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
if (cur.pos() > cur.paragraph().beginOfBody()) {
|
||||
lyx::cap::replaceSelection(cur);
|
||||
cur.insert(new InsetNewline);
|
||||
cur.posRight();
|
||||
moveCursor(cur, false);
|
||||
}
|
||||
break;
|
||||
@ -800,8 +802,10 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
case LFUN_SPACE_INSERT:
|
||||
if (cur.paragraph().layout()->free_spacing)
|
||||
insertChar(cur, ' ');
|
||||
else
|
||||
else {
|
||||
doInsertInset(cur, this, cmd, false, false);
|
||||
cur.posRight();
|
||||
}
|
||||
moveCursor(cur, false);
|
||||
break;
|
||||
|
||||
@ -1488,6 +1492,7 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
setLayout(cur, tclass.defaultLayoutName());
|
||||
setParagraph(cur, Spacing(), LYX_ALIGN_LAYOUT, string(), 0);
|
||||
insertInset(cur, new InsetFloatList(cmd.argument));
|
||||
cur.posRight();
|
||||
} else {
|
||||
lyxerr << "Non-existent float type: "
|
||||
<< cmd.argument << endl;
|
||||
|
Loading…
Reference in New Issue
Block a user