"Michael A. Koziarski" wrote:
> 
> >
> >
> >>> I'll apply it. This shows that features should in fact be declared
> >>>in some kind of map, instead of having all these bools around.
> >>>
> Well,
> 
> I've done the initial conversion.  All the bools are now members of a
> map<string, bool>.
> 
> However there are *lots* (*lots* and *lots* :)) of classes that are
> manipulating these variables (it is a struct) directly.  Would it be
> better to make LaTeXFeatures into a class.  With a get/set style method
> for manipulating these values? I'm willing to actually do the coding but
> someone *will* have to make sure that my code isn't dumb :).

I tried it with a 

        ///
        typedef std::set<string> UsedPackages;
        ///
        UsedPackages usedPackages;

which makes life very easy, only changes in src/insets and a few
in buffer.C and tabular.C

I'll send you a patch in the afternoon.

Herbert


-- 
http://www.lyx.org/help/

Reply via email to