mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
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:
parent
c7bc2da4a2
commit
b232321ff8
@ -1,5 +1,13 @@
|
|||||||
2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
|
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
|
* ColorHandler.C: include scoped_array.hpp
|
||||||
|
|
||||||
* font.C: Use more specific smart_ptr header.
|
* font.C: Use more specific smart_ptr header.
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#include "layout.h"
|
#include "layout.h"
|
||||||
|
|
||||||
// Not yet... lyx 1.3.x or so
|
// Not yet... lyx 1.3.x or so
|
||||||
//#define NO_PEXTRA_REALLY 1
|
#define NO_PEXTRA_REALLY 1
|
||||||
|
|
||||||
#include "ParameterStruct.h"
|
#include "ParameterStruct.h"
|
||||||
|
|
||||||
|
16
src/buffer.C
16
src/buffer.C
@ -330,8 +330,11 @@ bool Buffer::readLyXformat2(LyXLex & lex, Paragraph * par)
|
|||||||
|
|
||||||
Paragraph * first_par = 0;
|
Paragraph * first_par = 0;
|
||||||
LyXFont font(LyXFont::ALL_INHERIT, params.language);
|
LyXFont font(LyXFont::ALL_INHERIT, params.language);
|
||||||
|
|
||||||
|
#if 0
|
||||||
if (file_format < 216 && params.language->lang() == "hebrew")
|
if (file_format < 216 && params.language->lang() == "hebrew")
|
||||||
font.setLanguage(default_language);
|
font.setLanguage(default_language);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!par) {
|
if (!par) {
|
||||||
par = new Paragraph;
|
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
|
// not ALL_INHERIT,document_language then it will be set to the
|
||||||
// right values after this tag (Jug 20020420)
|
// right values after this tag (Jug 20020420)
|
||||||
font = LyXFont(LyXFont::ALL_INHERIT, params.language);
|
font = LyXFont(LyXFont::ALL_INHERIT, params.language);
|
||||||
|
|
||||||
|
#if 0
|
||||||
if (file_format < 216 && params.language->lang() == "hebrew")
|
if (file_format < 216 && params.language->lang() == "hebrew")
|
||||||
font.setLanguage(default_language);
|
font.setLanguage(default_language);
|
||||||
|
#endif
|
||||||
|
|
||||||
lex.eatLine();
|
lex.eatLine();
|
||||||
string layoutname = lex.getString();
|
string layoutname = lex.getString();
|
||||||
@ -1082,7 +1088,7 @@ Buffer::parseSingleLyXformat2Token(LyXLex & lex, Paragraph *& par,
|
|||||||
if (ert_comp.active && ert_comp.contents.empty()) {
|
if (ert_comp.active && ert_comp.contents.empty()) {
|
||||||
ert_comp.font.setLanguage(font.language());
|
ert_comp.font.setLanguage(font.language());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
} else if (token == "\\numeric") {
|
} else if (token == "\\numeric") {
|
||||||
lex.next();
|
lex.next();
|
||||||
font.setNumber(font.setLyXMisc(lex.getString()));
|
font.setNumber(font.setLyXMisc(lex.getString()));
|
||||||
@ -1697,13 +1703,21 @@ bool Buffer::readFile(LyXLex & lex, Paragraph * par)
|
|||||||
_("Old LyX file format found. "
|
_("Old LyX file format found. "
|
||||||
"Use LyX 0.10.x to read this!"));
|
"Use LyX 0.10.x to read this!"));
|
||||||
return false;
|
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);
|
bool the_end = readLyXformat2(lex, par);
|
||||||
params.setPaperStuff();
|
params.setPaperStuff();
|
||||||
|
|
||||||
|
#if 0
|
||||||
// the_end was added in 213
|
// the_end was added in 213
|
||||||
if (file_format < 213)
|
if (file_format < 213)
|
||||||
the_end = true;
|
the_end = true;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!the_end) {
|
if (!the_end) {
|
||||||
Alert::alert(_("Warning!"),
|
Alert::alert(_("Warning!"),
|
||||||
|
@ -35,7 +35,7 @@ class ParIterator;
|
|||||||
// When lyx 1.3.x starts we should enable this
|
// When lyx 1.3.x starts we should enable this
|
||||||
// btw. we should also test this with 1.2 so that we
|
// btw. we should also test this with 1.2 so that we
|
||||||
// do not get any surprises. (Lgb)
|
// do not get any surprises. (Lgb)
|
||||||
//#define NO_COMPABILITY 1
|
#define NO_COMPABILITY 1
|
||||||
|
|
||||||
///
|
///
|
||||||
struct DEPCLEAN {
|
struct DEPCLEAN {
|
||||||
|
@ -33,7 +33,7 @@ class Language;
|
|||||||
// After 1.2.0 is released, during 1.3.0cvs, we enable this. And after
|
// 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
|
// a while we verify that reading of 1.2.x files work perfectly we remove
|
||||||
// this code completely. (Lgb)
|
// 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
|
// Define this if you want to try out the new storage container for
|
||||||
// paragraphs. std::container instead of obfuscated homegrown
|
// paragraphs. std::container instead of obfuscated homegrown
|
||||||
|
Loading…
Reference in New Issue
Block a user