Patches
Richard Kimberly Heck
rikiheck at lyx.org
Tue Nov 3 17:46:25 UTC 2020
On 11/2/20 7:05 PM, Jean-Marc Lasgouttes wrote:
> 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.
Here's a slightly different idea. Not tested yet.
Riki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Idea-to-save-and-restore-counters-without-copying-th.patch
Type: text/x-patch
Size: 4630 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20201103/067e46e3/attachment-0001.bin>
More information about the lyx-devel
mailing list