The attached patch unifies the API used for the different backends in insets.

In inset.h we have:

int latex(Buffer const &, std::ostream &,LatexRunParams const &);
int ascii(Buffer const &, std::ostream &,LatexRunParams const &);
int linuxdoc(Buffer const &, std::ostream &,LatexRunParams const &);
int docbook(Buffer const &, std::ostream &,LatexRunParams const &);

  that is, we use the LatexRunParams to carry the different running 
parameters.

  I have discussed this with Jean-Marc and Angus last July in Chemnitz, and if 
I understood well this was the path that Jean-Marc proposed.

  One of the advantages of this approach is that will five me docbook xml 
almost by free adopting a flavour approach.

  This is necessary for a real mathml support,as it is xml...

  The other advantage is the removal of nice from buffer, that is possible 
now.

  In the process I moved also the ascii generator for paragraphs to 
paragraph_funcs. That is we are moving all the functions not related with 
buffer out to the proper way.

  The only problematic bits are some of the ascii functions that are used 
elsewhere...

  Comments?
-- 
Jos� Ab�lio

LyX and docbook, a perfect match. :-)

Attachment: patch-common.txt.gz
Description: GNU Zip compressed data

Reply via email to