On Mon, Dec 01, 2003 at 05:53:37PM +0100, Jean-Marc Lasgouttes wrote: > >>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> As always, life is a little complicated. The only reason to > Angus> have two dialogs is to 1. Get rid of that combox (XFig, Raster, > Angus> Chess, Date) etc when we know that we want to insert a graphic. > > Angus> However, XFig, Raster, VectorGraphic, Tgif, Dia, ... are all > Angus> 'graphic' formats that may or may not produce different latex > Angus> output. > > So we could have a simple 'insert object', where the external template > is chosen based on the file type (or extension). The idea is that, if > one inserts a xfig or eps file, it should not be necessary to choose a > template, just give the file name.
Relying on extensions to determine the file type is not very robust. I could e.g. imagine that the mapping extension -> application is not 1:1. However, from an UI point of view it might even make sense ("Do something sensible"). But I am not sure I like it more than an extra level of menu items.... Andre'