+2000-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * NEWS: updated.
+
+2000-10-17 John Levon <moz@compsoc.man.ac.uk>
+
+ * src/frontends/xforms/FormParagraph.C: more space above/below
+ fixes
+
+2000-10-17 Dekel Tsur <dekelts@tau.ac.il>
+
+ * src/lyxfunc.C (Dispatch): Call to showState() after insertion of
+ a char only if real_current_font was changed.
+
2000-10-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
- * NEWS: update somehow for 1.1.6
+ * NEWS: update somewhat for 1.1.6
* lib/ui/default.ui: clean up.
- the table support has been completely rewritten. It is now a modular
object (inset) which owns for each cell a (also) newly written text
- inset. This permits now to have automatic text-wrap inside a tabular
+ inset. This now permits automatic text-wrap inside a tabular
cell (if you define a width), multiparagraph mode AND setting of
layouts for the paragraphs (lists inside a tabular cell!). Last but
- not least, wide tabulars now scroll automatically so that all of it
+ not least, a wide tabular now scroll automatically so that all of it
is visible without the need to enlarge the window!
While there are yet no other new features, they will be now MUCH
easier to add. It may be that because of being "young" code some
- features may not work right now, but at least you can use this much
+ features may not work right now, but at least it is much
better than before.
- new external material inset: this is a new kind of very powerful
inset which will allow LyX to interface intelligently with external
- applications. Among other good things, it will allow you to finally
+ applications. Among other good things, it will finally allow you to
include GIF, JPEG, TIF, PNG, or just about any other raster format
images in your document. It will even do an approximate ascii
rendering when you do Ascii export if you have gifscii installed.
viewing or exporting purpose) has been rewritten. In particular, the
PDF format is now supported [Dekel, details?]
-- DocBook improvements [José, details?]
+- included files work now with docbook and linuxdoc.
+ New layout docbook-book.
-And finally, there has been a lot of smaller changes, which are
+And finally, there have been a lot of smaller changes, which are
mentioned here for your information
- the menu entry File->New does not prompt for a file name by default
//
// "Synchronize" the choices and input fields, making it
// impossible to commit senseless data.
- if (ob == general_->choice_space_above) {
- if (fl_get_choice (general_->choice_space_above) != 7)
- fl_set_input (general_->input_space_above, "");
- } else if (ob == general_->choice_space_below) {
- if (fl_get_choice (general_->choice_space_below) != 7)
- fl_set_input (general_->input_space_below, "");
- }
+
+ if (fl_get_choice (general_->choice_space_above) != 7)
+ fl_set_input (general_->input_space_above, "");
+
+ if (fl_get_choice (general_->choice_space_below) != 7)
+ fl_set_input (general_->input_space_below, "");
+
//
// then the extra form
//
- else if (ob == extra_->radio_pextra_indent) {
+ if (ob == extra_->radio_pextra_indent) {
int n = fl_get_button(extra_->radio_pextra_indent);
if (n) {
fl_set_button(extra_->radio_pextra_minipage, 0);
// first the general form
//
string input = fl_get_input (general_->input_space_above);
+ bool invalid = false;
- if (input.empty()) {
- fl_set_choice (general_->choice_space_above, 1);
- } else if (isValidGlueLength (input)) {
- fl_set_choice (general_->choice_space_above, 7);
- } else {
- fl_set_choice (general_->choice_space_above, 7);
- fl_set_object_label(dialog_->text_warning,
- _("Warning: Invalid Length (valid example: 10mm)"));
- fl_show_object(dialog_->text_warning);
- ret = false;
- }
-
+ if (fl_get_choice(general_->choice_space_above)==7)
+ invalid = !input.empty() && !isValidGlueLength(input);
+
input = fl_get_input (general_->input_space_below);
-
- if (input.empty()) {
- fl_set_choice (general_->choice_space_below, 1);
- } else if (isValidGlueLength(input)) {
- fl_set_choice (general_->choice_space_below, 7);
- } else {
- fl_set_choice (general_->choice_space_below, 7);
- fl_set_object_label(dialog_->text_warning,
- _("Warning: Invalid Length (valid example: 10mm)"));
- fl_show_object(dialog_->text_warning);
- ret = false;
+
+ if (fl_get_choice(general_->choice_space_below)==7)
+ invalid = invalid || (!input.empty() && !isValidGlueLength(input));
+
+ if (ob == general_->input_space_above || ob == general_->input_space_below) {
+ if (invalid) {
+ fl_set_object_label(dialog_->text_warning,
+ _("Warning: Invalid Length (valid example: 10mm)"));
+ fl_show_object(dialog_->text_warning);
+ return false;
+ } else {
+ fl_hide_object(dialog_->text_warning);
+ return true;
+ }
}
+
//
// then the extra form
//
case LFUN_SELFINSERT:
{
+ LyXFont old_font(owner->view()->text->real_current_font);
for (string::size_type i = 0; i < argument.length(); ++i) {
owner->view()->text->InsertChar(owner->view(), argument[i]);
// This needs to be in the loop, or else we
owner->view()->text->sel_cursor =
owner->view()->text->cursor;
moveCursorUpdate(false);
- owner->showState(); // current_font.number can change
- // so we need to update the minibuffer
+
+ // real_current_font.number can change so we need to
+ // update the minibuffer
+ if (old_font != owner->view()->text->real_current_font)
+ owner->showState();
}
break;
}
owner->view()->beforeChange();
-
+ LyXFont old_font(owner->view()->text->real_current_font);
for (string::size_type i = 0;
i < argument.length(); ++i) {
if (greek_kb_flag) {
owner->view()->text->sel_cursor =
owner->view()->text->cursor;
moveCursorUpdate(false);
- owner->showState(); // current_font.number can change
- // so we need to update the minibuffer
+
+ // real_current_font.number can change so we need to
+ // update the minibuffer
+ if (old_font != owner->view()->text->real_current_font)
+ owner->showState();
return string();
} else {
// why is an "Unknown action" with empty
} else if (event == FL_PUSH) {
// This actually clears the buffer.
mini->PrepareForCommand();
+ return 1;
}
return 0;