Andre Poenitz wrote:

> On Fri, Dec 05, 2003 at 10:44:11AM +0000, Jose' Matos wrote:
>>   That was my reasoning when initiating this thread, and this is
>>   why I like
>> Angus solution, that could also be applied to any program used to
>> import lyx files.
> 
> I like that solution, too, but I have no clue how to implement that.

Invoke lyx2lyx as:

                string command = LibFileSearch("lyx2lyx", "lyx2lyx");
                command += " -t"
                        + tostr(LYX_FORMAT)
                        + " -o " + tmpfile + ' '
+                       + " -err " + logile + ' '
                        + QuoteName(filename);

Thereafter, if logfile is not empty, invoke 

        void Dialogs::show("log", logfile);

We would have to consolidate ControlLog and ControlVCLog into one, 
reading the name of the logfile from the data passed to it rather 
than their current (nasty) hard coding, but hey! That ain't so 
baaaddd...

-- 
Angus

Reply via email to