herbert patch to read 1.2.0 graphics insets

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4760 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2002-07-23 12:20:21 +00:00
parent 0253a8b7b7
commit 10aefc07a0
2 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-07-22 Herbert Voss <voss@lyx.org>
* insetgraphicsParams.[Ch]: support size_type for old docs
2002-07-22 Herbert Voss <voss@lyx.org>
* insetgraphics.C:

View File

@ -276,9 +276,23 @@ bool InsetGraphicsParams::Read(LyXLex & lex, string const & token)
subcaptionText = lex.getString();
} else if (token == "noUnzip") {
noUnzip = true;
} else if (token == "size_kind") {
} else if (token == "size_kind") {
lex.next();
size_kind = getSizeKind(lex.getString());
// compatibility-stuff 1.20->1.3.0
} else if (token == "size_type") {
lex.next();
switch (lex.getInteger()) {
case 0:
size_kind = DEFAULT_SIZE;
break;
case 1:
size_kind = WH;
break;
case 2:
size_kind = SCALE;
break;
}
} else if (token == "width") {
lex.next();
width = LyXLength(lex.getString());