On Fri, Oct 31, 2003 at 04:21:55PM +0000, Jose' Matos wrote:
> 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.

[Why not move the Buffer ref to LatexRunParams as well?]


>   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?

The approach is fine with me. And as this is more or less the same
scheme as used in src/m* this would be a major step forward on inset
unification.

Andre'

Reply via email to