]> git.lyx.org Git - features.git/commit
Refactor Buffer.cpp: loadLyXFile():
authorVincent van Ravesteijn <vfr@lyx.org>
Mon, 25 Oct 2010 11:57:56 +0000 (11:57 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Mon, 25 Oct 2010 11:57:56 +0000 (11:57 +0000)
commitdf1c5ef6118a1b9c82d104187a927d082c70a933
tree03cf49b3ade267363ed8d88f96b9d4bc030f6a2e
parent75773f3c2257bfc273ba3f5a180ec76ba98954ee
Refactor Buffer.cpp: loadLyXFile():

- make a new function readFromVC(),
if the file does not exist, try to extract it from the version control (RCS),

- make a new function readEmergency(),
try to read the emergency file that is associated to the file we are trying to read,

- make a new function readAutosave(),
try to read the autosave file that is associated to the file we are trying to read,

- merge loadLyXFile() and readFileHelper(),
this new function now determines which file to read.

- add more ReadStatus elements to describe failures.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35819 a592a061-630c-0410-9148-cb99ea01b6c8
src/Buffer.cpp
src/Buffer.h