+2002-02-08 Herbert Voss <voss@perce.de>
+
+ * filetools.C: (getExtFromContents) adding TGIF-format
+ and return type "user" when no type is detected
+
2002-02-13 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* textutils.h: remove IsLineSeparatorChar(char, Inset *)
// the different filetypes and what they contain in one of the first lines
// (dots are any characters). (Herbert 20020131)
// EPS %!PS-Adobe-3.0 EPSF...
+// TGIF %TGIF...
// GIF GIF...
// JPG JFIF
// PDF %PDF-...
}
if (contains(str,"EPSF")) // dummy, if we have wrong file
return "eps"; // description like "%!PS-Adobe-2.0EPSF"
+ else if (contains(str,"TGIF"))
+ return "tgif";
else if (contains(str,"GIF"))
return "gif";
else if (contains(str,"JFIF"))
else if (contains(str,"XPM"))
return "xpm";
}
- lyxerr[Debug::INFO] << "filetools(getExtFromContents)"
- " Couldn't find a known Type!" << endl;
- return string();
+ lyxerr[Debug::INFO] << "filetools(getExtFromContents)\n"
+ "\tCouldn't find a known Type!"
+ "\twill use a \"user\" defined format (based on file extension)" << endl;
+ return "user";
}