+2000-12-19 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/WorkArea.C (work_area_handler): simplify the key/keysym
+ handling for XForms 0.89, this might have rendered some cases
+ unusable. I have at least deadkeys, accent-xxx and KP_x working.
+ Please report proplems.
+
+ * src/lyxfunc.C (processKeySym): make the self-insert handling
+ work as it should
+
+2000-12-18 Baruch Even <baruch.even@writeme.com>
+
+ * src/LaTeX.C (deplog): fix spelling errors
+ * src/text2.C (CutSelection): ditto
+ * src/lyxfunc.C (Dispatch): ditto
+
2000-12-18 Lars Gullik Bjønnes <larsbj@lyx.org>
+ * lib/layouts/stdlayouts.inc: only allow align Center for Caption
* src/mathed/math_inset.C (MathMatrixInset): initialize v_align
and h_align in default init.
LabelSep xx
ParSkip 0.4
TopSep 0.5
- Align Block
- AlignPossible Block, Left
+ Align Center
+ AlignPossible Center
LabelType Sensitive
LabelString Caption
// Ok now we found a file.
// Now we should make sure that this is a file that we can
// access through the normal paths.
- // We will not try any fance search methods to
+ // We will not try any fancy search methods to
// find the file.
// (1) foundfile is an
if (AbsolutePath(foundfile)) {
lyxerr[Debug::DEPEND] << "AbsolutePath file: "
<< foundfile << endl;
- // On inital insert we want to do the update at once
+ // On initial insert we want to do the update at once
// since this file can not be a file generated by
// the latex run.
head.insert(foundfile, true);
if (!key) {
// We migth have to add more keysyms here also,
// we will do that as the issues arise. (Lgb)
- if (keysym == XK_space)
+ if (keysym == XK_space) {
ret_key = keysym;
- else
+ lyxerr[Debug::KEY] << "Using keysym [A]"
+ << endl;
+ } else
break;
} else {
// It seems that this was a bit optimistic...
// With this hacking things seems to be better (Lgb)
- if (static_cast<unsigned char>(key) == key
- && !iscntrl(key))
- ret_key = key;
- else
+ //if (!iscntrl(key)) {
+ // ret_key = key;
+ // lyxerr[Debug::KEY]
+ // << "Using key [B]\n"
+ // << "Uchar["
+ // << static_cast<unsigned char>(key)
+ // << endl;
+ //} else {
ret_key = (keysym ? keysym : key);
+ lyxerr[Debug::KEY] << "Using keysym [B]"
+ << endl;
+ //}
}
#endif
} else if (action == LFUN_SELFINSERT) {
// We must set the argument to the char looked up by
// XKeysymToString
- char const * tmp = XKeysymToString(keysym);
- // if (!argument.empty()) {
- argument = tmp ? tmp : "";
- // }
+ XKeyEvent xke;
+ xke.type = KeyPress;
+ xke.serial = 0;
+ xke.send_event = False;
+ xke.display = fl_get_display();
+ xke.window = 0;
+ xke.root = 0;
+ xke.subwindow = 0;
+ xke.time = 0;
+ xke.x = 0;
+ xke.y = 0;
+ xke.x_root = 0;
+ xke.y_root = 0;
+ xke.state = state;
+ xke.keycode = XKeysymToKeycode(fl_get_display(), keysym);
+ xke.same_screen = True;
+ char ret[10];
+ KeySym tmpkeysym;
+ int res = XLookupString(&xke, ret, 10, &tmpkeysym, 0);
+ //Assert(keysym == tmpkeysym);
+ lyxerr[Debug::KEY] << "TmpKeysym ["
+ << tmpkeysym << "]" << endl;
+
+ if (res > 0)
+ argument = string(ret, res);
lyxerr[Debug::KEY] << "SelfInsert arg["
<< argument << "]" << endl;
}
owner->view()->text->cursor;
owner->view()->update(BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE);
// It is possible to make it a lot faster still
- // just comment out the lone below...
+ // just comment out the line below...
owner->view()->showCursor();
} else {
owner->view()->cut();
owner->view()->text->cursor;
owner->view()->update(BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE);
// It is possible to make it a lot faster still
- // just comment out the lone below...
+ // just comment out the line below...
owner->view()->showCursor();
}
} else {
MathedIter it(a0);
LyxArrayBase * a = it.Copy();
- // make rom for the data
+ // make room for the data
split(a->Last());
array->MergeF(a, pos, a->Last());
- int pos1= pos, pos2 = pos + a->Last(); // pos3= 0;
+ int pos1 = pos;
+ int pos2 = pos + a->Last();
+ // int pos3 = 0;
goPosAbs(pos1);
return;
// OK, we have a selection. This is always between sel_start_cursor
- // and sel_end cursor
+ // and sel_end_cursor
#ifndef NEW_INSETS
// Check whether there are half footnotes in the selection
if (sel_start_cursor.par()->footnoteflag != LyXParagraph::NO_FOOTNOTE