* lyxtext.h:
* text2.C: setParagraph takes linespacing now
+2001-08-15 John Levon <moz@compsoc.man.ac.uk>
+
+ * LyxAction.C: add internal LFUN_CITATION_INSERT
+
+ * LyXView.C: actually apply fix
+
+ * bufferlist.C: fix open non-existent file
+
+ * lyxfind.C: fix indentation
+
+ * lyxfunc.C: remove unneeded assert, fix typo
+
2001-08-14 Dekel Tsur <dekelts@tau.ac.il>
* buffer.C (parseSingleLyXformat2Token): Do not generate errors
ReadOnly },
{ LFUN_CITATION_CREATE, "citation-insert",
N_("Insert citation"), Noop },
+ { LFUN_CITATION_INSERT, "", "internal only", Noop },
{ LFUN_EXEC_COMMAND, "command-execute", "", NoBuffer },
{ LFUN_PREFIX, "command-prefix",
N_("Execute command"), NoBuffer },
setWindowTitle(title);
last_title = title;
}
+ last_title = title;
}
// File information about normal file
FileInfo fileInfo2(s);
+ if (!fileInfo2.exist()) {
+ WriteAlert(_("Error!"), _("Cannot open file"),
+ MakeDisplayPath(s));
+ return 0;
+ }
+
// Check if emergency save file exists and is newer.
e += OnlyFilename(s) + ".emergency";
FileInfo fileInfoE(e);
bv->update(bv->getLyXText(), BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE);
++replace_count;
if (!once)
- found = LyXFind(bv, searchstr, fw, false, casesens, matchwrd);
+ found = LyXFind(bv, searchstr, fw, false, casesens, matchwrd);
} while (!once && replaceall && found);
if (bv->focus())
}
}
- lyx::Assert(action != LFUN_SELECT_FILE_SYNC);
-
switch (action) {
case LFUN_ESCAPE:
owner->message(str.str().c_str());
} else {
ostringstream str;
- str << _("Could not open docuent") << ' ' << disp_fn;
+ str << _("Could not open document") << ' ' << disp_fn;
owner->message(str.str().c_str());
}
}