Jean-Marc Lasgouttes wrote: >>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> I don't see why $$LatexName is needed. Is it still needed > after Angus> Jean-Marc's Buffer::getMasterBuffer() is included in > the Angus> source? > > > It seems to me that in some cases (when calling the script that > produces the right output, for example) we really > want the name as entered in the inset filename box. The filename > relative to master buffer is only needed when exporting latex or > docbook[*] > > Of course, if the converter command was run from the master buffer > dir, the situation would be different, since $$FName would always be > the right variable to use.
That could be done quite easily, couldn't it? Converters::convert is invoked as: converters.convert(&buffer, from_file, to_file_base, from_format, to_format); If from_file is relative to the master buffer (and so therefore is to_file_base), then all that Converters::convert needs to do is to set the Path as Path p(buffer.getMasterBuffer()->filePath()); before continuing as normal. -- Angus