Am Dienstag, 14. September 2004 09:39 schrieb Jean-Marc Lasgouttes: > >>>>> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: > > Georg> Loading an included file results in an error message if it is > Georg> not a lyx file. This can be fixed easily, see attached. There > Georg> is still an error message if no editor for the file format is > Georg> known, but the user can fix that by defining an editor if > Georg> needed. Is this the correct way to do it, or should I do it > Georg> like in insetgraphics and insetexternal with an extra lfun? > > What kind of files do you plan to insert this way? Is that meant for > .tex or .txt files? I do not think these ones are well suited for > getExtFromContents.
Any sort of files can be inserted with the include inset (at least if you use the verbatim mode). So it is possible best to deactivate the load button if the file is not a lyx file. Unfortunately this requires more code ;-( Georg