>>>>> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes:

Georg> Jean-Marc suggested to collect the filenames in validate()
Georg> instead. Unfortunately this has also problems: We get the
Georg> filename in latex() as a byproduct. If we want it in
Georg> validate(), we have to duplicate the logic in
Georg> InsetGraphics::prepareFile() or call it with a flag
Georg> "validateOnly". 

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)?

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.

Georg> What do you think? Should I use the hack described above and
Georg> collect the data in latex(), or should I do it in validate(),
Georg> and how should I pass the files to Exporter::Export()?

Choose the way that seems the more natural to you.

JMarc

Reply via email to