On Friday 05 December 2003 13:11, Angus Leeming wrote:
> Angus Leeming wrote:
> >> 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);
I have implemented that as an option in lyx2lyx. The argument is either -e
or --err, to be consistent with all the other arguments. If it has more than
2 letters the it get a double dash.
> > 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...
>
> Ok, Jos�, the attached patch should make your life easy. You'll need
> to invoke the dialog as
> <lyxview>.getDialogs().show("log", "lyx2lyx <errorfile>");
> where <lyxview> is the LyXView variable ('*owner') in
> LyXFunc::dispatch.
And where should I do this? I don't know really.
> As a nice side effect, the patch also means we can get rid of
> ControlVCLog.[Ch], FormVCLog.[Ch] and QVCLog.[Ch].
Good.
--
Jos� Ab�lio
LyX and docbook, a perfect match. :-)