John's miscellaneous collection of small bits and pieces patch.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2522 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2001-08-16 10:19:59 +00:00
parent 4aca97ca21
commit ab09cf6fc9
6 changed files with 22 additions and 4 deletions

View File

@ -9,6 +9,18 @@
* 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

View File

@ -153,6 +153,7 @@ void LyXAction::init()
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 },

View File

@ -235,6 +235,7 @@ void LyXView::updateWindowTitle()
setWindowTitle(title);
last_title = title;
}
last_title = title;
}

View File

@ -350,6 +350,12 @@ Buffer * BufferList::readFile(string const & s, bool ronly)
// 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);

View File

@ -104,7 +104,7 @@ int LyXReplace(BufferView * bv,
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())

View File

@ -938,8 +938,6 @@ string const LyXFunc::dispatch(int ac,
}
}
lyx::Assert(action != LFUN_SELECT_FILE_SYNC);
switch (action) {
case LFUN_ESCAPE:
@ -1892,7 +1890,7 @@ void LyXFunc::open(string const & fname)
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());
}
}