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

Georg> Not much. The stuff related to #605 is

Georg> s/buffer\.temppath()/buffer.getMasterBuffer()->temppath()/g

Georg> in ExternalSupport.C.

But how do you deal with normal export? If file foo1.lyx includes
dir/foo2.lyx and foo2.lyx has an external inset bar.dat, the name
should be exported in latex as dir/bar.dat, shouldn't it?

>From my cursory looking at the sources, we cannot do that directly in
doSubstitution, since there are cases where we want $$FName as plain
bar.dat.

It seems to me that it is necessary to add a bool to doSubstitution
telling wether relative file names should relative to buffer or master
buffer. 

Georg> What I forgot to say: I did not include the "Let's pretend we
Georg> are the master buffer" stuff because I did not understand why
Georg> it was necessary.

What is that?

Georg> - The ExportData struct is rather a hack because it circumvents
Georg> the const'ness of runparams. How to do this properly?
>>  Can you collect the file names at validate() time? I'd think that
>> this pass is the right one for what you try to do.

Georg> This would probably involve a call to prepareFile(), but should
Georg> work.

And would you have to call prepareFile again when generating latex?

Georg> It is easy to start with the #605 part. Sould I separate this
Georg> out? 

I guess it would be a good idea.

Georg> Then, one could do the graphics inset stuff and leave the
Georg> filename collecting for dvi export for the third chunk. I
Georg> believe that it is difficult to split it further apart.

Yes, I would like to see that if it is not too much work.

JMarc

Reply via email to