begin cleanup slowly

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4185 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2002-05-22 12:33:02 +00:00
parent c7bc2da4a2
commit b232321ff8
5 changed files with 26 additions and 4 deletions

View File

@ -1,5 +1,13 @@
2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
* buffer.C: comment out some some code that depend upon lyx_format
< 220
* paragraph.h (NO_PEXTRA_REALLY): turn off all pextra
* ParagraphParameters.h (NO_PEXTRA_REALLY): ditto
* buffer.h (NO_COMPABILITY): turn off compability
* ColorHandler.C: include scoped_array.hpp
* font.C: Use more specific smart_ptr header.

View File

@ -12,7 +12,7 @@
#include "layout.h"
// Not yet... lyx 1.3.x or so
//#define NO_PEXTRA_REALLY 1
#define NO_PEXTRA_REALLY 1
#include "ParameterStruct.h"

View File

@ -330,8 +330,11 @@ bool Buffer::readLyXformat2(LyXLex & lex, Paragraph * par)
Paragraph * first_par = 0;
LyXFont font(LyXFont::ALL_INHERIT, params.language);
#if 0
if (file_format < 216 && params.language->lang() == "hebrew")
font.setLanguage(default_language);
#endif
if (!par) {
par = new Paragraph;
@ -521,8 +524,11 @@ Buffer::parseSingleLyXformat2Token(LyXLex & lex, Paragraph *& par,
// not ALL_INHERIT,document_language then it will be set to the
// right values after this tag (Jug 20020420)
font = LyXFont(LyXFont::ALL_INHERIT, params.language);
#if 0
if (file_format < 216 && params.language->lang() == "hebrew")
font.setLanguage(default_language);
#endif
lex.eatLine();
string layoutname = lex.getString();
@ -1697,13 +1703,21 @@ bool Buffer::readFile(LyXLex & lex, Paragraph * par)
_("Old LyX file format found. "
"Use LyX 0.10.x to read this!"));
return false;
} else if (file_format < 220) {
Alert::alert(_("ERROR!"),
_("Old LyX file format found. "
"User LyX 1.2.x to read this!"));
return false;
}
}
bool the_end = readLyXformat2(lex, par);
params.setPaperStuff();
#if 0
// the_end was added in 213
if (file_format < 213)
the_end = true;
#endif
if (!the_end) {
Alert::alert(_("Warning!"),

View File

@ -35,7 +35,7 @@ class ParIterator;
// When lyx 1.3.x starts we should enable this
// btw. we should also test this with 1.2 so that we
// do not get any surprises. (Lgb)
//#define NO_COMPABILITY 1
#define NO_COMPABILITY 1
///
struct DEPCLEAN {

View File

@ -33,7 +33,7 @@ class Language;
// After 1.2.0 is released, during 1.3.0cvs, we enable this. And after
// a while we verify that reading of 1.2.x files work perfectly we remove
// this code completely. (Lgb)
//#define NO_PEXTRA_REALLY 1
#define NO_PEXTRA_REALLY 1
// Define this if you want to try out the new storage container for
// paragraphs. std::container instead of obfuscated homegrown