Patches

Jean-Marc Lasgouttes lasgouttes at lyx.org
Tue Nov 3 00:05:35 UTC 2020


Le 02/11/2020 à 22:56, Richard Kimberly Heck a écrit :
> I have been thinking just a bit about this and wonder how plausible it 
> is to separate out those elements of the Counter class that are 
> per-Buffer (or, at least, document set) and those that are not. 
> Basically: ALL of the members of Counter are per-Buffer. The ones 
> associated with values obviously are. But so are e.g. labelstring_ and 
> prettyformat_, since these can be over-ridden by local layouts, modules, 
> etc. So I'm not sure there will be anything left if we factor out the 
> non-per-Buffer stuff.

It is not a matter of per-bufferbut of separating layout from value. 
This means that we could avoid copying the whole counters definitions in 
InsetText::updateBuffer and whatever strange xhtml thing you have been 
doing. Basically every inset or paragraph could cache its counter values 
in a reasonably compact way. I am sure we can find uses for that.

JMarc


More information about the lyx-devel mailing list