On Sun, Jul 05, 2020 at 02:16:04AM +0200, Thibaut Cuvelier wrote:
> > > I tried the existing code. Creating a new DocBook document from the
> > template
> > > does not set \outputformat, so it's not required to generate a DocBook
> > file.
> >
> > You are right, \outputformat has nothing to do with default output format.
> > Which brings me to the initial question, how \outputformat ends up in .lyx
> > file at all that we need to remove it?  What one needs to set in GUI to get
> > \outputformat in .lyx file?  Have you seen .lyx file which contains that
> > line?
> >
> 
> As far as I understand it, there is no way to set the format from LyX (either
> the GUI or the code outside TextClass: no setter method for this field, it is
> only set when reading the LyX file). The same holds for outputType, by the
> way.
> 
> I have yet to see a LyX file using these, also??? The only occurrences I can
> find in the Git repository are in the documentation.

Ok, that confirms my findings. I believe OutputFormat can be used in layouts
but never in .lyx file, thus it does not make sense to increase fileformat
in order to delete it. Do we agree on this point or am I missing some reason
why you want to have that lyx2lyx conversion routine?

> Therefore, I suppose that a lot of this code can be deleted.

Yes, once your patches are in we should get rid of those as well,
I see you already sent severeal patches going in this direction, thanks :)

Pavel
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to