mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
Fix compatability code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2507 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
60c447c775
commit
19f1292262
@ -1,3 +1,9 @@
|
||||
2001-08-14 Dekel Tsur <dekelts@tau.ac.il>
|
||||
|
||||
* buffer.C (parseSingleLyXformat2Token): Do not generate errors
|
||||
when converting LaTeX layout to insetERT.
|
||||
Generate a non-collapsed float when reading old float
|
||||
|
||||
2001-08-13 Dekel Tsur <dekelts@tau.ac.il>
|
||||
|
||||
* BufferView2.C (showLockedInsetCursor): Use normal cursor shape in
|
||||
|
23
src/buffer.C
23
src/buffer.C
@ -521,6 +521,10 @@ Buffer::parseSingleLyXformat2Token(LyXLex & lex, Paragraph *& par,
|
||||
pos = 0;
|
||||
if (pp.first) {
|
||||
par->layout = pp.second;
|
||||
#ifndef NO_COMPABILITY
|
||||
} else if (ert_comp.active) {
|
||||
par->layout = 0;
|
||||
#endif
|
||||
} else {
|
||||
// layout not found
|
||||
// use default layout "Standard" (0)
|
||||
@ -568,34 +572,41 @@ Buffer::parseSingleLyXformat2Token(LyXLex & lex, Paragraph *& par,
|
||||
|
||||
if (tmptok == "footnote") {
|
||||
inset = new InsetFoot;
|
||||
old_float << "collapsed true\n";
|
||||
} else if (tmptok == "margin") {
|
||||
inset = new InsetMarginal;
|
||||
old_float << "collapsed true\n";
|
||||
} else if (tmptok == "fig") {
|
||||
inset = new InsetFloat("figure");
|
||||
old_float << "placement htbp\n"
|
||||
<< "wide false\n";
|
||||
<< "wide false\n"
|
||||
<< "collapsed false\n";
|
||||
} else if (tmptok == "tab") {
|
||||
inset = new InsetFloat("table");
|
||||
old_float << "placement htbp\n"
|
||||
<< "wide false\n";
|
||||
<< "wide false\n"
|
||||
<< "collapsed false\n";
|
||||
} else if (tmptok == "alg") {
|
||||
inset = new InsetFloat("algorithm");
|
||||
old_float << "placement htbp\n"
|
||||
<< "wide false\n";
|
||||
<< "wide false\n"
|
||||
<< "collapsed false\n";
|
||||
} else if (tmptok == "wide-fig") {
|
||||
inset = new InsetFloat("figure");
|
||||
//InsetFloat * tmp = new InsetFloat("figure");
|
||||
//tmp->wide(true);
|
||||
//inset = tmp;
|
||||
old_float << "placement htbp\n"
|
||||
<< "wide true\n";
|
||||
<< "wide true\n"
|
||||
<< "collapsed false\n";
|
||||
} else if (tmptok == "wide-tab") {
|
||||
inset = new InsetFloat("table");
|
||||
//InsetFloat * tmp = new InsetFloat("table");
|
||||
//tmp->wide(true);
|
||||
//inset = tmp;
|
||||
old_float << "placement htbp\n"
|
||||
<< "wide true\n";
|
||||
<< "wide true\n"
|
||||
<< "collapsed false\n";
|
||||
}
|
||||
|
||||
if (!inset) {
|
||||
@ -604,8 +615,6 @@ Buffer::parseSingleLyXformat2Token(LyXLex & lex, Paragraph *& par,
|
||||
#endif
|
||||
return false; // no end read yet
|
||||
}
|
||||
|
||||
old_float << "collapsed true\n";
|
||||
|
||||
// Here we need to check for \end_deeper and handle that
|
||||
// before we do the footnote parsing.
|
||||
|
Loading…
Reference in New Issue
Block a user