else if (token == "inch")
return (LyXLength(value+"in"));
else if (token == "percentOfColumn")
- return (LyXLength(value+"c%"));
+ return (LyXLength(value+"col%"));
else if (token == "percentOfPage")
- return (LyXLength(value+"p%"));
+ return (LyXLength(value+"page%"));
else return LyXLength("0pt"); // nothing with figinset
}
}
-void InsetGraphicsParams::Write(Buffer const * buf, ostream & os) const
+void InsetGraphicsParams::Write(ostream & os) const
{
// If there is no filename, write nothing for it.
- if (! filename.empty()) {
- os << "\tfilename "
- << MakeRelPath(filename, buf->filePath())
- << '\n';
+ if (!filename.empty()) {
+ os << "\tfilename " << filename << '\n';
}
if (!bb.empty()) // bounding box
os << "\tBoundingBox " << bb << '\n';
}
-bool InsetGraphicsParams::Read(Buffer const * buf, LyXLex & lex,
- string const& token)
+bool InsetGraphicsParams::Read(LyXLex & lex, string const& token)
{
if (token == "filename") {
lex.next();
filename = lex.getString();
- if (!filename.empty()) {
- // Make the filename with absolute directory.
- filename = MakeAbsPath(filename, buf->filePath());
- }
} else if (token == "BoundingBox") {
for (int i=0; i<4 ;i++) {
lex.next();