mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Faster update for char insert in insettext/tabular, fix from Yves, removed
faxcode from configure.cmd. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1185 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9db895d394
commit
cf6dacdb0a
15
ChangeLog
15
ChangeLog
@ -1,3 +1,18 @@
|
||||
2000-11-02 Juergen Vigna <jug@sad.it>
|
||||
|
||||
* src/insets/insettext.C (LocalDispatch): return a DISPATCHED_NOUPDATE
|
||||
on char insertion as it has already be updated by bv->updateInset().
|
||||
|
||||
* src/insets/insettabular.C (UpdateInsetInInset): update the inset
|
||||
if an inset inside was updated.
|
||||
|
||||
* lib/configure.cmd: commented out fax-search code
|
||||
|
||||
2000-11-01 Yves Bastide <stid@acm.org>
|
||||
|
||||
* src/tabular.C (OldFormatRead): set tabular language to the
|
||||
document's one.
|
||||
|
||||
2000-11-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||
|
||||
* lib/reLyX/MakePreamble.pm (translate_preamble): fix reading of
|
||||
|
@ -213,6 +213,7 @@ rc=lineout(lyxrc_defaults,'\view_pspic_command "'GHOSTVIEW'"')
|
||||
rc=lineout(lyxrc_defaults,'\ascii_roff_command "groff -t -ms -Tlatin1"')
|
||||
rc=lineout(lyxrc_defaults,'\chktex_command "'CHKTEX'"')
|
||||
rc=lineout(lyxrc_defaults,'\spell_command "'SPELL'"')
|
||||
/*
|
||||
if \(''=SysSearchPath('PATH','fsend.exe')) then
|
||||
do
|
||||
rc=lineout(X11ROOT'\XFree86\bin\fsend2.cmd','/*A wrapper for fsend.exe*/')
|
||||
@ -223,6 +224,7 @@ do
|
||||
rc=lineout(X11ROOT'\XFree86\bin\fsend2.cmd')
|
||||
rc=lineout(lyxrc_defaults,'\fax_command "fsend2 -p'"'$$Phone' -i'$$FName' -d'$$Name' -m'$$Comment'"'"')
|
||||
end
|
||||
*/
|
||||
if \(''=SysSearchPath('PATH','lp.exe')) then
|
||||
do
|
||||
rc=lineout(lyxrc_defaults,'\print_spool_command "lp"')
|
||||
|
@ -545,8 +545,10 @@ bool InsetTabular::UpdateInsetInInset(BufferView * bv, Inset * inset)
|
||||
{
|
||||
if (!the_locking_inset)
|
||||
return false;
|
||||
if (the_locking_inset != inset)
|
||||
return the_locking_inset->UpdateInsetInInset(bv, inset);
|
||||
if (the_locking_inset != inset) {
|
||||
if (!the_locking_inset->UpdateInsetInInset(bv, inset))
|
||||
return false;
|
||||
}
|
||||
UpdateLocal(bv, CELL, false);
|
||||
return true;
|
||||
}
|
||||
|
@ -596,7 +596,8 @@ void InsetText::InsetButtonPress(BufferView * bv, int x, int y, int button)
|
||||
|
||||
int tmp_x = x - drawTextXOffset;
|
||||
int tmp_y = y + insetAscent;
|
||||
Inset * inset = bv->checkInsetHit(TEXT(bv), tmp_x, tmp_y, button);
|
||||
Inset * inset = bv->checkInsetHit(TEXT(bv), tmp_x, tmp_y-TEXT(bv)->first,
|
||||
button);
|
||||
|
||||
HideInsetCursor(bv);
|
||||
if (the_locking_inset) {
|
||||
@ -628,7 +629,7 @@ void InsetText::InsetButtonPress(BufferView * bv, int x, int y, int button)
|
||||
inset_par = cpar(bv);
|
||||
uinset->InsetButtonPress(bv, x - inset_x, y - inset_y, button);
|
||||
uinset->Edit(bv, x - inset_x, y - inset_y, 0);
|
||||
TEXT(bv)->ClearSelection();
|
||||
// TEXT(bv)->ClearSelection();
|
||||
if (the_locking_inset) {
|
||||
UpdateLocal(bv, CURSOR_PAR, false);
|
||||
}
|
||||
@ -806,6 +807,7 @@ InsetText::LocalDispatch(BufferView * bv,
|
||||
}
|
||||
}
|
||||
UpdateLocal(bv, CURSOR_PAR, true);
|
||||
result=DISPATCHED_NOUPDATE;
|
||||
break;
|
||||
// --- Cursor Movements ---------------------------------------------
|
||||
case LFUN_RIGHTSEL:
|
||||
|
@ -1392,6 +1392,7 @@ void LyXTabular::OldFormatRead(LyXLex & lex, string const & fl)
|
||||
int pos = 0;
|
||||
char depth = 0;
|
||||
LyXFont font(LyXFont::ALL_SANE);
|
||||
font.setLanguage(owner_->BufferOwner()->GetLanguage());
|
||||
|
||||
while (lex.IsOK()) {
|
||||
lex.nextToken();
|
||||
|
Loading…
Reference in New Issue
Block a user