+2000-05-05 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/insets/insetspecialchar.C (Read): allow command == '~' for
+ PROTECTED_SEPARATOR
+ (Write): write '~' for PROTECTED_SEPARATOR
+
+2000-05-04 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/lyxparagraph.h: add a friend struct matchIT after the struct
+ InsetTable.
+
+ * src/mathed/formula.C (drawStr): rename size to siz.
+
+ * src/insets/figinset.C (RestoreForm): rename pflags to piflags,
+ possibly fix a bug by not changing the pflags = flags to piflags =
+ flags.
+
2000-05-05 Juergen Vigna <jug@sad.it>
* src/insets/insetbib.C: moved using directive
fl_activate_object(form->Height);
}
- int pflags = flags & 3;
- fl_set_button(form->Wysiwyg0, (pflags == 0));
- fl_set_button(form->Wysiwyg1, (pflags == 1));
- fl_set_button(form->Wysiwyg2, (pflags == 2));
- fl_set_button(form->Wysiwyg3, (pflags == 3));
+ int piflags = flags & 3;
+ fl_set_button(form->Wysiwyg0, (piflags == 0));
+ fl_set_button(form->Wysiwyg1, (piflags == 1));
+ fl_set_button(form->Wysiwyg2, (piflags == 2));
+ fl_set_button(form->Wysiwyg3, (piflags == 3));
fl_set_button(form->Frame, ((flags & 4) != 0));
fl_set_button(form->Translations, ((flags & 8) != 0));
fl_set_button(form->Subfigure, (subfigure != 0));
case LDOTS: command = "\\ldots{}"; break;
case MENU_SEPARATOR: command = "\\menuseparator"; break;
case PROTECTED_SEPARATOR:
- command = "\\protected_separator"; break;
+ //command = "\\protected_separator";
+ command = "~";
+ break;
}
os << "\\SpecialChar " << command << "\n";
}
kind = LDOTS;
else if (command == "\\menuseparator")
kind = MENU_SEPARATOR;
- else if (command == "\\protected_separator")
+ else if (command == "\\protected_separator"
+ || command == "~")
kind = PROTECTED_SEPARATOR;
else
lex.printError("InsetSpecialChar: Unknown kind: `$$Token'");
// Global bindings (this must be done as early as possible.) (Lgb)
toplevel_keymap = new kb_keymap;
+
// Fill the toplevel_keymap with some defaults
for (LyXRC::Bindings::const_iterator cit = lyxrc.bindings.begin();
cit != lyxrc.bindings.end(); ++cit) {
InsetTable(size_type p, Inset * i) { pos = p; inset = i;}
};
///
+ friend struct matchIT;
+ ///
struct matchIT {
/// used by lower_bound
inline
// In a near future maybe we use a better fonts renderer
-void MathedInset::drawStr(Painter & pain, short type, int size,
+void MathedInset::drawStr(Painter & pain, short type, int siz,
int x, int y, byte const * s, int ls)
{
string st;
} else {
st = string(reinterpret_cast<char const *>(s), ls);
}
- LyXFont mf = mathed_get_font(type, size);
+ LyXFont mf = mathed_get_font(type, siz);
pain.text(x, y, st, mf);
}