+2000-10-31 Juergen Vigna <jug@sad.it>
+
+ * src/WorkArea.C (work_area_handler): honor xforms 0.88 defines.
+
+ * src/insets/insettabular.C (ActivateCellInset): passed the wrong
+ xposition to the Edit call.
+
2000-10-31 Lars Gullik Bjønnes <larsbj@lyx.org>
* src/trans.C (AddDeadkey): cast explicitly to char.
ev->xbutton.y - ob->y,
ev->xbutton.button);
break;
+#if FL_REVISION < 89
+ case FL_MOUSE:
+#else
case FL_DRAG:
+#endif
if (!ev || ! area->scrollbar) break;
if (ev->xmotion.x != x_old ||
ev->xmotion.y != y_old ||
ev->xbutton.state);
}
break;
+#if FL_REVISION < 89
+ case FL_KEYBOARD:
+#else
case FL_KEYPRESS:
+#endif
{
lyxerr[Debug::KEY] << "Workarea event: KEYBOARD" << endl;
area->workAreaKeyPress(ret_key, ret_state);
}
break;
+
+#if FL_REVISION >= 89
case FL_KEYRELEASE:
lyxerr << "Workarea event: KEYRELEASE" << endl;
break;
-
+#endif
+
case FL_FOCUS:
lyxerr[Debug::GUI] << "Workarea event: FOCUS" << endl;
area->workAreaFocus();
int lx = tabular->GetWidthOfColumn(actcell) -
tabular->GetAdditionalWidth(actcell);
#warning Jürgen, can you rewrite this to _not_ use the sequencing operator. (Lgb)
-#if 1
+#if 0
for(; !tabular->IsLastCellInRow(actcell) && (lx < x);
++actcell,lx += tabular->GetWidthOfColumn(actcell) +
tabular->GetAdditionalWidth(actcell - 1));
}
inset_x = cursor.x() - top_x + tabular->GetBeginningOfTextInCell(actcell);
inset_y = cursor.y();
- inset->Edit(bv, x, y - inset_y, button);
+ inset->Edit(bv, x - inset_x, y - inset_y, button);
if (!the_locking_inset)
return false;
UpdateLocal(bv, CELL, false);
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();
if (the_locking_inset) {
UpdateLocal(bv, CURSOR_PAR, false);
}
inset->setOwner(this);
HideInsetCursor(bv);
TEXT(bv)->InsertInset(bv, inset);
+ if ((cpar(bv)->GetChar(cpos(bv)) != LyXParagraph::META_INSET) ||
+ (cpar(bv)->GetInset(cpos(bv)) != inset))
+ TEXT(bv)->CursorLeft(bv);
TEXT(bv)->selection = 0;
- TEXT(bv)->CursorLeft(bv);
bv->fitCursor(TEXT(bv));
UpdateLocal(bv, CURSOR_PAR, true);
-// inset->Edit(bv, 0, 0, 0);
ShowInsetCursor(bv);
return true;
}