Am Mittwoch, 12. Mai 2004 15:02 schrieb Jean-Marc Lasgouttes: > >>>>> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: > I always thought that this prepareFile thing was ugly. Isn't there > some way to split it in two (compute the name and do the conversions)?
One can use a stripped down version of prepareFile to compute the name, but one can't simplify much the part that does the conversion, because "does the conversion" actually means copying one or two files and/or unzipping a file and/or convert a file. So the conversion routine would do almost the same that prepareFile does now and be as ugly as well. > Georg> The external inset is similar. But these problems ar minor, the > Georg> big problem is: How to get the collected filenames from > Georg> Buffer::validate() to Exporter::Export()? One way would be the > Georg> exportdata hack I described above, but then we gained nothing. > Georg> Or Buffer::makeLaTeXFile() could return a list of filenames. Or > Georg> it could return the LaTeXFeatures. > > Yes, makeLatexFile could return the filenames. Closer examination of the consequences showed that I would have to change a lot if I were to go this way. E. g. makeLaTeXFile is called by BufferList::updateIncludedTeXfiles (why is that needed? InsetInclude::latex calls makeLaTeXFile for the child, this should IMHO be enough). So I decided to go the easy way and create the list of referenced files in latex() and not validate(). Georg